Hi Friends,
I wrote a SQL query to find the traceability between : Requirements -> Tests(in Test Plan) -> Test Instances(in Test Lab) -> Defects(linked to the test instances).
Basic output that is required is the link between the requirements to the defects for a release. Since the requirements are linked to the tests(in Test Plan) & further each test is used as a test instance(in Test lab) & the defects are further linked to the test instances.
Below is the query that I wrote. But it is not giving me consistent results.
For some releases it looks fine, but for some the output does not contain all the records. I get the below error message:
"" The report does not contain all the records returned by the query as the number of records exceeds the maximum set by the site administrator".
Below I reproduce the query for the a specific release where the above error message was displayed. Request the experts to please check & optimize/correct my query. Many thanks for your help & guidance.
Thanks,
Bharath S
SELECT a.RQ_REQ_ID as "Req-Id",
a.RQ_REQ_NAME as "Req-Name",
a.RQ_REQ_PRODUCT as "Req-Product",
a.RQ_REQ_STATUS as "Req-Status",
b.TS_TEST_ID as "Test-Id",
b.TS_NAME as "Test-Name",
b.TS_EXEC_STATUS as "Test-Exec-Status",
c.TC_TESTCYCL_ID as "Test-Inst-Id",
c.TC_STATUS as "Test-Inst-Status",
d.BG_BUG_ID as "Defect-Id",
d.BG_SUMMARY as " Defect-Summary",
d.BG_SEVERITY as "Defect-Severity",
d.BG_STATUS as "Defect-Status"
FROM REQ a,TEST b,TESTCYCL c,BUG d,REQ_COVER e,RELEASE_CYCLES f,RELEASES g
where
(a.RQ_REQ_ID=e.RC_REQ_ID AND
e.RC_ENTITY_ID=b.TS_TEST_ID AND
b.TS_TEST_ID=c.TC_TEST_ID AND
c.TC_ASSIGN_RCYC=f.RCYC_ID AND
f.RCYC_PARENT_ID=g.REL_ID AND
g.REL_ID=d.BG_DETECTED_IN_REL AND
d.BG_DETECTED_IN_REL=1095)
ORDER BY a.RQ_REQ_ID