英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论