Set value

Set value

Set form input value

The Set value step allows you to assign a value to an input field or store a value for later use in your test.

This is one of the most flexible building blocks in DoesQA. It lets you control form inputs, update data dynamically, and pass information between steps without hardcoding values directly into your flow.

Set input values reliably

Use this step to populate:

  • Text inputs

  • Email fields

  • Password fields

  • Search boxes

  • Form controls

Instead of relying on manual typing simulations, you can directly set the intended value, making your tests more predictable and easier to maintain.

This is especially useful for:

  • Login forms

  • Registration flows

  • Checkout forms

  • Profile updates

  • Admin configuration pages

Store values for later use

Beyond setting inputs, this step can assign values to variables in your test.

Once stored, these values can be reused in:

  • Future input fields

  • API calls

  • Conditional logic

  • Custom code steps

  • Assertions

Values can originate from multiple sources, including:

  • Static strings

  • Dynamic values

  • CI/CD inputs

  • Environment configurations

  • Previously scraped data

This makes your tests far more adaptable and reusable across environments.

Support for dynamic testing

When combined with dynamic values, recipes, or CI/CD triggers, Set value enables powerful test scenarios such as:

  • Running the same test across different environments

  • Passing different credentials per run

  • Testing multiple currencies or regions

  • Injecting runtime configuration

Instead of duplicating flows, you change the data.

Reduce duplication and increase flexibility

Hardcoded data leads to brittle tests.

By centralising data into values and setting them intentionally, you:

  • Improve maintainability

  • Increase test reusability

  • Reduce duplication

  • Make flows environment-agnostic

Set value is a small step with a big impact. It helps turn simple test cases into scalable, adaptable automation that grows with your application.