Showing posts with label jmeter. Show all posts
Showing posts with label jmeter. Show all posts

Thursday, November 15, 2012

OAuth 2.0 Load testing with Wso2IS 4.0.0

This is simple Jmeter sample to do the load testing on Oauth 2.0 with wso2 identity server
Download jmeter script here.

First you have to register any application on IS as follows (no need to host the application)





Take the client_ID and Client_Secret then encode to Base64 format. You can easily do it by using the following url - http://www.base64encode.org/
ex:/ Client_ID:Client_Secret



Thread Group - oauth_get_access_token_thread_group
Here we are request the access token buy using the generated base64 encoded value
We are sending 10 oauth request to take the "access token" so first you have to register the 10 applications in IS as follows



Generate the base64 encoded value for each application and place those in jmeter script under "authorization"



What the jmere is doing -

1. Sending the request with base64 encoded value and take the "access token"
2. Save those access token in variable
3. Send validation request with those saved access tokens

In the Jmeter script you have to configure following stuff as well under "wso2_oauth_load_test" Test plan

Tuesday, October 23, 2012

Jmeter for Create users in LDAP

Download Jmeter project here. You have to change the configuration parameters in this project and put the thread count as your need.



Thursday, August 30, 2012

XACML policy load testing with Jmeter

This will help you to do the load testing on wso2 IS server
Fist follow my article Xacml policy testing with SoapUi

You don't need to take the soapui here what you have to do is
Download the Jmeter and import this jmeter-project
You can see the Jmeter project as follows



"UserAuthentication" Soap request is used to send the username and password to
authenticate the user



"SOAP/XML-RPC Request" is used to send the XACML request

Run the jmeter script and see the results under 'view results tree'



Check this jmeter file as well - This is with one time login to the  server and make the cookie and run the xacml  requests



There is another jmeter with Basic oauth headers as follows
The major change is there is no separate request for authorization