Assert variables between test cases

Hi everyone, I haven’t found similar topic.

Is it possible to assert a variable from one test case to another test case?

I have 2 Testcases (A & B).
On Tcase A, there is a variable called ‘name_A’
On Tcase B, there is a variable called ‘name_B’

On testcase B, is it possible to assert ‘name_B’ if its value == ‘name_A’?

Any advice will help,
Thankyou

1 Like

No. It is impossible.

Instread, you can create a GlobalVariable which is accessible from multiple test cases.

https://docs.katalon.com/docs/katalon-studio-enterprise/test-execution/data-driven-testing/global-variables-and-execution-profile

2 Likes

Thankyou for the answer.

1 Like