error handling and threads
I was wondering how to do error handling?
Thread group has simple function(continue/stopthread/stop test/stop test now) for error handling, but that is not good for lon test runs.
for example if I have 100 Vusers,300 user names and 10 user accounts that gives error. that would cause that during long test eventualy all the treads will be stopped when they try to login with unfunctional user.
how do I do error handling so that when error happens, actions for that thread is stopped and thread starts from beginnning?
I know that "If previous request was successful then..." but I would not like to build that kind of function for each action.(that login thing was just example)
Re: error handling and threads
It may depend on the type of errors your are encountering, but I've done well with the "Stop Thread" option - as this terminates the current thread and then creates a new thread that starts at the beginning of my script.
But, to answer your question:
Have you tried the beanshell assertion module?
You could place it at the Test Group Level, so it would affect all samples. Write some beanshell script that says "If last NOT successful then stop thread".
This would need to be coupled with a generic description of what successful is using response assertion (or you could role it into the beanshell script)