public final class JUnitResult extends Object
It expected that this is parsed by Jenkins.
| Modifier and Type | Field and Description |
|---|---|
static String |
FAILSAFE_SUMMARY_FILENAME
filename of failsafe-summary.
|
| Constructor and Description |
|---|
JUnitResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(ITestSuite testSuite,
String name,
String value)
Add property in test-suite.
|
void |
endTestCase(ITestCase testCase)
End test-case.
|
void |
endTestSuite(ITestSuite testSuite)
End test-suite.
|
void |
generateFailsafeSummary()
Generate "failsafe-summary.xml" into XML result directory.
|
protected void |
mkdirs() |
void |
setCommandLineArgs(String[] args)
Set command line arguments.
|
void |
setDir(String dir)
Set XML result directory.
|
void |
setError(ITestCase testCase,
String message,
String trace)
Set error in test-case.
|
void |
setFailure(ITestCase testCase,
String message,
String trace)
Set failure in test-case.
|
void |
setSuccess(ITestCase testCase)
Set success.
|
void |
startTestCase(ITestTarget testTarget,
ITestCase testCase)
Start test-case.
|
void |
startTestSuite(ITestSuite testSuite)
Start test-suite.
|
public static final String FAILSAFE_SUMMARY_FILENAME
public void setCommandLineArgs(String[] args)
args - command line arguments.public void setDir(String dir)
dir - XML result directory.protected void mkdirs()
public void startTestSuite(ITestSuite testSuite)
testSuite - test-suite instance.public void endTestSuite(ITestSuite testSuite)
testSuite - test-suite instatnce.public void addProperty(ITestSuite testSuite, String name, String value)
testSuite - test-suite instatnce.name - property name.value - property value.public void startTestCase(ITestTarget testTarget, ITestCase testCase)
testTarget - test-suite or test-case instance.testCase - test-case instance.public void endTestCase(ITestCase testCase)
testCase - test-case instance.public void setSuccess(ITestCase testCase)
testCase - test-case instance.public void setError(ITestCase testCase, String message, String trace)
testCase - test-case instance.message - error message.trace - error trace.public void setFailure(ITestCase testCase, String message, String trace)
testCase - test-case instance.message - error message.trace - error trace.public void generateFailsafeSummary()
Copyright © 2017. All rights reserved.