Class RealtimeTestResultAction
- java.lang.Object
-
- hudson.tasks.test.AbstractTestResultAction<AbstractRealtimeTestResultAction>
-
- org.jenkinsci.plugins.junitrealtimetestreporter.AbstractRealtimeTestResultAction
-
- org.jenkinsci.plugins.junitrealtimetestreporter.RealtimeTestResultAction
-
- All Implemented Interfaces:
Action
,HealthReportingAction
,ModelObject
,RunAction2
,org.kohsuke.stapler.StaplerProxy
public class RealtimeTestResultAction extends AbstractRealtimeTestResultAction
Action attached to the build at the time of running displaying test results in real time. This action is attached to building runs and detached as soon as the run finishes. The action presents test result accumulated in workspace so far.RealtimeTestResultAction
andTestResultAction
are never attached at the same time so they share the same url space. As soon as the underlying build finishes the realtime results will be replaced by final ones.- Author:
- ogondza
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.junitrealtimetestreporter.AbstractRealtimeTestResultAction
NUMBER_OF_BUILDS_TO_SEARCH, progress, result, RESULTS_OF_BUILDS_TO_CONSIDER
-
-
Constructor Summary
Constructors Constructor Description RealtimeTestResultAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected hudson.tasks.junit.TestResult
findPreviousTestResult()
String
getDisplayName()
String
getUrlName()
protected hudson.tasks.junit.TestResult
parse()
-
Methods inherited from class org.jenkinsci.plugins.junitrealtimetestreporter.AbstractRealtimeTestResultAction
findPreviousTestResult, getFailCount, getFailedTests, getParseInterval, getResult, getTarget, getTestProgress, getTotalCount
-
Methods inherited from class hudson.tasks.test.AbstractTestResultAction
doGraph, doGraphMap, findCorrespondingResult, findPreviousCorresponding, getApi, getBuildHealth, getDescription, getFailureDiffString, getHealthScaleFactor, getIconFileName, getPassedTests, getPreviousResult, getPreviousResult, getSkipCount, getSkippedTests, getTestResultPath, onAttached, onLoad, readResolve, setDescription
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classhudson.tasks.test.AbstractTestResultAction<AbstractRealtimeTestResultAction>
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classhudson.tasks.test.AbstractTestResultAction<AbstractRealtimeTestResultAction>
-
parse
protected hudson.tasks.junit.TestResult parse() throws IOException, InterruptedException
- Specified by:
parse
in classAbstractRealtimeTestResultAction
- Throws:
IOException
InterruptedException
-
findPreviousTestResult
protected hudson.tasks.junit.TestResult findPreviousTestResult() throws IOException, InterruptedException
- Specified by:
findPreviousTestResult
in classAbstractRealtimeTestResultAction
- Throws:
IOException
InterruptedException
-
-