Class TestResultsAnalyzerAction
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerAction
- All Implemented Interfaces:
Action,ModelObject,SearchableModelObject,SearchItem,ModelObjectWithContextMenu
-
Nested Class Summary
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDownloads the test results of the latest builds as CSV.org.kohsuke.stapler.HttpResponseThe test history tree of the latest builds as JSON, for the analyzer page.The configuration of the analyzer page, read by its script.final StringThe display name for the action.booleanfinal StringThe icon for this action.voidDeprecated.intSearch url for this action.booleanbooleanbooleanbooleanbooleanThe url for this action.booleanbooleanbooleanMethods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
TestResultsAnalyzerAction
-
-
Method Details
-
getDisplayName
The display name for the action.- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject- Returns:
- the name as String
-
getIconFileName
The icon for this action.- Specified by:
getIconFileNamein interfaceAction- Returns:
- the icon file as String
-
getUrlName
The url for this action.- Specified by:
getUrlNamein interfaceAction- Returns:
- the url as String
-
getSearchUrl
Search url for this action.- Specified by:
getSearchUrlin interfaceSearchItem- Returns:
- the url as String
-
getProject
-
isUpdated
public boolean isUpdated() -
getJsonLoadData
Deprecated.results are now loaded on demand for the number of builds requested, seedoData(String, boolean)Loads results for every completed build (up to the configured number of runs to fetch). -
doData
@GET public org.kohsuke.stapler.HttpResponse doData(@QueryParameter String builds, @QueryParameter boolean hideConfigMethods) The test history tree of the latest builds as JSON, for the analyzer page.Streamed rather than returned as a
JSONObject: with many builds and tests the tree has millions of cells, too many to hold asnet.sf.jsonobjects.- Parameters:
builds- the number of builds, or -1 for all of them
-
doCsv
@GET public void doCsv(org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter String builds, @QueryParameter boolean durations) throws IOException Downloads the test results of the latest builds as CSV.- Parameters:
builds- the number of builds, or -1 for all of themdurations- whether to export run times instead of statuses- Throws:
IOException
-
getBootstrapJson
The configuration of the analyzer page, read by its script. Used byindex.jelly. -
getNoOfBuilds
-
getNoOfRunsToFetch
public int getNoOfRunsToFetch() -
getShowAllBuilds
public boolean getShowAllBuilds() -
getShowLineGraph
public boolean getShowLineGraph() -
getShowBarGraph
public boolean getShowBarGraph() -
getShowPieGraph
public boolean getShowPieGraph() -
getShowBuildTime
public boolean getShowBuildTime() -
getHideConfigurationMethods
public boolean getHideConfigurationMethods() -
getChartDataType
-
getRunTimeLowThreshold
-
getRunTimeHighThreshold
-
isUseCustomStatusNames
public boolean isUseCustomStatusNames() -
isUseCustomStatusColors
public boolean isUseCustomStatusColors() -
getPassedRepresentation
-
getFailedRepresentation
-
getSkippedRepresentation
-
getNaRepresentation
-
getPassedColor
-
getFailedColor
-
getSkippedColor
-
getNaColor
-
doData(String, boolean)