How to transfer variable from a test case to another test case

Hi,

In the test case A :

String text = WebUI.getText(findTestObject(‘Page/name’), ‘value’)
WebUI.callTestCase(findTestCase(‘testCaseB’), [:], null)

And I would like to use the variable ‘text’ in the test case B.
Have you a solution ?

Hi,
If your testCaseB have a TestCase variable with name “var1”, use

WebUI.callTestCase(findTestCase('testCaseB'), [('var1') : text], FailureHandling.STOP_ON_FAILURE)
3 Likes

Perfect ! It works !
Thanks a lot :slight_smile:

1 Like