Introduction

A TEST CASE is a documented set of preconditions (prerequisites), procedures (inputs / actions) and postconditions (expected results) which a tester uses to determine whether a system under test satisfies requirements or works correctly. A test case can have one or multiple test scripts and a collection of test cases is called a test suite.

<aside> 💡 ISTQB Definition. Test case: A set of preconditions, inputs, actions (where applicable), expected results and postconditions, developed based on test conditions.

</aside>

Test Scenario Vs Test Case

Test scenarios are rather vague and cover a wide range of possibilities. Testing is all about being very specific.

Examples.

For a Test Scenario: Check Login Functionality there many possible test cases are.

Test Case 1: Check results on entering valid User ID & Password Test Case 2: Check results on entering Invalid User ID & Password

Types of test cases

There are two types of test cases as mentioned below.

How to Write Test Cases

Test Case ID. This is a unique number of test cases in the test management system or in a document. As a general rule, all modern test management systems like Jira, TestRail, automatically assign the ID to the newly created test case.