4

我只是在尝试 Application Insights 可用性测试。我让他们通宵跑到我们的公共网站,结果只有“失败”

当我深入到单独的测试运行时,我看到服务器以“200 OK”响应,发送了预期的 html 标记。但是在“例外”中它说

System.UriFormatException: Invalid URI: The format of the URI could not be determined.System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at Microsoft.VisualStudio.TestTools.WebTesting.HtmlDocument.ParseForDependentRequests(Boolean urlsOnly)
   at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.BuildDependentRequestsList(WebTestInstrumentedTransaction instrumentedTransaction)
   at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.AddParsedDependentRequests(ExecutionState executionState)

这是我在 azure 门户中看到的

有谁知道那里发生了什么?我错过了什么?

4

1 回答 1

5

当 webtest 引擎尝试解析依赖请求信息以验证资源时,很可能会发生此异常。webtest 错误地解析依赖资源或网页包含无效引用。

WebTest 应该给出一个更好的错误来解释它抱怨的资源。

要解决此问题(如果可以接受) - 您可以禁用“解析相关请求”选项(见下文)。注意 - webtest 不会测试依赖资源。

在此处输入图像描述

于 2017-01-30T17:50:37.013 回答