Package org.citrusframework.report
Class TestResults
java.lang.Object
org.citrusframework.report.TestResults
Multiple
TestResult instances combined to a TestResults.- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback interface for synchronized access to test results in iteration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddResult(TestResult result) Adds a test result to the result list.asList()Provides access to results as list generated from synchronized result list.voiddoWithResults(TestResults.ResultCallback callback) Provides synchronized access to all test results in iteration.intGet number of tests failed.Deprecated.intgetSize()Gets the total amount of test results.intGet number of skipped tests.Deprecated.will returndoublevalue in the future!intGet number of tests in success.Deprecated.will returndoublevalue in the future!Gets the total duration of all tests.
-
Constructor Details
-
TestResults
public TestResults()
-
-
Method Details
-
asList
Provides access to results as list generated from synchronized result list. -
addResult
Adds a test result to the result list. -
doWithResults
Provides synchronized access to all test results in iteration. -
getSuccess
public int getSuccess()Get number of tests in success. -
getSuccessPercentage
Deprecated.will returndoublevalue in the future!Calculates percentage of success tests. -
getSuccessPercentageFormatted
-
getFailed
public int getFailed()Get number of tests failed. -
getFailedPercentage
Deprecated.will returndoublevalue in the future!Calculates percentage of failed tests. -
getFailedPercentageFormatted
-
getSkipped
public int getSkipped()Get number of skipped tests. -
getSkippedPercentage
Deprecated.will returndoublevalue in the future!Calculates percentage of skipped tests. -
getSkippedPercentageFormatted
-
getSize
public int getSize()Gets the total amount of test results. -
getTotalDuration
Gets the total duration of all tests.
-
doublevalue in the future!