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

Identify linked defects to test cases against test set folders

$
0
0

Hi all,

I have been trying to figure this one out for a while now but cannot see to get anywhere with it so help would be appreciated. Ok, so, I have written two queries, the first one displayed the test cases against the test execution status against the test set name, test set folder name and the test cycle where all the testing occured. See query below under Query 1.

 

Query 2, it shows all open defects, where the defect is linked to, the test cycle ID of the defect, the linked test cases and the test case execution status.

 

Ideally, I would like to join elements of Query 2 and join them to Query 1 to show the following:

displayed the test cases against the test execution status against the test set name, test set folder name and the test cycle where all the testing occured. if a test cases had / has a defect link, include the defect ID otherwise the row (defect id cokumn) should be blank.

 

All help would be appreciated.

Thanks M

 

Query 1:

SELECT
      RELEASE_CYCLES.RCYC_NAME /*Cycle.Name*/ as 'Test Cycle',
      CYCL_FOLD.CF_ITEM_NAME /*Test Set Folder (CYCLE).Name*/ as 'Test Set Folder Name',
      CYCLE.CY_CYCLE /*Test Set.Name*/ as 'Test Set Name',
      TEST.TS_NAME /*Test.Test Name*/ as 'Test Case Name',
      TESTCYCL.TC_STATUS /*Test Instance.Status*/ as 'Test Execution Status',
      TESTCYCL.TC_EXEC_DATE /*Test Instance.Exec Date*/ as 'Execution Date'
FROM
      RELEASE_CYCLES,
      CYCL_FOLD,
      CYCLE,
      TESTCYCL,
      TEST
WHERE
      RELEASE_CYCLES.RCYC_ID /*Cycle.Cycle ID*/ =   CYCL_FOLD.CF_ASSIGN_RCYC /*Test Set Folder (CYCLE).Target Cycle*/
      AND CYCL_FOLD.CF_ITEM_ID /*Test Set Folder (CYCLE).Test Set Folder ID*/ =  CYCLE.CY_FOLDER_ID /*Test Set.Test Set Folder*/
      AND CYCLE.CY_CYCLE_ID /*Test Set.Test Set ID*/ =  TESTCYCL.TC_CYCLE_ID /*Test Instance.TestSet*/
      AND TEST.TS_TEST_ID /*Test.Test ID*/ =  TESTCYCL.TC_TEST_ID /*Test Instance.Test*/

 

Query 2:

SELECT
  BG_BUG_ID as 'Defect ID',
  BG_STATUS as 'Defect Status',
  LINK.LN_BUG_ID,
  LINK.LN_ENTITY_TYPE 'Defect linked to',
  LN_TESTCYCL_ID as 'Test Cycle ID',
  CY_CYCLE,
  CY_CYCLE_ID,
  TC_CYCLE_ID,
  TS_NAME as 'Test Case Name',
  TS_EXEC_STATUS as 'Test Execution Status'
FROM
  BUG LEFT JOIN LINK ON BG_BUG_ID = LN_BUG_ID
  LEFT JOIN V_LINK_TESTCYCL on LINK.LN_BUG_ID = V_LINK_TESTCYCL.LN_BUG_ID
  LEFT JOIN CYCLE ON LINK.LN_ENTITY_ID = CY_CYCLE_ID
  LEFT JOIN TESTCYCL ON V_LINK_TESTCYCL.LN_TESTCYCL_ID = TC_TESTCYCL_ID
  LEFT JOIN TEST ON TC_TEST_ID = TS_TEST_ID

 

 

 


Viewing all articles
Browse latest Browse all 14708

Trending Articles



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