Absent Member.
Absent Member.
538 views

Count for all test steps per test case

Hi All, looking at options for a sql report that counts test steps per test case...

 

I have this SQL but wondering if it can be modified to add a count of steps for easier readability:

 

SELECT td.TestContainerName, td.ProjectID, td.TestID, td.TestName, ms.Name [TestStep Name],
ms.Description [TestStep Description],
ms.Result [TestStep Result]
FROM TM_V_TestDefinitions td left outer join TM_V_ManualSteps ms
on td.TestID = ms.TestAssetNodeID_fk
WHERE td.TestContainerID = ${TestContainerID |0|TestContainerID}

0 Likes
2 Replies
Micro Focus Expert
Micro Focus Expert

Hi James,

This query counts the steps per test within a test container:

 

SELECT td.TestContainerName, td.ProjectID, td.TestID, td.TestName, COUNT(ms.TestAssetNodeID_fk) StepsCount

FROM TM_V_TestDefinitions td

left outer join TM_V_ManualSteps ms on td.TestID = ms.TestAssetNodeID_fk

WHERE td.TestContainerID = ${TestContainerID |0|TestContainerID}

GROUP BY td.TestContainerName, td.ProjectID, td.TestID, td.TestName

 

Regards,

Hubert

Absent Member.
Absent Member.

Thanks Hubert...this works great, your help is much appreciated!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.