It is common for the test(s) to exhibit the same behavior across different features. To elaborate, say, for instance, on an eCommerce website, if the ‘Add To Cart’ feature is working for the dress section, one would expect it to be working for the Shirts section too. Recently, I came across a project where the scenario was such that the same test(s) could pass for one requirement and fail for the other requirement. Hence, we wanted a solution wherein our test execution could capture this need accordingly.
The first thought that came to my mind was to duplicate the test(s) that were common across different requirements because I hadn’t seen a Test management tool that would encompass this need. Coincidentally, I was already exploring the Xray Test Management Tool, available as a Jira plugin, as one of the Test Management tools at Axelerant. I read about this feature and learned that it was available only with the server version of Jira.
Luckily, the project that needed this requirement used their own Jira, which was a server version and we could handle this requirement with the Separations of concerns feature available in Xray.
If you are new to Xray and haven’t heard of it before, just to give you a quick overview of the tool - It is a plugin available for Jira, on both Cloud and Server versions. You can read more about it here.
The default installation doesn’t come with the feature enabled. You can do it by following the steps mentioned below:
Here I am assuming that you already have some experience with the Xray tool and you know how to create tests, associate them with multiple requirements, and create test execution issues for the tests. If not, then please look at their official documentation for reference.
Let’s move forward with our sample test execution, which comprises a test that is associated with two requirements. For better understanding, we will use the naming to be Test A, Requirement 1, and 2. Please follow the steps mentioned below:
This is how we can use the ‘Separation of concerns’ feature provided by Xray to update different requirements having a common test(s) with different testing results.
Please take note that this is not ideally recommended and should only be used when the situation demands. Ideally, we should use the Overall execution status field to update the test execution results to accurately reflect the test execution status of the test(s) across the entire application.