gauge-ruby 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/code_parser.rb +1 -1
- data/lib/configuration.rb +30 -9
- data/lib/executor.rb +3 -2
- data/lib/gauge.rb +1 -2
- data/lib/gauge_runtime.rb +7 -53
- data/lib/gauge_screenshot.rb +13 -3
- data/lib/log.rb +29 -11
- data/lib/messages_pb.rb +272 -238
- data/lib/processors/cache_file_processor.rb +1 -6
- data/lib/processors/datastore_init_processor.rb +19 -14
- data/lib/processors/execute_step_request_processor.rb +5 -5
- data/lib/processors/execution_handler.rb +18 -19
- data/lib/processors/execution_hook_processors.rb +16 -40
- data/lib/processors/implementation_file_list_processor.rb +1 -6
- data/lib/processors/implementation_glob_pattern_processor.rb +1 -10
- data/lib/processors/refactor_step_request_processor.rb +1 -7
- data/lib/processors/step_name_request_processor.rb +2 -7
- data/lib/processors/step_names_request_processor.rb +1 -7
- data/lib/processors/step_positions_request_processor.rb +2 -7
- data/lib/processors/step_validation_request_processor.rb +1 -8
- data/lib/processors/stub_implementation_processor.rb +1 -6
- data/lib/service_handlers.rb +122 -0
- data/lib/{lsp_pb.rb → services_pb.rb} +2 -3
- data/lib/services_services_pb.rb +165 -0
- data/lib/spec_pb.rb +233 -198
- data/lib/static_loader.rb +2 -2
- data/lib/util.rb +24 -14
- metadata +48 -34
- data/lib/api_pb.rb +0 -182
- data/lib/connector.rb +0 -46
- data/lib/lsp_server.rb +0 -78
- data/lib/lsp_services_pb.rb +0 -51
- data/lib/message_processor.rb +0 -61
@@ -1,16 +1,15 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source:
|
2
|
+
# source: services.proto
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'messages_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
|
8
|
+
add_file("services.proto", :syntax => :proto3) do
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
module Gauge
|
13
13
|
module Messages
|
14
|
-
Empty = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.Empty").msgclass
|
15
14
|
end
|
16
15
|
end
|
@@ -0,0 +1,165 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: services.proto for package 'gauge.messages'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'services_pb'
|
6
|
+
|
7
|
+
module Gauge
|
8
|
+
module Messages
|
9
|
+
module Runner
|
10
|
+
class Service
|
11
|
+
|
12
|
+
include GRPC::GenericService
|
13
|
+
|
14
|
+
self.marshal_class_method = :encode
|
15
|
+
self.unmarshal_class_method = :decode
|
16
|
+
self.service_name = 'gauge.messages.Runner'
|
17
|
+
|
18
|
+
# ValidateStep is a RPC to validate a given step.
|
19
|
+
#
|
20
|
+
# Accepts a StepValidateRequest message and returns a StepValidateResponse message
|
21
|
+
rpc :ValidateStep, StepValidateRequest, StepValidateResponse
|
22
|
+
# SuiteDataStoreInit is a RPC to initialize the suite level data store.
|
23
|
+
#
|
24
|
+
# Accepts a Empty message and returns a ExecutionStatusResponse message
|
25
|
+
rpc :InitializeSuiteDataStore, Empty, ExecutionStatusResponse
|
26
|
+
# ExecutionStarting is a RPC to tell runner to execute Suite level hooks.
|
27
|
+
#
|
28
|
+
# Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message
|
29
|
+
rpc :StartExecution, ExecutionStartingRequest, ExecutionStatusResponse
|
30
|
+
# SpecDataStoreInit is a RPC to initialize the spec level data store.
|
31
|
+
#
|
32
|
+
# Accepts a Empty message and returns a ExecutionStatusResponse message
|
33
|
+
rpc :InitializeSpecDataStore, Empty, ExecutionStatusResponse
|
34
|
+
# SpecExecutionStarting is a RPC to tell runner to execute spec level hooks.
|
35
|
+
#
|
36
|
+
# Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message
|
37
|
+
rpc :StartSpecExecution, SpecExecutionStartingRequest, ExecutionStatusResponse
|
38
|
+
# ScenarioDataStoreInit is a RPC to initialize the scenario level data store.
|
39
|
+
#
|
40
|
+
# Accepts a Empty message and returns a ExecutionStatusResponse message
|
41
|
+
rpc :InitializeScenarioDataStore, Empty, ExecutionStatusResponse
|
42
|
+
# ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks.
|
43
|
+
#
|
44
|
+
# Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message
|
45
|
+
rpc :StartScenarioExecution, ScenarioExecutionStartingRequest, ExecutionStatusResponse
|
46
|
+
# StepExecutionStarting is a RPC to tell runner to execute step level hooks.
|
47
|
+
#
|
48
|
+
# Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message
|
49
|
+
rpc :StartStepExecution, StepExecutionStartingRequest, ExecutionStatusResponse
|
50
|
+
# ExecuteStep is a RPC to tell runner to execute a step .
|
51
|
+
#
|
52
|
+
# Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message
|
53
|
+
rpc :ExecuteStep, ExecuteStepRequest, ExecutionStatusResponse
|
54
|
+
# StepExecutionEnding is a RPC to tell runner to execute step level hooks.
|
55
|
+
#
|
56
|
+
# Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message
|
57
|
+
rpc :FinishStepExecution, StepExecutionEndingRequest, ExecutionStatusResponse
|
58
|
+
# ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks.
|
59
|
+
#
|
60
|
+
# Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message
|
61
|
+
rpc :FinishScenarioExecution, ScenarioExecutionEndingRequest, ExecutionStatusResponse
|
62
|
+
# SpecExecutionEnding is a RPC to tell runner to execute spec level hooks.
|
63
|
+
#
|
64
|
+
# Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message
|
65
|
+
rpc :FinishSpecExecution, SpecExecutionEndingRequest, ExecutionStatusResponse
|
66
|
+
# ExecutionEnding is a RPC to tell runner to execute suite level hooks.
|
67
|
+
#
|
68
|
+
# Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message
|
69
|
+
rpc :FinishExecution, ExecutionEndingRequest, ExecutionStatusResponse
|
70
|
+
# CacheFile is a RPC to tell runner to load/reload/unload a implementation file.
|
71
|
+
#
|
72
|
+
# Accepts a CacheFileRequest message and returns a Empty message
|
73
|
+
rpc :CacheFile, CacheFileRequest, Empty
|
74
|
+
# GetStepName is a RPC to get information about the given step.
|
75
|
+
#
|
76
|
+
# Accepts a StepNameRequest message and returns a StepNameResponse message.
|
77
|
+
rpc :GetStepName, StepNameRequest, StepNameResponse
|
78
|
+
# GetGlobPatterns is a RPC to get the file path pattern which needs to be cached.
|
79
|
+
#
|
80
|
+
# Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message.
|
81
|
+
rpc :GetGlobPatterns, Empty, ImplementationFileGlobPatternResponse
|
82
|
+
# GetStepNames is a RPC to get all the available steps from the runner.
|
83
|
+
#
|
84
|
+
# Accepts a StepNamesRequest message and returns a StepNamesResponse
|
85
|
+
rpc :GetStepNames, StepNamesRequest, StepNamesResponse
|
86
|
+
# GetStepPositions is a RPC to get positions of all available steps in a given file.
|
87
|
+
#
|
88
|
+
# Accepts a StepPositionsRequest message and returns a StepPositionsResponse message
|
89
|
+
rpc :GetStepPositions, StepPositionsRequest, StepPositionsResponse
|
90
|
+
# GetImplementationFiles is a RPC get all the existing implementation files.
|
91
|
+
#
|
92
|
+
# Accepts a Empty and returns a ImplementationFileListResponse message.
|
93
|
+
rpc :GetImplementationFiles, Empty, ImplementationFileListResponse
|
94
|
+
# ImplementStub is a RPC to to ask runner to add a given implementation to given file.
|
95
|
+
#
|
96
|
+
# Accepts a StubImplementationCodeRequest and returns a FileDiff message.
|
97
|
+
rpc :ImplementStub, StubImplementationCodeRequest, FileDiff
|
98
|
+
# Refactor is a RPC to refactor a given step in implementation file.
|
99
|
+
#
|
100
|
+
# Accepts a RefactorRequest message and returns a RefactorResponse message.
|
101
|
+
rpc :Refactor, RefactorRequest, RefactorResponse
|
102
|
+
# Kill is a RPC tell plugin to stop grpc server and kill the plugin process.
|
103
|
+
#
|
104
|
+
# Accepts a KillProcessRequest message and returns a Empty message.
|
105
|
+
rpc :Kill, KillProcessRequest, Empty
|
106
|
+
end
|
107
|
+
|
108
|
+
Stub = Service.rpc_stub_class
|
109
|
+
end
|
110
|
+
module Reporter
|
111
|
+
# Reporter services is meant for reporting plugins, or others plugins which are interested the live events
|
112
|
+
class Service
|
113
|
+
|
114
|
+
include GRPC::GenericService
|
115
|
+
|
116
|
+
self.marshal_class_method = :encode
|
117
|
+
self.unmarshal_class_method = :decode
|
118
|
+
self.service_name = 'gauge.messages.Reporter'
|
119
|
+
|
120
|
+
# NotifyExecutionStarting is a RPC to tell plugins that the execution has started.
|
121
|
+
#
|
122
|
+
# Accepts a ExecutionStartingRequest message and returns a Empty message
|
123
|
+
rpc :NotifyExecutionStarting, ExecutionStartingRequest, Empty
|
124
|
+
# NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started.
|
125
|
+
#
|
126
|
+
# Accepts a SpecExecutionStartingRequest message and returns a Empty message
|
127
|
+
rpc :NotifySpecExecutionStarting, SpecExecutionStartingRequest, Empty
|
128
|
+
# NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started.
|
129
|
+
#
|
130
|
+
# Accepts a ScenarioExecutionStartingRequest message and returns a Empty message
|
131
|
+
rpc :NotifyScenarioExecutionStarting, ScenarioExecutionStartingRequest, Empty
|
132
|
+
# NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started.
|
133
|
+
#
|
134
|
+
# Accepts a StepExecutionStartingRequest message and returns a Empty message
|
135
|
+
rpc :NotifyStepExecutionStarting, StepExecutionStartingRequest, Empty
|
136
|
+
# NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished.
|
137
|
+
#
|
138
|
+
# Accepts a StepExecutionStartingRequest message and returns a Empty message
|
139
|
+
rpc :NotifyStepExecutionEnding, StepExecutionEndingRequest, Empty
|
140
|
+
# NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished.
|
141
|
+
#
|
142
|
+
# Accepts a ScenarioExecutionEndingRequest message and returns a Empty message
|
143
|
+
rpc :NotifyScenarioExecutionEnding, ScenarioExecutionEndingRequest, Empty
|
144
|
+
# NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished.
|
145
|
+
#
|
146
|
+
# Accepts a SpecExecutionStartingRequest message and returns a Empty message
|
147
|
+
rpc :NotifySpecExecutionEnding, SpecExecutionEndingRequest, Empty
|
148
|
+
# NotifyExecutionEnding is a RPC to tell plugins that the execution has finished.
|
149
|
+
#
|
150
|
+
# Accepts a ExecutionEndingRequest message and returns a Empty message
|
151
|
+
rpc :NotifyExecutionEnding, ExecutionEndingRequest, Empty
|
152
|
+
# NotifySuiteResult is a RPC to tell about the end result of execution
|
153
|
+
#
|
154
|
+
# Accepts a SuiteExecutionResult message and returns a Empty message.
|
155
|
+
rpc :NotifySuiteResult, SuiteExecutionResult, Empty
|
156
|
+
# Kill is a RPC tell plugin to stop grpc server and kill the plugin process.
|
157
|
+
#
|
158
|
+
# Accepts a KillProcessRequest message and returns a Empty message.
|
159
|
+
rpc :Kill, KillProcessRequest, Empty
|
160
|
+
end
|
161
|
+
|
162
|
+
Stub = Service.rpc_stub_class
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
data/lib/spec_pb.rb
CHANGED
@@ -4,204 +4,237 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
7
|
+
add_file("spec.proto", :syntax => :proto3) do
|
8
|
+
add_message "gauge.messages.ProtoSpec" do
|
9
|
+
optional :specHeading, :string, 1
|
10
|
+
repeated :items, :message, 2, "gauge.messages.ProtoItem"
|
11
|
+
optional :isTableDriven, :bool, 3
|
12
|
+
repeated :preHookFailures, :message, 4, "gauge.messages.ProtoHookFailure"
|
13
|
+
repeated :postHookFailures, :message, 5, "gauge.messages.ProtoHookFailure"
|
14
|
+
optional :fileName, :string, 6
|
15
|
+
repeated :tags, :string, 7
|
16
|
+
repeated :preHookMessages, :string, 8
|
17
|
+
repeated :postHookMessages, :string, 9
|
18
|
+
repeated :preHookMessage, :string, 10
|
19
|
+
repeated :postHookMessage, :string, 11
|
20
|
+
repeated :preHookScreenshots, :bytes, 12
|
21
|
+
repeated :postHookScreenshots, :bytes, 13
|
22
|
+
optional :itemCount, :int64, 14
|
23
|
+
repeated :preHookScreenshotFiles, :string, 15
|
24
|
+
repeated :postHookScreenshotFiles, :string, 16
|
25
|
+
end
|
26
|
+
add_message "gauge.messages.ProtoItem" do
|
27
|
+
optional :itemType, :enum, 1, "gauge.messages.ProtoItem.ItemType"
|
28
|
+
optional :step, :message, 2, "gauge.messages.ProtoStep"
|
29
|
+
optional :concept, :message, 3, "gauge.messages.ProtoConcept"
|
30
|
+
optional :scenario, :message, 4, "gauge.messages.ProtoScenario"
|
31
|
+
optional :tableDrivenScenario, :message, 5, "gauge.messages.ProtoTableDrivenScenario"
|
32
|
+
optional :comment, :message, 6, "gauge.messages.ProtoComment"
|
33
|
+
optional :table, :message, 7, "gauge.messages.ProtoTable"
|
34
|
+
optional :tags, :message, 8, "gauge.messages.ProtoTags"
|
35
|
+
optional :fileName, :string, 9
|
36
|
+
end
|
37
|
+
add_enum "gauge.messages.ProtoItem.ItemType" do
|
38
|
+
value :Step, 0
|
39
|
+
value :Comment, 1
|
40
|
+
value :Concept, 2
|
41
|
+
value :Scenario, 3
|
42
|
+
value :TableDrivenScenario, 4
|
43
|
+
value :Table, 5
|
44
|
+
value :Tags, 6
|
45
|
+
end
|
46
|
+
add_message "gauge.messages.ProtoScenario" do
|
47
|
+
optional :scenarioHeading, :string, 1
|
48
|
+
optional :failed, :bool, 2
|
49
|
+
repeated :contexts, :message, 3, "gauge.messages.ProtoItem"
|
50
|
+
repeated :scenarioItems, :message, 4, "gauge.messages.ProtoItem"
|
51
|
+
optional :preHookFailure, :message, 5, "gauge.messages.ProtoHookFailure"
|
52
|
+
optional :postHookFailure, :message, 6, "gauge.messages.ProtoHookFailure"
|
53
|
+
repeated :tags, :string, 7
|
54
|
+
optional :executionTime, :int64, 8
|
55
|
+
optional :skipped, :bool, 9
|
56
|
+
repeated :skipErrors, :string, 10
|
57
|
+
optional :ID, :string, 11
|
58
|
+
repeated :tearDownSteps, :message, 12, "gauge.messages.ProtoItem"
|
59
|
+
optional :span, :message, 13, "gauge.messages.Span"
|
60
|
+
optional :executionStatus, :enum, 14, "gauge.messages.ExecutionStatus"
|
61
|
+
repeated :preHookMessages, :string, 15
|
62
|
+
repeated :postHookMessages, :string, 16
|
63
|
+
repeated :preHookMessage, :string, 17
|
64
|
+
repeated :postHookMessage, :string, 18
|
65
|
+
repeated :preHookScreenshots, :bytes, 19
|
66
|
+
repeated :postHookScreenshots, :bytes, 20
|
67
|
+
repeated :preHookScreenshotFiles, :string, 21
|
68
|
+
repeated :postHookScreenshotFiles, :string, 22
|
69
|
+
end
|
70
|
+
add_message "gauge.messages.Span" do
|
71
|
+
optional :start, :int64, 1
|
72
|
+
optional :end, :int64, 2
|
73
|
+
optional :startChar, :int64, 3
|
74
|
+
optional :endChar, :int64, 4
|
75
|
+
end
|
76
|
+
add_message "gauge.messages.ProtoTableDrivenScenario" do
|
77
|
+
optional :scenario, :message, 1, "gauge.messages.ProtoScenario"
|
78
|
+
optional :tableRowIndex, :int32, 2
|
79
|
+
optional :scenarioTableRowIndex, :int32, 3
|
80
|
+
optional :isSpecTableDriven, :bool, 4
|
81
|
+
optional :isScenarioTableDriven, :bool, 5
|
82
|
+
optional :scenarioDataTable, :message, 6, "gauge.messages.ProtoTable"
|
83
|
+
optional :scenarioTableRow, :message, 7, "gauge.messages.ProtoTable"
|
84
|
+
end
|
85
|
+
add_message "gauge.messages.ProtoStep" do
|
86
|
+
optional :actualText, :string, 1
|
87
|
+
optional :parsedText, :string, 2
|
88
|
+
repeated :fragments, :message, 3, "gauge.messages.Fragment"
|
89
|
+
optional :stepExecutionResult, :message, 4, "gauge.messages.ProtoStepExecutionResult"
|
90
|
+
repeated :preHookMessages, :string, 5
|
91
|
+
repeated :postHookMessages, :string, 6
|
92
|
+
repeated :preHookScreenshots, :bytes, 7
|
93
|
+
repeated :postHookScreenshots, :bytes, 8
|
94
|
+
repeated :preHookScreenshotFiles, :string, 9
|
95
|
+
repeated :postHookScreenshotFiles, :string, 10
|
96
|
+
end
|
97
|
+
add_message "gauge.messages.ProtoConcept" do
|
98
|
+
optional :conceptStep, :message, 1, "gauge.messages.ProtoStep"
|
99
|
+
repeated :steps, :message, 2, "gauge.messages.ProtoItem"
|
100
|
+
optional :conceptExecutionResult, :message, 3, "gauge.messages.ProtoStepExecutionResult"
|
101
|
+
end
|
102
|
+
add_message "gauge.messages.ProtoTags" do
|
103
|
+
repeated :tags, :string, 1
|
104
|
+
end
|
105
|
+
add_message "gauge.messages.Fragment" do
|
106
|
+
optional :fragmentType, :enum, 1, "gauge.messages.Fragment.FragmentType"
|
107
|
+
optional :text, :string, 2
|
108
|
+
optional :parameter, :message, 3, "gauge.messages.Parameter"
|
109
|
+
end
|
110
|
+
add_enum "gauge.messages.Fragment.FragmentType" do
|
111
|
+
value :Text, 0
|
112
|
+
value :Parameter, 1
|
113
|
+
end
|
114
|
+
add_message "gauge.messages.Parameter" do
|
115
|
+
optional :parameterType, :enum, 1, "gauge.messages.Parameter.ParameterType"
|
116
|
+
optional :value, :string, 2
|
117
|
+
optional :name, :string, 3
|
118
|
+
optional :table, :message, 4, "gauge.messages.ProtoTable"
|
119
|
+
end
|
120
|
+
add_enum "gauge.messages.Parameter.ParameterType" do
|
121
|
+
value :Static, 0
|
122
|
+
value :Dynamic, 1
|
123
|
+
value :Special_String, 2
|
124
|
+
value :Special_Table, 3
|
125
|
+
value :Table, 4
|
126
|
+
end
|
127
|
+
add_message "gauge.messages.ProtoComment" do
|
128
|
+
optional :text, :string, 1
|
129
|
+
end
|
130
|
+
add_message "gauge.messages.ProtoTable" do
|
131
|
+
optional :headers, :message, 1, "gauge.messages.ProtoTableRow"
|
132
|
+
repeated :rows, :message, 2, "gauge.messages.ProtoTableRow"
|
133
|
+
end
|
134
|
+
add_message "gauge.messages.ProtoTableRow" do
|
135
|
+
repeated :cells, :string, 1
|
136
|
+
end
|
137
|
+
add_message "gauge.messages.ProtoStepExecutionResult" do
|
138
|
+
optional :executionResult, :message, 1, "gauge.messages.ProtoExecutionResult"
|
139
|
+
optional :preHookFailure, :message, 2, "gauge.messages.ProtoHookFailure"
|
140
|
+
optional :postHookFailure, :message, 3, "gauge.messages.ProtoHookFailure"
|
141
|
+
optional :skipped, :bool, 4
|
142
|
+
optional :skippedReason, :string, 5
|
143
|
+
end
|
144
|
+
add_message "gauge.messages.ProtoExecutionResult" do
|
145
|
+
optional :failed, :bool, 1
|
146
|
+
optional :recoverableError, :bool, 2
|
147
|
+
optional :errorMessage, :string, 3
|
148
|
+
optional :stackTrace, :string, 4
|
149
|
+
optional :screenShot, :bytes, 5
|
150
|
+
optional :executionTime, :int64, 6
|
151
|
+
repeated :message, :string, 7
|
152
|
+
optional :errorType, :enum, 8, "gauge.messages.ProtoExecutionResult.ErrorType"
|
153
|
+
optional :failureScreenshot, :bytes, 9
|
154
|
+
repeated :screenshots, :bytes, 10
|
155
|
+
optional :failureScreenshotFile, :string, 11
|
156
|
+
repeated :screenshotFiles, :string, 12
|
157
|
+
end
|
158
|
+
add_enum "gauge.messages.ProtoExecutionResult.ErrorType" do
|
159
|
+
value :ASSERTION, 0
|
160
|
+
value :VERIFICATION, 1
|
161
|
+
end
|
162
|
+
add_message "gauge.messages.ProtoHookFailure" do
|
163
|
+
optional :stackTrace, :string, 1
|
164
|
+
optional :errorMessage, :string, 2
|
165
|
+
optional :screenShot, :bytes, 3
|
166
|
+
optional :tableRowIndex, :int32, 4
|
167
|
+
optional :failureScreenshot, :bytes, 5
|
168
|
+
optional :failureScreenshotFile, :string, 6
|
169
|
+
end
|
170
|
+
add_message "gauge.messages.ProtoSuiteResult" do
|
171
|
+
repeated :specResults, :message, 1, "gauge.messages.ProtoSpecResult"
|
172
|
+
optional :preHookFailure, :message, 2, "gauge.messages.ProtoHookFailure"
|
173
|
+
optional :postHookFailure, :message, 3, "gauge.messages.ProtoHookFailure"
|
174
|
+
optional :failed, :bool, 4
|
175
|
+
optional :specsFailedCount, :int32, 5
|
176
|
+
optional :executionTime, :int64, 6
|
177
|
+
optional :successRate, :float, 7
|
178
|
+
optional :environment, :string, 8
|
179
|
+
optional :tags, :string, 9
|
180
|
+
optional :projectName, :string, 10
|
181
|
+
optional :timestamp, :string, 11
|
182
|
+
optional :specsSkippedCount, :int32, 12
|
183
|
+
repeated :preHookMessages, :string, 13
|
184
|
+
repeated :postHookMessages, :string, 14
|
185
|
+
repeated :preHookMessage, :string, 15
|
186
|
+
repeated :postHookMessage, :string, 16
|
187
|
+
repeated :preHookScreenshots, :bytes, 17
|
188
|
+
repeated :postHookScreenshots, :bytes, 18
|
189
|
+
optional :chunked, :bool, 19
|
190
|
+
optional :chunkSize, :int64, 20
|
191
|
+
repeated :preHookScreenshotFiles, :string, 21
|
192
|
+
repeated :postHookScreenshotFiles, :string, 22
|
193
|
+
end
|
194
|
+
add_message "gauge.messages.ProtoSpecResult" do
|
195
|
+
optional :protoSpec, :message, 1, "gauge.messages.ProtoSpec"
|
196
|
+
optional :scenarioCount, :int32, 2
|
197
|
+
optional :scenarioFailedCount, :int32, 3
|
198
|
+
optional :failed, :bool, 4
|
199
|
+
repeated :failedDataTableRows, :int32, 5
|
200
|
+
optional :executionTime, :int64, 6
|
201
|
+
optional :skipped, :bool, 7
|
202
|
+
optional :scenarioSkippedCount, :int32, 8
|
203
|
+
repeated :skippedDataTableRows, :int32, 9
|
204
|
+
repeated :errors, :message, 10, "gauge.messages.Error"
|
205
|
+
optional :timestamp, :string, 11
|
206
|
+
end
|
207
|
+
add_message "gauge.messages.ProtoScenarioResult" do
|
208
|
+
optional :protoItem, :message, 1, "gauge.messages.ProtoItem"
|
209
|
+
optional :executionTime, :int64, 2
|
210
|
+
optional :timestamp, :string, 3
|
211
|
+
end
|
212
|
+
add_message "gauge.messages.ProtoStepResult" do
|
213
|
+
optional :protoItem, :message, 1, "gauge.messages.ProtoItem"
|
214
|
+
optional :executionTime, :int64, 2
|
215
|
+
optional :timestamp, :string, 3
|
216
|
+
end
|
217
|
+
add_message "gauge.messages.Error" do
|
218
|
+
optional :type, :enum, 1, "gauge.messages.Error.ErrorType"
|
219
|
+
optional :filename, :string, 2
|
220
|
+
optional :lineNumber, :int32, 3
|
221
|
+
optional :message, :string, 4
|
222
|
+
end
|
223
|
+
add_enum "gauge.messages.Error.ErrorType" do
|
224
|
+
value :PARSE_ERROR, 0
|
225
|
+
value :VALIDATION_ERROR, 1
|
226
|
+
end
|
227
|
+
add_message "gauge.messages.ProtoStepValue" do
|
228
|
+
optional :stepValue, :string, 1
|
229
|
+
optional :parameterizedStepValue, :string, 2
|
230
|
+
repeated :parameters, :string, 3
|
231
|
+
end
|
232
|
+
add_enum "gauge.messages.ExecutionStatus" do
|
233
|
+
value :NOTEXECUTED, 0
|
234
|
+
value :PASSED, 1
|
235
|
+
value :FAILED, 2
|
236
|
+
value :SKIPPED, 3
|
237
|
+
end
|
205
238
|
end
|
206
239
|
end
|
207
240
|
|
@@ -229,6 +262,8 @@ module Gauge
|
|
229
262
|
ProtoHookFailure = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ProtoHookFailure").msgclass
|
230
263
|
ProtoSuiteResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ProtoSuiteResult").msgclass
|
231
264
|
ProtoSpecResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ProtoSpecResult").msgclass
|
265
|
+
ProtoScenarioResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ProtoScenarioResult").msgclass
|
266
|
+
ProtoStepResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ProtoStepResult").msgclass
|
232
267
|
Error = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.Error").msgclass
|
233
268
|
Error::ErrorType = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.Error.ErrorType").enummodule
|
234
269
|
ProtoStepValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("gauge.messages.ProtoStepValue").msgclass
|