PHPUnit Selenium with the Grinder and GWT

209 Views Asked by At

I've setup a Selenium test case using the PHPUnit extension for Selenium. I've executed the test case and it works perfectly.

Now I'd like to do some performance tests with The Grinder. In other words, I'd like to use the TCPProxy process provided by the Grinder framework and execute my Selenium test multiple times in parallel. I'm able to record the entire Selenium test with the Grinder TCPProxy. But when I want to run the generated python script from the Grinder console, I notice that some GET, or POST requests always raise an error.

My web application is developed with GWT (Google Web Toolkit). So there are obviously lots of asynchronous requests. Is this where the problem might come from? Does anyone already has experienced with The Grinder and GWT?

All little help would be awesome.

1

There are 1 best solutions below

4
On

Try increasing "wait/sleep" period per action/activity to accommodate worse case slow rpc request scenarios. If that does not address the situation then you might have add some details after digging through your errors.

Give Selenium a try as it emulates user interaction on browser and hence will not encounter XSRF based issues as you are facing with a server side approach with Grinder.