gauge-ruby 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/api.pb.rb +76 -55
- data/lib/messages.pb.rb +24 -24
- data/lib/processors/execution_handler.rb +3 -3
- data/lib/spec.pb.rb +68 -53
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc395bf49becd19ef0a6ae11242b0f786fb6c202
|
4
|
+
data.tar.gz: b9f9efdd182972100b6ac2cc1090683f7fe8c4eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43bd71d97a75ef64715b51c67ae9a4e2957ecdf1287c1562effaca74c7717a8dfae69749556a9bec84425d3ba5896302fb34cbfff372b695796a251c55210817
|
7
|
+
data.tar.gz: 2164c883a31c1a26dd93fbe504667b29a28895a7b84fb1eb15990bc43b52af78e1ec311c9b579ccb289fdefcff2634af8cf776c75311b6c9e117a4ccf5fbb8fb
|
data/lib/api.pb.rb
CHANGED
@@ -14,8 +14,9 @@ module Gauge
|
|
14
14
|
class GetInstallationRootResponse < ::ProtocolBuffers::Message; end
|
15
15
|
class GetAllStepsRequest < ::ProtocolBuffers::Message; end
|
16
16
|
class GetAllStepsResponse < ::ProtocolBuffers::Message; end
|
17
|
-
class
|
18
|
-
class
|
17
|
+
class SpecsRequest < ::ProtocolBuffers::Message; end
|
18
|
+
class SpecsResponse < ::ProtocolBuffers::Message; end
|
19
|
+
class Error < ::ProtocolBuffers::Message; end
|
19
20
|
class GetAllConceptsRequest < ::ProtocolBuffers::Message; end
|
20
21
|
class GetAllConceptsResponse < ::ProtocolBuffers::Message; end
|
21
22
|
class ConceptInfo < ::ProtocolBuffers::Message; end
|
@@ -44,7 +45,7 @@ module Gauge
|
|
44
45
|
class GetProjectRootResponse < ::ProtocolBuffers::Message
|
45
46
|
set_fully_qualified_name "gauge.messages.GetProjectRootResponse"
|
46
47
|
|
47
|
-
|
48
|
+
optional :string, :projectRoot, 1
|
48
49
|
end
|
49
50
|
|
50
51
|
class GetInstallationRootRequest < ::ProtocolBuffers::Message
|
@@ -55,7 +56,7 @@ module Gauge
|
|
55
56
|
class GetInstallationRootResponse < ::ProtocolBuffers::Message
|
56
57
|
set_fully_qualified_name "gauge.messages.GetInstallationRootResponse"
|
57
58
|
|
58
|
-
|
59
|
+
optional :string, :installationRoot, 1
|
59
60
|
end
|
60
61
|
|
61
62
|
class GetAllStepsRequest < ::ProtocolBuffers::Message
|
@@ -69,15 +70,35 @@ module Gauge
|
|
69
70
|
repeated ::Gauge::Messages::ProtoStepValue, :allSteps, 1
|
70
71
|
end
|
71
72
|
|
72
|
-
class
|
73
|
-
set_fully_qualified_name "gauge.messages.
|
73
|
+
class SpecsRequest < ::ProtocolBuffers::Message
|
74
|
+
set_fully_qualified_name "gauge.messages.SpecsRequest"
|
74
75
|
|
76
|
+
repeated :string, :specs, 1
|
77
|
+
end
|
78
|
+
|
79
|
+
class SpecsResponse < ::ProtocolBuffers::Message
|
80
|
+
# forward declarations
|
81
|
+
class SpecDetail < ::ProtocolBuffers::Message; end
|
82
|
+
|
83
|
+
set_fully_qualified_name "gauge.messages.SpecsResponse"
|
84
|
+
|
85
|
+
# nested messages
|
86
|
+
class SpecDetail < ::ProtocolBuffers::Message
|
87
|
+
set_fully_qualified_name "gauge.messages.SpecsResponse.SpecDetail"
|
88
|
+
|
89
|
+
optional ::Gauge::Messages::ProtoSpec, :spec, 1
|
90
|
+
repeated ::Gauge::Messages::Error, :parseErrors, 2
|
91
|
+
end
|
92
|
+
|
93
|
+
repeated ::Gauge::Messages::SpecsResponse::SpecDetail, :details, 1
|
75
94
|
end
|
76
95
|
|
77
|
-
class
|
78
|
-
set_fully_qualified_name "gauge.messages.
|
96
|
+
class Error < ::ProtocolBuffers::Message
|
97
|
+
set_fully_qualified_name "gauge.messages.Error"
|
79
98
|
|
80
|
-
|
99
|
+
optional :string, :filename, 1
|
100
|
+
optional :int32, :lineNumber, 2
|
101
|
+
optional :string, :message, 3
|
81
102
|
end
|
82
103
|
|
83
104
|
class GetAllConceptsRequest < ::ProtocolBuffers::Message
|
@@ -94,53 +115,53 @@ module Gauge
|
|
94
115
|
class ConceptInfo < ::ProtocolBuffers::Message
|
95
116
|
set_fully_qualified_name "gauge.messages.ConceptInfo"
|
96
117
|
|
97
|
-
|
98
|
-
|
99
|
-
|
118
|
+
optional ::Gauge::Messages::ProtoStepValue, :stepValue, 1
|
119
|
+
optional :string, :filepath, 2
|
120
|
+
optional :int32, :lineNumber, 3
|
100
121
|
end
|
101
122
|
|
102
123
|
class GetStepValueRequest < ::ProtocolBuffers::Message
|
103
124
|
set_fully_qualified_name "gauge.messages.GetStepValueRequest"
|
104
125
|
|
105
|
-
|
126
|
+
optional :string, :stepText, 1
|
106
127
|
optional :bool, :hasInlineTable, 2
|
107
128
|
end
|
108
129
|
|
109
130
|
class GetStepValueResponse < ::ProtocolBuffers::Message
|
110
131
|
set_fully_qualified_name "gauge.messages.GetStepValueResponse"
|
111
132
|
|
112
|
-
|
133
|
+
optional ::Gauge::Messages::ProtoStepValue, :stepValue, 1
|
113
134
|
end
|
114
135
|
|
115
136
|
class GetLanguagePluginLibPathRequest < ::ProtocolBuffers::Message
|
116
137
|
set_fully_qualified_name "gauge.messages.GetLanguagePluginLibPathRequest"
|
117
138
|
|
118
|
-
|
139
|
+
optional :string, :language, 1
|
119
140
|
end
|
120
141
|
|
121
142
|
class GetLanguagePluginLibPathResponse < ::ProtocolBuffers::Message
|
122
143
|
set_fully_qualified_name "gauge.messages.GetLanguagePluginLibPathResponse"
|
123
144
|
|
124
|
-
|
145
|
+
optional :string, :path, 1
|
125
146
|
end
|
126
147
|
|
127
148
|
class ErrorResponse < ::ProtocolBuffers::Message
|
128
149
|
set_fully_qualified_name "gauge.messages.ErrorResponse"
|
129
150
|
|
130
|
-
|
151
|
+
optional :string, :error, 1
|
131
152
|
end
|
132
153
|
|
133
154
|
class PerformRefactoringRequest < ::ProtocolBuffers::Message
|
134
155
|
set_fully_qualified_name "gauge.messages.PerformRefactoringRequest"
|
135
156
|
|
136
|
-
|
137
|
-
|
157
|
+
optional :string, :oldStep, 1
|
158
|
+
optional :string, :newStep, 2
|
138
159
|
end
|
139
160
|
|
140
161
|
class PerformRefactoringResponse < ::ProtocolBuffers::Message
|
141
162
|
set_fully_qualified_name "gauge.messages.PerformRefactoringResponse"
|
142
163
|
|
143
|
-
|
164
|
+
optional :bool, :success, 1
|
144
165
|
repeated :string, :errors, 2
|
145
166
|
repeated :string, :filesChanged, 3
|
146
167
|
end
|
@@ -148,31 +169,31 @@ module Gauge
|
|
148
169
|
class ExtractConceptInfoRequest < ::ProtocolBuffers::Message
|
149
170
|
set_fully_qualified_name "gauge.messages.ExtractConceptInfoRequest"
|
150
171
|
|
151
|
-
|
172
|
+
optional :string, :text, 1
|
152
173
|
end
|
153
174
|
|
154
175
|
class ExtractConceptRequest < ::ProtocolBuffers::Message
|
155
176
|
set_fully_qualified_name "gauge.messages.ExtractConceptRequest"
|
156
177
|
|
157
|
-
|
178
|
+
optional ::Gauge::Messages::Step, :conceptName, 1
|
158
179
|
repeated ::Gauge::Messages::Step, :steps, 2
|
159
|
-
|
160
|
-
|
180
|
+
optional :bool, :changeAcrossProject, 3
|
181
|
+
optional :string, :conceptFileName, 4
|
161
182
|
optional ::Gauge::Messages::TextInfo, :selectedTextInfo, 5
|
162
183
|
end
|
163
184
|
|
164
185
|
class TextInfo < ::ProtocolBuffers::Message
|
165
186
|
set_fully_qualified_name "gauge.messages.textInfo"
|
166
187
|
|
167
|
-
|
168
|
-
|
169
|
-
|
188
|
+
optional :string, :fileName, 1
|
189
|
+
optional :int32, :startingLineNo, 2
|
190
|
+
optional :int32, :endLineNo, 3
|
170
191
|
end
|
171
192
|
|
172
193
|
class Step < ::ProtocolBuffers::Message
|
173
194
|
set_fully_qualified_name "gauge.messages.step"
|
174
195
|
|
175
|
-
|
196
|
+
optional :string, :name, 1
|
176
197
|
optional :string, :table, 2
|
177
198
|
optional :string, :paramTableName, 3
|
178
199
|
end
|
@@ -180,7 +201,7 @@ module Gauge
|
|
180
201
|
class ExtractConceptResponse < ::ProtocolBuffers::Message
|
181
202
|
set_fully_qualified_name "gauge.messages.ExtractConceptResponse"
|
182
203
|
|
183
|
-
|
204
|
+
optional :bool, :isSuccess, 1
|
184
205
|
optional :string, :error, 2
|
185
206
|
repeated :string, :filesChanged, 3
|
186
207
|
end
|
@@ -212,42 +233,42 @@ module Gauge
|
|
212
233
|
|
213
234
|
set_fully_qualified_name "gauge.messages.APIMessage.APIMessageType"
|
214
235
|
|
215
|
-
GetProjectRootRequest =
|
216
|
-
GetProjectRootResponse =
|
217
|
-
GetInstallationRootRequest =
|
218
|
-
GetInstallationRootResponse =
|
219
|
-
GetAllStepsRequest =
|
220
|
-
GetAllStepResponse =
|
221
|
-
|
222
|
-
|
223
|
-
GetStepValueRequest =
|
224
|
-
GetStepValueResponse =
|
225
|
-
GetLanguagePluginLibPathRequest =
|
226
|
-
GetLanguagePluginLibPathResponse =
|
227
|
-
ErrorResponse =
|
228
|
-
GetAllConceptsRequest =
|
229
|
-
GetAllConceptsResponse =
|
230
|
-
PerformRefactoringRequest =
|
231
|
-
PerformRefactoringResponse =
|
232
|
-
ExtractConceptRequest =
|
233
|
-
ExtractConceptResponse =
|
234
|
-
FormatSpecsRequest =
|
235
|
-
FormatSpecsResponse =
|
236
|
-
UnsupportedApiMessageResponse =
|
236
|
+
GetProjectRootRequest = 0
|
237
|
+
GetProjectRootResponse = 1
|
238
|
+
GetInstallationRootRequest = 2
|
239
|
+
GetInstallationRootResponse = 3
|
240
|
+
GetAllStepsRequest = 4
|
241
|
+
GetAllStepResponse = 5
|
242
|
+
SpecsRequest = 6
|
243
|
+
SpecsResponse = 7
|
244
|
+
GetStepValueRequest = 8
|
245
|
+
GetStepValueResponse = 9
|
246
|
+
GetLanguagePluginLibPathRequest = 10
|
247
|
+
GetLanguagePluginLibPathResponse = 11
|
248
|
+
ErrorResponse = 12
|
249
|
+
GetAllConceptsRequest = 13
|
250
|
+
GetAllConceptsResponse = 14
|
251
|
+
PerformRefactoringRequest = 15
|
252
|
+
PerformRefactoringResponse = 16
|
253
|
+
ExtractConceptRequest = 17
|
254
|
+
ExtractConceptResponse = 18
|
255
|
+
FormatSpecsRequest = 19
|
256
|
+
FormatSpecsResponse = 20
|
257
|
+
UnsupportedApiMessageResponse = 21
|
237
258
|
end
|
238
259
|
|
239
260
|
set_fully_qualified_name "gauge.messages.APIMessage"
|
240
261
|
|
241
|
-
|
242
|
-
|
262
|
+
optional ::Gauge::Messages::APIMessage::APIMessageType, :messageType, 1
|
263
|
+
optional :int64, :messageId, 2
|
243
264
|
optional ::Gauge::Messages::GetProjectRootRequest, :projectRootRequest, 3
|
244
265
|
optional ::Gauge::Messages::GetProjectRootResponse, :projectRootResponse, 4
|
245
266
|
optional ::Gauge::Messages::GetInstallationRootRequest, :installationRootRequest, 5
|
246
267
|
optional ::Gauge::Messages::GetInstallationRootResponse, :installationRootResponse, 6
|
247
268
|
optional ::Gauge::Messages::GetAllStepsRequest, :allStepsRequest, 7
|
248
269
|
optional ::Gauge::Messages::GetAllStepsResponse, :allStepsResponse, 8
|
249
|
-
optional ::Gauge::Messages::
|
250
|
-
optional ::Gauge::Messages::
|
270
|
+
optional ::Gauge::Messages::SpecsRequest, :specsRequest, 9
|
271
|
+
optional ::Gauge::Messages::SpecsResponse, :specsResponse, 10
|
251
272
|
optional ::Gauge::Messages::GetStepValueRequest, :stepValueRequest, 11
|
252
273
|
optional ::Gauge::Messages::GetStepValueResponse, :stepValueResponse, 12
|
253
274
|
optional ::Gauge::Messages::GetLanguagePluginLibPathRequest, :libPathRequest, 13
|
data/lib/messages.pb.rb
CHANGED
@@ -47,7 +47,7 @@ module Gauge
|
|
47
47
|
class ExecutionStatusResponse < ::ProtocolBuffers::Message
|
48
48
|
set_fully_qualified_name "gauge.messages.ExecutionStatusResponse"
|
49
49
|
|
50
|
-
|
50
|
+
optional ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
|
51
51
|
end
|
52
52
|
|
53
53
|
class ExecutionStartingRequest < ::ProtocolBuffers::Message
|
@@ -110,32 +110,32 @@ module Gauge
|
|
110
110
|
class SpecInfo < ::ProtocolBuffers::Message
|
111
111
|
set_fully_qualified_name "gauge.messages.SpecInfo"
|
112
112
|
|
113
|
-
|
114
|
-
|
115
|
-
|
113
|
+
optional :string, :name, 1
|
114
|
+
optional :string, :fileName, 2
|
115
|
+
optional :bool, :isFailed, 3
|
116
116
|
repeated :string, :tags, 4
|
117
117
|
end
|
118
118
|
|
119
119
|
class ScenarioInfo < ::ProtocolBuffers::Message
|
120
120
|
set_fully_qualified_name "gauge.messages.ScenarioInfo"
|
121
121
|
|
122
|
-
|
123
|
-
|
122
|
+
optional :string, :name, 1
|
123
|
+
optional :bool, :isFailed, 2
|
124
124
|
repeated :string, :tags, 3
|
125
125
|
end
|
126
126
|
|
127
127
|
class StepInfo < ::ProtocolBuffers::Message
|
128
128
|
set_fully_qualified_name "gauge.messages.StepInfo"
|
129
129
|
|
130
|
-
|
131
|
-
|
130
|
+
optional ::Gauge::Messages::ExecuteStepRequest, :step, 1
|
131
|
+
optional :bool, :isFailed, 2
|
132
132
|
end
|
133
133
|
|
134
134
|
class ExecuteStepRequest < ::ProtocolBuffers::Message
|
135
135
|
set_fully_qualified_name "gauge.messages.ExecuteStepRequest"
|
136
136
|
|
137
|
-
|
138
|
-
|
137
|
+
optional :string, :actualStepText, 1
|
138
|
+
optional :string, :parsedStepText, 2
|
139
139
|
optional :bool, :scenarioFailing, 3
|
140
140
|
repeated ::Gauge::Messages::Parameter, :parameters, 4
|
141
141
|
end
|
@@ -143,8 +143,8 @@ module Gauge
|
|
143
143
|
class StepValidateRequest < ::ProtocolBuffers::Message
|
144
144
|
set_fully_qualified_name "gauge.messages.StepValidateRequest"
|
145
145
|
|
146
|
-
|
147
|
-
|
146
|
+
optional :string, :stepText, 1
|
147
|
+
optional :int32, :numberOfParameters, 2
|
148
148
|
end
|
149
149
|
|
150
150
|
class StepValidateResponse < ::ProtocolBuffers::Message
|
@@ -162,7 +162,7 @@ module Gauge
|
|
162
162
|
|
163
163
|
set_fully_qualified_name "gauge.messages.StepValidateResponse"
|
164
164
|
|
165
|
-
|
165
|
+
optional :bool, :isValid, 1
|
166
166
|
optional :string, :errorMessage, 2
|
167
167
|
optional ::Gauge::Messages::StepValidateResponse::ErrorType, :errorType, 3
|
168
168
|
end
|
@@ -170,7 +170,7 @@ module Gauge
|
|
170
170
|
class SuiteExecutionResult < ::ProtocolBuffers::Message
|
171
171
|
set_fully_qualified_name "gauge.messages.SuiteExecutionResult"
|
172
172
|
|
173
|
-
|
173
|
+
optional ::Gauge::Messages::ProtoSuiteResult, :suiteResult, 1
|
174
174
|
end
|
175
175
|
|
176
176
|
class StepNamesRequest < ::ProtocolBuffers::Message
|
@@ -202,22 +202,22 @@ module Gauge
|
|
202
202
|
class ParameterPosition < ::ProtocolBuffers::Message
|
203
203
|
set_fully_qualified_name "gauge.messages.ParameterPosition"
|
204
204
|
|
205
|
-
|
206
|
-
|
205
|
+
optional :int32, :oldPosition, 1
|
206
|
+
optional :int32, :newPosition, 2
|
207
207
|
end
|
208
208
|
|
209
209
|
class RefactorRequest < ::ProtocolBuffers::Message
|
210
210
|
set_fully_qualified_name "gauge.messages.RefactorRequest"
|
211
211
|
|
212
|
-
|
213
|
-
|
212
|
+
optional ::Gauge::Messages::ProtoStepValue, :oldStepValue, 1
|
213
|
+
optional ::Gauge::Messages::ProtoStepValue, :newStepValue, 2
|
214
214
|
repeated ::Gauge::Messages::ParameterPosition, :paramPositions, 3
|
215
215
|
end
|
216
216
|
|
217
217
|
class RefactorResponse < ::ProtocolBuffers::Message
|
218
218
|
set_fully_qualified_name "gauge.messages.RefactorResponse"
|
219
219
|
|
220
|
-
|
220
|
+
optional :bool, :success, 1
|
221
221
|
optional :string, :error, 2
|
222
222
|
repeated :string, :filesChanged, 3
|
223
223
|
end
|
@@ -225,15 +225,15 @@ module Gauge
|
|
225
225
|
class StepNameRequest < ::ProtocolBuffers::Message
|
226
226
|
set_fully_qualified_name "gauge.messages.StepNameRequest"
|
227
227
|
|
228
|
-
|
228
|
+
optional :string, :stepValue, 1
|
229
229
|
end
|
230
230
|
|
231
231
|
class StepNameResponse < ::ProtocolBuffers::Message
|
232
232
|
set_fully_qualified_name "gauge.messages.StepNameResponse"
|
233
233
|
|
234
|
-
|
234
|
+
optional :bool, :isStepPresent, 1
|
235
235
|
repeated :string, :stepName, 2
|
236
|
-
|
236
|
+
optional :bool, :hasAlias, 3
|
237
237
|
end
|
238
238
|
|
239
239
|
class UnsupportedMessageResponse < ::ProtocolBuffers::Message
|
@@ -279,8 +279,8 @@ module Gauge
|
|
279
279
|
|
280
280
|
set_fully_qualified_name "gauge.messages.Message"
|
281
281
|
|
282
|
-
|
283
|
-
|
282
|
+
optional ::Gauge::Messages::Message::MessageType, :messageType, 1
|
283
|
+
optional :int64, :messageId, 2
|
284
284
|
optional ::Gauge::Messages::ExecutionStartingRequest, :executionStartingRequest, 3
|
285
285
|
optional ::Gauge::Messages::SpecExecutionStartingRequest, :specExecutionStartingRequest, 4
|
286
286
|
optional ::Gauge::Messages::SpecExecutionEndingRequest, :specExecutionEndingRequest, 5
|
@@ -37,7 +37,7 @@ module Gauge
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def handle_failure(message, exception, execution_time, recoverable)
|
40
|
-
execution_status_response =
|
40
|
+
execution_status_response =
|
41
41
|
Messages::ExecutionStatusResponse.new(
|
42
42
|
:executionResult => Messages::ProtoExecutionResult.new(:failed => true,
|
43
43
|
:recoverableError => recoverable,
|
@@ -50,7 +50,7 @@ module Gauge
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def screenshot_bytes
|
53
|
-
return nil if (ENV['
|
53
|
+
return nil if (ENV['screenshot_on_failure'] || "").downcase == "false" || which("gauge_screenshot").nil?
|
54
54
|
begin
|
55
55
|
Configuration.instance.screengrabber.call
|
56
56
|
rescue Exception => e
|
@@ -89,4 +89,4 @@ module Gauge
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
end
|
92
|
-
end
|
92
|
+
end
|
data/lib/spec.pb.rb
CHANGED
@@ -26,15 +26,27 @@ module Gauge
|
|
26
26
|
class ProtoSpecResult < ::ProtocolBuffers::Message; end
|
27
27
|
class ProtoStepValue < ::ProtocolBuffers::Message; end
|
28
28
|
|
29
|
+
# enums
|
30
|
+
module ExecutionStatus
|
31
|
+
include ::ProtocolBuffers::Enum
|
32
|
+
|
33
|
+
set_fully_qualified_name "gauge.messages.ExecutionStatus"
|
34
|
+
|
35
|
+
NOTEXECUTED = 0
|
36
|
+
PASSED = 1
|
37
|
+
FAILED = 2
|
38
|
+
SKIPPED = 3
|
39
|
+
end
|
40
|
+
|
29
41
|
class ProtoSpec < ::ProtocolBuffers::Message
|
30
42
|
set_fully_qualified_name "gauge.messages.ProtoSpec"
|
31
43
|
|
32
|
-
|
44
|
+
optional :string, :specHeading, 1
|
33
45
|
repeated ::Gauge::Messages::ProtoItem, :items, 2
|
34
|
-
|
46
|
+
optional :bool, :isTableDriven, 3
|
35
47
|
optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 4
|
36
48
|
optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 5
|
37
|
-
|
49
|
+
optional :string, :fileName, 6
|
38
50
|
repeated :string, :tags, 7
|
39
51
|
end
|
40
52
|
|
@@ -47,18 +59,18 @@ module Gauge
|
|
47
59
|
|
48
60
|
set_fully_qualified_name "gauge.messages.ProtoItem.ItemType"
|
49
61
|
|
50
|
-
Step =
|
51
|
-
Comment =
|
52
|
-
Concept =
|
53
|
-
Scenario =
|
54
|
-
TableDrivenScenario =
|
55
|
-
Table =
|
56
|
-
Tags =
|
62
|
+
Step = 0
|
63
|
+
Comment = 1
|
64
|
+
Concept = 2
|
65
|
+
Scenario = 3
|
66
|
+
TableDrivenScenario = 4
|
67
|
+
Table = 5
|
68
|
+
Tags = 6
|
57
69
|
end
|
58
70
|
|
59
71
|
set_fully_qualified_name "gauge.messages.ProtoItem"
|
60
72
|
|
61
|
-
|
73
|
+
optional ::Gauge::Messages::ProtoItem::ItemType, :itemType, 1
|
62
74
|
optional ::Gauge::Messages::ProtoStep, :step, 2
|
63
75
|
optional ::Gauge::Messages::ProtoConcept, :concept, 3
|
64
76
|
optional ::Gauge::Messages::ProtoScenario, :scenario, 4
|
@@ -71,39 +83,41 @@ module Gauge
|
|
71
83
|
class ProtoScenario < ::ProtocolBuffers::Message
|
72
84
|
set_fully_qualified_name "gauge.messages.ProtoScenario"
|
73
85
|
|
74
|
-
|
75
|
-
|
86
|
+
optional :string, :scenarioHeading, 1
|
87
|
+
optional :bool, :failed, 2
|
76
88
|
repeated ::Gauge::Messages::ProtoItem, :contexts, 3
|
77
89
|
repeated ::Gauge::Messages::ProtoItem, :scenarioItems, 4
|
78
90
|
optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 5
|
79
91
|
optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 6
|
80
92
|
repeated :string, :tags, 7
|
81
93
|
optional :int64, :executionTime, 8
|
82
|
-
|
94
|
+
optional :bool, :skipped, 9
|
83
95
|
repeated :string, :skipErrors, 10
|
84
96
|
optional :string, :ID, 11
|
85
97
|
repeated ::Gauge::Messages::ProtoItem, :tearDownSteps, 12
|
86
98
|
optional ::Gauge::Messages::Span, :span, 13
|
99
|
+
optional ::Gauge::Messages::ExecutionStatus, :executionStatus, 14
|
87
100
|
end
|
88
101
|
|
89
102
|
class Span < ::ProtocolBuffers::Message
|
90
103
|
set_fully_qualified_name "gauge.messages.Span"
|
91
104
|
|
92
|
-
|
93
|
-
|
105
|
+
optional :int64, :start, 1
|
106
|
+
optional :int64, :end, 2
|
94
107
|
end
|
95
108
|
|
96
109
|
class ProtoTableDrivenScenario < ::ProtocolBuffers::Message
|
97
110
|
set_fully_qualified_name "gauge.messages.ProtoTableDrivenScenario"
|
98
111
|
|
99
|
-
|
112
|
+
optional ::Gauge::Messages::ProtoScenario, :scenario, 1
|
113
|
+
optional :int32, :tableRowIndex, 2
|
100
114
|
end
|
101
115
|
|
102
116
|
class ProtoStep < ::ProtocolBuffers::Message
|
103
117
|
set_fully_qualified_name "gauge.messages.ProtoStep"
|
104
118
|
|
105
|
-
|
106
|
-
|
119
|
+
optional :string, :actualText, 1
|
120
|
+
optional :string, :parsedText, 2
|
107
121
|
repeated ::Gauge::Messages::Fragment, :fragments, 3
|
108
122
|
optional ::Gauge::Messages::ProtoStepExecutionResult, :stepExecutionResult, 4
|
109
123
|
end
|
@@ -111,7 +125,7 @@ module Gauge
|
|
111
125
|
class ProtoConcept < ::ProtocolBuffers::Message
|
112
126
|
set_fully_qualified_name "gauge.messages.ProtoConcept"
|
113
127
|
|
114
|
-
|
128
|
+
optional ::Gauge::Messages::ProtoStep, :conceptStep, 1
|
115
129
|
repeated ::Gauge::Messages::ProtoItem, :steps, 2
|
116
130
|
optional ::Gauge::Messages::ProtoStepExecutionResult, :conceptExecutionResult, 3
|
117
131
|
end
|
@@ -131,13 +145,13 @@ module Gauge
|
|
131
145
|
|
132
146
|
set_fully_qualified_name "gauge.messages.Fragment.FragmentType"
|
133
147
|
|
134
|
-
Text =
|
135
|
-
Parameter =
|
148
|
+
Text = 0
|
149
|
+
Parameter = 1
|
136
150
|
end
|
137
151
|
|
138
152
|
set_fully_qualified_name "gauge.messages.Fragment"
|
139
153
|
|
140
|
-
|
154
|
+
optional ::Gauge::Messages::Fragment::FragmentType, :fragmentType, 1
|
141
155
|
optional :string, :text, 2
|
142
156
|
optional ::Gauge::Messages::Parameter, :parameter, 3
|
143
157
|
end
|
@@ -151,16 +165,16 @@ module Gauge
|
|
151
165
|
|
152
166
|
set_fully_qualified_name "gauge.messages.Parameter.ParameterType"
|
153
167
|
|
154
|
-
Static =
|
155
|
-
Dynamic =
|
156
|
-
Special_String =
|
157
|
-
Special_Table =
|
158
|
-
Table =
|
168
|
+
Static = 0
|
169
|
+
Dynamic = 1
|
170
|
+
Special_String = 2
|
171
|
+
Special_Table = 3
|
172
|
+
Table = 4
|
159
173
|
end
|
160
174
|
|
161
175
|
set_fully_qualified_name "gauge.messages.Parameter"
|
162
176
|
|
163
|
-
|
177
|
+
optional ::Gauge::Messages::Parameter::ParameterType, :parameterType, 1
|
164
178
|
optional :string, :value, 2
|
165
179
|
optional :string, :name, 3
|
166
180
|
optional ::Gauge::Messages::ProtoTable, :table, 4
|
@@ -169,13 +183,13 @@ module Gauge
|
|
169
183
|
class ProtoComment < ::ProtocolBuffers::Message
|
170
184
|
set_fully_qualified_name "gauge.messages.ProtoComment"
|
171
185
|
|
172
|
-
|
186
|
+
optional :string, :text, 1
|
173
187
|
end
|
174
188
|
|
175
189
|
class ProtoTable < ::ProtocolBuffers::Message
|
176
190
|
set_fully_qualified_name "gauge.messages.ProtoTable"
|
177
191
|
|
178
|
-
|
192
|
+
optional ::Gauge::Messages::ProtoTableRow, :headers, 1
|
179
193
|
repeated ::Gauge::Messages::ProtoTableRow, :rows, 2
|
180
194
|
end
|
181
195
|
|
@@ -191,7 +205,7 @@ module Gauge
|
|
191
205
|
optional ::Gauge::Messages::ProtoExecutionResult, :executionResult, 1
|
192
206
|
optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 2
|
193
207
|
optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 3
|
194
|
-
|
208
|
+
optional :bool, :skipped, 4
|
195
209
|
optional :string, :skippedReason, 5
|
196
210
|
end
|
197
211
|
|
@@ -204,27 +218,27 @@ module Gauge
|
|
204
218
|
|
205
219
|
set_fully_qualified_name "gauge.messages.ProtoExecutionResult.ErrorType"
|
206
220
|
|
207
|
-
ASSERTION =
|
208
|
-
VERIFICATION =
|
221
|
+
ASSERTION = 0
|
222
|
+
VERIFICATION = 1
|
209
223
|
end
|
210
224
|
|
211
225
|
set_fully_qualified_name "gauge.messages.ProtoExecutionResult"
|
212
226
|
|
213
|
-
|
227
|
+
optional :bool, :failed, 1
|
214
228
|
optional :bool, :recoverableError, 2
|
215
229
|
optional :string, :errorMessage, 3
|
216
230
|
optional :string, :stackTrace, 4
|
217
231
|
optional :bytes, :screenShot, 5
|
218
|
-
|
232
|
+
optional :int64, :executionTime, 6
|
219
233
|
repeated :string, :message, 7
|
220
|
-
optional ::Gauge::Messages::ProtoExecutionResult::ErrorType, :errorType, 8
|
234
|
+
optional ::Gauge::Messages::ProtoExecutionResult::ErrorType, :errorType, 8
|
221
235
|
end
|
222
236
|
|
223
237
|
class ProtoHookFailure < ::ProtocolBuffers::Message
|
224
238
|
set_fully_qualified_name "gauge.messages.ProtoHookFailure"
|
225
239
|
|
226
|
-
|
227
|
-
|
240
|
+
optional :string, :stackTrace, 1
|
241
|
+
optional :string, :errorMessage, 2
|
228
242
|
optional :bytes, :screenShot, 3
|
229
243
|
end
|
230
244
|
|
@@ -234,35 +248,36 @@ module Gauge
|
|
234
248
|
repeated ::Gauge::Messages::ProtoSpecResult, :specResults, 1
|
235
249
|
optional ::Gauge::Messages::ProtoHookFailure, :preHookFailure, 2
|
236
250
|
optional ::Gauge::Messages::ProtoHookFailure, :postHookFailure, 3
|
237
|
-
|
238
|
-
|
251
|
+
optional :bool, :failed, 4
|
252
|
+
optional :int32, :specsFailedCount, 5
|
239
253
|
optional :int64, :executionTime, 6
|
240
|
-
|
254
|
+
optional :float, :successRate, 7
|
241
255
|
optional :string, :environment, 8
|
242
256
|
optional :string, :tags, 9
|
243
|
-
|
244
|
-
|
245
|
-
|
257
|
+
optional :string, :projectName, 10
|
258
|
+
optional :string, :timestamp, 11
|
259
|
+
optional :int32, :specsSkippedCount, 12
|
246
260
|
end
|
247
261
|
|
248
262
|
class ProtoSpecResult < ::ProtocolBuffers::Message
|
249
263
|
set_fully_qualified_name "gauge.messages.ProtoSpecResult"
|
250
264
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
265
|
+
optional ::Gauge::Messages::ProtoSpec, :protoSpec, 1
|
266
|
+
optional :int32, :scenarioCount, 2
|
267
|
+
optional :int32, :scenarioFailedCount, 3
|
268
|
+
optional :bool, :failed, 4
|
255
269
|
repeated :int32, :failedDataTableRows, 5
|
256
270
|
optional :int64, :executionTime, 6
|
257
|
-
|
258
|
-
|
271
|
+
optional :bool, :skipped, 7
|
272
|
+
optional :int32, :scenarioSkippedCount, 9
|
273
|
+
repeated :int32, :skippedDataTableRows, 10
|
259
274
|
end
|
260
275
|
|
261
276
|
class ProtoStepValue < ::ProtocolBuffers::Message
|
262
277
|
set_fully_qualified_name "gauge.messages.ProtoStepValue"
|
263
278
|
|
264
|
-
|
265
|
-
|
279
|
+
optional :string, :stepValue, 1
|
280
|
+
optional :string, :parameterizedStepValue, 2
|
266
281
|
repeated :string, :parameters, 3
|
267
282
|
end
|
268
283
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gauge-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gauge Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-protocol-buffers
|
@@ -122,4 +122,3 @@ signing_key:
|
|
122
122
|
specification_version: 4
|
123
123
|
summary: Ruby support for Gauge
|
124
124
|
test_files: []
|
125
|
-
has_rdoc: yard
|