LoadTestLoadProfile.Validate Method

Throws an InvalidLoadProfileException if the LoadProfile object has invalid or inconsistent properties.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public MustOverride Sub Validate
'Usage
Dim instance As LoadTestLoadProfile

instance.Validate()
public abstract void Validate()
public:
virtual void Validate() abstract
public abstract function Validate()

Remarks

The exception that Validate() throws contains an appropriate message. That message can be displayed in the load test results viewer in Visual Studio.

This is a virtual method that must be implemented by each class extending LoadTestLoadProfile.

Whenever a Load Test plug-in assigns a new object to the LoadProfile property of LoadTestScenario, the Validate() method of the class that extends LoadTestLoadProfile is called. If Validate() throws an exception, the exception is reported in the load test results, both in the UI and in the results database. When this happens, the current load profile settings continue to remain in effect.

.NET Framework Security

See Also

Reference

LoadTestLoadProfile Class

LoadTestLoadProfile Members

Microsoft.VisualStudio.TestTools.LoadTesting Namespace