若是你想查看更多 Jmeter 经常使用函数能够在这篇文章找找哦html
https://www.cnblogs.com/poloyy/p/13291704.htm函数
从文本文件读取字符串,每次一行spa
${__StringFromFile(C:\Users\user\Desktop\test1.dat,data,1,2)}
字段 | 含义 | 是否必传 |
---|---|---|
File Name | 读取文件的文件名 | yes |
Variable Name | 引用变量名 | no |
Start sequence number | 初始序列化 | no |
End sequence number | 最终序列化 | no |
共三行数据线程
1 个线程,循环 6 次3d
${_StringFromFile(test1.dat,,,2)} 表明读取文本文件两次,没有写 2 则表明 1 次code
2 个线程htm
循环 3 次,等于 1 个线程循环 3 次blog
${__StringFromFile(C:\Users\user\Desktop\test#.dat,,1,2)}