Class TestResultsAnalyzerAction

java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerAction
All Implemented Interfaces:
Action, ModelObject, SearchableModelObject, SearchItem, ModelObjectWithContextMenu

public class TestResultsAnalyzerAction extends Actionable implements Action
  • Constructor Details

    • TestResultsAnalyzerAction

      public TestResultsAnalyzerAction(Job project)
  • Method Details

    • getDisplayName

      public final String getDisplayName()
      The display name for the action.
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
      Returns:
      the name as String
    • getIconFileName

      public final String getIconFileName()
      The icon for this action.
      Specified by:
      getIconFileName in interface Action
      Returns:
      the icon file as String
    • getUrlName

      public String getUrlName()
      The url for this action.
      Specified by:
      getUrlName in interface Action
      Returns:
      the url as String
    • getSearchUrl

      public String getSearchUrl()
      Search url for this action.
      Specified by:
      getSearchUrl in interface SearchItem
      Returns:
      the url as String
    • getProject

      public Job getProject()
    • isUpdated

      public boolean isUpdated()
    • getJsonLoadData

      @Deprecated public void getJsonLoadData()
      Deprecated.
      results are now loaded on demand for the number of builds requested, see doData(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 as net.sf.json objects.

      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 them
      durations - whether to export run times instead of statuses
      Throws:
      IOException
    • getBootstrapJson

      public String getBootstrapJson()
      The configuration of the analyzer page, read by its script. Used by index.jelly.
    • getNoOfBuilds

      public String 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

      public String getChartDataType()
    • getRunTimeLowThreshold

      public String getRunTimeLowThreshold()
    • getRunTimeHighThreshold

      public String getRunTimeHighThreshold()
    • isUseCustomStatusNames

      public boolean isUseCustomStatusNames()
    • isUseCustomStatusColors

      public boolean isUseCustomStatusColors()
    • getPassedRepresentation

      public String getPassedRepresentation()
    • getFailedRepresentation

      public String getFailedRepresentation()
    • getSkippedRepresentation

      public String getSkippedRepresentation()
    • getNaRepresentation

      public String getNaRepresentation()
    • getPassedColor

      public String getPassedColor()
    • getFailedColor

      public String getFailedColor()
    • getSkippedColor

      public String getSkippedColor()
    • getNaColor

      public String getNaColor()