Read the browser name from a pipeline variable
Learn how to create the BROWSER environment variable for the tests using a pipeline variable.
We'll cover the following...
It is not efficient to have the browser name hard-coded in the pipeline YAML code as follows:
Press + to interact
- task: Bash@3inputs:targetType: 'inline'script: 'export BROWSER=chrome'
Hard-coding the value in the YAML code means that we will have to change the code when we decide to run the tests on a different browser such as Firefox or Edge.
Instead, we should create a pipeline variable and use its value for the ...