1

次のようなコードを使用して、CustomErrors をオフにしようとしている Web テストがあります。

Option Strict Off
Option Explicit On

Imports Microsoft.VisualStudio.TestTools.WebTesting
Imports Microsoft.VisualStudio.TestTools.WebTesting.Rules
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Test.AppFx.LoadTesting.Platform


Namespace Test.AppFx.LoadTesting.Enterprise

    Public Class Prospect_Init
        Inherits ThreadedWebTest

        Public Sub New()
            MyBase.New()
            Me.PreAuthenticate = True
        End Sub






        Public Overrides Sub Run()
            'Initialize validation rules that apply to all requests in the WebTest
            If (Me.Context.ValidationLevel >= Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel.Low) Then
                Dim validationRule1 As ValidateResponseUrl = New ValidateResponseUrl()
                AddHandler ValidateResponse, AddressOf validationRule1.Validate
            End If
            If (Me.Context.ValidationLevel >= Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel.Low) Then
                Dim validationRule2 As ValidationRuleResponseTimeGoal = New ValidationRuleResponseTimeGoal()
                validationRule2.Tolerance = 0.0R
                AddHandler ValidateResponseOnPageComplete, AddressOf validationRule2.Validate
            End If

            ' What ever roles are required for the tests in this scenario should be defined here. All 
            ' tests in the scenario will share them. 

            Dim roles() As String = {"Prospects Area"}

            'Login
            Prospects_Helper.Prospects_Login(Me, roles)

        End Sub

    End Class
End Namespace

これらはすべて特定のテストの前に実行され、この特定のコードは現在、負荷テスト中にエラーが発生します。この問題のトラブルシューティングを支援するには、カスタム エラーを無効にする必要があります。私はこれを見つけモードをオフとして定義する必要があることを知っていますが、正確に何を宣言する必要があるのか​​ わかりません(この時点でVBよりもT-SQLで作業しているため、建築)。

ここでカスタムエラーをオフにするために追加する必要があるものを誰かが理解するのを手伝ってくれますか?

4

0 に答える 0