[英]Consecutively changed value of parameter in JMeter HTTP Request
I want to create a test plan for testing a given web, using JMeter. 我想使用JMeter创建测试给定Web的测试计划。 There are two parameters in this test: X and Y.
该测试有两个参数:X和Y.
Each loop, I give a random number from 0 to 50 ${__Random(0,50,)}
as parameter X, and then give Y the values as follows: Y=[0,10,20...50]
consecutively (X remains the same). 每个循环,我给出一个0到50
${__Random(0,50,)}
的随机数作为参数X,然后给Y Y=[0,10,20...50]
如下: Y=[0,10,20...50]
连续( X保持不变)。
I used a counter here, but I got a different X each time. 我在这里使用了一个计数器,但每次都有一个不同的X. And user parameters don't seem suitable for this problem.
并且用户参数似乎不适合此问题。 Or maybe I just don't know how to use them correctly.
或者我可能只是不知道如何正确使用它们。
Are there any methods to solve this problem? 有什么方法可以解决这个问题吗? I'm new to this tool, so it may be something basic.
我是这个工具的新手,所以它可能是基本的东西。
Thanks in advance:D 提前致谢
Here is the screenshot of my test plan: 这是我的测试计划的屏幕截图:
Add a csv data set as child of test plan and put in File you will reference from it 添加一个csv数据集作为测试计划的子项,并放入文件,您将从中引用它
0
10
20
30
40
50
Set y as var And use ${y} as Y value 将y设置为var并使用$ {y}作为Y值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.