-
Notifications
You must be signed in to change notification settings - Fork 12
/
spec.pb.go
3558 lines (3186 loc) · 137 KB
/
spec.pb.go
1
2
3
4
5
6
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//----------------------------------------------------------------
// Copyright (c) ThoughtWorks, Inc.
// Licensed under the Apache License, Version 2.0
// See LICENSE in the project root for license information.
//----------------------------------------------------------------
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.1
// source: spec.proto
package gauge_messages
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// / Execution Status
type ExecutionStatus int32
const (
ExecutionStatus_NOTEXECUTED ExecutionStatus = 0
ExecutionStatus_PASSED ExecutionStatus = 1
ExecutionStatus_FAILED ExecutionStatus = 2
ExecutionStatus_SKIPPED ExecutionStatus = 3
)
// Enum value maps for ExecutionStatus.
var (
ExecutionStatus_name = map[int32]string{
0: "NOTEXECUTED",
1: "PASSED",
2: "FAILED",
3: "SKIPPED",
}
ExecutionStatus_value = map[string]int32{
"NOTEXECUTED": 0,
"PASSED": 1,
"FAILED": 2,
"SKIPPED": 3,
}
)
func (x ExecutionStatus) Enum() *ExecutionStatus {
p := new(ExecutionStatus)
*p = x
return p
}
func (x ExecutionStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExecutionStatus) Descriptor() protoreflect.EnumDescriptor {
return file_spec_proto_enumTypes[0].Descriptor()
}
func (ExecutionStatus) Type() protoreflect.EnumType {
return &file_spec_proto_enumTypes[0]
}
func (x ExecutionStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExecutionStatus.Descriptor instead.
func (ExecutionStatus) EnumDescriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{0}
}
// / Enumerates various item types that the proto item can contain. Valid types are: Step, Comment, Concept, Scenario, TableDrivenScenario, Table, Tags
type ProtoItem_ItemType int32
const (
ProtoItem_Step ProtoItem_ItemType = 0 // Item is a Step
ProtoItem_Comment ProtoItem_ItemType = 1 // Item is a Comment
ProtoItem_Concept ProtoItem_ItemType = 2 // Item is a Concept
ProtoItem_Scenario ProtoItem_ItemType = 3 // Item is a Scenario
ProtoItem_TableDrivenScenario ProtoItem_ItemType = 4 // Item is a TableDrivenScenario, a special case of Scenario, where there is a Context Step defining a table.
ProtoItem_Table ProtoItem_ItemType = 5 // Item is a Table
ProtoItem_Tags ProtoItem_ItemType = 6 // Item is a Tag
)
// Enum value maps for ProtoItem_ItemType.
var (
ProtoItem_ItemType_name = map[int32]string{
0: "Step",
1: "Comment",
2: "Concept",
3: "Scenario",
4: "TableDrivenScenario",
5: "Table",
6: "Tags",
}
ProtoItem_ItemType_value = map[string]int32{
"Step": 0,
"Comment": 1,
"Concept": 2,
"Scenario": 3,
"TableDrivenScenario": 4,
"Table": 5,
"Tags": 6,
}
)
func (x ProtoItem_ItemType) Enum() *ProtoItem_ItemType {
p := new(ProtoItem_ItemType)
*p = x
return p
}
func (x ProtoItem_ItemType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProtoItem_ItemType) Descriptor() protoreflect.EnumDescriptor {
return file_spec_proto_enumTypes[1].Descriptor()
}
func (ProtoItem_ItemType) Type() protoreflect.EnumType {
return &file_spec_proto_enumTypes[1]
}
func (x ProtoItem_ItemType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProtoItem_ItemType.Descriptor instead.
func (ProtoItem_ItemType) EnumDescriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{1, 0}
}
// / Enum representing the types of Fragment
type Fragment_FragmentType int32
const (
Fragment_Text Fragment_FragmentType = 0 /// Fragment is a Text part
Fragment_Parameter Fragment_FragmentType = 1 /// Fragment is a Parameter part
)
// Enum value maps for Fragment_FragmentType.
var (
Fragment_FragmentType_name = map[int32]string{
0: "Text",
1: "Parameter",
}
Fragment_FragmentType_value = map[string]int32{
"Text": 0,
"Parameter": 1,
}
)
func (x Fragment_FragmentType) Enum() *Fragment_FragmentType {
p := new(Fragment_FragmentType)
*p = x
return p
}
func (x Fragment_FragmentType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Fragment_FragmentType) Descriptor() protoreflect.EnumDescriptor {
return file_spec_proto_enumTypes[2].Descriptor()
}
func (Fragment_FragmentType) Type() protoreflect.EnumType {
return &file_spec_proto_enumTypes[2]
}
func (x Fragment_FragmentType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Fragment_FragmentType.Descriptor instead.
func (Fragment_FragmentType) EnumDescriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{8, 0}
}
// / Enum representing types of Parameter.
type Parameter_ParameterType int32
const (
Parameter_Static Parameter_ParameterType = 0 // Static parameter. The value of the parameter is defined at the Step.
Parameter_Dynamic Parameter_ParameterType = 1 // Dynamic parameter. This is a parameter placeholder, and the actual value is injected at runtime, depending on the context of the call.
Parameter_Special_String Parameter_ParameterType = 2 // Special paramter, taking a string value. Special paramters are read from a file.
Parameter_Special_Table Parameter_ParameterType = 3 // Special paramter, taking a Table value. This parameter is read from a csv file.
Parameter_Table Parameter_ParameterType = 4 // A table parameter, used for data driven execution.
)
// Enum value maps for Parameter_ParameterType.
var (
Parameter_ParameterType_name = map[int32]string{
0: "Static",
1: "Dynamic",
2: "Special_String",
3: "Special_Table",
4: "Table",
}
Parameter_ParameterType_value = map[string]int32{
"Static": 0,
"Dynamic": 1,
"Special_String": 2,
"Special_Table": 3,
"Table": 4,
}
)
func (x Parameter_ParameterType) Enum() *Parameter_ParameterType {
p := new(Parameter_ParameterType)
*p = x
return p
}
func (x Parameter_ParameterType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Parameter_ParameterType) Descriptor() protoreflect.EnumDescriptor {
return file_spec_proto_enumTypes[3].Descriptor()
}
func (Parameter_ParameterType) Type() protoreflect.EnumType {
return &file_spec_proto_enumTypes[3]
}
func (x Parameter_ParameterType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Parameter_ParameterType.Descriptor instead.
func (Parameter_ParameterType) EnumDescriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{9, 0}
}
type ProtoExecutionResult_ErrorType int32
const (
ProtoExecutionResult_ASSERTION ProtoExecutionResult_ErrorType = 0
ProtoExecutionResult_VERIFICATION ProtoExecutionResult_ErrorType = 1
)
// Enum value maps for ProtoExecutionResult_ErrorType.
var (
ProtoExecutionResult_ErrorType_name = map[int32]string{
0: "ASSERTION",
1: "VERIFICATION",
}
ProtoExecutionResult_ErrorType_value = map[string]int32{
"ASSERTION": 0,
"VERIFICATION": 1,
}
)
func (x ProtoExecutionResult_ErrorType) Enum() *ProtoExecutionResult_ErrorType {
p := new(ProtoExecutionResult_ErrorType)
*p = x
return p
}
func (x ProtoExecutionResult_ErrorType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProtoExecutionResult_ErrorType) Descriptor() protoreflect.EnumDescriptor {
return file_spec_proto_enumTypes[4].Descriptor()
}
func (ProtoExecutionResult_ErrorType) Type() protoreflect.EnumType {
return &file_spec_proto_enumTypes[4]
}
func (x ProtoExecutionResult_ErrorType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProtoExecutionResult_ErrorType.Descriptor instead.
func (ProtoExecutionResult_ErrorType) EnumDescriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{14, 0}
}
type Error_ErrorType int32
const (
Error_PARSE_ERROR Error_ErrorType = 0
Error_VALIDATION_ERROR Error_ErrorType = 1
)
// Enum value maps for Error_ErrorType.
var (
Error_ErrorType_name = map[int32]string{
0: "PARSE_ERROR",
1: "VALIDATION_ERROR",
}
Error_ErrorType_value = map[string]int32{
"PARSE_ERROR": 0,
"VALIDATION_ERROR": 1,
}
)
func (x Error_ErrorType) Enum() *Error_ErrorType {
p := new(Error_ErrorType)
*p = x
return p
}
func (x Error_ErrorType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Error_ErrorType) Descriptor() protoreflect.EnumDescriptor {
return file_spec_proto_enumTypes[5].Descriptor()
}
func (Error_ErrorType) Type() protoreflect.EnumType {
return &file_spec_proto_enumTypes[5]
}
func (x Error_ErrorType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Error_ErrorType.Descriptor instead.
func (Error_ErrorType) EnumDescriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{20, 0}
}
// / A proto object representing a Specification
// / A specification can contain Scenarios or Steps, besides Comments
type ProtoSpec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// / Heading describing the Specification
SpecHeading string `protobuf:"bytes,1,opt,name=specHeading,proto3" json:"specHeading,omitempty"`
// / A collection of items that come under this step
Items []*ProtoItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
// / Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter.
IsTableDriven bool `protobuf:"varint,3,opt,name=isTableDriven,proto3" json:"isTableDriven,omitempty"`
// / Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error.
PreHookFailures []*ProtoHookFailure `protobuf:"bytes,4,rep,name=preHookFailures,proto3" json:"preHookFailures,omitempty"`
// / Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error.
PostHookFailures []*ProtoHookFailure `protobuf:"bytes,5,rep,name=postHookFailures,proto3" json:"postHookFailures,omitempty"`
// / Contains the filename for that holds this specification.
FileName string `protobuf:"bytes,6,opt,name=fileName,proto3" json:"fileName,omitempty"`
// / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
// / Additional information at pre hook exec time to be available on reports
PreHookMessages []string `protobuf:"bytes,8,rep,name=preHookMessages,proto3" json:"preHookMessages,omitempty"`
// / Additional information at post hook exec time to be available on reports
PostHookMessages []string `protobuf:"bytes,9,rep,name=postHookMessages,proto3" json:"postHookMessages,omitempty"`
// / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PreHookMessage []string `protobuf:"bytes,10,rep,name=preHookMessage,proto3" json:"preHookMessage,omitempty"`
// / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PostHookMessage []string `protobuf:"bytes,11,rep,name=postHookMessage,proto3" json:"postHookMessage,omitempty"`
// / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PreHookScreenshots [][]byte `protobuf:"bytes,12,rep,name=preHookScreenshots,proto3" json:"preHookScreenshots,omitempty"`
// / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PostHookScreenshots [][]byte `protobuf:"bytes,13,rep,name=postHookScreenshots,proto3" json:"postHookScreenshots,omitempty"`
// / meta field to indicate the number of items in the list
// / used when items are sent as individual chunk
ItemCount int64 `protobuf:"varint,14,opt,name=itemCount,proto3" json:"itemCount,omitempty"`
// / Screenshots captured on pre hook exec time to be available on reports
PreHookScreenshotFiles []string `protobuf:"bytes,15,rep,name=preHookScreenshotFiles,proto3" json:"preHookScreenshotFiles,omitempty"`
// / Screenshots captured on post hook exec time to be available on reports
PostHookScreenshotFiles []string `protobuf:"bytes,16,rep,name=postHookScreenshotFiles,proto3" json:"postHookScreenshotFiles,omitempty"`
}
func (x *ProtoSpec) Reset() {
*x = ProtoSpec{}
if protoimpl.UnsafeEnabled {
mi := &file_spec_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProtoSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProtoSpec) ProtoMessage() {}
func (x *ProtoSpec) ProtoReflect() protoreflect.Message {
mi := &file_spec_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProtoSpec.ProtoReflect.Descriptor instead.
func (*ProtoSpec) Descriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{0}
}
func (x *ProtoSpec) GetSpecHeading() string {
if x != nil {
return x.SpecHeading
}
return ""
}
func (x *ProtoSpec) GetItems() []*ProtoItem {
if x != nil {
return x.Items
}
return nil
}
func (x *ProtoSpec) GetIsTableDriven() bool {
if x != nil {
return x.IsTableDriven
}
return false
}
func (x *ProtoSpec) GetPreHookFailures() []*ProtoHookFailure {
if x != nil {
return x.PreHookFailures
}
return nil
}
func (x *ProtoSpec) GetPostHookFailures() []*ProtoHookFailure {
if x != nil {
return x.PostHookFailures
}
return nil
}
func (x *ProtoSpec) GetFileName() string {
if x != nil {
return x.FileName
}
return ""
}
func (x *ProtoSpec) GetTags() []string {
if x != nil {
return x.Tags
}
return nil
}
func (x *ProtoSpec) GetPreHookMessages() []string {
if x != nil {
return x.PreHookMessages
}
return nil
}
func (x *ProtoSpec) GetPostHookMessages() []string {
if x != nil {
return x.PostHookMessages
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoSpec) GetPreHookMessage() []string {
if x != nil {
return x.PreHookMessage
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoSpec) GetPostHookMessage() []string {
if x != nil {
return x.PostHookMessage
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoSpec) GetPreHookScreenshots() [][]byte {
if x != nil {
return x.PreHookScreenshots
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoSpec) GetPostHookScreenshots() [][]byte {
if x != nil {
return x.PostHookScreenshots
}
return nil
}
func (x *ProtoSpec) GetItemCount() int64 {
if x != nil {
return x.ItemCount
}
return 0
}
func (x *ProtoSpec) GetPreHookScreenshotFiles() []string {
if x != nil {
return x.PreHookScreenshotFiles
}
return nil
}
func (x *ProtoSpec) GetPostHookScreenshotFiles() []string {
if x != nil {
return x.PostHookScreenshotFiles
}
return nil
}
// / Container for all valid Items under a Specification.
type ProtoItem struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// / Itemtype of the current ProtoItem
ItemType ProtoItem_ItemType `protobuf:"varint,1,opt,name=itemType,proto3,enum=gauge.messages.ProtoItem_ItemType" json:"itemType,omitempty"`
// / Holds the Step definition. Valid only if ItemType = Step
Step *ProtoStep `protobuf:"bytes,2,opt,name=step,proto3" json:"step,omitempty"`
// / Holds the Concept definition. Valid only if ItemType = Concept
Concept *ProtoConcept `protobuf:"bytes,3,opt,name=concept,proto3" json:"concept,omitempty"`
// / Holds the Scenario definition. Valid only if ItemType = Scenario
Scenario *ProtoScenario `protobuf:"bytes,4,opt,name=scenario,proto3" json:"scenario,omitempty"`
// / Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario
TableDrivenScenario *ProtoTableDrivenScenario `protobuf:"bytes,5,opt,name=tableDrivenScenario,proto3" json:"tableDrivenScenario,omitempty"`
// / Holds the Comment definition. Valid only if ItemType = Comment
Comment *ProtoComment `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"`
// / Holds the Table definition. Valid only if ItemType = Table
Table *ProtoTable `protobuf:"bytes,7,opt,name=table,proto3" json:"table,omitempty"`
// / Holds the Tags definition. Valid only if ItemType = Tags
Tags *ProtoTags `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"`
// / Holds the Filename that the item belongs to
FileName string `protobuf:"bytes,9,opt,name=fileName,proto3" json:"fileName,omitempty"`
}
func (x *ProtoItem) Reset() {
*x = ProtoItem{}
if protoimpl.UnsafeEnabled {
mi := &file_spec_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProtoItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProtoItem) ProtoMessage() {}
func (x *ProtoItem) ProtoReflect() protoreflect.Message {
mi := &file_spec_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProtoItem.ProtoReflect.Descriptor instead.
func (*ProtoItem) Descriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{1}
}
func (x *ProtoItem) GetItemType() ProtoItem_ItemType {
if x != nil {
return x.ItemType
}
return ProtoItem_Step
}
func (x *ProtoItem) GetStep() *ProtoStep {
if x != nil {
return x.Step
}
return nil
}
func (x *ProtoItem) GetConcept() *ProtoConcept {
if x != nil {
return x.Concept
}
return nil
}
func (x *ProtoItem) GetScenario() *ProtoScenario {
if x != nil {
return x.Scenario
}
return nil
}
func (x *ProtoItem) GetTableDrivenScenario() *ProtoTableDrivenScenario {
if x != nil {
return x.TableDrivenScenario
}
return nil
}
func (x *ProtoItem) GetComment() *ProtoComment {
if x != nil {
return x.Comment
}
return nil
}
func (x *ProtoItem) GetTable() *ProtoTable {
if x != nil {
return x.Table
}
return nil
}
func (x *ProtoItem) GetTags() *ProtoTags {
if x != nil {
return x.Tags
}
return nil
}
func (x *ProtoItem) GetFileName() string {
if x != nil {
return x.FileName
}
return ""
}
// / A proto object representing a Scenario
type ProtoScenario struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// / Heading of the given Scenario
ScenarioHeading string `protobuf:"bytes,1,opt,name=scenarioHeading,proto3" json:"scenarioHeading,omitempty"`
// / Flag to indicate if the Scenario execution failed
//
// Deprecated: Marked as deprecated in spec.proto.
Failed bool `protobuf:"varint,2,opt,name=failed,proto3" json:"failed,omitempty"`
// / Collection of Context steps. The Context steps are executed before every run.
Contexts []*ProtoItem `protobuf:"bytes,3,rep,name=contexts,proto3" json:"contexts,omitempty"`
// / Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables
ScenarioItems []*ProtoItem `protobuf:"bytes,4,rep,name=scenarioItems,proto3" json:"scenarioItems,omitempty"`
// / Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error.
PreHookFailure *ProtoHookFailure `protobuf:"bytes,5,opt,name=preHookFailure,proto3" json:"preHookFailure,omitempty"`
// / Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error.
PostHookFailure *ProtoHookFailure `protobuf:"bytes,6,opt,name=postHookFailure,proto3" json:"postHookFailure,omitempty"`
// / Contains a list of tags that are defined at the specification level. Scenario tags are not present here.
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
// / Holds the time taken for executing this scenario.
ExecutionTime int64 `protobuf:"varint,8,opt,name=executionTime,proto3" json:"executionTime,omitempty"`
// / Flag to indicate if the Scenario execution is skipped
//
// Deprecated: Marked as deprecated in spec.proto.
Skipped bool `protobuf:"varint,9,opt,name=skipped,proto3" json:"skipped,omitempty"`
// / Holds the error messages for skipping scenario from execution
SkipErrors []string `protobuf:"bytes,10,rep,name=skipErrors,proto3" json:"skipErrors,omitempty"`
// / Holds the unique Identifier of a scenario.
ID string `protobuf:"bytes,11,opt,name=ID,proto3" json:"ID,omitempty"`
// / Collection of Teardown steps. The Teardown steps are executed after every run.
TearDownSteps []*ProtoItem `protobuf:"bytes,12,rep,name=tearDownSteps,proto3" json:"tearDownSteps,omitempty"`
// / Span(start, end) of scenario
Span *Span `protobuf:"bytes,13,opt,name=span,proto3" json:"span,omitempty"`
// / Execution status for the scenario
ExecutionStatus ExecutionStatus `protobuf:"varint,14,opt,name=executionStatus,proto3,enum=gauge.messages.ExecutionStatus" json:"executionStatus,omitempty"`
// / Additional information at pre hook exec time to be available on reports
PreHookMessages []string `protobuf:"bytes,15,rep,name=preHookMessages,proto3" json:"preHookMessages,omitempty"`
// / Additional information at post hook exec time to be available on reports
PostHookMessages []string `protobuf:"bytes,16,rep,name=postHookMessages,proto3" json:"postHookMessages,omitempty"`
// / [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PreHookMessage []string `protobuf:"bytes,17,rep,name=preHookMessage,proto3" json:"preHookMessage,omitempty"`
// / [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PostHookMessage []string `protobuf:"bytes,18,rep,name=postHookMessage,proto3" json:"postHookMessage,omitempty"`
// / [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PreHookScreenshots [][]byte `protobuf:"bytes,19,rep,name=preHookScreenshots,proto3" json:"preHookScreenshots,omitempty"`
// / [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports
//
// Deprecated: Marked as deprecated in spec.proto.
PostHookScreenshots [][]byte `protobuf:"bytes,20,rep,name=postHookScreenshots,proto3" json:"postHookScreenshots,omitempty"`
// / Screenshots captured on pre hook exec time to be available on reports
PreHookScreenshotFiles []string `protobuf:"bytes,21,rep,name=preHookScreenshotFiles,proto3" json:"preHookScreenshotFiles,omitempty"`
// / Screenshots captured on post hook exec time to be available on reports
PostHookScreenshotFiles []string `protobuf:"bytes,22,rep,name=postHookScreenshotFiles,proto3" json:"postHookScreenshotFiles,omitempty"`
// / Number of retires
RetriesCount int64 `protobuf:"varint,23,opt,name=retriesCount,proto3" json:"retriesCount,omitempty"`
}
func (x *ProtoScenario) Reset() {
*x = ProtoScenario{}
if protoimpl.UnsafeEnabled {
mi := &file_spec_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProtoScenario) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProtoScenario) ProtoMessage() {}
func (x *ProtoScenario) ProtoReflect() protoreflect.Message {
mi := &file_spec_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProtoScenario.ProtoReflect.Descriptor instead.
func (*ProtoScenario) Descriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{2}
}
func (x *ProtoScenario) GetScenarioHeading() string {
if x != nil {
return x.ScenarioHeading
}
return ""
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoScenario) GetFailed() bool {
if x != nil {
return x.Failed
}
return false
}
func (x *ProtoScenario) GetContexts() []*ProtoItem {
if x != nil {
return x.Contexts
}
return nil
}
func (x *ProtoScenario) GetScenarioItems() []*ProtoItem {
if x != nil {
return x.ScenarioItems
}
return nil
}
func (x *ProtoScenario) GetPreHookFailure() *ProtoHookFailure {
if x != nil {
return x.PreHookFailure
}
return nil
}
func (x *ProtoScenario) GetPostHookFailure() *ProtoHookFailure {
if x != nil {
return x.PostHookFailure
}
return nil
}
func (x *ProtoScenario) GetTags() []string {
if x != nil {
return x.Tags
}
return nil
}
func (x *ProtoScenario) GetExecutionTime() int64 {
if x != nil {
return x.ExecutionTime
}
return 0
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoScenario) GetSkipped() bool {
if x != nil {
return x.Skipped
}
return false
}
func (x *ProtoScenario) GetSkipErrors() []string {
if x != nil {
return x.SkipErrors
}
return nil
}
func (x *ProtoScenario) GetID() string {
if x != nil {
return x.ID
}
return ""
}
func (x *ProtoScenario) GetTearDownSteps() []*ProtoItem {
if x != nil {
return x.TearDownSteps
}
return nil
}
func (x *ProtoScenario) GetSpan() *Span {
if x != nil {
return x.Span
}
return nil
}
func (x *ProtoScenario) GetExecutionStatus() ExecutionStatus {
if x != nil {
return x.ExecutionStatus
}
return ExecutionStatus_NOTEXECUTED
}
func (x *ProtoScenario) GetPreHookMessages() []string {
if x != nil {
return x.PreHookMessages
}
return nil
}
func (x *ProtoScenario) GetPostHookMessages() []string {
if x != nil {
return x.PostHookMessages
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoScenario) GetPreHookMessage() []string {
if x != nil {
return x.PreHookMessage
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoScenario) GetPostHookMessage() []string {
if x != nil {
return x.PostHookMessage
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoScenario) GetPreHookScreenshots() [][]byte {
if x != nil {
return x.PreHookScreenshots
}
return nil
}
// Deprecated: Marked as deprecated in spec.proto.
func (x *ProtoScenario) GetPostHookScreenshots() [][]byte {
if x != nil {
return x.PostHookScreenshots
}
return nil
}
func (x *ProtoScenario) GetPreHookScreenshotFiles() []string {
if x != nil {
return x.PreHookScreenshotFiles
}
return nil
}
func (x *ProtoScenario) GetPostHookScreenshotFiles() []string {
if x != nil {
return x.PostHookScreenshotFiles
}
return nil
}
func (x *ProtoScenario) GetRetriesCount() int64 {
if x != nil {
return x.RetriesCount
}
return 0
}
// / A proto object representing a Span of content
type Span struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
StartChar int64 `protobuf:"varint,3,opt,name=startChar,proto3" json:"startChar,omitempty"`
EndChar int64 `protobuf:"varint,4,opt,name=endChar,proto3" json:"endChar,omitempty"`
}
func (x *Span) Reset() {
*x = Span{}
if protoimpl.UnsafeEnabled {
mi := &file_spec_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Span) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Span) ProtoMessage() {}
func (x *Span) ProtoReflect() protoreflect.Message {
mi := &file_spec_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Span.ProtoReflect.Descriptor instead.
func (*Span) Descriptor() ([]byte, []int) {
return file_spec_proto_rawDescGZIP(), []int{3}
}
func (x *Span) GetStart() int64 {
if x != nil {
return x.Start
}
return 0
}
func (x *Span) GetEnd() int64 {
if x != nil {
return x.End
}
return 0
}
func (x *Span) GetStartChar() int64 {
if x != nil {
return x.StartChar
}
return 0
}
func (x *Span) GetEndChar() int64 {
if x != nil {
return x.EndChar
}
return 0
}
// / A proto object representing a TableDrivenScenario
type ProtoTableDrivenScenario struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields