如果你想查看更多 Jmeter 常用函数可以在这篇文章找找哦

https://www.cnblogs.com/poloyy/p/13291704.html

 

作用

读取整个文件

 

语法格式

${__FileToString(C:\Users\user\Desktop\test1.dat,,)}

 

参数讲解

字段 含义 是否必传
File Name

需要读取的文件名

yes
File encoding
  • 读取文件的字符集
  • 不传则用系统默认字符集
no
Variable name 返回值引用名称 no

Jmeter 常用函数(28)- 详解 __FileToString

 

实际栗子

待读取文件的内容

Jmeter 常用函数(28)- 详解 __FileToString

 

线程组结构树

Jmeter 常用函数(28)- 详解 __FileToString

 

结果树

Jmeter 常用函数(28)- 详解 __FileToString

 

相关文章:

  • 2021-09-17
  • 2021-09-13
  • 2021-05-09
  • 2021-11-06
  • 2021-04-24
  • 2021-06-05
  • 2021-04-06
  • 2021-04-24
猜你喜欢
  • 2021-12-14
  • 2021-11-27
  • 2021-11-20
  • 2022-02-07
  • 2021-09-28
  • 2021-11-11
  • 2021-06-20
相关资源
相似解决方案