How to passing value variable from Verification to Variables ??
How to passing value variable from Verification to Variables ??
Hello,
probably itās clear to you what you want to ask, but i donāt get it.
Can you please add:
You will have to store your Variables content to disk as you cannot write back/save the passing value variable to Variables. Variables are only valid while the Test Case is running and you can only read them into your Test Case. You cannot write them back to the same location. You can change the contents of the variable within your Test Case but the change is only valid while the Test Case is running. The change is lost when the Test Case is finished (unless saved to disk).
Note: Global Variables are similar and are only valid while a Test Case/Test Suite is running. You can read them in and change them while your Test Case, or Test Suite, is running, but you cannot write them back to their original location.
If you want to Save the variables content, you have to write the value to spreadsheet or file and then read the value from spreadsheet or file in the next Test Case, or Test Suite.
Iām guessing you want to pass a value to a variable in a test case.
If that is the case
Passing value to the parameter
String timestampTrx = dtf.format(now)
String referenceNo = āOrdo-ā+ timestampTrx
WebUI.callTestCase(findTestCase(āThe_test_caseā), [(āparam_referenceNoā) : referenceNo], FailureHandling.STOP_ON_FAILURE)
The_test_case
Variable
Script
//whatever you want to do, in this case Iām just printing it
println param_referenceNo