How to retrieve variable in another test case

Guys, good afternoon!

how do I retrieve the value of the variable in the other test case?

I’m moving to the other test case the variable “social_race_name”

WebUI.callTestCase(findTestCase('Crud Construtora/Filtrar Construtora'), [('nome_razao_social') : nome_razao_social], FailureHandling.CONTINUE_ON_FAILURE)

how do I get this variable in the other test case?

callTestCase can return a value.

Test Case 1:

println WebUI.callTestCase(findtTestCase("TestCase2"), ...)

Test Case 2:

return "Yan"
1 Like

thank you @Russ_Thomas ,
already had managed to solve, anyway thank you!

1 Like