How to write great test cases
Before we fully jump into the instructions for writing great test cases, let’s have a look first at those test cases that would be considered poor or not that useful. It takes skills and experience to create great test cases. The tester has to have logical thinking, really understand the game being tested, and also can write in an understandable manner. With experience, testers learn which types of test cases are more likely to find bugs and what type of language works the best. Let’s have a look at an example of a poor test case.
Figure 6.4 – An example of a poorly written test case
In the preceding figure, we can see a test case that is less than optimal. Let’s analyze what is wrong with it. Firstly, this test case has no identifier. If we want to link to it, quote it, or re-use it, it would be quite difficult. Secondly, there are no preconditions mentioned. When we look at the test steps, we...