如何通过Simple Table Server在JMeter中初始化一个CSV文件

huangapple go评论63阅读模式
英文:

how to Initialize a csv file in jmeter via Simple table server

问题

我能够在JMeter的bin文件夹中通过Simple Table Server来初始化CSV文件。

根据需求,我需要从不同的位置初始化CSV文件,我尝试了多种方法,但出现错误,错误消息是"Error : Illegal character found !"。

文件位置:C:/sample/sample.csv

请建议如何处理这种情况。

英文:

i am able to initialize a CSV file via Simple table server when file is in jmeter bin folder.

as per requirement i need to initialize CSV file from a different location, i tried multiple ways but i am getting error as "<body>Error : Illegal character found !"

file location: C:/sample/sample.csv

please suggest solution how to handle this scenario

答案1

得分: 0

文档1指出:

> 文件名限制为最多128个字符,不得包含字符\ / :或..
>
> 这些限制是出于安全原因(例如,不读取“/etc/passwd”或../../../tomcat/conf/server.xml)。

而不是传递文件的完整路径,您应该设置以下JMeter属性

jmeterPlugin.sts.datasetDirectory=C:/sample

并在INTIFILE命令中只使用sample.csv

英文:

The documentation states:

>The filename is limited to 128 characters maxi and must not contains characters \ / : or ..
>
>This limits are for security reasons (E.g: NOT read "/etc/passwd" or ../../../tomcat/conf/server.xml).

Instead of passing the full path to the file you should rather set the following JMeter property:

jmeterPlugin.sts.datasetDirectory=C:/sample

and use just sample.csv in the INTIFILE command.

huangapple
  • 本文由 发表于 2023年7月27日 23:14:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76781164.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定