Is it possible to reset the result of GetTestsPassedCount() during the execution of a TestPlan?
It is not possible to reset the GetTestsPassedCount() result during the execution of a TestPlan.
However, if you would like to reset the information then you can use a second variable to reset the result from the function. An example of how you would implement this in a testscript would be:
[-] TestPlanEnter() [ ] print("I am in TestPlanEnter!!") [ ] [ ] [-] TestPlanExit(boolean test) [ ] integer i = 0 [ ] [ ] i = GetTestsPassedCount() [-] if (i == 1 || i == 0) [ ] print("Passed",i) [-] else [ ] print("Passed",i - (i - 1)) [ ]