I am using a query to check if Test instances have an attachment but trying to figure out if i can get the name of the attachment?
here is what i am using:
SELECT
t.TS_TEST_ID as "Test ID",
t.TS_NAME as "Test Case Name",
tc.TC_STATUS as "Status",
tc.TC_EXEC_DATE as "Execution Date",
tc.TC_ACTUAL_TESTER as "Tester",
tc.TC_ATTACHMENT as "Attachment",
rc.RCYC_ID as "Cycle ID",
rc.RCYC_NAME as "Cycle",
CY_CYCLE as 'Path'
FROM TEST t
left JOIN TESTCYCL tc ON t.TS_TEST_ID = tc.TC_TEST_ID
left JOIN RELEASE_CYCLES rc ON tc.TC_ASSIGN_RCYC = rc.RCYC_id
left JOIN CYCLE c ON tc.TC_CYCLE_ID = c.CY_CYCLE_ID
left join CYCL_FOLD CF ON c.CY_FOLDER_ID = CF.CF_ITEM_ID
WHERE tc.TC_STATUS in ('Passed')
AND rc.RCYC_ID in (1676) /*test cycle id - this is useful if you have a Test cycle like R2A.Iterations*/
//and CF.CF_ITEM_PATH like 'AAAACQAAGAAG%'
ORDER BY t.TS_TEST_ID