In my application , we want to mitigate real browser parallel calls (concurrently) using jmeter. Below is the browser HAR details, if you observed this, you can find three parallel calls.
Download this project from GitHub
I am using Jmeter "If Controller" to mitigate this behavior in jmeter. Below are the steps
Step 1: Add "Thread Group" to "Test plan"
Step 2: From "Logic Controller" add the "If Controller" as a Child to "Thread Group"
Note 1: "If controller" always execute only if condition is true, In our case, jmeter need to execute "If controller" every time , So i am adding true condition(true==true or 1==1) to "Condition" block to execute "If controller".
Note 2: In "If controller" check the "Evaluate for all child?" option, This option will execute all samplers/HTTP requests with in this "Controller" at a time. This is awesome option.
Step 3: In my case Jmeter needs to span 3 parallel calls (concurrently). So i am adding three samplers/HTTP samplers (/xhr redirect,/xhr marketing and /xhr locationdetails) as childs to this controller (If controller).
Step 4: Add "View Results tree" from "Listener" to this "Thread Group" and Run the Jmete script after saving the "Test Plan" and verify the parallel calls details in Jmeter
"view results tree" by clicking "Sampler Results".
Above three calls are made a time as a parallel calls.
5 comments:
sry, its not working, check your test plan with View Results in Table
https://dl.dropboxusercontent.com/s/cyw1fff5wtro9n1/2017-02-24_15-53-20.jpg - scr from View Results in Table
Dolboeb fantastico
sorry , not working too
Sorry not working , I think if condition not do such that behavior
WIBF
I have tried ,but it is not working
Post a Comment