Mabl now supports using credentials for API tests! With this functionality, you can:
- Use the same set of credentials for browser and API tests in the same plan.
- Leverage cloud credentials to run API tests in environments that access sensitive data.
How it works
When creating or editing an API test, in addition to selecting a URL, you now have the option to select credentials for your editing session.
Selecting a URL and credentials when editing an API test
The values for the api.url
, api.credentials.username
, and api.credentials.password
variables are set according to your choices.
Using credentials in the API Test Editor
When you run an API test, the api.credentials.username
and api.credentials.password
variables are set with values corresponding to the chosen credentials.
API tests support both basic and cloud credentials. Similar to browser tests, the password field of cloud credentials is only accessible in cloud runs, and the value of the api.credentials.password
variable is masked on any test output.
Credential password masked on test output
You can use the following links to learn more about mabl credentials or API testing with mabl.