I have a test case that checks the URL to see if it’s been re-directed, and if it has, it executes a different test case. However, I’d like to have that test case not run twice (in the test suite).
Is there a way to have the test case read the console log, and check to see if the line “PASSED Call Test Case ‘X’ successfully” is in the console, and if it is, to skip that test case?
I don’t believe Katalon can read the log files. It can write to them, but not pull data back in.
You may be able to achieve something similar using Global Variables. You could set the variable to True or Passed if there is a redirect and read it later in another test case.
That test case would check the value of the variable: