Jira Test Case Example: Step-by-Step Guide

Jira, an issue tracking product developed by Atlassian, is widely used for project management and issue tracking. When it comes to software testing, Jira offers robust features to manage test cases effectively. Let's explore how to create and manage test cases in Jira with a practical example.

How to Jira for designers
How to Jira for designers

Before diving into the test case creation process, ensure you have a well-structured project set up in Jira. This includes creating relevant schemes, workflows, and custom fields to accommodate your testing needs.

Jira Service Management 기능 Jira Service Management
Jira Service Management 기능 Jira Service Management

Creating a Test Case in Jira

Jira allows you to create test cases directly from user stories or bugs, or as standalone issues. For this example, let's create a test case from a user story.

Jira | Issue & Project Tracking Software
Jira | Issue & Project Tracking Software

First, navigate to the user story you want to test. Click on the 'Create' button in the sidebar and select 'Test Case'. Fill in the required details like summary, description, and any relevant labels or components. You can also link this test case to other issues using the 'Link' button.

Defining Test Steps

Software Development Templates | Jira Template Library | Atlassian
Software Development Templates | Jira Template Library | Atlassian

After creating the test case, you'll see a section for 'Test Steps'. This is where you'll outline the actions to be performed during testing. Each test step should be clear, concise, and follow a specific format: 'Given [precondition], When [action], Then [expected result]'.

For example, consider a user story about logging into a application. A test case for this could have the following test steps:

  • Given the user is on the login page, When the user enters valid credentials and clicks 'Login', Then the user should see the dashboard.
  • Given the user is on the login page, When the user enters invalid credentials and clicks 'Login', Then the user should see an error message.

Adding Test Executions

What is a work item? | Jira Cloud | Atlassian Support
What is a work item? | Jira Cloud | Atlassian Support

Once your test case is defined, you can add test executions to track the results of each test run. Click on the 'Add Test Execution' button to create a new test execution. Here, you can select the environment, the tester, and the build associated with this test run.

Each test step in the test case will be listed in the test execution. You can mark each step as passed, failed, or blocked, and add comments to explain the outcome. This helps in tracking the test results and identifying any issues that need to be addressed.

Managing Test Cases in Jira

JIRA Text Formatting Notation Cheat Sheet
JIRA Text Formatting Notation Cheat Sheet

Jira provides several ways to manage test cases, making it easier to track and organize your testing efforts.

You can use Jira's built-in features like filters, dashboards, and reports to create custom views of your test cases. For example, you can create a filter to show all test cases that are pending execution, or a dashboard gadget to display the pass/fail rate of your test executions.

How to Create Issue Templates for Jira?
How to Create Issue Templates for Jira?
JIRA Tutorial for Beginners
JIRA Tutorial for Beginners
Jira Cloud | How to see Jira issue history?
Jira Cloud | How to see Jira issue history?
Test Case Template | Templates at allbusinesstemplates.com
Test Case Template | Templates at allbusinesstemplates.com
Jira Software roadmaps | Atlassian
Jira Software roadmaps | Atlassian
AI Test Case Generator Pro - QA Prompt & Template Pack
AI Test Case Generator Pro - QA Prompt & Template Pack
The Beginner's Guide To Using Jira Effectively
The Beginner's Guide To Using Jira Effectively
Navigate to your work | Jira Cloud | Atlassian Support
Navigate to your work | Jira Cloud | Atlassian Support
Jira | Project Management for the AI Era
Jira | Project Management for the AI Era
Jira Server App for Microsoft Teams | Microsoft Community Hub
Jira Server App for Microsoft Teams | Microsoft Community Hub
How to Integrate JIRA with qTest: A Step by Step Guide
How to Integrate JIRA with qTest: A Step by Step Guide
Jira | Project Management for the AI Era
Jira | Project Management for the AI Era
How to create custom Jira workflows for managing software development - TechRepublic
How to create custom Jira workflows for managing software development - TechRepublic
a diagram that shows the different types of workflows and how to use them
a diagram that shows the different types of workflows and how to use them
Software Tester Resume Example Template & Writing Tips
Software Tester Resume Example Template & Writing Tips
Jira, X-Ray Test Management
Jira, X-Ray Test Management
Atlassian JIRA Tutorial for Beginners with JIRA Basics
Atlassian JIRA Tutorial for Beginners with JIRA Basics
Jira Software reports & dashboards | Atlassian
Jira Software reports & dashboards | Atlassian
an image of a web page with multiple settings
an image of a web page with multiple settings
Jira vs Zenhub: What are the main differences?
Jira vs Zenhub: What are the main differences?

Using Test Case Templates

If you find yourself creating similar test cases repeatedly, consider using test case templates. Templates allow you to predefine test steps, making it faster to create new test cases. To create a template, simply create a test case as usual, then click on the 'More' button and select 'Create Template'.

When you want to use a template, click on the 'Create' button in the sidebar, then select 'Test Case from Template'. Choose the template you want to use, and Jira will create a new test case with the predefined test steps.

Linking Test Cases to Other Issues

Jira allows you to link test cases to other issues, such as user stories, bugs, or tasks. This helps in tracking the relationship between different aspects of your project. For example, you can link a test case to the user story it's testing, or to a bug that it's meant to verify is fixed.

To link a test case to another issue, simply click on the 'Link' button in the sidebar, then select the issue type and enter the issue key. You can also use the 'Relates' context for linking issues that are related but not directly dependent on each other.

In the dynamic world of software development, it's crucial to have a flexible and efficient test management system. Jira's test case management features provide just that, allowing you to create, manage, and track test cases seamlessly. By following the practices outlined in this example, you can ensure that your testing efforts are well-organized and effective.

Related Articles

Test Case Template In Software Engineering Microsoft Excel Test Free Regression Testing With Example Test Case Management Tools Comparison Sample Test Case Document For Database Testing Test Case Review Meeting Agenda Azure Devops Test Cases Best Practices Manual Test Case Management Tool How To Write Manual Test Cases Microsoft Excel Test Online Free