Raghav, Is there a way i can compare two test cases in Katalon. For example- pass test case 2 if the value of test case 2 is greater then value of test case 1
@RaghavPal4 жыл бұрын
You can use conditional statements but I did not exactly get your scenario when you say - pass test case 2 if the value of test case 2 is greater then value of test case 1
@sabbirchowdhury27984 жыл бұрын
@@RaghavPal i have two test cases in my test suits. Test case 1 and test case 2. The scenario here is user has to do a comparison. when user runs test case 2 , if the test case 2 value is greater then test case 1 then pass the test case 2. if the value is less then test case 1 fail the test case and take a screenshot Test suits: TC_1 = 10 TC_2 = 20 Results : Passed Test suits: TC_1 = 10 TC_2 = 5 Results : fail (take a screenshot )
@RaghavPal4 жыл бұрын
Hi Sabbir, what I can think of here is you capture the value and store in a Global Variable and in the next test case you can refer the value from global variables. Just if you want to see how to store and refer values from Global Variables you can see this video - kzbin.info/www/bejne/lX65d2NqqKp2f7c