Class AbstractTMSClient
java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTMSClient
- Direct Known Subclasses:
ExportPackageClient
,ExportProjectClient
,ImportPackageClient
,ImportProjectClient
,TMSReportUploader
Abstract client providing common used functions to interact with a test management system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.
-
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 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
-