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

Re: How to get path of test definition in a SQL query

$
0
0

Hi Beckie,

 

URL which is provided earlier contains the SQL query that will be executed only on SQL Server I guess.

 

If you are on Oracle you have to write query something like below .

 

SELECT t1.folder,
       t1.cy_cycle         AS testset,
       t2.ts_name          AS NAME,
       t2.ts_user_01       AS priorität,
       t2.tc_tester_name   AS planned_tester,
       t2.tc_actual_tester AS actual_tester,
       t2.tc_status        AS status,
       t2.tc_exec_date     AS datum,
       t2.tc_exec_time     AS zeit,
       t2.ts_steps         AS steps
FROM   (SELECT cy_cycle_id,
               cy_cycle,
               cf_item_id,
               Sys_connect_by_path(cf_item_name, '\') folder
        FROM   default_tkkb_db.cycl_fold
               left outer join default_tkkb_db.cycle
                 ON cy_folder_id = cf_item_id
        START WITH cf_father_id = 0
        CONNECT BY PRIOR cf_item_id = cf_father_id) t1
       left outer join (SELECT tc_cycle_id,
                               ts_name,
                               ts_user_01,
                               tc_tester_name,
                               ts_test_id,
                               tc_status,
                               tc_exec_date,
                               tc_exec_time,
                               tc_actual_tester,
                               ts_steps
                        FROM   default_tkkb_db.testcycl,
                               default_tkkb_db.test
                        WHERE  tc_test_id = ts_test_id) t2
         ON t1.cy_cycle_id = t2.tc_cycle_id
WHERE  t1.folder NOT LIKE '%Archiv%'
ORDER  BY t1.folder

 Above query extracts all the test cases related to the test instances in test set.

 

You need to use ALL_LISTS in the place of CYCL_FOLD and TEST table in the place of CYCLE table.

 

Please give a try.

 

Regards,

Srihari


Viewing all articles
Browse latest Browse all 14708

Trending Articles



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