Class AbstractTestClient
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTestClient
-
- All Implemented Interfaces:
TestClient
- Direct Known Subclasses:
PackageClient
,ProjectClient
public abstract class AbstractTestClient extends Object implements TestClient
Common base class forPackageClient
andProjectClient
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractTestClient.CheckInfoHolder
Helper class storing information about the errors returned by checking packages and projects.protected static class
AbstractTestClient.ExecutionInfoHolder
Helper class storing execution information about the test result and the test report directory.protected static class
AbstractTestClient.LoadConfigCallable
Callable
providing remote access to load configurations via COM.protected static class
AbstractTestClient.OpenTestFileCallable
Callable
providing remote access to open a test file via COM.protected static class
AbstractTestClient.TestInfoHolder
Helper class storing information about a test file.
-
Constructor Summary
Constructors Constructor Description AbstractTestClient(String testFile, TestConfig testConfig, ExecutionConfig executionConfig)
Instantiates a newAbstractTestClient
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionConfig
getExecutionConfig()
TestConfig
getTestConfig()
String
getTestDescription()
String
getTestFile()
String
getTestName()
String
getTestReportDir()
String
getTestResult()
boolean
isAborted()
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 Detail
-
AbstractTestClient
public AbstractTestClient(String testFile, TestConfig testConfig, ExecutionConfig executionConfig)
Instantiates a newAbstractTestClient
.- Parameters:
testFile
- the test file pathtestConfig
- the test configurationexecutionConfig
- the execution configuration
-
-
Method Detail
-
getTestFile
public String getTestFile()
-
getTestConfig
public TestConfig getTestConfig()
-
getExecutionConfig
public ExecutionConfig getExecutionConfig()
-
getTestName
public String getTestName()
-
setTestName
public void setTestName(String testName)
-
getTestDescription
public String getTestDescription()
-
setTestDescription
public void setTestDescription(String testDescription)
-
getTestReportDir
public String getTestReportDir()
-
setTestReportDir
public void setTestReportDir(String testReportDir)
-
getTestResult
public String getTestResult()
-
setTestResult
public void setTestResult(String testResult)
-
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, InterruptedException
Records 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
-
-