Keycloak monolithic app load testing using jmeter

51 Views Asked by At

I was Looking for a way to load test my monolithic application using jmeter , However i was unable to do using the Jmeter as it used Keycloak based authentication and was not sure how to handle this using jmeter

Can someone please suggest how to do this in Jmeter or any other tool available to complete this activity

Tried recording scripts using blazemeter plugin but it failed as it was not getting logged in

1

There are 1 best solutions below

3
Dmitri T On

"Keycloak based authentication" can be one of the following:

so you need to identify which protocol is being used and look for JMeter-specific instructions for bypassing authentication/authorization challenge for this protocol in your JMeter test.

If you're looking for a general piece of advice it would be one word: correlation:

  1. Record your test using JMeter's HTTP(S) Test Script Recorder
  2. Identify dynamic values
  3. Extract them from previous responses using suitable JMeter Post-Processors and replace recorded values with the relevant JMeter Variables
  4. That would be it

Here is an example of correlating dynamic values in Keycloak-protected application using Boundary Extractor:

enter image description here

enter image description here