| || |
GetTestsPassedCount () returning total passed for entire suite
I have the following functions defined in my own version of ScriptExit:
I have a suite file that calls four script files
the problem that I am having is that GetTestsPassedCount is returning a running total of the tests that passed for the whole suite. What I want is to return the tests that passed for just each script.
When looking at the results file for this suite the top summary shows a summary of all the running totals for all test scripts. If I select a script then select menu results/ show summary it shows the totals for that particular script. This is what I want in my script exit but it seems like I can only get a running total for the entire suite. Any ideas?
Re: GetTestsPassedCount () returning total passed for entire suite
This should work for you:
ScriptEnter resets global count variables; ScriptExit subtracts the accumulated value to leave what you're looking for.