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

Latest Execution Result in RPE

 I am trying to pull our test case's latest execution result.  Currently it is pulling every single result.  When I use JavaScript, it parses the word and only prints the last character for every single execution result.

Suggestions?

0 votes

Comments


Accepted answer

Permanent link
You can do it without using any scripting. Sort on executionresult/endtime in Ascending direction and assign the result to a variable. After the iteration, the variable holds the latest result and you can just print the variable.

Another option is to use an internal variable _isPrinted (with default value 0). Sort on endtime (Descending) and print the result only when _isPrinted="0" as in the screenshot.

Dylan Mansour selected this answer as the correct answer

1 vote

Comments

 What condition do you have on the container? 

Use _isPrinted == "0" condition on Container to print only 1 result. You can use similar logic to print last n results as well by incrementing _isPrinted in JavaScript code.

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
× 332

Question asked: Dec 05 '16, 11:17 a.m.

Question was seen: 1,678 times

Last updated: Dec 09 '16, 1:05 a.m.

Confirmation Cancel Confirm