public interface TestCaseContext
Provides some related information of the current executed test case. System will automatically inject an instance of TestCaseContext as a parameter in BeforeTestCase methods, AfterTestCase methods. Test listener execution flow:
Invoke all BeforeTestSuite methods Invoke all Test Suite's SetUp methods Each Test Case Invoke all BeforeTestCase methods Invoke all Test Case's SetUp methods Execute Test Case's Script Invoke all Test Case's TearDown methods Invoke all AfterTestCase methods Invoke all Test Suite's TearDown methods Invoke all AfterTestSuite methodsFor more details, please check our document page via https://docs.katalon.com/pages/viewpage.action?pageId=5126383
Type Params | Return Type | Name and description |
---|---|---|
|
public String |
getMessage() Returns error message if test case fails |
|
public String |
getTestCaseId()
|
|
public String |
getTestCaseStatus() Returns test status after the test case execution completes. |
|
public Map<String, Object> |
getTestCaseVariables()
|
|
public boolean |
isSkipped()
|
|
public void |
skipThisTestCase() Set flag to signal this test case was skipped, implementing class determines further logic if necessary |
Returns error message if test case fails
Returns test status after the test case execution completes.
PASSED
, FAILED
, or ERROR
Set flag to signal this test case was skipped, implementing class determines further logic if necessary