Quality Center / ALM Practitioners Forum
cancel

Executed test case count in test set using macros

Highlighted
panki
Regular Contributor.

Executed test case count in test set using macros

Hi,

 

I am working on to get the executed test case count in test set.

I am able to get the test set id , test set name using macros. basically i have problem which object or method to be used to get the count of executed test cases from test set.

for an ex.

A test set  have following test case

1 N/A

5 Failed

7 passed

9 blocked

10  not completed

 

basically i want this count using macros.. please suggest me.

1 REPLY
Jan Czajkowski
Acclaimed Contributor.

Re: Executed test case count in test set using macros

The tes set has a TSTestFactory object as a property. The factory has a Filter property, and you can set a filter on the TC_STATUS field that can give you a list of the test instances with the wanted status. The list has a Count property.

Jan Czajkowski

[Please do not contact me off line for receiving support. Use the forum!]