mabl has the ability to log into many applications automatically, given that all you need to login are a username and password. This guide explains how to use auto-login flows in browser tests and identifies limitations of using the auto-login flow.
Adding an auto-login flow
New browser tests
You can add an auto-login flow while creating a new browser test.
- Use an application URL that has a login link. If there is no login link present on the application URL, the auto-login flow fails.
- In the new browser test form, expand Optional configurations.
- Check "Use auto-login flow."
- If the test is not associated with a plan, select or add a set of credentials to use for the auto-login flow. Tests associated with a plan use credentials stored at the plan level.
When you click on the Create test button, the mabl Trainer launches and shows the auto-login flow highlighted in gold: Start flow "mabl Auto Login Flow"
To an existing browser test
You can add in an auto-login flow to an existing browser test in the mabl Trainer or quick-edit mode by taking the following steps:
- Click on the plus icon to add a step
- In the add step menu, click on Flows.
- Type "mabl Auto Login Flow" in the search input.
- Select "mabl Auto Login Flow."
- Click on the Import flow button. The auto-login flow will appear as a new step in the test.
Training in tests with auto-login flows
Replay of the auto-login flow in the mabl Trainer is not supported. While training, you should manually log into your app. Make sure that the record button is off while you log into the app so that you don't accidentally record login steps in addition to the auto-login flow.
Reviewing auto-login flows
In the test details and test output pages, auto-login flows appear with a different name: "Uses supplied credentials to log into site."
Limitations
Auto-login flow does not work in the following situations:
- The application requires more than a username and password to log in.
- The login page isn't in English. To automate logins in different languages, create a custom login flow.
- The attributes for the username and password fields are not descriptive enough for mabl to recognize as username and password fields.
Auto-login flows can only use mabl credentials, which have the following limitations:
- mabl credentials are not environment-specific.
- Tests that run in the same plan can only use one set of mabl credentials.