airfocus-logoGlossary
About airfocus

Try for free

Test Case

Contents
  • What is a test case?
Join 15,000+ product leaders
Sign up for our newsletter & get the best product tips straight to your inbox

What is a test case?

Test case definition - A test case is a set of instructions for a software tester to follow. These steps are designed to catch various types of bugs in different situations. This means that as few bugs are overlooked as possible. Because of this, the quality of a developer's test cases largely determines the quality of the software. 

A collection of test cases, which are generally used together, are known as a test suite. Each test suite covers a comprehensive section of the software, doing its best to catch any bugs in that program area. 

Test cases can also be automated, meaning that they don't have to be a written set of instructions for a user to follow. A test case can also be a program that executes actions within a piece of software, throwing up errors whenever they're detected. 

abstract/prioritize emoji

Get our Agile: Best Practices and Methodologies eBook

This ebook offers an in-depth look into what Agile is, how it benefits product managers specifically, some popular Agile frameworks and the best practices.

Get the eBook

Test case examples

Functionality test cases

Functionality test cases are used to determine whether a specific function or feature is working as intended. 

It also uses tests to determine when and under what conditions the code will fail. This helps developers strengthen each feature in their code to always work as intended. 

UI test cases 

UI test cases are used to ensure a program's UI is functioning as expected. It centers around a website or app’s visual components, making sure they are clear, understandable, and functional. 

Because UIs are updated regularly, UI test cases are a repetitive and common practice in software development. While some test cases will only be run during early testing cycles, UI test cases may be run for years down the road. 

How to write test cases

  • The first step in writing a test case is determining which cases you want to test. You don’t need to write any code yet, just basic scenarios.

  • Next, the cases are adapted to match the flow from one step to the next within the app or website. 

  • From there, the developer will start to group scenarios in an order that makes sense, creating a test suite.

  • If possible or desired, the developer will automate the test cases so they can execute them instantly. Or they pass on the steps to a human tester. 

abstract/prioritize emoji

Get our Agile: Best Practices and Methodologies eBook

This ebook offers an in-depth look into what Agile is, how it benefits product managers specifically, some popular Agile frameworks and the best practices.

Get the eBook

General FAQ

What is a test case?
A test case is a series of steps designed to test a specific aspect of a piece of software. Test cases are used to spot bugs, points of confusion, and other issues.

Building better products
starts here

Join thousands of product managers and makers who already enjoy our newsletter. Get free tips and resources delivered directly to your inbox.
airfocus coin
Top rated
on major review platforms
g2 badge users love us
g2 badge leader summer
GetApp badge category leader
software advice badge
capterra shortlist badge
proddy badge roadmapping
crozdesk badge
Company
All rights reserved. contact@airfocus.com
ENDE