Image attached is the report after running a Test Suite.
I want to capture all the status that was marked with red and write into my excel file. I will append it next to each test value in my excel sheet. My excel will look like this:
test_num | test_value_1 | test_value_2 | status or result
1 | a | a | PASSED
2 | a | b | FAILED
I already know how to write to excel by creating a custom keyword.
What Im not sure is how to access the status or capture result of each test case execution in the test suite (basically i want to get the Test Case Status PASSED or FAILED)
You could get the TestCase status and write a report by using our TestListener.
Pls have a look at our instruction at https://www.katalon.com/videos/test-listeners-test-hooks/
Hope that it helps.
Hi Trong Bui,
Thank you for your suggestion. I am able to get the status. However for FAILED status it is printing as ERROR instead of FAILED.
This is from Katalon report:
This is my own report:
The listener executes after every test case ends. I use testCaseContext.getTestCaseStatus() to get the status/result string.
Even in the Log Viewer, it records as Failure instead of Error.
So why am i getting status = ERROR instead of FAILED?
Pls advise. Thank you.
This type of request is going trendy, and the following feature may suits your needs. If you think it does, you may upvote it for Katalon guys to add it in a further release :