Chapter 2: Test Management with X-Ray and Zephyr in Jira


This chapter provides a comprehensive understanding of test management using the industry-standard tools X-Ray and Zephyr within Jira. It covers the setup, creation, and management of test cases, test sets, and test plans, along with practical labs and quizzes to reinforce learning.


Objective

By the end of this chapter, you will:

  • Understand the role of test management in organizing and tracking testing activities.
  • Learn how to set up and use X-Ray and Zephyr in Jira for effective test management.
  • Create, organize, and manage test cases, test sets, and test plans.
  • Link tests to requirements and track their execution status.

2.1 Introduction to Test Management

Before exploring the tools, let’s establish what test management is and why it matters.

  • Definition: Test management is the process of planning, organizing, and controlling testing activities to ensure they are efficient, effective, and aligned with project objectives.
  • Key Activities:
    • Test Planning: Defining the scope, approach, and resources for testing.
    • Test Case Management: Creating, storing, and organizing test cases.
    • Test Execution: Running tests and documenting outcomes.
    • Defect Tracking: Identifying, logging, and managing defects.
    • Reporting: Producing reports to communicate testing progress and results.

Effective test management ensures testing is systematic, traceable, and integrated with development efforts, ultimately improving software quality.


2.2 Overview of Jira, X-Ray, and Zephyr

To manage tests effectively, we leverage tools that integrate with project management systems. Jira is a widely-used platform for project management, and X-Ray and Zephyr are plugins that enhance Jira with robust test management capabilities.

  • Jira: A versatile tool for issue tracking, agile project management, and team collaboration.
  • X-Ray: A Jira plugin designed for test management, supporting both manual and automated testing with features like test case creation, execution tracking, and reporting.
  • Zephyr: Another Jira plugin for test management, known for its user-friendly interface and seamless integration with Jira workflows.

Both tools enable testers to:

  • Create and manage test cases.
  • Group tests into test sets and plans.
  • Link tests to requirements (e.g., user stories).
  • Monitor test execution and results.
  • Generate detailed progress reports.

In this course, we’ll explore both X-Ray and Zephyr (paid plugins), there is also QATouch and Kualitee (free plugins). Their concepts overlap significantly, so proficiency in one will ease your transition to the other.


2.3 Setting Up X-Ray and Zephyr in Jira

Before managing tests, you must configure these tools within your Jira environment.

2.3.1 Setting Up X-Ray in Jira

  • Installation: X-Ray is a paid plugin. Install it through Jira’s “Manage Apps” section after purchasing a license.
  • Configuration:
    1. Navigate to Project Settings > X-Ray.
    2. Enable X-Ray for your project.
    3. Define issue types for tests, test sets, and test plans.
    4. Customize workflows for test execution statuses (e.g., “Pass,” “Fail,” “Blocked”).

2.3.2 Setting Up Zephyr in Jira

  • Installation: Zephyr is also a paid plugin, installed via Jira’s “Manage Apps” section.
  • Configuration:
    1. Go to Project Settings > Zephyr.
    2. Activate Zephyr for your project.
    3. Set up issue types for test cases and test cycles.
    4. Adjust workflows to reflect test execution stages.

2.4 Creating and Managing Test Cases

Test cases are the building blocks of testing, specifying scenarios to validate software functionality.

2.4.1 Creating Test Cases in X-Ray

  • Steps:
    1. Open your Jira project.
    2. Select Tests > Create Test.
    3. Enter test case details:
      • Summary: A concise title (e.g., “Verify user login with valid credentials”).
      • Steps: Step-by-step instructions to perform the test.
      • Expected Result: The anticipated outcome if the software functions correctly.
    4. Save the test case.

2.4.2 Creating Test Cases in Zephyr

  • Steps:
    1. Access your Jira project.
    2. Click Tests > Create Test.
    3. Provide test case details:
      • Test Summary: A brief description.
      • Test Steps: Detailed steps with descriptions and expected results.
    4. Save the test case.

Best Practices:

  • Keep steps clear and concise for easy execution.
  • Assign a unique identifier to each test case.
  • Include preconditions (e.g., “User must be logged out”) to clarify setup needs.

2.5 Organizing Tests: Test Sets and Test Plans

Managing multiple test cases requires organization through test sets and test plans.

2.5.1 Test Sets

  • Definition: A test set groups related test cases for a specific purpose (e.g., all tests for login functionality).
  • Creating Test Sets:
    • In X-Ray: Go to Tests > Test Sets > Create Test Set, then add relevant test cases.
    • In Zephyr: Use Test Cycles to group tests for execution, associating the desired test cases.

