-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmessages.proto
58 lines (47 loc) · 1.48 KB
/
messages.proto
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
package main;
message ExecutionStartingRequest {
required string scenarioFile = 1;
}
message ExecuteStepRequest {
required string stepText = 1;
optional bool scenarioFailing = 2;
repeated string args = 3;
}
message ExecuteStepResponse {
required bool passed = 2;
optional bool recoverableError = 3;
optional string errorMessage = 4;
optional string stackTrace = 5;
optional bytes screenShot = 6;
}
message StepValidateRequest {
required string stepText = 1;
}
message StepValidateResponse {
required bool isValid = 1;
}
message ExecutionEndingRequest {
}
// This is the message which gets transferred all the time
// with proper message type set
message Message {
enum MessageType {
ExecutionStarting = 0;
ExecuteStep = 1;
ExecuteStepResponse = 2;
ExecutionEnding = 3;
StepValidateRequest = 4;
StepValidateResponse = 5;
}
required MessageType messageType = 1;
// A unique id to represent this message. A response to the message should copy over this value
// this is used to synchronize messages & responses
required int64 messageId = 2;
// One of the following will have a value
optional ExecutionStartingRequest executionStartingRequest = 3;
optional ExecuteStepRequest executeStepRequest = 4;
optional ExecuteStepResponse executeStepResponse = 5;
optional ExecutionEndingRequest executionEndingRequest = 6;
optional StepValidateRequest stepValidateRequest = 7;
optional StepValidateResponse stepValidateResponse = 8;
}