Selenium/How-to/Set environment variables

You can target different environments with the same code. To do so, all you have to do is to set environment variables, or create an  file. Both options do the same thing. It is up to you do decide which one to use.

If you decide to set environment variables, run the commands below from the terminal. To make it easier for next time, you can set them from shell configuration file (, ...). That means the variables are always available from any terminal session.

If you decide to use  file, it needs to be at the root of the repository.

Target Beta cluster
Environment Variables.

file.

Of course, replace  and   with your username and password.

Target MediaWiki-Docker
Environment Variables.

file.

Target MediaWiki-Docker-Dev
Environment Variables.

file.

Target MediaWiki-Vagrant
Environment Variables.

file.