Values (Value Store)

DoesQA allows you to use variables within your tests.

The Value Store in DoesQA allows you to save and access different types of values for various purposes during test execution. Values can be set and updated at different stages of the test, making it flexible and convenient for managing dynamic data.

Value Types

The Value Store supports the following data types:

  • Strings: Text values, such as "Hello, World!"

  • Objects: JSON-like structures containing key-value pairs

  • Booleans: True or false values

  • Numbers: Integer or floating-point numeric values

Creating Values

Creating Values

Accessing Values

Values stored in the Value Store can be accessed and used in specific nodes. This allows for dynamic manipulation and utilization of data during test execution. For instance, you can use stored values to:

  • Reuse values in form inputs, validations

  • Pass dynamic data between steps

  • Compare stored values to text on the page for validation purposes

  • Use stored values in API calls or webhooks

  • Make your tests more flexible, reusable, and maintainable

Remember to utilise the appropriate syntax for accessing values in the nodes where they are supported.

You can access values by using the $ syntax when filling in a field.

Last updated