简体   繁体   中英

How can i use multiple JSON files, into a Thread Group /(bzm - Concurrency Thread Group) of Jmeter 5.1.1, to do a concurrent testing?

using Jmeter 5.1.1, I want to do a concurrent testing. I use "Thread Group" or "bzm - Concurrency Thread Group" into a "Test Plan" of Jemter. I have to use multiple JSON files. so i created multiple HTTP requests and input JSON files into them. my Jmeter screenshot multiple JSON files are into multiple HTTP requests

Is it a Concurrent Testing?

How can I use multiple JSON files into a HTTP request?

In your scenario JMeter will kick off 3 threads in 1 second and let them run for another second. The numberHTTP Request samplers which will be executed will depend on your application response time. If 3 virtual users running requests for 1 second is what you call "concurrent testing" then yes. You can always check how many virtual users were online during each test phase using Active Threads Over Time listener.

Looking into the structure of your requests you can achieve the same by using a single HTTP Request sampler, JMeter offers a number of functions which can be used for parameterization, for example you can use:

Check out Apache JMeter Functions - An Introduction article for more information on JMeter Functions concept.

I add multiple "Thread Group" into a "Test Plan". Inside "Test Plan" Unselect "Run thread groups consecutively".

Inside every "Thread Group" configure "Number of Threads(users)" as "1", "Ramp-Up Period" as "0", "Loop Count" as "1".

Now, add "HTTP Request" into each "Thread Group". Every "HTTP Request" you can add your "JSON file" and configure the "URL". Configure all the "HTTP Request" according to this.

Now add "View Results Tree" as a listener into a "Test Plan". Now run the Test plan.

example of using multiple JSON files to do a concurrent testing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM