使用VS Team Services时,将忽略WebTestRequest.ReportingName

Mat*_*ero 8 c# performance-testing visual-studio azure-devops

我的自定义中有以下方法WebTest:

private WebTestRequest CreateRequest(CommandInput command)
{
    WebTestRequest request = new WebTestRequest(URL);
    request.ReportingName = command.CommandName;
    request.Method = command.HttpMethod;

    // ...

    return request;
}
Run Code Online (Sandbox Code Playgroud)

在我,GetRequestEnumerator我正在调用这样的方法:

public override IEnumerable<WebTestRequest> GetRequestEnumerator()
{
     return new CommandInput[]
     {
         new CommandInput() { CommandName = "configuration", HttpMethod = "POST" },
         new CommandInput() { CommandName = "login", HttpMethod = "POST" },
         new CommandInput() { CommandName = "quick_view", HttpMethod = "GET" },
         new CommandInput() { CommandName = "esign_document", HttpMethod = "POST" }
     }.Select(CreateRequest).GetEnumerator();
}
Run Code Online (Sandbox Code Playgroud)

注意:原始代码比这更复杂,但它无关紧要.

在我的本地计算机上运行负载测试时,这工作正常:

您可以看到每个请求都由ReportingNameproperty 的值标识

本地摘要

但是,如果我在Visual Studio Online服务上运行负载测试,请求将按URL而不是以下值进行分组ReportingName:

云摘要

请求被分组为command {GET},command {POST}因为对于我的测试用例(https://test.xxxx.com/api/command)上的每个请求,URL都是相同的,只有一些请求的HTTP方法不同.

我在互联网上搜索了几个小时,只是在MSDN上找到了关于它的这个开放主题:

报告名称未显示在在线负载测试的页面结果中

怎么了?

Edd*_*SFT 1

此问题将于 10 月 16 日修复。

由 Shiva [MSFT] 发布于 2016 年 9 月 28 日上午 8:59

感谢您报告此问题。我们已解决该问题并将于 10 月 16 日部署。