How to Write Test Cases in Jira (2024)

When you’re building complex web applications, QA testing can turn into a nightmare.

There are so many flows and components to test — login flows, sign-up flow, payment flow, invite flow... and a million more.

That’s why test cases are a QA testers’ secret weapon to align your team and make sure everything works as expected.

A good practice is to create a template for each test case.

Here is an example of a test case for a Google login flow created in a spreadsheet:

How to Write Test Cases in Jira (1)

But using a spreadsheet is just not scalable, especially when your entire team runs on Jira.

The problem with Jira is that at its core, it’s “just” a bug & issue tracking tool. It wasn’t built for case testing, and trying to find a workaround for it is a massive pain.

But we have a solution for you!

In this post, we’ll show you:

  1. How to setup Jira for case testing;
  2. How to write test cases in Jira using custom issue types;
  3. How to run your test cases when testing your applications.

Let’s dive right in.

1. Set up Jira for case testing

Since Jira does not have a test case feature built-in, we will use the issue type feature as a workaround.

Jira’s customization options are endless. All you need to do is create a new custom issue type specifically configured for case testing.

You’ll also need to set up custom subtasks — so reporters can submit results of test cases straight in Jira, too.

Here’s a visual representation of what we’re trying to put together:

How to Write Test Cases in Jira (2)

For test cases, we recommend creating a “Test Case” issue type with at least the following fields:

  • Summary
  • Test Case Steps
  • Test Case Expected Results

Creating a custom issue in Jira is a simple, 9-steps process:

  1. Inside Jira go to global Settings > Issues (you’ll need admin access for this).
  2. Click Add Issue Type and create a new issue type (eg: Test Case).
  3. Go to Issue type schemes settings, find your Jira classic project and click Edit.
  4. Drag your new Issue type into your project’s current scheme.
  5. Next, go to Screen settings > Add Screen.
  6. Pick the fields you want in this Issue type, (e.g. Summary, Test Case Steps, Test Case Expected Results). Keep it simple.
  7. Go to Screen Schemes > Add Screen Scheme, create a new Screen scheme (e.g. Test Case screen scheme). Link it to your custom Screen (e.g. Test Case Screen).
  8. Go to Issue type screen schemes. Find the Jira Classic project you are looking to use your new Issue type with. Then, click Associate an issue type with a screen scheme, select your new issue type (e.g. Test Case) and its Screen scheme, then click Add.
  9. Congratulations! You created a new custom Jira issue type with only selected fields, scoped to a specific Jira project.

Now, let’s set up a custom “Test Case Results” subtask where testers will fill in their reports.

How to Write Test Cases in Jira (3)

Here’s how you create a custom subtask in Jira:

  1. In the Jira admin go to Issues > Add Issue Type. This time pick Sub-Task Issue Type.
  2. Then, go to Screens > Add Screen. Pick the fields for our Test Case Results subtask.
  3. Head over to Screen schemes > Add Screen Scheme, create a new scheme and pick Test Case Screen as default.
  4. In Issue type screen schemes, do not create a new screen scheme. Find the test case screen scheme we set up earlier. Then, click Configure under Actions, and Associate an issue type with a screen scheme.

If you’re new to Jira, all of this might be a little overwhelming.

We’ve got your back — check out our step-by-step guide on how to create custom issue types in Jira.

2. Create test cases in Jira

Once your project is properly set up, creating test cases is the same as opening a new issue.

Head over to your Jira project, click “Create”, pick the “Test Case” issue type you’ve just created, and start writing.

A good practice is to create one issue per test case.

Good test case instructions should include:

1) Detailed steps. What steps you’d like your tester/reviewer/end-user to take as they navigate through your site or web app.

2) Expected results. Even if your reviewer says everything went well — you want to make sure they landed on the proper page or experienced your app how you wanted to.

It really is this easy:

How to Write Test Cases in Jira (4)

3. Report on test cases in Jira

On the other side of the equation — the reporter — the process is just as simple.

You’ve got two choices here:

  1. The old school, manual route. Write your reports directly in Jira. Include screenshots, screen recordings, annotations, environment info, and anything else the developer needs.
  2. Report from a third-party app. Streamline as much of the process as possible, and capture the “boring” stuff automatically.

Option 1: Manual reporting

Find the test case, hit “Create subtask”, and choose “Test Case Results”:

How to Write Test Cases in Jira (5)

Every subtask you create this way will be linked to the main task, A.K.A. test case. This makes it very easy for the developer to trace back to the main issue.

Remember to include screenshots, as well as any relevant technical information. This will make it easy for anyone to reproduce any bugs you find during testing.

This process, unfortunately, is still very slow.

  • You have to switch back and forth between your app and Jira.
  • You have to manually record technical environment like URL, OS, console logs.
  • You have to use a third-party screenshot tool to capture and annotate your screenshots.

Just look at how many steps you have to take to report just one bug:

  1. Find the bug.
  2. Open screenshot tool, capture bug.
  3. Open software to annotate screenshots and add comments.
  4. Log into Jira.
  5. Create a new issue.
  6. Document the bug.
  7. Add technical information.
  8. Attach screenshot.
  9. ...do we really need to go on?

Jira simply wasn’t built for this.

But don’t worry: there is a better way.

Option 2: Third-party app reporting

Our recommendation: use a bug reporting tool that seamlessly integrates with Jira — and use it for case testing.

This brings us to our next option.

How many times have you had to double check on a test case to figure out:

  • Environment information;
  • Console logs;
  • Steps taken by reporter;
  • ...and more?

Every time your developer needs to get in touch with the reporter for “clarification”, you waste valuable time.

That’s why we built Marker.io.

With the Jira configuration detailed above, reporting on test cases with our tool turns into a simple 3-steps process:

  1. Go to the URL that needs to be tested and click on “Report a bug”.
  2. Input details of your report.
  3. Click on “Create issue” — done!

