How to use result of one testcase to another testcase

Dear Team,

Scenario: I have to generate a unique random number for one field and save the record. That I did. Then using Get attribute I stored it in output as “Actual value”.Its working fine and showing the console as well.

Now I need to pass the same value in another testcase. How should I do it. Kindly help.

There are a number of options:

  1. store the value in a GlobalVariable that will be available to tests within the same Test Suite
  2. store it in a file, this way it is permanently saved
  3. return it as return value of a Test Case and then call that TC from another TC

Thank you so much…its a great help.