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


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

srjwebsolutions said...

We are leading responsive website designing and development company in Noida.
We are offering mobile friendly responsive website designing, website development, e-commerce website, seo service and sem services in Noida.

Responsive Website Designing Company in Noida
Website Designing Company in Noida
SEO Services in Noida
SMO Services in Noida

Vikas Chaudhary said...

Battery Mantra is Authorized exide car battery dealer in Noida and Greater Noida. We are providing our service in Indirapuram, Delhi, Ashok Nagar.

Exide Battery Dealer in Noida
Battery Dealer in Noida
Authorized Battery Dealer in Noida
Car Battery Dealer in Noida
Car Battery Dealer
Exide Battery Dealer

EG MEDI said... is online medical store pharmacy in laxmi nagar Delhi. You can Order prescription/OTC medicines online.
Cash on Delivery available. Free Home Delivery

Online Pharmacy in Delhi
Buy Online medicine in Delhi
Online Pharmacy in laxmi nagar
Buy Online medicine in laxmi nagar
Onine Medical Store in Delhi
Online Medical store in laxmi nagar
Online medicine store in delhi
online medicine store in laxmi nagar
Purchase Medicine Online
Online Pharmacy India
Online Medical Store