Setting Login Credentials
Testpilot uses environment variables to securely manage your login credentials:Configuring Custom Environment Variables For Login
Alternatively, you can also use custom env-vars of your own choosing by specifying them in the pilot file:Configuring Login URL
To tell Testpilot where to log in, add alogin.url field to your pilot file:
login.url parameter tells Testpilot where to perform the authentication before running your
tests.
How Authentication Works For Websites
When you provide both a login URL and credentials, Testpilot will:- Launch a browser session
- Navigate to the login URL
- Automatically detect and fill in username and password fields
- Submit the login form
- Verify successful authentication
- Reuse this authenticated session for all your test cases
Example: Testing Authenticated Features in a Website
Here’s a complete example of testing features that require authentication:Example: Testing Login Flow for a mobile app
For mobile apps, the login steps have to be more explicitly specified and tested, notably as done in step 2 below.TESTPILOT_PASSWORD) then you are
encouraged to specify the top-level login.password field as well. This helps Testpilot handle the
password string literal more securely.