Add Shared Variables to a Library
Learn how to share the variables using a library instead of adding them in each pipeline.
We'll cover the following
It is possible that several pipelines share variables such as browser name, test plan id, test suite id, and API key. Instead of creating these variables in each pipeline, we can add them to a library.
Create variables in the library
-
Hover over the Pipelines option of the left menu.
-
Click on the Library option of the Pipelines menu.
-
On the Library page, click the Variable Group button.
-
Use
GlobalVariables
as the name for the new variable group. -
Create the
BROWSER
variable with thechrome
value by clicking the Add button. -
Save the changes done to the new variable group.
You can review the snapshots for these steps below:
Get hands-on with 1400+ tech skills courses.