Storing generated values as temporary test data

Learn how to store values generated during a test run as temporary test data (i.e. variables)

Overview

Not all test data can be defined ahead of time. Some pieces of data are generated during a test run (e.g., an invoice number generated from an order that needs to be validated in a backend system).

Use a store action to save these values that are generated as part of your test run so that you can either validate that they appear later in the test flow or you can use them as input for later actions like fill or type.

How it works

  1. Create a store action

    1. Select the store action type

    2. Take a screenshot of the area of the page that contains the dynamic value

      iii. Set a mask over the dynamic value that you wish to store and reference later in your test. This is the value that will change each time the test is previewed or run.

    3. iv. Optional: Rename your temporary test data.

      image.png
  2. Reference the stored test data later in your test by using the same test data input that you’d use for non-temporary test data.

image.png

FAQ

  1. Can I preview tests temporary test data?

    1. Yes, just be sure to only preview steps that reference your temporary variable after you’ve previewed the step that stores a value.
  2. Can I see which values have been stored already while writing or previewing my test?

    1. Yes, you can see any saved values in the header above the virtual machine
    image.png
  3. Can I override the stored value?

    1. Yes. If you include multiple store actions in the same test with the same name for test data you created within an earlier stored action, your value will be overridden.