public class JUnitReportCollector extends Object implements TestRunListener, TestSuiteRunListener, ProjectRunListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
includeTestPropertiesInReport |
Constructor and Description |
---|
JUnitReportCollector() |
JUnitReportCollector(int maxErrors) |
Modifier and Type | Method and Description |
---|---|
void |
afterRun(ProjectRunner testScenarioRunner,
ProjectRunContext runContext) |
void |
afterRun(TestCaseRunner testRunner,
TestCaseRunContext runContext) |
void |
afterRun(TestSuiteRunner testRunner,
TestSuiteRunContext runContext) |
void |
afterStep(TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStepResult result) |
void |
afterTestCase(TestSuiteRunner testRunner,
TestSuiteRunContext runContext,
TestCaseRunner testCaseRunner) |
void |
afterTestSuite(ProjectRunner testScenarioRunner,
ProjectRunContext runContext,
TestSuiteRunner testRunner) |
void |
beforeRun(ProjectRunner testScenarioRunner,
ProjectRunContext runContext) |
void |
beforeRun(TestCaseRunner testRunner,
TestCaseRunContext runContext) |
void |
beforeRun(TestSuiteRunner testRunner,
TestSuiteRunContext runContext) |
void |
beforeStep(TestCaseRunner testRunner,
TestCaseRunContext runContext) |
void |
beforeStep(TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStep testStep) |
void |
beforeTestCase(TestSuiteRunner testRunner,
TestSuiteRunContext runContext,
TestCase testCase) |
void |
beforeTestSuite(ProjectRunner testScenarioRunner,
ProjectRunContext runContext,
TestSuite testSuite) |
static JUnitReportCollector |
createNew(int maxErrors)
Use this factory method to allow usage of an external reportCollecto; it
checks for a soapui.junit.reportCollector system property that should
specify a class derived from this JUnitReportCollector which will be used
instead
|
String |
getReport() |
HashMap<String,JUnitReport> |
getReports() |
protected HashMap<String,String> |
getTestPropertiesAsHashMap(TestModelItem testCase) |
void |
reset() |
void |
saveReport(JUnitReport report,
String filename) |
List<String> |
saveReports(String path) |
void |
setIncludeTestPropertiesInReport(boolean includeTestPropertiesInReport) |
public JUnitReportCollector()
public JUnitReportCollector(int maxErrors)
public HashMap<String,JUnitReport> getReports()
public void saveReport(JUnitReport report, String filename) throws Exception
Exception
public String getReport()
public void afterRun(TestCaseRunner testRunner, TestCaseRunContext runContext)
afterRun
in interface TestRunListener
protected HashMap<String,String> getTestPropertiesAsHashMap(TestModelItem testCase)
public void afterStep(TestCaseRunner testRunner, TestCaseRunContext runContext, TestStepResult result)
afterStep
in interface TestRunListener
public void beforeRun(TestCaseRunner testRunner, TestCaseRunContext runContext)
beforeRun
in interface TestRunListener
public void beforeStep(TestCaseRunner testRunner, TestCaseRunContext runContext)
beforeStep
in interface TestRunListener
public void beforeStep(TestCaseRunner testRunner, TestCaseRunContext runContext, TestStep testStep)
beforeStep
in interface TestRunListener
public void reset()
public void afterRun(TestSuiteRunner testRunner, TestSuiteRunContext runContext)
afterRun
in interface TestSuiteRunListener
public void afterTestCase(TestSuiteRunner testRunner, TestSuiteRunContext runContext, TestCaseRunner testCaseRunner)
afterTestCase
in interface TestSuiteRunListener
public void beforeRun(TestSuiteRunner testRunner, TestSuiteRunContext runContext)
beforeRun
in interface TestSuiteRunListener
public void beforeTestCase(TestSuiteRunner testRunner, TestSuiteRunContext runContext, TestCase testCase)
beforeTestCase
in interface TestSuiteRunListener
public void afterRun(ProjectRunner testScenarioRunner, ProjectRunContext runContext)
afterRun
in interface ProjectRunListener
public void afterTestSuite(ProjectRunner testScenarioRunner, ProjectRunContext runContext, TestSuiteRunner testRunner)
afterTestSuite
in interface ProjectRunListener
public void beforeRun(ProjectRunner testScenarioRunner, ProjectRunContext runContext)
beforeRun
in interface ProjectRunListener
public void beforeTestSuite(ProjectRunner testScenarioRunner, ProjectRunContext runContext, TestSuite testSuite)
beforeTestSuite
in interface ProjectRunListener
public static JUnitReportCollector createNew(int maxErrors)
maxErrors
- public void setIncludeTestPropertiesInReport(boolean includeTestPropertiesInReport)
Copyright © 2019. All Rights Reserved.