Skip to content

Parameterize URLs

How do you run the same test in the same environment against different URLs? Put a variable in the URL.

This works well for URLs shaped like basepath.com/{extension}, where the base path is constant and the extension changes often or must be tested with different data sets.

Choose the variable type that matches what you want:

Variable type Result
Data-driven variable The test runs against a different URL for each row of your data file.
Random application variable The test runs against random URLs from your data sets.
Application variable The test runs against a single URL.

  1. Open Edit Steps for any test case.
  2. Select the override URL checkbox. This makes the URL editable.
  3. In the path part of the URL, type the variable name wrapped in double underscores: __variablename__.

The override URL option with a variable in the URL