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 Summary
Constructors Constructor Description AbstractTMSClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isCompatible(ToolVersion minVersion, FilePath workspace, Launcher launcher, TaskListener listener)
Checks the currently running ecu.test version for compatibility reasons and tests whether the test management module is available.boolean
login(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials, Launcher launcher, TaskListener listener)
Logs in to preconfigured test management service in ecu.test.void
logout(Launcher launcher, TaskListener listener)
Logs out from preconfigured test management service in ecu.test.
-
-
-
Method Detail
-
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 credentialslauncher
- the launcherlistener
- the listener- Returns:
true
, if login succeeded,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- 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 launcherlistener
- the listener- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- 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 versionworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if compatible,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-
-