Class AbstractTestClient

java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTestClient
All Implemented Interfaces:
TestClient
Direct Known Subclasses:
PackageClient, ProjectClient

public abstract class AbstractTestClient extends Object implements TestClient
Common base class for PackageClient and ProjectClient.
  • Constructor Details

    • AbstractTestClient

      public AbstractTestClient(String testFile, TestConfig testConfig, ExecutionConfig executionConfig)
      Instantiates a new AbstractTestClient.
      Parameters:
      testFile - the test file path
      testConfig - the test configuration
      executionConfig - the execution configuration
  • Method Details

    • getTestFile

      public String getTestFile()
    • getTestConfig

      public TestConfig getTestConfig()
    • getExecutionConfig

      public ExecutionConfig getExecutionConfig()
    • getTestName

      public String getTestName()
    • setTestName

      public void setTestName(String testName)
    • getTestDescription

      public String getTestDescription()
    • setTestDescription

      public void setTestDescription(String testDescription)
    • getTestReportDir

      public String getTestReportDir()
    • setTestReportDir

      public void setTestReportDir(String testReportDir)
    • getTestResult

      public String getTestResult()
    • setTestResult

      public void setTestResult(String testResult)
    • isAborted

      public boolean isAborted()
      Specifies whether the test execution is aborted.
      Returns:
      true if is aborted, false otherwise
    • setAborted

      public void setAborted(boolean isAborted)
    • recordWarnings

      protected boolean recordWarnings(AbstractTestClient.TestInfoHolder testInfo, Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
      Records test file checks as Warnings NG issues.
      Parameters:
      testInfo - the stored test file information
      run - the run
      workspace - the workspace
      launcher - the launcher
      listener - the listener
      Returns:
      true if recording detects any issues with ERROR severity, false otherwise
      Throws:
      IOException
      InterruptedException