Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Requirement Traceability with Test Coverage Query

$
0
0

Hello,

 

I need help in writing SQL Query for below situation:

 

Folder Structure in QC is as below:

Requirements
  - Project A
     - Use Case
        - Use Case Req 1
     - Business
        - BR1
           - FR1


Test Plan
 - Project A
    - Test1


Used Case is linked to BR1 through Requirements Traceability
BR1 is linked to FR1 through Parent-Child Relation
And FR1 is linked to Test1

 

I need to build a report which will show all the links as below:

 

Use Case ID  || Use Case Name  || BR ID  || BR Name  || FR ID  || FR Name  || Coverage  || Test ID  || Test Name

 

I have developed below query, however it's not showing the traceabiliy between used case and BR1

 

SELECT REQ_TRACE.RT_FROM_REQ_ID as UseCase_ID,
(SELECT REQ.RQ_REQ_NAME FROM REQ WHERE REQ.RQ_REQ_ID = REQ_TRACE.RT_FROM_REQ_ID) USECASE_NAME,
REQ.RQ_REQ_ID AS BR_ID,
REQ.RQ_REQ_NAME as BR_NAME,
a.RQ_REQ_ID AS FR_ID,
a.RQ_REQ_NAME AS FR_NAME,
a.RQ_REQ_STATUS as COVERAGE,
TEST.TS_TEST_ID AS TEST_ID,
TEST.TS_NAME AS TESTCASE_NAME
FROM REQ a
LEFT JOIN REQ_COVER ON a.RQ_REQ_ID = REQ_COVER.RC_REQ_ID
LEFT JOIN TEST ON REQ_COVER.RC_ENTITY_ID = TEST.TS_TEST_ID
LEFT JOIN REQ_TRACE ON REQ_TRACE.RT_TO_REQ_ID = a.RQ_REQ_ID
JOIN ALL_LISTS ON TEST.TS_SUBJECT = ALL_LISTS.AL_ITEM_ID
JOIN REQ ON a.RQ_FATHER_ID = REQ.RQ_REQ_ID
WHERE ALL_LISTS.AL_ABSOLUTE_PATH LIKE 'AAAAAPAAH%'
ORDER BY REQ.RQ_REQ_ID

 

Please help me to correct the above query. Also if possbile I want to add Full Requirement Path to above mentioned report.

 

Thank You.


Viewing all articles
Browse latest Browse all 14708

Trending Articles



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