Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to cont total test case, testcase fail in RPE

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

0 votes



One answer

Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 25 '19, 12:37 a.m.

Question was seen: 2,627 times

Last updated: Apr 25 '19, 2:19 a.m.

Confirmation Cancel Confirm