How to use passed variables in test cases?

When I call a test case like this:

Mobile.callTestCase(findTestCase('TestCaseExample'), ['variableExample':'variableContent'], null)

How can I use the variable variableExample in my test case TestCaseExample?

Have you tried just using it in your called test case (it may be underlined which would normally indicate that the variable is undefined, but let it slide in this case as long as it’s spelled correctly):

Mobile.setText(findTestObject('yourObject'), variableExample)
1 Like