Create the BROWSER environment variable
Learn how to create the BROWSER environment variable for the tests using a bash task.
We'll cover the following...
We'll cover the following...
Our pipeline only cleans the artifacts and compiles the code for now.
To run the tests, we need to provide the browser name as an environment variable so the driver can be created in the setUp() method of the test class:
Add the environment variable
The environment variable is added to the pipeline code with a Bash task:
Lines 8–11 create the Bash task
that sets the BROWSER environment variable with the chrome ...