Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LoadTestConstantLoadProfile::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)

public:
virtual void Validate() override

The exception that Validate() throws contains an appropriate message. That message can be displayed in the Load Test Results viewer in Visual Studio.

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 occurs, the current load profile settings continue to remain in effect.

Return to top
Show: