i want to a add a test listener to my code before the test case starts that will check the test case variables, and set them according to different scenarios.
an example will be sign in:
one sign in test case with 2 variables: userName and password.
run the test > test listener opens see the values of userName and password and changes the values according to the values the the original userName and password has.
for getting the test case vars i wanted to use:
tried this and i always got an empty map from this method.
and to change them i wanted to use:
saw this method in this jar com.kms.katalon.core_126.96.36.199804160633.jar
// Method descriptor #50 (Ljava/util/Map;)V
// Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)V
// Stack: 2, Locals: 2
public void setTestCaseVariables(java.util.Map testCaseVariables);
but katalon doesn’t recognize it…
so 2 basic questions:
1. what are the variables that getTestCaseVariables method gets?
2. is it possible to change their values and send them back to the test case?