---
# System prepended metadata

title: QA Flow Using Jira and XRay

---

## Testing Separate User Stories Flow
![](https://hackmd.io/_uploads/rkFAxMZYh.png)


## Integration Test Flow


![](https://hackmd.io/_uploads/BJ2OwmzKh.png)


Today, we'll be discussing our Quality Assurance (QA) process. We'll be focusing on how we're going to integrate and utilize Jira and XRay for transparent, efficient, and effective testing. This process is designed to ensure our product's functionality, reliability, and ease-of-use.

### **1. Test Case Creation**

The first step in our QA process is to create test cases. Test cases are sets of conditions or variables that will allow us to test if a feature behaves as expected under different scenarios. They are based on our user stories and are designed to cover both positive and negative scenarios, as well as edge cases. 

 
**Steps:**

- Select `Create` button at the top of your Jira software.
- Select `Test` from the `Issue Type` dropdown.
- Fill out the relevant fields (Summary, Description, etc.) that detail what the test case will cover.
- You can also include Pre-Conditions, Test Steps, and Expected Result in your test case.
- Create 2 tests: cucumber and manual

### **2. Linking Test Cases to User Stories**

Once we've created our test cases, we'll link them to their respective user stories in Jira. This connection provides a clear mapping between the requirements (user stories) and how we're testing those requirements (test cases). This transparency helps to ensure that we're fully testing every aspect of the feature as defined by the user story, and allows everyone on the team to see what we're testing and why.

**Steps**:

- Open the Test Case you created.
- In the Test Case issue, find the `Linked Issues` field on the right-hand side.
- Click on `Link Issue` and select the link type as `Tests`.
- In the `Issue` field, enter the User Story ID that you want to link to the test case and click on `Link`.

### **3. Test Plan Creation**

With our test cases linked to our user stories, we then consolidate them into a Test Plan. The Test Plan is a comprehensive document that outlines what we plan to test, how we plan to test it, and what the expected outcomes are. It includes all the user stories and the linked test cases for a particular sprint or release, providing a consolidated view of our testing strategy. 


**Steps**:

- Select `Create` button at the top of your Jira software.
- Select `Test Plan` from the `Issue Type` dropdown.
- Fill out the relevant fields (Summary, Description, etc.).
- In the `Test Plan` issue, link all the `Test Cases` issues that you want to include in the plan.

### **4. Test Execution**

Following our Test Plan, we begin the Test Execution process. This is the process of actually running the tests we've defined in our test cases. These test cases can be executed manually or using our automated test framework, Cypress.js, which can send the execution results back to XRay.

This stage is where we really get to see how our software performs under the scenarios we've defined. By executing our test cases and documenting the results, we're not just identifying potential issues - we're also generating data that can help us understand how the software behaves in different scenarios.


**Steps**:

- Once the User Story is ready for testing, select `Create` button at the top of your Jira software.
- Select `Test Execution` from the `Issue Type` dropdown.
- Link the `Test Execution` issue to the `Test Case` you want to execute.
- When the tests are executed, you can mark them as `Pass` or `Fail` in the `Test Execution` issue.

With Cypress.js integrated with XRay, the execution results can be sent back to XRay.


### **5. Test Reporting**

After our test executions, we'll utilize the reporting functionality in XRay to analyze and share our results. These reports give a clear view of our QA progress and provide crucial insights into how our software is performing. They can help us identify trends, track our progress over time, and make data-driven decisions about our software's readiness for release.

**Steps**:

- Navigate to the `Reports` tab in the XRay section of Jira.
- Here you can select different types of reports (like Test Execution, Test Plan) and configure them based on your needs.
- These reports can be shared with your team for a clear visibility of the QA progress.

### **6. Retesting and Regression**

Once we've found and fixed defects, we'll need to perform retesting and regression testing. Retesting involves running the same tests again after fixes have been applied to ensure the issues are indeed fixed. Regression testing involves running a broad set of tests to ensure that the fixes haven't unintentionally caused problems elsewhere. This is an important step to confirm that our solutions are effective and haven't introduced new problems.

**Steps**:

- Retest the failed test cases by creating a new `Test Execution` issue or by reusing the existing `Test Execution` issue.
- Execute a regression suite by creating a `Test Execution` issue that includes the relevant `Test Cases`.
- Mark the `Test Cases` as `Pass` or `Fail` based on the test results.


---

This overall process is designed to maximize transparency and ensure that all team members can easily track the progress of our testing. It should provide everyone with a clear understanding of what we're testing, why we're testing it, and what the results of those tests are. Ultimately, this QA flow will help us deliver a product that meets our high standards for quality and performance.
