Hello,
(I hope this is the right group), I am trying to create a query that will give me the list of all the test labs with the test plans associated and the status of the test plans most recent run. I have used the query below, but It's grabbing the same step twice if it has been executed and reported a different status.
For example I have uploaded a snapshot of the test (Highlighted in yellow) - It should, ideally, have only returned the most recent status which would have been the line where it passed.
My Code is
SELECT
CF_ITEM_NAME as "Test Set Folder Name",
CY_CYCLE as "Test Set Name",
MAX(RN_RUN_ID) as "Run ID",
TS_NAME as "Test Case Name",
RN_STATUS as "Test Case Status",
ST_STEP_NAME as "Test Step Name",
ST_STATUS as "Test Step Status",
RN_TESTER_NAME as "Tester Name",
RN_EXECUTION_DATE as "Date",
RN_EXECUTION_TIME as "Time"
FROM STEP a, TEST b, CYCLE c,RUN d,CYCL_FOLD e, TESTCYCL f
where
a.ST_TEST_ID=b.TS_TEST_ID and
c.CY_CYCLE_ID=d.RN_CYCLE_ID and
d.RN_TEST_ID=b.TS_TEST_ID and
f.TC_CYCLE_ID=RN_CYCLE_ID and
e.CF_ITEM_ID=c.CY_FOLDER_ID
GROUP BY RN_RUN_ID, ST_STEP_NAME, CF_ITEM_NAME, CY_CYCLE, TS_NAME, ST_STATUS, RN_STATUS, RN_TESTER_NAME, RN_EXECUTION_DATE, RN_EXECUTION_TIME
order by RN_RUN_ID
Can anyone help me????