Version 11.1 by Pascal Robert on 2012/03/09 15:20

Hide last authors
Pascal Robert 10.1 1 {{info}}
Pascal Robert 11.1 2 A JMeter presentation was made at WOWODC 2010, you can view it at [[wocommunity.org>>url:http://www.wocommunity.org/podcasts/wowodc/2010/WOWODC2010JMeter.mov||shape="rect"]]
Pascal Robert 10.1 3 {{/info}}
4
Pascal Robert 11.1 5 It is possible to use the JavaPlaybackManager to load test your WO apps, but you will likely be frustrated by bugs and lack of features. A much more robust and feature-full utility is Apache Jakarta's [[JMeter>>url:http://jakarta.apache.org/jmeter/||shape="rect"]]
Pascal Robert 3.1 6
7 WebObjects, being less well-known, is not fully supported out-of-the-box, so we will need a bit of help with:
8
9 * URL-stored session IDs
10 * instance IDs
11
Pascal Robert 11.1 12 Happily, these two critical pieces of information can be retrieved in a single step by adding a Regular Expression Extractor to the first HTTP Request node that hits your application. Use a regular expression like this:
Pascal Robert 3.1 13
Pascal Robert 9.1 14 {{code}}
Pascal Robert 3.1 15
Pascal Robert 9.1 16 /cgi-bin/WebObjects/MyApp.woa/([-0-9]+)/wo/([^/]+)
Pascal Robert 3.1 17
Pascal Robert 9.1 18 {{/code}}
Pascal Robert 3.1 19
20 And a template like this:
21
Pascal Robert 9.1 22 {{code}}
Pascal Robert 3.1 23
Pascal Robert 9.1 24 $1$$2$
Pascal Robert 3.1 25
Pascal Robert 9.1 26 {{/code}}
Pascal Robert 3.1 27
Pascal Robert 11.1 28 Set Match No. to 1 and Default Value to "" (blank). Then, set the Reference Name to whatever name you want to use, for example, "sessionid". The instance number will then be available to future test steps as $
29 {sessionid_g1} and the session ID as ${sessionid_g2}. Your second HTTP Request, for example, might have a URL of:
Pascal Robert 3.1 30
Pascal Robert 9.1 31 {{code}}
Pascal Robert 3.1 32
Pascal Robert 9.1 33 /cgi-bin/WebObjects/MyApp.woa/${sessionid_g1}/wo/${sessionid_g2}/0.0.13.3
Pascal Robert 3.1 34
Pascal Robert 9.1 35 {{/code}}