Hi,
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:
testCaseContext.getTestCaseVariables()
tried this and i always got an empty map from this method.
and to change them i wanted to use:
testCaseContext.setTestCaseVariables()
saw this method in this jar com.kms.katalon.core_1.0.0.201804160633.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?
Thanks,
udi