| || |
How to Convey the status of failed transaction
In my script i have created following transactions.
During the execution of the load test,any one of the above transaction will fail and return the error screen containing error message like "The Current Site is Busy ,thanks for inconvenience"(When server box is fully busy).When such message is displayed i have to stop the transaction for the virtual user at that movement and make the virtual user to start the transaction from the beginning(InitializeData) .Furthermore i have to count the number of such error message occurrences.
How can i accomplish above stated problem in Silkperformer?
You Kind suggestion is appreciated.
Re: How to Convey the status of failed transaction
Use "I think" MeasureInc to count the failure, and put in some logic to verify the message "The Current Site is Busy" doesn't appear, and if it does, throw an error with "RaiseError" and the end the transaction with Return 1;
There are many other ways to accomplish this, but that's a fairly simple one. You might also look at developing an event handler bdh file for trapping/detecting the common error conditions particular to your application/environment. FYI, I'd say 30% of my scripting time is making sure my scripts work, and 60% or more looking for and coding around what happens when they don't, and attempting to gracefully handle/identify those situations.
Hope that helps