It's all about the answers!

Ask a question

How to cont total test case, testcase fail in RPE


sreenath v (78167) | asked Apr 25 '19, 12:37 a.m.

Can anyone help to get code of total testcase , total test case fail to count in RPE

One answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Apr 25 '19, 2:19 a.m.
You can use 2 (internal) variables (say tcCount and tcFailedCount) with default value set to 0. Use a JavaScript Code element to increment tcCount (without any if condition) and tcFailedCount (if result is Failed). You can use or print these variables after looping through the query.
Please refer RPE sample template RTC_WorkItems.dta, where fixed WorkItems and Total WorkItems are printed.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.