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 classHelper class storing information about the errors returned by checking packages and projects.protected static classHelper class storing execution information about the test result and the test report directory.protected static final classCallableproviding remote access to load configurations via COM.protected static classCallableproviding remote access to open a test file via COM.protected static classHelper class storing information about a test file. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTestClient(String testFile, TestConfig testConfig, ExecutionConfig executionConfig) Instantiates a newAbstractTestClient. -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies whether the test execution is aborted.protected booleanrecordWarnings(AbstractTestClient.TestInfoHolder testInfo, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Records test file checks as Warnings NG issues.voidsetAborted(boolean isAborted) voidsetTestDescription(String testDescription) voidsetTestName(String testName) voidsetTestReportDir(String testReportDir) voidsetTestResult(String testResult) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
trueif is aborted,falseotherwise
-
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:
trueif recording detects any issues with ERROR severity,falseotherwise- Throws:
IOExceptionInterruptedException
-