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 | Name and description |
|---|---|
String |
getMessage()Returns error message if test case fails |
String |
getTestCaseId()@return Id of the current executed test case |
String |
getTestCaseStatus()Returns test status after the test case execution completes. |
Map<String, Object> |
getTestCaseVariables()@return A map stores variables (key is variable's name, value is variable's value) that were used in the current test case. |
boolean |
isSkipped()@return true if skipThisTestCase() was called |
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