Authentication should be configured as an individual test, containing just the login steps. Record it like a regular test. It is best practice to use an incognito window, to ensure that there are no previous logins active and the inputs are not pre-completed with data from the browser’s “remember me” functionality”.
Run it at least once to make sure it doesn’t fail. When creating test suites, set that authentication test separately as a pre-hook. It will run before each test, providing authentication for the following steps.
If you need to test with multiple accounts, simply create more authentication tests and choose the proper one for each new test suite down the line.
Powered by BetterDocs
Trudon is proudly powered by WordPress
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.