UP | HOME

DWR Request in JMeter 2.3RC3 [CODE]

Continuous to: JMeter and DWR.

httprequest for engine.js

METHOD: get
PATH: /seed/dwr/engine.js

add a regular extractor for this

request=NAME: SCRIPTSESSIONID
REGEX: dwr.engine._origScriptSessionId = "(.*)"; [work in DWR 2.x]
TEMPLATE: $1$=

httprequest for a DWR request

METHOD: post
PATH: /seed/dwr/call/plaincall/authenticationService.login.dwr
VALUE: callCount=1${CRLF}page=${LOGINPAGE}${CRLF}httpSessionId=${JSESSIONID}${CRLF}scriptSessionId=${SCRIPTSESSIONID}${CRLF}c0-scriptName=authenticationService${CRLF}c0-methodName=login${CRLF}c0-id=0${CRLF}c0-param0=string:${SEED}${CRLF}c0-param1=string:${PWD}${CRLF}batchId=0

user

variables=CRLF: ${__javaScript('\r\n')}
LOGINPAGE: \seed\login.html
SEED: seed
PWD: seed

JSESSIONID is available when a http cookie manager is added.