@API(status=STABLE)
public interface Scenario
Modifier and Type | Method and Description |
---|---|
void |
embed(byte[] data,
String mimeType)
Embeds data into the report(s).
|
String |
getId() |
Integer |
getLine() |
String |
getName() |
Status |
getStatus() |
String |
getUri() |
boolean |
isFailed() |
void |
write(String text)
Outputs some text into the report.
|
Status 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.String getName()
String getId()
String getUri()
Integer getLine()
Copyright © 2019. All rights reserved.