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
Client to execute ecu.test packages via COM interface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classHelper 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
ConstructorsConstructorDescriptionPackageClient(String testFile, TestConfig testConfig, PackageConfig packageConfig, ExecutionConfig executionConfig) Instantiates a newPackageClient. -
Method Summary
Modifier and TypeMethodDescriptionGets output parameters.Gets package config.booleanrunTestCase(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Runs a test case, can be either an ecu.test package or project.voidsetOutputParameters(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 Details
-
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 Details
-
getPackageConfig
Gets package config.- Returns:
- the package config
-
getOutputParameters
Gets output parameters.- Returns:
- the output parameters
-
setOutputParameters
Sets output parameters.- Parameters:
outParams- the out params
-
runTestCase
public boolean runTestCase(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedExceptionDescription copied from interface:TestClientRuns a test case, can be either an ecu.test package or project.- Parameters:
run- the runworkspace- the workspacelauncher- the launcherlistener- the listener- Returns:
trueif successful,falseotherwise- Throws:
IOException- signals that an I/O exception has occurredInterruptedException- if the build gets interrupted
-