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?
|
Accepted answer
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
Comments
Dylan Mansour
commented Dec 08 '16, 4:36 p.m.
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
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.
Comments
How should I ask a question in the Forum if I want to receive useful answers?