DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Testing, Tools, and Frameworks
  4. 5 Manual Test Case Writing Hacks

5 Manual Test Case Writing Hacks

To be considered a “great software tester”, you have to have an eye for detail. But you can’t be truly great unless you can effectively write test cases.

Kyle McMeekin user avatar by
Kyle McMeekin
·
Apr. 13, 16 · Opinion
Like (6)
Save
Tweet
Share
4.54K Views

Join the DZone community and get the full member experience.

Join For Free

To be considered a “great software tester”, you have to have an eye for detail. But you can’t be truly great unless you can effectively write test cases. Writing test cases is a task that requires both talent and experience.

The purpose of writing test cases is to define the “how” and “what”.  For some testers this is considered as the boring work, but if done well, test cases will become highly valuable, improve the productivity of the entire team and help your company create higher quality software.In this blog, we’ll will share some hacks on how to write effective test cases.  First, lets review some basic test case definitions and the fields to use when creating test cases.

What Is a Test Case?

Wikipedia gives the following definition of a “test case”: A test case, in software engineering, is a set of conditions under which a tester will determine whether an application, software system or one of its features is working as it was originally established for it to do.

What Fields Need to be Included in a Test Case?

  • Test Case ID: Unique Test Case Identification Number.
  • Purpose: A short sentence about what is being tested.
  • Prerequisite: Conditions that must be met before the test case can be run. For example, the user must be logged in.
  • Test Data: List of variables and possible values used in the test case. Examples: loginID = {Valid loginID, invalid loginID, valid email, invalid email, empty} password = {valid, invalid, empty}
  • Test Steps: Detailed steps for test case execution.
  • Expected Results: How the application should perform after executing the above testing steps.
  • Actual Results: How application actually behaved after executing the above testing steps.
  • Result: Does the test “Pass” or “Fail”.
  • Comments: This is where the tester can add additional helpful information like screenshots and descriptions to provide the developers with the information they will need to correct any defects found.

Note: This is a standard test case format. Specific fields may vary from company-to-company.

5 Helpful Hacks to Write Better Test Cases

As testing professionals, we work hard to thoroughly test applications and identify defects.   And it can be very frustrating when the reviewer rejects our test cases. So, here are some helpful hacks that can help you write better test cases that will lead to higher quality software for your company.

  • Keep it simple: No one is going to accept a test case that is overly complex and can’t easily be understood. Test cases have to be written in simple language using the company’s template.
  • Make it reusable:  When creating new test cases, you need to remember that the test cases will be reused so you need to get it right. The same test case might be reused in another scenario or a test step could be reused in another test case.
  • Be your own critic: After documenting all the test cases for a scenario, review them from a a tester point-of-view, not as a test case writer. Think about if these test cases are good enough to thoroughly cover the scenario. Are they easy to understand? Will they be easy to execute and reuse?

  • Think about the end user: When writing test scenarios you should always keep the end user top of mind. If the software provides a bad user experience, that’s bad for business. In many companies, the most valued testers are the ones who best understand the end user and provide the developers with feedback to improve the user experience.
  • Stay organized: Many companies manage test cases using spreadsheets. As the number of test cases grows, this can become extremely difficult and inefficient for the team.  Today, there are many software solutions that can help the testing team better organize and manage all the test cases in one place.  You can find a list of the top test case management tools here.
  • Testing Test case

    Published at DZone with permission of Kyle McMeekin. See the original article here.

    Opinions expressed by DZone contributors are their own.

    Popular on DZone

    • Stop Using Spring Profiles Per Environment
    • Introduction to Spring Cloud Kubernetes
    • Tracking Software Architecture Decisions
    • Building a Real-Time App With Spring Boot, Cassandra, Pulsar, React, and Hilla

    Comments

    Partner Resources

    X

    ABOUT US

    • About DZone
    • Send feedback
    • Careers
    • Sitemap

    ADVERTISE

    • Advertise with DZone

    CONTRIBUTE ON DZONE

    • Article Submission Guidelines
    • Become a Contributor
    • Visit the Writers' Zone

    LEGAL

    • Terms of Service
    • Privacy Policy

    CONTACT US

    • 600 Park Offices Drive
    • Suite 300
    • Durham, NC 27709
    • support@dzone.com
    • +1 (919) 678-0300

    Let's be friends: