Forum Discussion

Nayak_Ragh's avatar
Nayak_Ragh
Occasional Contributor
4 years ago
Solved

How to use 'Set Variable value' at project suite, in another test

I am trying to use a Vendor ID captured from Test-1 using 'Set variable value', in Test-2. Variable is declared at Project Suite level and The value is successfully captured in Test-1. I have used t...
  • tphillips's avatar
    4 years ago

    I just tested this out. You need to run both tests in the same execution plan, with Test1 first followed by Test2.

     

    If you run the first test by itself, followed by the second test by itself, the variable value is not persistent. It will only be set for the duration of the execution.