How to passing value variable from Verification to Variables

How to passing value variable from Verification to Variables ??

image
image

Hello,
probably it’s clear to you what you want to ask, but i don’t get it.
Can you please add:

  • List item
  • more detail
  • more code
  • rephrase your question

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.

1 Like

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
image
Script
//whatever you want to do, in this case I’m just printing it
println param_referenceNo