Class AbstractTestClient
java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTestClient
- All Implemented Interfaces:
TestClient
- Direct Known Subclasses:
PackageClient
,ProjectClient
Common base class for
PackageClient
and ProjectClient
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Helper class storing information about the errors returned by checking packages and projects.protected static class
Helper class storing execution information about the test result and the test report directory.protected static final class
Callable
providing remote access to load configurations via COM.protected static class
Callable
providing remote access to open a test file via COM.protected static class
Helper class storing information about a test file. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTestClient
(String testFile, TestConfig testConfig, ExecutionConfig executionConfig) Instantiates a newAbstractTestClient
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies whether the test execution is aborted.protected boolean
recordWarnings
(AbstractTestClient.TestInfoHolder testInfo, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Records test file checks as Warnings NG issues.void
setAborted
(boolean isAborted) void
setTestDescription
(String testDescription) void
setTestName
(String testName) void
setTestReportDir
(String testReportDir) void
setTestResult
(String testResult) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.tracetronic.jenkins.plugins.ecutest.test.client.TestClient
runTestCase
-
Constructor Details
-
AbstractTestClient
Instantiates a newAbstractTestClient
.- Parameters:
testFile
- the test file pathtestConfig
- the test configurationexecutionConfig
- the execution configuration
-
-
Method Details
-
getTestFile
-
getTestConfig
-
getExecutionConfig
-
getTestName
-
setTestName
-
getTestDescription
-
setTestDescription
-
getTestReportDir
-
setTestReportDir
-
getTestResult
-
setTestResult
-
isAborted
public boolean isAborted()Specifies whether the test execution is aborted.- Returns:
true
if is aborted,false
otherwise
-
setAborted
public void setAborted(boolean isAborted) -
recordWarnings
protected boolean recordWarnings(AbstractTestClient.TestInfoHolder testInfo, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedExceptionRecords test file checks as Warnings NG issues.- Parameters:
testInfo
- the stored test file informationrun
- the runworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if recording detects any issues with ERROR severity,false
otherwise- Throws:
IOException
InterruptedException
-