Jmeter的ftp请求具有不同的文件名 [英] Jmeter ftp requests with different file names

查看:388
本文介绍了Jmeter的ftp请求具有不同的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对jmeter很陌生。我准备了一些jmeter脚本将文件从本地目录移动到远程ftp目录。我通过使用Jmeter FTP采样器成功完成了这项工作。现在我在每次更改文件名之前都要面对一个挑战,因为我把它放在远程目录中。我想用不同的文件名处理多个ftp请求。

有什么方法可以在每个FTP请求中更改文件名,然后再转到FTP请求。 jmeter version 2.13。



谢谢,
Ajeesh

解决方案

您可以使用csv配置元素,



您需要从csv配置文件中加载文件名:





每次迭代都会使用一个CSV条目,它会用变量替换名称$ {files}。


I am new to the jmeter. I prepared some jmeter scripts to move file from local directory to remote ftp directory. I have succeeded doing this by using jmeter FTP sampler. Now I am facing a challenge in changing the filename every time before I put it in remote directory. I want to process multiple ftp requests with different file names.

Is there any way that I can change the filename in every FTP request before moving to FTP request. jmeter version 2.13.

Thanks, Ajeesh

解决方案

You could use an csv configuration element, this talks about the same problem but for http.

First you need to add an FTP sampler:

And you need to load the file names from a csv configuration file:

.

It will use a CSV entry per each iteration, it will replace the name by the variable ${files}.

这篇关于Jmeter的ftp请求具有不同的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