Developing JMeter Test for WebSphere Portal

I was trying to figure out how to test WebSphere Portal Application using Apache JMeter and it seems that we can use concept of WebSphere Portal login URL to create JMeter Test.


  • I started by creating two portal page JMeter Test Page and JMeter Test Page 2 in WebSphere Portal and i did add the portlet that i want to add to this page. Both pages are protected pages, so JMeter will have to login in the portal as first thing

  • Then i had to create following two URL mappings

    1. JMeter Test Page -> jmeter1

    2. JMeter Test Page -> jmeter1



  • Inside JMeter create a new test and add Config - Http Cookie Manager as the first element in the Test plan, The Cookie Manager element has two functions: First, it stores and sends cookies just like a web browser. If you have an HTTP Request and the response contains a cookie, the Cookie Manager automatically stores that cookie and will use it for all future requests to that particular web site. Each JMeter thread has its own "cookie storage area". So, if you are testing a web site that uses a cookie for storing session information, each JMeter thread will have its own session


    WebSphere Portal depends on cookies to store the users login information, so cookie manager will copy the cookies returned by portal login requests to subsequent requets

  • The first thing that we want to do is login into portal and for that we will make a GET request to the WebSphere Portal login URL like this


    As you can see i am passing user name and password as query parameter to the /wpcert/demo/cxml/04_SD9ePMtCP1I800I_KydQvyHFUBADPmuQy

  • Once the JMeter script is logged in into portal, next thing will be to make a request to the friendly url of the portal page like this



  • Finally add a View Results in Tree element, that will display results of the test and our final test plan should look like this




Now run your test case and you should be able to see the results, you can download the test plan from here

2 comments:

Anonymous said...

Friend ,Do you have sample test case for any portal application. my case home page will get display for input the user/pwd and when i cick the button it ill submit to jsf . i created thread , configured http request and given server ip ,port and path as page path which ill take login dtls and added parameters this http request also. when i m running test plan , it is displaying the login page as result view in html format however i want pass this case and want see the next page which is after logged in. can you sugges me to do same

Abhi said...

Thanks for info....
SEO Company in Bangalore