Package com.splunk.splunkjenkins.utils
Class TestCaseResultUtils
java.lang.Object
com.splunk.splunkjenkins.utils.TestCaseResultUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<JunitTestCaseGroup>
getBuildReport
(Run build, int pageSize) Get the Junit report from build Extract from either TestResultAction or AggregatedTestResultActionstatic List<JunitTestCaseGroup>
getBuildReport
(Run build, int pageSize, List<String> ignoredTestActions) Get the Junit report from build Extract from either TestResultAction or AggregatedTestResultActiongetSummary
(Run build) static <T extends hudson.tasks.test.TestResult>
List<JunitTestCaseGroup>split test result into groups, each contains maximum pageSize testcasesstatic List<JunitTestCaseGroup>
splitRaw
(hudson.tasks.test.AbstractTestResultAction resultAction, int pageSize)
-
Constructor Details
-
TestCaseResultUtils
public TestCaseResultUtils()
-
-
Method Details
-
split
public static <T extends hudson.tasks.test.TestResult> List<JunitTestCaseGroup> split(@NonNull List<T> results, int pageSize) split test result into groups, each contains maximum pageSize testcases- Type Parameters:
T
- generic sub types of TestResult- Parameters:
results
- Test ResultspageSize
- how many test cases to hold in one page- Returns:
- A list of JunitTestCaseGroup
-
splitRaw
public static List<JunitTestCaseGroup> splitRaw(hudson.tasks.test.AbstractTestResultAction resultAction, int pageSize) - Parameters:
resultAction
- Junit Test Result ActionpageSize
- how many test cases to hold in one page- Returns:
- A list of JunitTestCaseGroup
-
getBuildReport
Get the Junit report from build Extract from either TestResultAction or AggregatedTestResultAction- Parameters:
build
- Jenkins buildpageSize
- how many test cases to hold in one page- Returns:
- A list of JunitTestCaseGroup
-
getBuildReport
public static List<JunitTestCaseGroup> getBuildReport(Run build, int pageSize, List<String> ignoredTestActions) Get the Junit report from build Extract from either TestResultAction or AggregatedTestResultAction- Parameters:
build
- Jenkins buildpageSize
- how many test cases to hold in one pageignoredTestActions
- test action list to be ignored- Returns:
- A list of JunitTestCaseGroup
-
getSummary
- Parameters:
build
- Jenkins build- Returns:
- summary of failures,passes,skips, total and duration
-