How to set secure test data
If you want to pass sensitive test data like passwords to the test runner, use DATASETs to setup secret test data instead of writing it into your test script.
Secret test data will only be known to you, and will be masked in the test reports.
Here's an example, using this test to sign up for GitHub:
Use DATA. variables for the access credentials which we want to replace using the datasets
Click on "Add Dataset" in the Run toolbar

Set the values for your DATA. variables in the Dataset. Remember to change the password data from Public to Secret. Save the dataset when you are done.

Finally, select the dataset and run your tests.

As you can see in the report, the access credentials have been taken from the "Bruce Wayne" dataset, and the value of password has been masked because it is a secret test data.
Secret test data will only be known to you, and will be masked in the test reports.
Here's an example, using this test to sign up for GitHub:
Use DATA. variables for the access credentials which we want to replace using the datasets
I.goTo("https://github.com")
I.click("Sign up")
I.see("Join GitHub")
I.fill("Username", DATA.username) // to be replaced with dataset
I.fill("Email", DATA.email) // to be replaced with dataset
I.fill("Password", DATA.password) // to be replaced with dataset
I.click("Create an account")
Click on "Add Dataset" in the Run toolbar

Set the values for your DATA. variables in the Dataset. Remember to change the password data from Public to Secret. Save the dataset when you are done.

Finally, select the dataset and run your tests.

As you can see in the report, the access credentials have been taken from the "Bruce Wayne" dataset, and the value of password has been masked because it is a secret test data.
Updated on: 19/09/2023
Thank you!