|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Scenario
Before or After Hooks that declare a parameter of this type will receive an instance of this class. It allows writing text and embedding media into reports, as well as inspecting results (in an After block).
| Method Summary | |
|---|---|
void |
embed(byte[] data,
String mimeType)
Embeds data into the report(s). |
Collection<String> |
getSourceTagNames()
|
String |
getStatus()
|
boolean |
isFailed()
|
void |
write(String text)
Outputs some text into the report. |
| Method Detail |
|---|
Collection<String> getSourceTagNames()
String getStatus()
boolean isFailed()
getStatus() returns "failed"
void embed(byte[] data,
String mimeType)
// Embed a screenshot. See your UI automation tool's docs for
// details about how to take a screenshot.
scenario.embed(pngBytes, "image/png");
data - what to embed, for example an image.mimeType - what is the data?void write(String text)
text - what to put in the report.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||