Executed test case count in test set using macros (246 Views)
Reply
Occasional Advisor
panki
Posts: 12
Registered: ‎01-07-2014
Message 1 of 2 (246 Views)

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.

Honored Contributor
Jan Czajkowski
Posts: 2,110
Registered: ‎12-12-2007
Message 2 of 2 (224 Views)

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!]
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.