Class TestResultProjectAction

  • All Implemented Interfaces:
    Action, ModelObject, io.jenkins.plugins.echarts.AsyncConfigurableTrendChart, io.jenkins.plugins.echarts.AsyncTrendChart

    public class TestResultProjectAction
    extends Object
    implements Action, io.jenkins.plugins.echarts.AsyncTrendChart, io.jenkins.plugins.echarts.AsyncConfigurableTrendChart
    Project action object from test reporter, such as JUnitResultArchiver, which displays the trend report on the project top page.

    This works with any AbstractTestResultAction implementation.

    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • job

        public final Job<?,​?> job
        Project that owns this action.
        Since:
        1.2-beta-1
    • Constructor Detail

      • TestResultProjectAction

        public TestResultProjectAction​(Job<?,​?> job)
        Since:
        1.2-beta-1
    • Method Detail

      • createChartModel

        @Deprecated
        protected edu.hm.hafner.echarts.LinesChartModel createChartModel()
        Deprecated.
      • doTrend

        @Deprecated
        public void doTrend​(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp)
                     throws IOException,
                            javax.servlet.ServletException
        Deprecated.
        Replaced by echarts in TODO
        Display the test result trend.
        Throws:
        IOException
        javax.servlet.ServletException
      • doTrendMap

        @Deprecated
        public void doTrendMap​(org.kohsuke.stapler.StaplerRequest req,
                               org.kohsuke.stapler.StaplerResponse rsp)
                        throws IOException,
                               javax.servlet.ServletException
        Deprecated.
        Replaced by echarts in TODO
        Generates the clickable map HTML fragment for doTrend(StaplerRequest, StaplerResponse).
        Throws:
        IOException
        javax.servlet.ServletException
      • doFlipTrend

        public void doFlipTrend​(org.kohsuke.stapler.StaplerRequest req,
                                org.kohsuke.stapler.StaplerResponse rsp)
                         throws IOException,
                                javax.servlet.ServletException
        Changes the test result report display mode.
        Throws:
        IOException
        javax.servlet.ServletException
      • getBuildTrendModel

        @Deprecated
        public String getBuildTrendModel()
        Deprecated.
        Specified by:
        getBuildTrendModel in interface io.jenkins.plugins.echarts.AsyncTrendChart
      • getConfigurableBuildTrendModel

        @JavaScriptMethod
        public String getConfigurableBuildTrendModel​(String configuration)
        Specified by:
        getConfigurableBuildTrendModel in interface io.jenkins.plugins.echarts.AsyncConfigurableTrendChart
      • isTrendVisible

        public boolean isTrendVisible()
        Specified by:
        isTrendVisible in interface io.jenkins.plugins.echarts.AsyncConfigurableTrendChart
        Specified by:
        isTrendVisible in interface io.jenkins.plugins.echarts.AsyncTrendChart