JMeter - 在 While 循环控制器中读取 CSV 文件时遇到问题

JMeter - Facing Issue while Reading CSV file in While Loop Controller

我有一个 csv 文件,它附加到 2 个采样器,一个在循环内,一个在循环外。我的输入 csv 中有 3 行数据,但循环内的 SAMPLER 忽略了第一行并获取了第二行和第三行。不确定发生了什么...

图像中已附加“While 循环”条件。 While 循环函数是否有任何变化?

使用CSV Data Set Config时,如果变量名称为空,第一行将被忽略。您应该将相关的变量名称放在第一行或在 CSV Data Set Config 组件中填写变量名称。

JMeter supports CSV files which have a header line defining the column names. To enable this, leave the "Variable Names" field empty.

此外,根据 JMeter docs 避免在函数中使用 javaScript,请改用 jexl3 或 groovy:

javaScript is not the best scripting language for performances in JMeter. If your plan requires a high number of threads it is advised to use __jexl3 or __groovy functions.