Dear all,
I request you help to help me to solve the error in my query please.
I need the following output for a specific release:
Requirements, req status, tests associated to requirement, test set folder name, test set name, tesst instances associated with the tests, defects that are associated with the test instances/test run/ test step/test run.
In a nutshell the intent is to know the traceability between the requirements to defects, so that we can understand which requirements are more defect prone & what corrective actions are needed.
I wrote the below query with some help from the forum. But I see that the output displays only a few records( when the release id is 1139. Similary when the release id is 1136, it displays only the headers & empty records.
Can you please help me to correct the mistake in the below query. I look forward for your help at the earliest.
Thanks.
SELECT REQ.RQ_REQ_ID AS "Req ID",
REQ.RQ_REQ_NAME AS "Requirement",
RQ_REQ_STATUS AS "Requirement Status",
TEST.TS_TEST_ID AS "Test ID",
TEST.TS_NAME AS "Test Case",
CYCL_FOLD.CF_ITEM_NAME AS "Test Set Folder",
CYCLE.CY_CYCLE AS "Test Set",
TESTCYCL.TC_TESTCYCL_ID AS "Test Case Id",
TESTCYCL.TC_STATUS AS "Test Case Status",
BUG.BG_BUG_ID AS "Defect Id",
BUG.BG_STATUS AS "Defect Status",
BUG.BG_SEVERITY AS "Defect Severity",
BUG.BG_SUMMARY As "Defect Summary"
FROM REQ, REQ_COVER, TEST, TESTCYCL, CYCLE, CYCL_FOLD , LINK, BUG, RUN, STEP, RELEASES
Where
REQ.RQ_REQ_ID = REQ_COVER.RC_REQ_ID
AND TEST.TS_TEST_ID = REQ_COVER.RC_ENTITY_ID
AND TESTCYCL.TC_TEST_ID = TEST.TS_TEST_ID
AND TESTCYCL.TC_CYCLE_ID = CYCLE.CY_CYCLE_ID
AND CYCLE.CY_FOLDER_ID = CYCL_FOLD.CF_ITEM_ID
AND TEST.TS_TEST_ID = TESTCYCL.TC_TEST_ID
AND BUG.BG_BUG_ID = LINK.LN_BUG_ID
AND LINK.LN_ENTITY_TYPE in ('STEP','RUN','TESTCYCL', 'CYCLE', 'BUG', 'TEST')
AND STEP.ST_ID = LINK.LN_ENTITY_ID
AND STEP.ST_RUN_ID = RUN.RN_RUN_ID
AND RUN.RN_TESTCYCL_ID = TESTCYCL.TC_TESTCYCL_ID
AND BUG.BG_DETECTED_IN_REL = RELEASES.REL_ID
AND RELEASES.REL_ID = 1139
ORDER BY REQ.RQ_REQ_ID