Thursday, December 26, 2019

What is a test case? What fields does a typical test case consist of?

Test case

What is a test case? This is the smallest part of the test documentation, this is a situation that verifies a particular condition from the requirements. One condition can be checked by several Test Cases (positive and negative).

Key Case Test fields:

  • ID
  • Summary
  • Steps
  • Expected Result
  • Pass / fail
Additional fields are possible for comments, links to the Bug report, Preconditions that we must fulfill before reproducing in Steps.

To know more about: software testing services

More details about the fields of the test case:

ID
The case number is written in this field or the number along with some abbreviation for the example “PD_Sync_123”

is used to uniquely identify the test case among other cases.

Summary
A short description of the problem is written here. Sammari should contain an answer to the question of what happened and under what conditions it does not work correctly.

Steps
Here are the steps to unleash a bug. Steps are recommended to be minimized as much as possible, that is, to find the shortest way to reproduce the bug and describe in steps, and it is very important that they remain as clear as possible for developers.

Expected Result
In this field we describe the expected result after walking on the steps or perhaps after specific steps, which is less common.

Pass / fail
The field is used to affix a status to each test case. If the expected result matches the real one, then put pass, otherwise set fail. There may still be several statuses depending on the processes and rules in the IT company

Case Test Example


A simple visual example of checking the successful login to the Administrator system, provided that its username and password = 'Login' and '12345'.

You can write the following Test Case:



IDSummaryStepsExpected ResultPass / fail
1Administrator Log in (Positive)1. Open the login page
2. Type 'Login' in the Name field
3. Type '12345' in the Password field
4. Submit
Administrator should be logged in successfully(The field remains empty until the test case is completed)

No comments:

Post a Comment