I am trying to get a total count of test cases in each application folder in the Test Plan module in HP ALM 11.
This is what I have so far:
SELECT
Count (TS_TEST_ID) As "App1",
Count (TS_TEST_ID) As "App2",
Count (TS_TEST_ID) As "App3",
Count (TS_TEST_ID) As "App4",
Count (TS_TEST_ID) As "App5",
Count (TS_TEST_ID) As "App6",
Count (TS_TEST_ID) As "App7",
Count (TS_TEST_ID) As "App8"
FROM DESSTEPS, TEST, ALL_LISTS
WHERE DS_TEST_ID = TS_TEST_ID
AND AL_ITEM_ID = TS_SUBJECT
AND TS_SUBJECT = ALL_LISTS.AL_ITEM_ID
AND AL_DESCRIPTION = 'App1 Folder Name in the Database'
The query outputs a column for each application name but I can only get the total count of test cases for App1. Let's say that number is 100. It shoots out 100 across the board for each application. Is there a way to list all the application folders so each column has the total count pertaining to that application? I need to somehow list all the folder names and I can't figure it out. Is this possible? Thank you for the help.