- Create a top level thread group.
- Create a child simple controller and add samplers to fetch all the GWT files
- Create a second child simple controller. To this add a HTTP Header Manager. In this, add an entry for "Content-Type" with a value of "text/x-gwt-rpc; charset=utf-8". To this controller add all the GWT rpc calls
- For any further http traffic calls, add more simple controllers to contain the samplers
With that done, the jmeter script worked as required. Now I just have to fix the application code ;-)
Update: if you record the interactions, some client posts may contain thestring \\. Java tries to interpret this, so you will have to update this to be \\\\. I found this easiest to do by saving the jmeter script, opening a test editor and then using search/replace
Hello Chris,
ReplyDeleteI am new on this blog, I have to test an application builded in GWT that contains forms, so,I have to fullfill this forms to perfom the test.
How should I configure JMeter.
thanks in adavence
The way I did it was
ReplyDelete1) setup jmeter as a proxy
2) record a simple interaction with the server
3) replay the script in jmeter
4) find where it fails, and update the script to parse out any values required e.g. session id etc
5) repeat from step 3) until it works
6) repeat from step 2) adding more and more complex interactions
It can be done. It is not easy. It might take some time, but when it works, you can perform some really useful load testing against the gwt app. Good luck