|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestCaseExecution
Represents result of execution of a single test in a test file.
Nested Class Summary | |
---|---|
static class |
TestCaseExecution.Status
Test execution status. |
static class |
TestCaseExecution.Type
Test type. |
Method Summary | |
---|---|
Long |
durationInMs()
Duration in milliseconds |
TestCaseExecution |
durationInMs(long duration)
Duration in milliseconds |
TestCaseExecution |
inTestFile(InputFile testFile)
Set file where this test is located. |
String |
message()
Message (usually in case of TestCaseExecution.Status.ERROR or TestCaseExecution.Status.FAILURE ). |
TestCaseExecution |
message(String message)
Message (usually in case of TestCaseExecution.Status.ERROR or TestCaseExecution.Status.FAILURE ). |
String |
name()
Name of this test case. |
TestCaseExecution |
name(String name)
Set name of this test. |
TestCaseExecution |
ofType(TestCaseExecution.Type type)
Type of test. |
void |
save()
Call this method only once when your are done with defining the test case execution. |
String |
stackTrace()
Stacktrace (usually in case of TestCaseExecution.Status.ERROR ). |
TestCaseExecution |
stackTrace(String stackTrace)
Set stacktrace (usually in case of TestCaseExecution.Status.ERROR ). |
TestCaseExecution.Status |
status()
Status of execution of the test. |
TestCaseExecution |
status(TestCaseExecution.Status status)
Status of execution of the test. |
InputFile |
testFile()
InputFile where this test is located. |
TestCaseExecution.Type |
type()
Type of test. |
Method Detail |
---|
InputFile testFile()
TestCaseExecution inTestFile(InputFile testFile)
Long durationInMs()
TestCaseExecution durationInMs(long duration)
String name()
TestCaseExecution name(String name)
TestCaseExecution.Status status()
TestCaseExecution status(TestCaseExecution.Status status)
String message()
TestCaseExecution.Status.ERROR
or TestCaseExecution.Status.FAILURE
).
TestCaseExecution message(String message)
TestCaseExecution.Status.ERROR
or TestCaseExecution.Status.FAILURE
).
TestCaseExecution.Type type()
TestCaseExecution ofType(TestCaseExecution.Type type)
String stackTrace()
TestCaseExecution.Status.ERROR
).
TestCaseExecution stackTrace(String stackTrace)
TestCaseExecution.Status.ERROR
).
void save()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |