Creating a secret in a classification
Before you begin
You must have completed the following tasks:
- Created a project on Test Hub.
- Created a classification. See Creating a classification.
- You must be a member with access to the secrets in the classification. See Granting access to members or member roles.
About this task
You can also configure secrets such that the secrets can be used across different test environments by members with access to the classification. Secrets correspond to the environment variables or tags that you create in a Test Integrations and APIs project specific to an environment.
Procedure
-
Log in to Test Hub.
The Projects page of the initial team space is displayed.
-
Click
to open the project that contains the test assets.
The Overview page of the project is displayed.
-
Click
.The Security page is displayed.
- Click a classification for which you want to add the secrets under the Classification.
-
Click Add Secret.
The Add Secret dialog is displayed.
-
Enter a name for the secret as its Identifier, and then
enter the password as the Value for
the secret.
For example, enter the name of the secret to access a database as dbcred and enter the password required to access the database as its value.
-
Click Create.
A message is displayed that confirms the creation of the secret.
Results
You have created secrets in the selected classification for your project.
What to do next
- You can view, edit, or delete the secrets added to a classification any time you want.
- You can use the secrets in the tests that require these secrets during test runs.