Search This Blog

Saturday, July 18, 2009

How to use Jmeter to load test Portal Application

1. Download the latest Jmeter version from http://jakarta.apache.org/jmeter/

2. Set the JDK 1.5 or JDK 1.6 in your path and run jmeter.bat batch file

3. Create a Thread Group with the following values

Set the number of Threads to 50 and the Loop Count to 10. This will send 500 requests to the server

screenshot.9 

4. Under the ThreadGroup create HTTP Cookie Manager with the following values

The CookieManager is required to pass the cookie values across the different page requests. Otherwise Jmeter ignores the cookie value.

In the cookie manager select the Check Bog Clear Cookies each iteration and set the Cookie Policy to Default.

screenshot.10

5. Under the Thread group create a Loop Controller

Right Click on the Thread Group and Add Logical Controller –> Loop Controller

6. Under the Loop Controller Add Sampler –> HTTP Request HTTP Client

Set the Server Name as say xxx.xxx.oracle.com and Port as 7784 enter the Path as /portal/page?_pageid=33,1&_dad=portal&_schema=PORTAL&_mode=16 Select the CheckBox “Follow Redirects”

screenshot.11

7. Under HTTP Request HTTP Client add the HTTP Authorization Manager

Add the Portal username and password in this example I used orcladmin and welcome1.

screenshot.12

8. Add another Portal Page for testing

Under the Loop Controller Add Sampler –> HTTP Request HTTP Client

screenshot.14

9. Add another SSO Protected  Page for testing

Under the Loop Controller Add Sampler –> HTTP Request HTTP Client

Use the following values shown below

screenshot.13

10. This is how the JMeter project looks like after doing the above steps

screenshot.15

11. Now run the Jmeter project by Pressing  Control+R or the Menu option Control+R

12. Check the access_log file for the requests from the Jmeter load test 

1 comment:

Raj said...

The above instructions are not working for oracle portal 10.1.4. I am using JMETER 2.4. When I try to access the login page I keep getting Response code: 302
Response message: Moved Temporarily, and 501 Response message: Not Implemented, etc. I tried many combinations without much success. If you can point to me in the right direction that will be of great help.

regards,