Package org.citrusframework.remote.model
Class RemoteResult
java.lang.Object
org.citrusframework.remote.model.RemoteResult
- Since:
- 2.7.4
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteResultfromTestResult(org.citrusframework.TestResult testResult) Convert traditional test result to remote result.getCause()Gets the cause.longGets the durationInMillis.Gets the errorMessage.Gets the failureStack.Gets the testClass.Gets the testName.booleanisFailed()Gets the failed.booleanGets the skipped.booleanGets the success.voidSets the cause.voidsetDurationMillis(long durationMillis) Sets the durationInMillis.voidsetErrorMessage(String errorMessage) Sets the errorMessage.voidsetFailed(boolean failed) Sets the failed.voidsetFailureStack(String failureStack) Sets the failureStack.voidsetSkipped(boolean skipped) Sets the skipped.voidsetSuccess(boolean success) Sets the success.voidsetTestClass(String testClass) Sets the testClass.voidsetTestName(String testName) Sets the testName.static org.citrusframework.TestResulttoTestResult(RemoteResult remoteResult) Convert remote result to traditional result.
-
Constructor Details
-
RemoteResult
public RemoteResult()
-
-
Method Details
-
fromTestResult
Convert traditional test result to remote result.- Parameters:
testResult-- Returns:
-
toTestResult
Convert remote result to traditional result.- Parameters:
remoteResult-- Returns:
-
getTestName
Gets the testName.- Returns:
-
setTestName
Sets the testName.- Parameters:
testName-
-
getTestClass
Gets the testClass.- Returns:
-
setTestClass
Sets the testClass.- Parameters:
testClass-
-
getDurationMillis
public long getDurationMillis()Gets the durationInMillis.- Returns:
-
setDurationMillis
public void setDurationMillis(long durationMillis) Sets the durationInMillis.- Parameters:
durationMillis-
-
getCause
Gets the cause.- Returns:
-
setCause
Sets the cause.- Parameters:
cause-
-
getErrorMessage
Gets the errorMessage.- Returns:
-
setErrorMessage
Sets the errorMessage.- Parameters:
errorMessage-
-
getFailureStack
Gets the failureStack.- Returns:
-
setFailureStack
Sets the failureStack.- Parameters:
failureStack-
-
isSuccess
public boolean isSuccess()Gets the success.- Returns:
-
setSuccess
public void setSuccess(boolean success) Sets the success.- Parameters:
success-
-
isFailed
public boolean isFailed()Gets the failed.- Returns:
-
setFailed
public void setFailed(boolean failed) Sets the failed.- Parameters:
failed-
-
isSkipped
public boolean isSkipped()Gets the skipped.- Returns:
-
setSkipped
public void setSkipped(boolean skipped) Sets the skipped.- Parameters:
skipped-
-