java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.tool.pipeline.ETInstance
All Implemented Interfaces:
Serializable

public class ETInstance extends Object implements Serializable
Class holding ecu.test installation specific settings in order to start and stop instances.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ETInstance(ETInstallation installation)
    Instantiates a new ETInstance.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Checks whether the currently selected configurations are started.
    void
    Publishes generator reports with default settings.
    void
    publishGenerators(List<ReportGeneratorConfig> generators, List<ReportGeneratorConfig> customGenerators, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll)
    Publishes generator reports with all available settings.
    void
    Publishes generator reports with given settings as named arguments map.
    void
    publishTMS(String credentialsId)
    Publishes reports to a test management system with default settings.
    void
    publishTMS(String credentialsId, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll)
    Publishes reports to a test management system with all available settings.
    void
    Publishes reports to a test management system with given settings as named arguments map.
    void
    Runs the trace analyses and publishes the generated reports with default settings.
    void
    publishTraceAnalysis(boolean mergeReports, boolean createReportDir, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll)
    Runs the trace analyses and publishes the generated reports with all available settings.
    void
    Runs the trace analyses and publishes the generated reports with given settings as named arguments map.
    void
    Publishes UNIT reports with default settings.
    void
    publishUNIT(double unstableThreshold, double failedThreshold, boolean allowMissing, boolean runOnFailed)
    Publishes UNIT reports with all available settings.
    void
    Publishes UNIT reports with given settings as named arguments map.
    void
    setScript(org.jenkinsci.plugins.workflow.cps.CpsScript script)
    Sets the pipeline script.
    void
    Starts ecu.test with default settings.
    void
    start(String workspaceDir, String settingsDir)
    Starts ecu.test with given workspace settings.
    void
    start(String workspaceDir, String settingsDir, int timeout, boolean debugMode, boolean keepInstance, boolean updateUserLibs)
    Starts ecu.test with all available settings.
    void
    start(Map<String,Object> settings)
    Starts ecu.test with given settings as named arguments map.
    void
    Starts Tool-Server with default settings.
    void
    startTS(String toolLibsIniPath, int tcpPort, int timeout, boolean keepInstance)
    Starts Tool-Server with all available settings.
    void
    startTS(Map<String,Object> settings)
    Starts Tool-Server with given settings as named arguments map.
    void
    Stops ecu.test with default settings.
    void
    stop(int timeout)
    Stops ecu.test with all available settings.
    void
    stop(Map<String,Object> settings)
    Stops ecu.test with given settings as named arguments map.
    void
    Stops Tool-Server with default settings.
    void
    stopTS(int timeout)
    Stops Tool-Server with all available settings.
    void
    stopTS(Map<String,Object> settings)
    Stops Tool-Server with given settings as named arguments map.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ETInstance

      public ETInstance(@Nonnull ETInstallation installation)
      Instantiates a new ETInstance.
      Parameters:
      installation - the ecu.test installation
  • Method Details

    • getInstallation

      @Nonnull public ETInstallation getInstallation()
    • setScript

      public void setScript(org.jenkinsci.plugins.workflow.cps.CpsScript script)
      Sets the pipeline script.
      Parameters:
      script - the pipeline script
    • start

      public void start()
      Starts ecu.test with default settings.
    • start

      public void start(String workspaceDir, String settingsDir)
      Starts ecu.test with given workspace settings.
      Parameters:
      workspaceDir - the workspace directory
      settingsDir - the settings directory
    • start

      public void start(String workspaceDir, String settingsDir, int timeout, boolean debugMode, boolean keepInstance, boolean updateUserLibs)
      Starts ecu.test with all available settings.
      Parameters:
      workspaceDir - the workspace directory
      settingsDir - the settings directory
      timeout - the timeout
      debugMode - specifies whether to enable debug mode
      keepInstance - specifies whether to re-use the previous instance
      updateUserLibs - specifies whether to update all user libraries
    • start

      public void start(Map<String,Object> settings)
      Starts ecu.test with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • stop

      public void stop()
      Stops ecu.test with default settings.
    • stop

      public void stop(int timeout)
      Stops ecu.test with all available settings.
      Parameters:
      timeout - the timeout
    • stop

      public void stop(Map<String,Object> settings)
      Stops ecu.test with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • startTS

      public void startTS()
      Starts Tool-Server with default settings.
    • startTS

      public void startTS(String toolLibsIniPath, int tcpPort, int timeout, boolean keepInstance)
      Starts Tool-Server with all available settings.
      Parameters:
      toolLibsIniPath - the alternative ToolLibs.ini path
      tcpPort - the alternative TCP port
      timeout - the timeout
      keepInstance - specifies whether to re-use the previous instance
    • startTS

      public void startTS(Map<String,Object> settings)
      Starts Tool-Server with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • stopTS

      public void stopTS()
      Stops Tool-Server with default settings.
    • stopTS

      public void stopTS(int timeout)
      Stops Tool-Server with all available settings.
      Parameters:
      timeout - the timeout
    • stopTS

      public void stopTS(Map<String,Object> settings)
      Stops Tool-Server with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • publishUNIT

      public void publishUNIT()
      Publishes UNIT reports with default settings.
    • publishUNIT

      public void publishUNIT(double unstableThreshold, double failedThreshold, boolean allowMissing, boolean runOnFailed)
      Publishes UNIT reports with all available settings.
      Parameters:
      unstableThreshold - the unstable threshold
      failedThreshold - the failed threshold
      allowMissing - specifies whether missing reports are allowed
      runOnFailed - specifies whether this publisher even runs on a failed build
    • publishUNIT

      public void publishUNIT(Map<String,Object> settings)
      Publishes UNIT reports with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • publishGenerators

      public void publishGenerators(List<ReportGeneratorConfig> generators, List<ReportGeneratorConfig> customGenerators)
      Publishes generator reports with default settings.
      Parameters:
      generators - the report generators
      customGenerators - the custom report generators
    • publishGenerators

      public void publishGenerators(List<ReportGeneratorConfig> generators, List<ReportGeneratorConfig> customGenerators, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll)
      Publishes generator reports with all available settings.
      Parameters:
      generators - the report generators
      customGenerators - the custom report generators
      allowMissing - specifies whether missing reports are allowed
      runOnFailed - specifies whether this publisher even runs on a failed build
      archiving - specifies whether archiving artifacts is enabled
      keepAll - specifies whether artifacts are archived for all successful builds, otherwise only the most recent
    • publishGenerators

      public void publishGenerators(Map<String,Object> settings)
      Publishes generator reports with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • publishTMS

      public void publishTMS(String credentialsId)
      Publishes reports to a test management system with default settings.
      Parameters:
      credentialsId - the credentials id
    • publishTMS

      public void publishTMS(String credentialsId, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll)
      Publishes reports to a test management system with all available settings.
      Parameters:
      credentialsId - the credentials id
      timeout - the timeout
      allowMissing - specifies whether missing reports are allowed
      runOnFailed - specifies whether this publisher even runs on a failed build
      archiving - specifies whether archiving artifacts is enabled
      keepAll - specifies whether artifacts are archived for all successful builds, otherwise only the most recent
    • publishTMS

      public void publishTMS(Map<String,Object> settings)
      Publishes reports to a test management system with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • publishTraceAnalysis

      public void publishTraceAnalysis()
      Runs the trace analyses and publishes the generated reports with default settings.
    • publishTraceAnalysis

      public void publishTraceAnalysis(boolean mergeReports, boolean createReportDir, int timeout, boolean allowMissing, boolean runOnFailed, boolean archiving, boolean keepAll)
      Runs the trace analyses and publishes the generated reports with all available settings.
      Parameters:
      mergeReports - specifies whether to merge analysis job reports,
      createReportDir - specifies whether to create a new report directory,
      timeout - the timeout
      allowMissing - specifies whether missing reports are allowed
      runOnFailed - specifies whether this publisher even runs on a failed build
      archiving - specifies whether archiving artifacts is enabled
      keepAll - specifies whether artifacts are archived for all successful builds, otherwise only the most recent
    • publishTraceAnalysis

      public void publishTraceAnalysis(Map<String,Object> settings)
      Runs the trace analyses and publishes the generated reports with given settings as named arguments map.
      Parameters:
      settings - the settings map
    • isConfigStarted

      public boolean isConfigStarted()
      Checks whether the currently selected configurations are started.
      Returns:
      true if configurations are started, false otherwise