Class TestResultProjectAction

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

    public class TestResultProjectAction
    extends Object
    implements Action, io.jenkins.plugins.echarts.AsyncTrendChart
    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

        protected edu.hm.hafner.echarts.LinesChartModel createChartModel()
      • 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

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

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