Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
879 views

Load testing and setting up JMeter test plan for login


Hi, all. Has anyone had any experience setting up JMeter test plans for
logging into a website fronted by Access Manager? The examples that I
can find about JMeter test plans for login do not use the same mechanism
as when using Access Manager. (Typical example would be a "GET" to the
url to get to the login page. Then it is a post where you enter in
username and password). Here is what I got using LiveHTTPHeaders when I
log into the website fronted by Access Manager:


POST /nidp/idff/sso?id=MyIntranet&sid=0&option=credential&sid=0
POST /nidp/idff/sso?sid=0
Ecom_User_ID=johndoe&Ecom_Password=mypassword&url=%3CERROR_INFORMATION%3E&proxypath=%3CPROXY_PATH%3E
GET /nidp/idff/sso?sid=0
GET /favicon.ico
GET /favicon.ico
POST /auth/portal/default/j_security_check
j_username=cn%3Djohndoe%2Cou%3Dmydepartment%2Co%3Dmyorganization&j_password=mypassword&login=Login
GET /auth/content/myportal/UploadedFiles/Home/News/house.jpg


What I'm trying to do is to mimick heavy concurrent load to Access
Manager. Any help is appreciated.

-Andrew


--
ndrw_cheung
------------------------------------------------------------------------
ndrw_cheung's Profile: https://forums.netiq.com/member.php?userid=5241
View this thread: https://forums.netiq.com/showthread.php?t=50338

0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Load testing and setting up JMeter test plan for login

ndrw cheung wrote:

>
> Hi, all. Has anyone had any experience setting up JMeter test plans
> for logging into a website fronted by Access Manager? The examples
> that I can find about JMeter test plans for login do not use the same
> mechanism as when using Access Manager. (Typical example would be a
> "GET" to the url to get to the login page. Then it is a post where
> you enter in username and password). Here is what I got using
> LiveHTTPHeaders when I log into the website fronted by Access Manager:
>
>
> POST /nidp/idff/sso?id=MyIntranet&sid=0&option=credential&sid=0
> POST /nidp/idff/sso?sid=0
> Ecom_User_ID=johndoe&Ecom_Password=mypassword&url=%3CERROR_INFORMATION
> %3E&proxypath=%3CPROXY_PATH%3E GET /nidp/idff/sso?sid=0
> GET /favicon.ico
> GET /favicon.ico
> POST /auth/portal/default/j_security_check
> j_username=cn%3Djohndoe%2Cou%3Dmydepartment%2Co%3Dmyorganization&j_pas
> sword=mypassword&login=Login GET
> /auth/content/myportal/UploadedFiles/Home/News/house.jpg
>
>
> What I'm trying to do is to mimick heavy concurrent load to Access
> Manager. Any help is appreciated.


I haven't done it but what you'll have to do is follow the redirects
from when you hit the protected resource. There's a bunch of cookies
you'll have to capture and add to every subsequent request, JSessionID
for the IDP and ESP requests and ipczqx for requests to the protected
resource.

I wonder if JMeter is truly the best tool for this. Loadrunner would
probably be a better fit (tho at a rater large cost).


--
Cheers,
Edward
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Load testing and setting up JMeter test plan for login


A bit late, but may help others wanting to use JMeter for functional
testing.

As for making it easier to create a Test Plan for functional testing of
a reverse proxy, create a Recording Controller on your Thread Group, and
configure a HTTP Proxy Server on your WorkBench and run it. Within your
thread group, you will also have to use a HTTP Cookie Manager to store
and sends cookies like a web browser would. Configure your browser to
then use the Proxy Server and test your reverse proxy. You'll find that
your Test Plan will be populated witht HTTP Request Samplers, which you
can then clean up and re-run.

Hope this helps.


--
norielbernardo
------------------------------------------------------------------------
norielbernardo's Profile: https://forums.netiq.com/member.php?userid=5804
View this thread: https://forums.netiq.com/showthread.php?t=50338

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Load testing and setting up JMeter test plan for login

norielbernardo wrote:

>
> A bit late, but may help others wanting to use JMeter for functional
> testing.
>
> As for making it easier to create a Test Plan for functional testing
> of a reverse proxy, create a Recording Controller on your Thread
> Group, and configure a HTTP Proxy Server on your WorkBench and run
> it. Within your thread group, you will also have to use a HTTP Cookie
> Manager to store and sends cookies like a web browser would.
> Configure your browser to then use the Proxy Server and test your
> reverse proxy. You'll find that your Test Plan will be populated
> witht HTTP Request Samplers, which you can then clean up and re-run.
>
> Hope this helps.


A coolsolution article about this would be nice 🙂

--
Cheers,
Edward
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.