Hello!
Maybe these are dumb questions but i always struggle with this:
1) If i have 10 tests with the same precondition (login for example), is it better to create a precondition with login steps or recalling a test with the login steps? Or both?
2) I have to run a test but, before running it, i have to login and setup the environment. In the test, should i insert 2 preconditions? one for login and one for environment setup, or just one precondition named "environment setup" with login steps and setup steps all in one precondition?
Thank you in advice for the answers!
Hi @Vittorio Cortosi ,
preconditions are not the same thing as tests. They're meant to be preconditions as such: ensure that certain conditions are in place before you can actually start executing the tests.
1) You can have 1 precondition assigned with all those Tests; however, that precondition would be something like "Standard user logged in". the goal of preconditions is not to check something.. it's to ensure.
called tests are meant whenever you have several steps where you actually perform actions and expect certan results.. they are not the same thing as preconditions.
b) you may have several preconditions. depending on your use case, you can have just one precondition where you setup an environment with certain test data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.