Jmeter测试计划运行请求不一致 [英] Jmeter test plan run requests not consistently

查看:81
本文介绍了Jmeter测试计划运行请求不一致的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的测试计划:

这里的问题是请求不一致.如果 bid 响应代码为200,则它应为每个 bid 请求运行 win 请求,但在我的情况下,它将运行所有 bid 请求,并且仅在开始运行 win 请求

The issue here is that requests not consistently. It should run win request for each bid request if bid response code is 200 but in my case, it running all bid requests and only after start running win requests

说明:

  • 出价请求-是每个出价请求的CSV数据集配置和随机json(就像提到的
  • bid requests - is CSV Data set config wit random jsons for each bid request (did like mentioned here)
  • thread - it's a thread with 200 users and 1 loop
  • bid - post request, for body I'm using one of json files ${__FileToString(/home/user/Downloads/jmeter/jsons/${__eval(${JSON_FILE})}.txt,,)}. Also bid request include currency, bidid etc. it's Json extractors, I'm using that data to generate correct win URL for each bid.
  • if bid made - if controller run win request only if bid response code is 200
  • win - get request, where URL queries are different depends on bid response (using Json extractors). Url looks like: win?auctionId=${AUCTIONID}&bidId=${BIDID}&impId=${IMPRESSIONID}&seatId=${SEAT}&price=${__javaScript((Math.random()* (4 - 1)+1).toFixed(4);)}&cur=${CUR}&adId=${ADID}

感谢您的帮助!

推荐答案

在低启动时间段内,将首先在多线程测试中并行发送请求.

With low ramp up period first requests will be sent in parallel on multi threads test.

如果您阅读线程组

您应该增加升级"直到等于线程数.

You should increase the "ramp-up" until it equals to the number of threads.

加速期告诉JMeter,需要多长时间来加速"加速.到所选线程的总数.如果使用了10个线程,并且启动周期为100秒,那么JMeter将花费100秒来使所有10个线程都启动并运行.

The ramp-up period tells JMeter how long to take to "ramp-up" to the full number of threads chosen. If 10 threads are used, and the ramp-up period is 100 seconds, then JMeter will take 100 seconds to get all 10 threads up and running.

您可以查看相关的动态加速问题

这篇关于Jmeter测试计划运行请求不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