【发布时间】:2011-06-07 19:59:52
【问题描述】:
我在使用 tsung 时遇到问题:
我在一个目录中有多个文件,我必须将它们发送到服务器。一世 使用此文件列表(完整路径)创建文件并添加一个选项 tsung 配置:
<option name="file_server" id="xml_files" value="/home/ubuntu/.tsung/files"></option>
我的目标是从此文件中选择一个随机文件路径并发送到 服务器。为此,我编写了这部分配置:
<setdynvars sourcetype="file" fileid="xml_files" delimiter=";"
order="random">
<var name="file_name" />
</setdynvars>
<request subst="true">
<http url="/" version="1.1" method="POST"
contents_from_file="%%_file_name%%"></http>
</request>
但这不起作用。当我将 attr contents_from_file 设置为常量时 一切正常。 有没有办法用变量做到这一点?
【问题讨论】:
-
FWIW,这还不可能。我已经在support.process-one.net/browse/TSUN-233创建了一张票
标签: performance scalability benchmarking load-testing tsung