Jmeter - CSV数据集配置达到<eof>,仅读取备用线程的值</eof>

时间:2014-03-26 16:31:43

标签: csv jmeter

我面临着CSV数据集配置的奇怪问题。我获取备用线程和备用线程的值,它获取<EOF>值。

我与所有相关文件共享了测试脚本 - &gt; [JMeterScript.zip]:https://dl.dropboxusercontent.com/u/48816404/JMeterScript.zip

预期结果 Thread 1 : username = p_user1, password = p_pass1, WAIT0 = 1200<br> Thread 1 : var1 = value1, var2 = value2, var3 = value3, var4 = value4, var5 = value5, var6 = value6<br> Thread 3 : username = p_user2, password = p_pass2, WAIT0 = 117000<br> Thread 3 : var1 = value11, var2 = value12, var3 = value13, var4 = value14, var5 = value15, var6 = value16<br> Thread 5 : username = p_user3, password = p_pass3, WAIT0 = 114000<br> Thread 5 : var1 = value21, var2 = value22, var3 = value23, var4 = value24, var5 = value25, var6 = value26<br> Thread 7 : username = p_user4, password = p_pass4, WAIT0 = 111000<br> Thread 7 : var1 = value31, var2 = value32, var3 = value33, var4 = value34, var5 = value35, var6 = value36<br> ....

我得到的结果 Thread 1 : username = p_user1, password = p_pass1, WAIT0 = 1200 Thread 1 : var1 = <EOF>, var2 = <EOF>, var3 = <EOF>, var4 = <EOF>, var5 = <EOF>, var6 = <EOF> Thread 2 : username = , password = ${password}, WAIT0 = ${WAIT0} Thread 2 : var1 = value1, var2 = value2, var3 = value3, var4 = value4, var5 = value5, var6 = value6 Thread 3 : username = p_user2, password = p_pass2, WAIT0 = 117000 Thread 3 : var1 = <EOF>, var2 = <EOF>, var3 = <EOF>, var4 = <EOF>, var5 = <EOF>, var6 = <EOF> Thread 4 : username = , password = ${password}, WAIT0 = ${WAIT0} Thread 4 : var1 = value11, var2 = value12, var3 = value13, var4 = value14, var5 = value15, var6 = value16 ....

我正在使用Java 7u51和JMeter 2.10。

如果需要任何其他详细信息,请告诉我。

欢迎任何意见/建议。

谢谢,
Sajid

P.S。第一次发布问题

2 个答案:

答案 0 :(得分:2)

检查JMeter.log以查看您是否没有FileNotFoundException,这意味着找不到您的文件。 你在哪里运行你的CSV?

JMeter的启动参数是什么?

对于换行符和第一个字符,你的CSV也很奇怪。

答案 1 :(得分:1)

我在EOF配置中也遇到了这个CSV问题,发现它显示错误的文件未找到。我已将CSV文件放在bin中,jmeter正在桌面上搜索它。所以它向我显示EOF。试试这个。 为避免这种情况,请在Stop Thread配置元素中的EOF = True上使用CSV