Hi,
I wrote the below query to get the traceability between the reqs and test instances. I also source the data for the test runs.
But the status of the reqs seems to be wrong.
For e.g for a req id 5577 -> is associated with two tests ( id 347882 and 335747).
=> test id 347882 is linked to 4 test instances of which 2 are in passed status & 2 are in failed status. The status of the test 347882 is passed.
=> test id 335747 is linked to 4 test instances of which all are in passed status.The status of the test 335747 is passed.
In my view the req status( Direct Cover Status) should be shown as 'failed' in HPQC since 2 test instances associated with test id 347882 have failed. Also the test 347882 should show 'failed' status since 2 of its associated test instances have failed.
But from HPQC & the ouput of the query shows the req status as ' Not Completed' ? How is this possible.
I am re-producing the query below & also have attached a sample output in excel.
It would be very helpful if you can review and help me to understand the output.
Please let me know:
a) If the output is right or wrong with your rationale?
b) also please correct if you find any mistake in my query.
Thanks for your help
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',
a.RQ_REQ_COMMENT as 'Req Comment',
c.TS_TEST_ID as 'Test Id',
c.TS_NAME as 'Test Name',
c.TS_EXEC_STATUS as 'Test Execution Status',
g.CY_CYCLE_ID as 'Test-Set-Id',
g.CY_CYCLE as 'Test-Set-Name',
d.TC_TESTCYCL_ID as 'Test Instance Id',
d.TC_STATUS as 'Test Instance Status',
h.RN_RUN_ID as 'Test Run Id',
h.RN_RUN_NAME as 'Run Name',
h.RN_EXECUTION_DATE as 'Execution Date',
h.RN_STATUS as 'Run Status',
h.RN_CYCLE as 'Run Cycle',
e.RCYC_NAME as 'Test Cycle Name',
f.REL_NAME as 'Release-Name'
FROM REQ a
FULL JOIN REQ_COVER b ON a.RQ_REQ_ID=b.RC_REQ_ID
FULL JOIN TEST c ON b.RC_ENTITY_ID=c.TS_TEST_ID
FULL JOIN TESTCYCL d ON c.TS_TEST_ID=d.TC_TEST_ID
FULL JOIN RUN h ON d.TC_TESTCYCL_ID=h.RN_TESTCYCL_ID
FULL JOIN CYCLE g ON h.RN_CYCLE_ID=g.CY_CYCLE_ID
FULL JOIN RELEASE_CYCLES e ON g.CY_ASSIGN_RCYC=e.RCYC_ID
FULL JOIN RELEASES f ON e.RCYC_PARENT_ID=f.REL_ID
WHERE f.REL_ID=1136
ORDER BY a.RQ_REQ_ID