Forum Discussion
deepesh_jain
15 years agoFrequent Contributor
The code explained above would work, however, there is a slight problem, since this is groovy script, if the first of the assertions fails, it won't even check for the remaining two. The tackle that, its best to initialize a counter to 0 and increment that whenever the test fails.
And finally assert the script to true if the value of counter is 0 or else false.
And finally assert the script to true if the value of counter is 0 or else false.