How to write good test cases?

Test design technique

Follow a test design technique best suited for your organization or project-specific needs like – boundary value analysis, equivalence class partitioning, etc. This ensures that well-researched standards and practices are implemented during test case creation.

ArtOfTesting

How to write good test cases?

Clear and concise tests

The test case summary, description, test steps, expected results, etc should be written in a clear and concise way. These should be easily understandable by the different stakeholders in testing.

ArtOfTesting

How to write good test cases?

Uniform nomenclature

While writing test cases do not assume any functionality, pre-requisite, or state of the application. Instead, map the test cases to the required documents like – SRS, Use-case documents, etc.

ArtOfTesting

How to write good test cases?

No Assumptions

In order to maintain consistency across the different test cases, we should follow a uniform nomenclature and set of standards, while writing the test cases.

ArtOfTesting

How to write good test cases?

Avoid redundancy

Don’t repeat the test cases, this leads to wastage of both time and resources. This can be achieved by well planned and categorized test cases.

ArtOfTesting

How to write good test cases?

Traceable tests

Use a traceability matrix to ensure that 100% of the application’s feature in the scope of testing is covered in the test cases.

ArtOfTesting

How to write good test cases?

Test data

The test data used in testing should be as diverse and as close to real-time usage as possible. Having diverse test data can more reliable test cases.