@API(status=STABLE)
public interface TestCaseState
Modifier and Type | Method and Description |
---|---|
void |
embed(byte[] data,
String mediaType)
Deprecated.
use
embed(byte[], String, String) instead. |
void |
embed(byte[] data,
String mediaType,
String name)
Embeds data into the report(s).
|
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 mediaType)
embed(byte[], String, String)
instead.data
- what to embed, for example an image.mediaType
- what is the data? Using theembed(byte[], String, String)
,
embed(byte[], String, String)
void embed(byte[] data, String mediaType, String name)
// Embed a screenshot. See your UI automation tool's docs for
// details about how to take a screenshot.
scenario.embed(pngBytes, "image/png", "Bartholomew and the Bytes of the Oobleck");
To ensure reporting tools can understand what the data is a
mediaType
must be provided. For example: text/plain
,
image/png
, text/html;charset=utf-8
.
Media types are defined in RFC 7231 Section 3.1.1.1.
data
- what to embed, for example an image.mediaType
- 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 © 2020. All rights reserved.