JMeter & DWR 2.0RC2 Addendum

The previous exposed tests have done with a milestone version of DWR 2. So with the new release candidate, there are several changes that affects the way we can use JMeter with DWR. Those changes forces us to:

  • change the regular expresion to obtain the script session id value
    dwr.engine._origScriptSessionId = '(.*)';
  • make a jsp file to get the jsessionid value (now there isn’t a javascript variable with this value in engine.js)
  • attach an XML XPath extractor or a regular expression extractor to the previous .jsp

The rest of procedures works perfect with this version.

See here the original article

3 Comments so far

  1. MJMcInerny on June 15th, 2007

    Hi,
    I’m trying to work through this very issue testing a new product. in your addendum of jan. 21, 2007, are you saying that you added a jsp to your application in order to resolve this issue?

  2. jorge on June 15th, 2007

    Hi,

    yes i do
    the jsp is like:

    <html>
    <body>
    <sessionid><%=session.getId()%></sessionid>
    </body>
    </html>
    

  3. Ed Isinghton on June 28th, 2007

    Thanks for the advice you give here. I noticed that in the DWR setup we are running here (2.0.1) the dwr.engine._origScriptSessionId value is actually in double quotes (”), not single quotes, so the regex needs to reflect that.

Leave a reply