Running Tests on Dev, Staging & Prod

URLs or Environments?

Preflight only stores relative URLs and environments. This makes it easy to test on a QA environment and a dev environment. You add the URLs to the list of environments in Preflight and it's easy to switch between them.

e.g. vs

Adding Environments

Firstly, if you create a test on an environment - we'll add it immediately. But if you're creating tests on dev and want to run them in production you may need to add an environment manually.

Adding environments in Preflight is relatively simple just go to Test Settings > Environments page and then enter the environment URL. Click Add Environment button to add the new environment to your list.

Now your environment will be available when it comes to running tests.

Running tests on different environment

By default, when you run tests, they'll run on the same environment you created them in. However you can override this when you run tests. Go to the All Tests page then select the tests you wish to test, or leave them if you want to test all. Click the Run All Tests dropdown and choose the Run All with Custom Settings option. In the screen size and browser section select the options you wish to test on. Then click the Run All Tests Now button which is located at the bottom of the page.

And you're all set! Your tests will run on the environment you want without overwriting your global defaults or test-specific settings.

Override global environment

In order to change the global environment for a specific test see Navigate under Editing Tests

Updated at Tue, Jan 24, 2023