Class PackageClient
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTestClient
-
- de.tracetronic.jenkins.plugins.ecutest.test.client.PackageClient
-
- All Implemented Interfaces:
TestClient
public class PackageClient extends AbstractTestClient
Client to execute ecu.test packages via COM interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PackageClient.PackageExecutioInfoHolder
Helper class storing package execution information.-
Nested classes/interfaces inherited from class de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTestClient
AbstractTestClient.CheckInfoHolder, AbstractTestClient.ExecutionInfoHolder, AbstractTestClient.LoadConfigCallable, AbstractTestClient.OpenTestFileCallable, AbstractTestClient.TestInfoHolder
-
-
Constructor Summary
Constructors Constructor Description PackageClient(String testFile, TestConfig testConfig, PackageConfig packageConfig, ExecutionConfig executionConfig)
Instantiates a newPackageClient
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getOutputParameters()
Gets output parameters.PackageConfig
getPackageConfig()
Gets package config.boolean
runTestCase(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
Runs a test case, can be either an ecu.test package or project.void
setOutputParameters(Map<String,String> outParams)
Sets output parameters.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTestClient
getExecutionConfig, getTestConfig, getTestDescription, getTestFile, getTestName, getTestReportDir, getTestResult, isAborted, recordWarnings, setAborted, setTestDescription, setTestName, setTestReportDir, setTestResult
-
-
-
-
Constructor Detail
-
PackageClient
public PackageClient(String testFile, TestConfig testConfig, PackageConfig packageConfig, ExecutionConfig executionConfig)
Instantiates a newPackageClient
.- Parameters:
testFile
- the package filetestConfig
- the test configurationpackageConfig
- the package configurationexecutionConfig
- the execution configuration
-
-
Method Detail
-
getPackageConfig
public PackageConfig getPackageConfig()
Gets package config.- Returns:
- the package config
-
getOutputParameters
public Map<String,String> getOutputParameters()
Gets output parameters.- Returns:
- the output parameters
-
setOutputParameters
public void setOutputParameters(Map<String,String> outParams)
Sets output parameters.- Parameters:
outParams
- the out params
-
runTestCase
public boolean runTestCase(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
Description copied from interface:TestClient
Runs a test case, can be either an ecu.test package or project.- Parameters:
run
- the runworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if successful,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-
-