Académique Documents
Professionnel Documents
Culture Documents
As you can see from the above content, jMeter allows to load test a WDJ application. But how
do you create the jMeter tests? A test consists of several browser request to the application,
submitting data, headers, cookies, etc. Its not feasible to add all request manually. Therefore,
jMeter comes with a reverse proxy that intercepts the browser requests and uses them to create
the tests. Short: jMeter records every interaction between the browser and the server. This also
means that when you use Internet Explorer to record the test, jMeter will act as Internet Explorer
to the server when running the test. To test with different browsers, it makes sense to record the
test with each browser.
To record browser navigation, add a proxy and configure it accordingly.
Depends on what you want to test: the application only or also the impact of loading HTML resources like CSS
and Javascript. Patterns to just test the application:
.*\.css.*
.*\.js.*
.*\.gif.*
.*\.png.*
Browser settings
jMeter records what passes its proxy, so when you use Internet Explorer, jMeter will record how IE is
interacting with the application. As SAP may choose to send out other files when accessing the application
using Firefox or Chrome, you have to run the same recording steps again for each browser that is going to be
tested. The browser needs to be configured to use the jMeter HTTP Proxy:
Hint: when you record your test and immediately afterwards replay the samples, it may work, as the session
can still be open and valid. Running the test 5 days later will show errors, as the sessions expired.
sap-wd-cltwndid
name="sap-wd-cltwndid" value="(.+?)"
sap-wd-appwndid
name="sap-wd-appwndid" value="(.+?)"
sap-wd-secure-id
This parameter depends on your NW AS Java WD version.
7.3: {0:'sap-wd-secure-id',2:'(.+?)'}
sap-ext-sid
name="sap-ext-sid" value="(.+?)"
Adding these regular expression extractors to the test case will assign the variables with the current valid
parameter value. Now the HTTP request needs to be adjusted to make use of the variables. In my case, I
annotate the values of the parameter and substitute them through variables using notepad.
Example
After adjusting these parameters, running the jMeter test now gives: