Hi!
I am quite new to UI automation and I’m wondering if our current approach is getting isolation of a test at the expense of running time.
- Our web application requires login credentials (username and password) to access the app at a specific test company the user belongs to.
- We have test cases that perform and validate the most important user flows when logged in. The test cases work just fine.
- Each test case starts with logging in the application (same login steps are repeated, they are identical). The idea is that if the login would be a separate test, tests would need to be run in a specific order where the login test must be first and the browser must never be closed / and any test can’t run individually. Obviously if the login isn’t working, the end result would be the same = all tests failing anyway.
Question: what is the best practice for applications that need login credentials in TestProject or in general? should each case start with login or perhaps think of some other approach?
I appreciate all views and answers!