Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added Screenshot for scenarios and specs, getgauge/gauge#632 #13

Merged
merged 1 commit into from
Jul 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ message ProtoSpec {
repeated string preHookMessage = 10 [deprecated=true];
/// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
repeated string postHookMessage = 11 [deprecated=true];
/// Capture Screenshot at pre hook exec time to be available on reports
repeated bytes preHookScreenshots = 12;
/// Capture Screenshot at post hook exec time to be available on reports
repeated bytes postHookScreenshots = 13;
}


Expand Down Expand Up @@ -126,6 +130,10 @@ message ProtoScenario {
repeated string preHookMessage = 17 [deprecated=true];
/// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports
repeated string postHookMessage = 18 [deprecated=true];
/// Capture Screenshot at pre hook exec time to be available on reports
repeated bytes preHookScreenshots = 19;
/// Capture Screenshot at post hook exec time to be available on reports
repeated bytes postHookScreenshots = 20;
}

/// A proto object representing a Span of content
Expand Down Expand Up @@ -158,6 +166,10 @@ message ProtoStep {
repeated string preHookMessages = 5;
/// Additional information at post hook exec time to be available on reports
repeated string postHookMessages = 6;
/// Capture Screenshot at pre hook exec time to be available on reports
repeated bytes preHookScreenshots = 7;
/// Capture Screenshot at post hook exec time to be available on reports
repeated bytes postHookScreenshots = 8;
}

/// Concept is a type of step, that can have multiple Steps.
Expand Down Expand Up @@ -280,7 +292,7 @@ message ProtoHookFailure {
/// Error message from the failure
string errorMessage = 2;
/// Byte array holding the screenshot taken at the time of failure.
bytes screenShot = 3;
repeated bytes screenShot = 3;
// / Contains table row index corresponding to datatable rows
int32 tableRowIndex = 4;
}
Expand Down