Using Persistent Variables

If you need to store variables between tests, use persistent variables. PTF stores persistent variables to the database so that subsequent test run can use them.

Persistent variables are stored in the database keyed by runtime option name. Persistent variables can also be keyed by User ID, machine name, or both.

There are two key elements required to use persistent variables:

  1. Set the variable action in the test.

  2. Set persistent variable options.