I have investigated both soapUI/loadUI and JMeter but I have settled on using my own custom-written Web Service client to perform both functional and performance testing. I have integrated Groovy
so that test cases can be written without the need to recompile anything, and as my client uses generated proxy classes I am able to manipulate POJOs rather than XML to create requests and validate responses.
I'm already able to generate requests sequentially and in parallel (using a fixed number of threads) but I would like to generate load in a similar method to the loadUI generators which work using Transactions Per Second (TPS).
I am unsure how to maintain a fixed (or ramping) TPS load, so can anyone suggest a technique to use or some code to look at that I might find instructive?
我已经使用ExecutorService
(缓存的线程池)和CompletionService
的组合解决了这个问题,并且只需管理创建“任务”之间的时间即可。
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.