若是你想查看更多 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)}