Class AbstractTMSClient

java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTMSClient
Direct Known Subclasses:
ExportPackageClient, ExportProjectClient, ImportPackageClient, ImportProjectClient, TMSReportUploader

public abstract class AbstractTMSClient extends Object
Abstract client providing common used functions to interact with a test management system.
  • Constructor Details

    • AbstractTMSClient

      public AbstractTMSClient()
  • Method Details

    • login

      public boolean login(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
      Logs in to preconfigured test management service in ecu.test.
      Parameters:
      credentials - the credentials
      launcher - the launcher
      listener - the listener
      Returns:
      true, if login succeeded, false otherwise
      Throws:
      IOException - signals that an I/O exception has occurred
      InterruptedException - if the build gets interrupted
    • logout

      public void logout(Launcher launcher, TaskListener listener) throws IOException, InterruptedException
      Logs out from preconfigured test management service in ecu.test.
      Parameters:
      launcher - the launcher
      listener - the listener
      Throws:
      IOException - signals that an I/O exception has occurred
      InterruptedException - if the build gets interrupted
    • isCompatible

      protected boolean isCompatible(ToolVersion minVersion, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
      Checks the currently running ecu.test version for compatibility reasons and tests whether the test management module is available.
      Parameters:
      minVersion - the minimum required ecu.test version
      workspace - the workspace
      launcher - the launcher
      listener - the listener
      Returns:
      true if compatible, false otherwise
      Throws:
      IOException - signals that an I/O exception has occurred
      InterruptedException - if the build gets interrupted