JMeter使用 远程csv文件注意

jMeter 使用 服务器发起测试时候,读取服务器端的csv文件有些注意事项。

1)新建 “csv 数据文件设置”,文件名为 在服务器端启动 jmeter-server时候的目录下的文件,不要写绝对路径。

官网原话是:

Filename
Name of the file to be read. Relative file names are resolved with respect to the path of the active test plan. For distributed testing, the CSV file must be stored on the server host system in the correct relative directory to where the JMeter server is started
2)测试案例就可以直接使用 上部定义的变量了,如${card}。

猜你喜欢

转载自xinglijun1973.iteye.com/blog/2429862