Hmmm. I am not sure but perhaps you try this and see if meets your requirements.
Try setting a flag at the beginning of your action section. At the end of the action section have it change the flag. I assume that if a vuser fails it executes the vuser end section. So here you can check the flag. If it passed (flag was changed) you can assume there was not an error. If not send it back to the begin of the action.
Hey Colin - I thought I would give the idea a shot and ran into a snag. If the vuser fails for a second time then that appears to be it because it will throw a vuser_end transaction failed to end message.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by coling: Hi,
Is anyone aware of a way to automatically restart failed users during the execution of a load test?
I know you can manually restart failed users from the controller but I'd like to be able to do this automatically.
Thanks in advance.
I am not sure what's the exact requirement. VUsers terminate due to failure either when 1. You have unchecked "continue on error" and some error occurs.
2. Vuser completes specified number of iterations but some of them have some failures.
3. Vusers abnormally terminated due to high severity errors ("Vuser in error") such as insufficient data for unique parameters, or communication failure.
So now I am sure your's is not case 1, as it can be easily fixed by checking the "continue on error" checkbox. So can you explain a little bit more about the scenario that causes this requirement.