【发布时间】:2016-09-09 19:39:39
【问题描述】:
我是 JMeter 的新手,无法弄清楚如何让我的默认 URL 成为我想要的样子。现在,我在我的测试计划中添加了一个HTTP Request Defaultsconfig 元素。在 Web 服务器框中,我有一个以下格式的 url:
testproject.company.com
我真正想要的默认 URL 是
testproject.company.com/test
我尝试的第一件事是将Server Name or IP 设置为testproject.company.com/test,但这给了我一个错误
java.net.UnknownHostException: testproject.company.com/test
接下来,我将Server Name or IP 设置回testproject.company.com 并在HTTP 请求部分的Path 框中填写
/test
这不会导致任何错误,但我的所有测试都失败了,因为它只是使用testproject.company.com 作为默认 URL。
我也在使用Project Files 配置,在配置CSV 数据源部分的Filename 框中,有一个.csv 文件的路径。 .csv 文件包含以下内容:
testproject.company.com/test/,username@testproject.train,10,true,WIN
是什么阻止了 JMeter 将 /test 添加到默认 URL?
【问题讨论】:
标签: apache csv url testing jmeter