Promoting test variables
You can promote a variable to map it to an environment value or to a secret that protects sensitive data through security groups. You can use the promote option when the value of a variable must be managed centrally across environments. When you promote a variable and mark it as a secret, the value is automatically masked in security group and reports.
Before you begin
- Ensured that you are assigned a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
- Read and understood the information in Edit branch overview and Create or select an Edit branch.
- Read and understood the information in Test variables.
- Ensured that your project contains a Web UI test and opened the test in Test Editor. See Editing a Web UI test.
About this task
When you promote a variable, the following changes occur based on its type:
| If variable type is.. | Then.. |
|---|---|
| Value |
|
| Secret |
|
Procedure
-
Click the
button displayed on the Test
Editor page.
The Edit button appears only when no active edit branch is selected.
Alternatively, right-click the test in the test navigator panel and select Edit.
The Edit branch dialog is displayed.If the Edit branch dialog is not displayed, then go to step 3. - Select an existing branch or create a new branch.
-
Click the Configure settings and data step in Test
Editor.
The Configure settings and data pane is displayed.
-
Click the Promote variable to environment icon
, and then perform the following steps in the Promote Variable
<variable_name> dialog:
- Close the step details pane.
-
Click the Save icon
to save the modifications.