How to Write Test Cases in Jira (6)

When we zoom-in on the widget form, you will find our “Test Case” issue type that we created earlier.

This works thanks to Marker.io’s 2-way synchronization with Jira.

How to Write Test Cases in Jira (7)

And on the developer end, in Jira:

How to Write Test Cases in Jira (8)

1 - Reporter name

2 - Technical info (URL, console logs...)

3 - Environment

4 - Test case results

5 - Screenshot attachment

All in one place.

Are you ready to take your case testing & bug reporting in Jira to the next level?

Check out how Marker.io integrates seamlessly with Jira.

Wrapping up...

So there you have it: our step-by-step guide on how to write test cases in Jira.

As a reminder, a good test case report should:

  • Be comprehensive: attach screenshots, annotations & comments;
  • Capture as much info as possible: use third-party tools or include recording & environment info in report;
  • Be traceable: ensure every test case is directly linked to an issue.

We hope this post helps you organize and run test cases efficiently for your next project!

How to Write Test Cases in Jira (2024)

FAQs

How do you write test cases efficiently? ›

In this article, you will learn how to write efficient test cases from software requirements using six steps.
  1. 1 Define the scope. ...
  2. 2 Design the test cases. ...
  3. 3 Optimize the test cases. ...
  4. 4 Review the test cases. ...
  5. 5 Execute the test cases. ...
  6. 6 Update the test cases. ...
  7. 7 Here's what else to consider.
Aug 24, 2023

How do I pass all test cases in Jira? ›

To bulk update the Test Cases follow the steps below:
  1. Go to the execution screen of a Test Cycle.
  2. Select the Test Cases you want to bulk update.
  3. Click on the Bulk Operations > Update > Select Execution result you want to assign the Test Cases.
Oct 16, 2023

How do you write a test case in Jira example? ›

2. An example test case in Jira
  1. Click create a button on the main page.
  2. Select a project.
  3. Select test option from issue type.
  4. Enter the summary, description, assignee, priority, environment under the general tab.
  5. Then enter the test details like test type, test steps.
Sep 15, 2023

How can I improve my test case writing skills? ›

5 Best Practices for Writing Manual Test Cases
  1. Keep it simple and consistent. It's not only about what you write; it's also about how you write it. ...
  2. Start with a good test scenario. ...
  3. Only be as specific as needed. ...
  4. But know when to be precise. ...
  5. Encourage exploration.

How many test cases can you write in a day? ›

Therefore, you may focus on high-priority/high-risk areas first. Additionally, it may be more efficient to batch similar test cases together. Some forum users claim you can write 20-30 daily for normal test cases. For medium test cases, 10-15 per day, while for complex test cases, you can write 4-7 per day.

How do I get more than 50 results in Jira? ›

By default, the Jira Issue Search REST API returns a maximum of 50 items per response. If you want to retrieve more items, you can use the maxResults parameter to increase the limit.

Is Jira used for writing test cases? ›

Jira is a popular Test Management tool, here are some of the benefits of using Jira for Test Case Management: Agile Work management: Agile teams can work with Jira using Scrum or Kanban board. A scrum team can easily break down huge and complex projects into small and manageable tasks called Sprints.

Can we use Jira for test cases? ›

Jira test case management is possible, though not ideal. But there are some hacks you can use to make Jira work for managing test cases — creating a "test case" issue, tweaking a user story to be a test case, and adding a testing status to your workflow.

How do you write a test case scenario? ›

How to write test cases: A step-by-step guide
  1. Define the area you want to cover from the test scenario.
  2. Ensure the test case is easy for testers to understand and execute.
  3. Understand and apply relevant test designs.
  4. Use a unique test case ID.
  5. Use the requirements traceability matrix in testing for visibility.
Mar 29, 2024

How do I write a good bug in Jira? ›

Provide a clear and concise title: Use a descriptive title summarizing the issue in a few words, making it easy for others to understand and search for. Include detailed steps to reproduce: Write down the exact steps to reproduce the bug, including any configurations or inputs needed.

How are test cases written in Agile? ›

Test Cases for Agile Development
  • Understand the User Story. ...
  • Break Down User Story into Smaller Parts. ...
  • Define Test Scope and Coverage. ...
  • Write Test Cases with Clear Objectives. ...
  • Include All Possible Scenarios. ...
  • Use Test Data Effectively. ...
  • Automate Tests Where Possible. ...
  • Collaborate with the Development Team.
Mar 27, 2023

How do you write test cases faster? ›

What are some tools or techniques that help you write test cases faster and easier?
  1. Use templates and standards.
  2. Use test case management tools.
  3. Use test design techniques. Be the first to add your personal experience.
  4. Use test automation tools. ...
  5. Use code review tools. ...
  6. Use online resources. ...
  7. Here's what else to consider.
Mar 29, 2023

How do you write a simple test case example? ›

How to write test cases with examples
  1. Create the test case description. ...
  2. Add necessary test data. ...
  3. Activate test steps. ...
  4. Check and document results. ...
  5. Add pre-conditions and post-conditions. ...
  6. Use simple test language. ...
  7. Test programming for end-user goals. ...
  8. Repeat tests infrequently.
Oct 23, 2023

What makes a test case a good test case? ›

Doesn't do unnecessary things; Explicited pre-conditions; Defined test data input; Clear, concise, and complete (no assumptions in Test Case description, steps, expected result etc.);

What is a successful test case? ›

Defect Identification: Effective test cases uncover defects and inconsistencies in the software, allowing developers to address issues before the software reaches the end users. Clarity: Clear and concise test cases make it easier for testers to understand the test scenarios, expected outcomes, and steps to execute.

Top Articles
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6095

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.