org.finra.jtaf.core.model.test
Class TestResult

java.lang.Object
  extended by org.finra.jtaf.core.model.test.TestResult

public class TestResult
extends Object

This class represents the test result for the test


Constructor Summary
TestResult(List<TestStepsDetails> testStepsDetails, TestStatus teststatus)
          Initialize the TestResult with the current list of test steps, and the test status
TestResult(List<TestStepsDetails> testStepsDetails, TestStatus teststatus, Throwable failureReason)
          Initialize the TestResult with the current list of test steps, and the test status, and the failure reason
 
Method Summary
 Throwable getFailureReason()
          Return the failure reason for the current test
 TestStatus getTestStatus()
          Get the test status
 List<TestStepsDetails> getTestStepsDetails()
          Return the list of test steps for the current test
 boolean isTestPassed()
          Return if the current test passed
 void setFailureReason(Throwable failureReason)
          Set the failure reason for the current test
 void updateTestStatus(TestStatus testStatus)
          Update the test status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResult

public TestResult(List<TestStepsDetails> testStepsDetails,
                  TestStatus teststatus)
Initialize the TestResult with the current list of test steps, and the test status

Parameters:
testStepsDetails -
teststatus -

TestResult

public TestResult(List<TestStepsDetails> testStepsDetails,
                  TestStatus teststatus,
                  Throwable failureReason)
Initialize the TestResult with the current list of test steps, and the test status, and the failure reason

Parameters:
testStepsDetails -
teststatus -
failureReason -
Method Detail

isTestPassed

public boolean isTestPassed()
Return if the current test passed

Returns:

getTestStepsDetails

public List<TestStepsDetails> getTestStepsDetails()
Return the list of test steps for the current test

Returns:

setFailureReason

public void setFailureReason(Throwable failureReason)
Set the failure reason for the current test

Parameters:
failureReason -

getFailureReason

public Throwable getFailureReason()
Return the failure reason for the current test

Returns:

updateTestStatus

public void updateTestStatus(TestStatus testStatus)
Update the test status

Parameters:
testStatus -

getTestStatus

public TestStatus getTestStatus()
Get the test status

Returns:


Copyright © 2014. All rights reserved.