@API(status=STABLE)
public interface Scenario
Modifier and Type | Method and Description |
---|---|
void |
embed(byte[] data,
String mimeType)
Embeds data into the report(s).
|
void |
embed(byte[] data,
String mimeType,
String name)
Like
embed(byte[], String) , but with name for the embedding. |
String |
getId() |
Integer |
getLine() |
String |
getName() |
Collection<String> |
getSourceTagNames() |
Status |
getStatus() |
String |
getUri() |
boolean |
isFailed() |
void |
write(String text)
Outputs some text into the report.
|
Collection<String> getSourceTagNames()
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 embed(byte[] data, String mimeType, String name)
embed(byte[], String)
, but with name for the embedding.data
- what to embed, for example an image.mimeType
- what is the data?name
- embedding namevoid write(String text)
text
- what to put in the report.String getName()
String getId()
String getUri()
Integer getLine()
Copyright © 2019. All rights reserved.