Discussion:
Jmeter supports Ajax application or not
sidhik
2007-11-27 09:00:30 UTC
Permalink
I am testing application which uses ajax with DWR framework. Jmeter is not
showing result as per my application. Jmeter supports ajax functionalities
or not ?
--
View this message in context: http://www.nabble.com/Jmeter-supports-Ajax-application-or-not-tf4880499.html#a13967078
Sent from the JMeter - User mailing list archive at Nabble.com.
Dmitry Kudrenko
2007-11-27 09:23:01 UTC
Permalink
s> I am testing application which uses ajax with DWR framework. Jmeter is not
s> showing result as per my application. Jmeter supports ajax functionalities
s> or not ?

I am using JMeter for application base on DWR too. It works fine for
me. Just send request to DWR servlet with parameters specified for you
methods.
For example:
POST http://localhost/dwr/call/plaincall/Client.ping.dwr
POST data:
callCount=1&
page=/index.html&
httpSessionId=&
scriptSessionId=B9B8B3F9BA76E7FB439E4153041A7C6D001&
c0-scriptName=Client&
c0-methodName=ping&
batchId=1

BUT scriptSessionId is unique for every DWR session. This id contains
in the /dwr/engine.js script and generated for every session by DWR.

dwr.engine._origScriptSessionId variable keeps it. You should add any
3 digits (random or hardcoded) to this variable for using it in
dwr requests.

You should do the following steps for sending requests to DWR:
1. load engine.js
2. Extract Script Session Id, using RE Extractor
- RE:dwr\.engine\._origScriptSessionId = "(\w+)"
- Template: $1$001
3. Send request to you application using this value in the
scriptSessionId.

Refer to the following article for recommendations how to solve your
problem:
http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour
--
Regards,
Dmitry Kudrenko
ARDAS group http://www.ardas.dp.ua
Loading...