Last updated: Jan 03, 2021 18:24
The Perfecto security token system works properly with installations that support an external Identification Provider (IDP).
This section describes how to generate a token through the Perfecto UI and use it in your automation scripts. You can also generate a token via a public API.
To use the generated token in API calls, you need to include it in the header. For details, see Smart Reporting Public API > Headers.
Step 1 | Generate a security token
Perfecto generates the security token based on your personal Perfecto Lab credentials. If you use multiple Perfecto Labs, you need to generate a separate security token for each Perfecto Lab instance.
To generate a security token: Click Copy to clipboard. Then paste it into any scripts that you want to run with Perfecto.
To generate a security token:
Click Copy to clipboard. Then paste it into any scripts that you want to run with Perfecto.
Step 2 | Use the security token in automation scripts
For validation, automation scripts should use the tester's security token instead of the username and password. Whenever you generate a new token, you need to update it in all of your automation scripts.
You add the Perfecto security token to a Selenium/Appium automation script by using the Perfecto supported securityToken capability. This should replace the use of the user and password capabilities. For example:
Also in this section: