Test cases and test suites


Test case – it is the minimum element testing. A good test case consists of three parts:

  • Bring the test product in the right state
  • Verify that the subject of testing
  • Bring the product to its original state

It is essential that the act of verification is only one. That is why the test case can not be crushed, divided into several test cases. That is why it is a minimal element of verification. If the verification is more than one, this is not a test case, and its fabrication.

The first and third components of the test case study is also very important. They do a different test cases are independent of each other. They can be performed in either order. This is extremely important for test automation. But for manual testing is also important. Because of the test cases are test suites – a group of related test cases. Association in a group test suites creates a new test suite. That is, the test suite consists of either test cases or test suites from.

Consider the example of a typical error when writing test cases. Open Notepad. There, under the Search menu is a menu item called Find. Find selection leads to a dialog box with the same name. If the Find what box, there is no text, the Find Next button is disabled (it is in the disabled), which reflects its color. When inscribing at least one letter in the Find what button Find Next unlocked and its color changes.

We have to verify two facts:

  1. In the absence of the text button is disabled
  2. If you have text button can be used

Tester will do two verification. Therefore, test cases should be two. Here’s a test case, written by an inexperienced tester:

  1. Launch Notepad, if it is not running
  2. Open the dialog box Find
  3. Delete the text from the Find what if there is one
  4. Make sure that the button Find Next blocked
  5. Fill in one letter in the Find what
  6. Make sure that the Find Next button is unlocked
  7. Close Window Find dialog

In this example we have two elements of the verification in a single "test case". Now, as this is an example of an experienced tester will be processed:

Case 1 – Locking the buttons

  1. Launch Notepad, if it is not running
  2. Open the dialog box Find
  3. Delete the text from the Find what if there is one
  4. Make sure that the button Find Next blocked
  5. Close Window Find dialog

Case 2 – Unlock button

  1. Launch Notepad, if it is not running
  2. Open the dialog box Find
  3. Fill in the text in the Find what if it does not
  4. Make sure that the Find Next button is not locked
  5. Close Window Find dialog

Test cases are an experienced tester can be reordered, that is performed in any order.

See Also

    Advertising

    Archives