|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScenarioResult
After Hooks that declare a parameter of this type will receive an instance of this class. This allows an After hook to inspect whether or not a Scenario failed.
Method Summary | |
---|---|
void |
embed(InputStream data,
String mimeType)
Embeds data into the report(s). |
String |
getStatus()
|
boolean |
isFailed()
|
void |
write(String text)
Outputs some text into the report. |
Method Detail |
---|
String getStatus()
boolean isFailed()
getStatus()
returns "failed"void embed(InputStream data, String mimeType)
data
- what to embed, for example an image.mimeType
- what is the data?ProgressFormatter
,
HTMLFormatter
,
JSONFormatter
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 |