In today’s «QA tips for newbies» rubric, we’re going to talk about how to compose test cases correctly.
Test Case – is a set of steps, specific conditions and parameters which are necessary for the verification of tested functionality of its part.
Preconditions – is a list of necessary preparatory actions (application settings, testing environment settings) for execution on the current test case.
Preconditions contain important information/acts which are needed for the prior preparation of the operating system, application, mobile device, browser etc. Preparation of these conditions should always come before test cases execution. Without meeting the requirements, mentioned in preconditions, the test case either will not be passed or the results will not be correct.
Preconditions can consist of one or several sentences. There are no certain restrictions of sentences count in preconditions but it’s preferable to limit its size by several lines. Same as steps, preconditions should contain minimum requirement (but sufficient) information amount.
Also, preconditions can be designed as steps if it’s justified by a specific situation (e.g. its necessary for correct preparation).
Preconditions are not a required test case attribute. They can be left unfilled if they are unnecessary. But, during passing our courses preconditions are necessary for any test case.