Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

SQL query to extract defects and their linked requierments

$
0
0

Hello

 

I'm trying to retrieve all of the open defects and their test sets, test instances, and the linked requirements. I am unable to do the latter part, altghouh I suppose it would require a trip thought the LINK table. Can anyone help, please? Thanks a lot!

 

SELECT BUG.BG_BUG_ID AS "Defect ID",
BUG.BG_SEVERITY AS Severity,
BUG.BG_STATUS AS "Defect Status",
ALL_LISTS.AL_DESCRIPTION as Subject,
CYCLE.CY_CYCLE AS "Test Set",
TEST.TS_NAME AS "Test Instance",
TESTCYCL.TC_STATUS AS "Test Result"


FROM BUG, TEST, V_LINK_TESTCYCL, TESTCYCL, CYCLE, ALL_LISTS

WHERE BUG.BG_BUG_ID = V_LINK_TESTCYCL.LN_BUG_ID
AND TESTCYCL.TC_TESTCYCL_ID = V_LINK_TESTCYCL.LN_TESTCYCL_ID
AND TESTCYCL.TC_TEST_ID = TEST.TS_TEST_ID
AND CYCLE.CY_CYCLE_ID = TESTCYCL.TC_CYCLE_ID
and TS_SUBJECT = AL_ITEM_ID


and bug.bg_status not in ('Closed', 'Closed - Rejected')

 


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>