Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I need to generate a report from the dashboard view of Quality Center to get all the blocking defects in my test sets. Meaning, I want to filter the list of defects that are linked to test instances marked with the status 'blocked.

Could you please help me in generating such custom report?

Thanks, Karim.

share|improve this question
    
What test tool are you using? –  Dale Emery Aug 28 '13 at 23:43
add comment

1 Answer

To list out the defects and the corresponding test cases that blocked, its very easy to generate using Excel query feature in Quality center. The query has to join test instance, tests and link table to retrieve the details. The query looks like this

SELECT T.TS_NAME, TC.TC_TEST_INSTANCE, LN_BUG_ID
  FROM TEST T, TESTCYCL TC, LINK L
 WHERE     T.TS_TEST_ID = TC.TC_TEST_ID -- Condition joining TEST (testcases) and TESTCYCL (Test instances) table
       AND L.LN_ENTITY_TYPE = 'TESTCYCL' -- This condition makes sure that defects linked to test instaces only need to retrieved
       AND TC.TC_TESTCYCL_ID = L.LN_ENTITY_ID -- Condition to join LINK and TESTCYCL table
       AND TC.TC_STATUS = 'BLOCKED'

For more details and different SQL queries that help you play with information you want extract refer below blog link

http://qtp-automate.blogspot.co.uk/2013/09/quality-center-test-instances-test.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.