@API(status=STABLE)
public interface TestCaseState
Note: This class is not intended to be used to create reports. To create custom reports use
the io.cucumber.plugin.Plugin
class. The plugin system provides a much richer access to Cucumbers then
hooks after could provide. For an example see io.cucumber.core.plugin.PrettyFormatter
.
Modifier and Type | Method and Description |
---|---|
void |
embed(byte[] data,
String mimeType)
Deprecated.
use
embed(byte[], String, String) instead. |
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() |
URI |
getUri() |
boolean |
isFailed() |
void |
write(String text)
Outputs some text into the report.
|
Collection<String> getSourceTagNames()
Status getStatus()
boolean isFailed()
getStatus()
returns "failed"@Deprecated void embed(byte[] data, String mimeType)
embed(byte[], String, String)
instead.
// 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()
URI getUri()
Integer getLine()
Copyright © 2019. All rights reserved.