How can I print or write the number of errors which a Virtual User has during a loadtest?
An Event Handler combined with a global variable will allow SilkPerformer to report the current number of errors which individual Virtual User has during a loadtest.
Here is sample code of how this can be achieved.
TMain : 10;
gnErrorCount : number;
gnErrorCount := gnErrorCount + 1;
WebPageUrl("http://111.Borland.com", "Deliberate error causes WinSock: 11001 - Host not found");
The code above will print the value of the global variable gnErrorCount to the SilkPerformer output pane. This variable will increase each time an error is encountered, results per Virtual User.