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. dev.preflight.com vs staging.preflight.com 

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 custom settings option. In the screen size section select the screen sizes 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.

Didn't answer your question? Have other questions? We have answers - drop us a message in the chat, or email: [email protected].

Did this answer your question?