Sensitive information can be saved in Subject7 to be used in test cases without revealing any of this information to anyone.
- Navigate to Repository > Data Templates and click Add >Template
- Add a name for the data template
- Give the template at least one field (let's say "value" in this case) and click the radio button next to Password
- Click Save
- Click the View Datasets icon highlighted below
- Fill in a Dataset Name
- Provide the value
- Click Save
- Check the box next to the row of the Dataset value
- With the box checked, select the Lock icon to lock the dataset from changes (Optional)
- With the box checked (from step 9), select the shield with an X to "Restrict dataset usage". This will allow only the owner user to use the dataset in a test case
- This is not necessary for encryption, it's an additional functionality the tool has that may be useful in certain situations
- Save & Close the datasets
- Save & Close the data template
- Create a test case (Flows > Tests and then Add Folder, Suite, Automated Test Case). Name the test case.
- Create a step with command Write
- In the message field click into the input and then select the Inject Template icon (syringe)
- Choose your data template (from step 1a)
- Choose the field (from step 1b, "value" in this case)
- Click Inject
Comments
Please sign in to leave a comment.