How to get a report of test case linked to the requirements with an execution status of failed in its most recent execution within a set of cycles?
Problem
How to get a report of test case linked to the requirements with an execution status of failed in its most recent execution within a set of cycles?
Cause
Would like to know how many requirements have a test case linked to them with an execution status of failed in its most recent execution within a set of cycles.
Fix
->Please install <Script Runner> plugin, then navigate to <Issues>-><Search Issues>. Here enter the below query to get the linked requirements have a test case linked to them. (screenshot Search_Tests_has_requirements.png attached).
ex: project = “Imported Testcase” AND issuetype = TEST AND issueFunction in hasLinkType(“Relates”)
NOTE: Here “Relates” is an issue_type_link. You can use your issue type link.
->After getting the test cases, copy these test case Ids(you can use any editors). Navigate to <Tests>-><Search Test Executions> and enter the below query in the search box.(screenshot Search_Executions.png attached). Then you can <Export> the results to get a report.
ex : project = “Imported Testcase” AND issue in (IT-65,IT-49,IT-48,IT-1) AND executionStatus = FAIL
NOTE : Here IT-65,IT-49,IT-48,IT-1 are the copied issue keys.