我遇到了数据绑定(bind) Web 性能测试的问题。我有两个网络测试,每个测试都将数据绑定(bind)到不同的 CSV 文件。最初创建的第一个运行完美。但第二个网络测试抛出以下内容。
错误:
Could not run Web test 'WebTest1' on agent {{SERVER}}: Could not access table 'Data#csv' in data source '{{Datasource}}' of test '6181b289-71fa-478f-8341-eba270b46c2a': No value given for one or more required parameters.
我在本地运行它们。未设置 Controller 或代理,我使用的是 VS 2010 SP1
。
最佳答案
在 Web 测试中加载的 Visual Studio 中打开 CSV 文件,并将 header 和值的分隔符从 ;
更改为 ,
。例如:
之前:
username;password;shopID;periodID
user1;password11;1;10
user2;password22;2;10
之后:
username,password,shopID,periodID
user1,password11,1,10
user2,password22,2,10
关于tfs - 无法在代理 TFS 2010 上运行 Web 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13454821/