Fundamentals of writing a good test case.

Jash Unadkat
2 min readFeb 25, 2020

--

It doesn’t matter how well-designed a certain software is, it needs to go through multiple layers of testing before release. Every tester or QA has to write multiple test cases in every project they work in.

Writing good test cases is of utmost importance. This article examines the characteristics of a good test case.

  • Stand in the customer’s shoes

Customers often call support staff to complain that a certain application feature is performing below expectations. Testers must relate to customers, anticipate their needs and create test cases accordingly. Test cases should be able to test features in line with how customers use them.

  • Understand user personas

A user persona is a fictional profile of an end-user of a certain website or application. User personas help testers understand the user’s scope. Then, they can design test cases that ensure that an app’s features are working to provide what the user needs.

  • Aim For 100% Test Coverage

Each test case must aim to cover as many features, user scenarios and as much of the workflow as possible. Plan test cases to cover each component, feature, and function outlined in the software requirements specification document.

  • Use a good Test Case Management Tool

Test case management tools are necessary for managing a stable release cycle. They help to offer transparency so that everyone knows who is working on what. They can track deadlines, and much more. Creating good test cases include using these tools actively and efficiently.

  • Use automation

Constant changes and updates in features mean that you have to keep running regression tests to ensure that no code change breaks the original, functional codebase. Using automation test frameworks like Selenium is the best way to execute such tests involving repetitive actions. Automated Selenium testing results in increased productivity and bandwidth for the software tester, who can focus on writing effective test cases instead of going through the same motions each day.

--

--

Jash Unadkat
Jash Unadkat

Written by Jash Unadkat

As a tech geek, I love writing articles about everything related to web development or software testing space.

No responses yet