2.5.2 Test Plans

  • Definition: A test plan defines the testing strategy and scope for a project or release, incorporating multiple test sets and a timeline.
  • Creating Test Plans:
    • In X-Ray: Navigate to Tests > Test Plans > Create Test Plan, link test sets, and specify the environment and schedule.
    • In Zephyr: Use Test Plans to outline the scope and assign test cycles.

Example:

  • Test Set: “Login Functionality Tests” (includes tests for valid login, invalid login, etc.).
  • Test Plan: “Release 1.0 Testing” (encompasses test sets for login, registration, and checkout).

2.6 Linking Tests to Requirements

Linking test cases to requirements ensures all project specifications are verified.

2.6.1 In X-Ray

  • Steps:
    1. Open a requirement (e.g., a user story in Jira).
    2. Access the X-Ray section.
    3. Link relevant test cases or test sets.

2.6.2 In Zephyr

  • Steps:
    1. Open a requirement.
    2. Use the Zephyr section to associate test cases.
    3. Select the appropriate test cases.

Benefits:

  • Traceability: Quickly identify which tests cover specific requirements.
  • Coverage: Confirm all requirements are tested.

2.7 Tracking Test Execution

After organizing tests, execute them and monitor their progress.

2.7.1 Executing Tests in X-Ray

  • Steps:
    1. Access the Test Plan or Test Set.
    2. Select a test case and click Execute.
    3. Perform the steps and record the result (e.g., “Pass,” “Fail,” “Blocked”).
    4. Log defects for failed tests.

2.7.2 Executing Tests in Zephyr

  • Steps:
    1. Go to the Test Cycle.
    2. Choose a test case and click Execute.
    3. Update the status for each step and the overall test.
    4. Create defects directly from the execution screen.

Tracking Progress:

  • Both tools offer dashboards and reports to visualize execution status (e.g., tests passed, failed, or pending).

2.8 Lab: Hands-On with X-Ray or Zephyr in Jira

Apply your knowledge in this practical lab.

Lab Objective

Set up a Jira project with X-Ray or Zephyr, create test cases, organize them into a test set and test plan, and link them to a requirement.

Lab Steps

  1. Set Up Jira Project:

    • Create a new Jira project or use an existing one.
    • Confirm X-Ray or Zephyr is enabled.
  2. Create Test Cases:

    • Develop 3-5 test cases (e.g., “Verify user login with valid credentials,” “Verify user login with invalid credentials,” “Verify password reset functionality”).
    • Include detailed steps and expected results.
  3. Organize Tests:

    • Create a test set called “Login Functionality Tests” and add the test cases.
    • Create a test plan named “Release 1.0 Testing” and include the test set.
  4. Link to Requirement:

    • Add a sample requirement (e.g., a user story: “As a user, I want to log in to access my account”).
    • Link the test cases or test set to this requirement.
  5. Execute Tests (Optional):

    • If time allows, execute one or two test cases and record the results.

Lab Deliverables

  • Submit screenshots or a brief report showing:
    • The created test cases.
    • The test set and test plan.
    • The linkage between tests and the requirement.

2.9 Quiz: Reinforcing Key Concepts

Test your understanding with this quiz:

  1. What is the primary purpose of test management?

    • a) To write code
    • b) To organize and control the testing process
    • c) To design user interfaces
    • d) To deploy software
  2. Which tool is used for test management in Jira?

    • a) Jenkins
    • b) X-Ray or Zephyr
    • c) Git
    • d) Docker
  3. What is a test set?

    • a) A single test case
    • b) A collection of test cases grouped for a specific purpose
    • c) A report of test results
    • d) A defect log
  4. True or False: Linking tests to requirements helps ensure test coverage.

    • a) True
    • b) False
  5. In Zephyr, what is used to group tests for execution?

    • a) Test Plans
    • b) Test Cycles
    • c) Test Sets
    • d) Test Reports

Answers:

  1. b
  2. b
  3. b
  4. a
  5. b

2.10 Summary

In this chapter, you’ve learned:

  • The significance of test management in ensuring structured and effective testing.
  • How to configure and utilize X-Ray and Zephyr in Jira for test management.
  • The steps to create and manage test cases, test sets, and test plans.
  • Techniques for linking tests to requirements and tracking execution.

These skills are vital for managing testing in professional projects, ensuring thoroughness, traceability, and alignment with project goals.


This chapter equips you with the knowledge and practical experience to manage tests effectively using industry-standard tools. You’re now prepared to integrate test management into your testing workflow!


By Wahid Hamdi