WebTest.StopOnError Property
Gets or sets the indication of whether the test should stop running when an error occurs.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Property StopOnError As Boolean
public bool StopOnError { get; set; }
public:
property bool StopOnError {
bool get ();
void set (bool value);
}
member StopOnError : bool with get, set
function get StopOnError () : boolean
function set StopOnError (value : boolean)
Property Value
Type: System.Boolean
true stops the test after an error occurs; false allows the test to continue after an error.
Remarks
In the context of a load test, StopOnError stops only the current iteration or instance of the Web performance test from running. StopOnError does not stop other currently active or future instances of the Web performance test from running.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.