Hi All,
I need an execution report that shows all steps with step status - including those steps that are part of a test that has not been run. If the test has been run, I want the latest run only.
I know that I need to join the TESTCYCL, RUN, TEST, DESSTEPS, and STEP tables, but I'm having trouble getting it right - i'm so close! The step status (ST_STATUS) and actual results (ST_ACTUAL) have to come from the STEP table, but i think you have to do an outer join so you don't only get steps that are associated with a run. Similar issue connecting to the RUN table, which right now is working. Please take a look at my code and help!
Right now I'm getting everything I want except for the Step Status and Step Actual results - both from the STEP table. I've tried countless ways of adding/joining to this table, but it always messes up the report by either removing the No Run tests, or duplicating runs, duplicating steps, etc. Please help me add in the STEP table...
SELECT CYCL_FOLD.CF_ASSIGN_RCYC as "Target Cycle" , CF_ITEM_NAME as "Test Set Parent Folder", CYCLE.CY_CYCLE as "Test Set Name", TS_NAME as "Test Case Name", TS_EXEC_STATUS as "Test Case Execution Status" , DESSTEPS.DS_STEP_ORDER as "Step Order" , DESSTEPS.DS_STEP_NAME as "Step Name", DESSTEPS.DS_DESCRIPTION as "Step Descr.", DESSTEPS.DS_EXPECTED as "Step Expected Res." , RUN.RN_RUN_ID as "Run ID" , RUN.RN_STATUS as "Run Status", RUN.RN_TESTER_NAME as "Tester", RUN.RN_EXECUTION_DATE as "Exec Date" FROM CYCL_FOLD INNER JOIN CYCLE ON CYCL_FOLD.CF_ITEM_ID=CYCLE.CY_FOLDER_ID INNER JOIN TESTCYCL ON TESTCYCL.TC_CYCLE_ID = CYCLE.CY_CYCLE_ID LEFT OUTER JOIN RUN ON TESTCYCL.TC_TESTCYCL_ID = RUN.RN_TESTCYCL_ID and (RUN.rn_run_id IN (SELECT max(RUN.rn_run_id) FROM RUN GROUP BY RUN.rn_testcycl_id)) LEFT OUTER JOIN TEST ON TEST.TS_TEST_ID = TESTCYCL.TC_TEST_ID LEFT OUTER JOIN ALL_LISTS ON TEST.TS_SUBJECT = ALL_LISTS.AL_ITEM_ID LEFT OUTER JOIN RELEASE_CYCLES ON TESTCYCL.TC_ASSIGN_RCYC=RELEASE_CYCLES.RCYC_ID Left outer join DESSTEPS /*Design Step*/ on DESSTEPS.DS_TEST_ID /*Design Step.Test ID*/ =TEST.TS_TEST_ID /*Test.Test ID*/ ORDER BY CYCL_FOLD.CF_ASSIGN_RCYC , CF_ITEM_NAME , CYCLE.CY_CYCLE , TS_NAME