0

I need to write a scenario where we make several calls to an API in parallel with JMeter. The solution is based on OAuth, where a token is extracted and passed along with every call made to the API. This works fine, however, JMeter has no built-in option to make multiple parallel calls. I could divide them into separate thread groups, but this would not be desired.

  • Thread group
    • oauth calls to get token
    • extract token
    • api call /getCustomerActions
    • api call /getCustomerBlabla1..
    • api call /getCustomerBlabla2..

I've found the following custom sampler by Franz See:

https://github.com/franz-see/jmeter-parellarel-request

As I'm not big on development/compiling, my question would be how do I compile this package and use in in JMeter?

Masud Jahan
  • 3,418
  • 2
  • 22
  • 35
DMC
  • 219
  • 2
  • 15

2 Answers2

1
  1. Download and install Apache Maven.
  2. Download latest jmeter-parallel-request release
  3. Unpack downloaded sources and switch to that folder
  4. Invoke maven package command from that folder
  5. Copy file from target/jmeter-parallel-request-xx.jar to JMeter's lib/ext folder
  6. Restart JMeter to pick the plugin up

You can also check out How to Load Test AJAX/XHR Enabled Sites With JMeter guide for alternative solutions.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
0

this plugin seems to work, but using it as a seperate thread group, all extracted values or tokens from other (main) threads are not captured.. too bad

DMC
  • 219
  • 2
  • 15