LoadTestScenario.LoadProfile Property
Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public Property LoadProfile As LoadTestLoadProfile
'Usage
Dim instance As LoadTestScenario
Dim value As LoadTestLoadProfile
value = instance.LoadProfile
instance.LoadProfile = value
public LoadTestLoadProfile LoadProfile { get; set; }
public:
property LoadTestLoadProfile^ LoadProfile {
LoadTestLoadProfile^ get ();
void set (LoadTestLoadProfile^ value);
}
public function get LoadProfile () : LoadTestLoadProfile
public function set LoadProfile (value : LoadTestLoadProfile)
Property Value
Type: Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestLoadProfile
Remarks
Changes to the LoadProfile take affect just before the next HeartbeatEvent after the new LoadProfile has been received by the agent from the controller. A HeartbeatEvent occurs every second.
You can assign values to the LoadProfile property of LoadTestScenario in the Initialize() method or in any of the LoadTestPlugin event handlers. However, it is pointless to assign a value to this property in the LoadTestFinished event handler.
In a multi-agent test rig, a Load Test Plug-in that is running on any of the agents can make changes to the LoadProfile property. In this case, those changes are propagated to all other agents through the controller.
If plug-ins running on different agents both change the LoadProfile property, the last one to change the value will override the previous value on all agents. Typically, the changes are applied within seconds on all agents. However, especially when you are using a large number of agents, some agents might begin to use the new settings before other agents.
.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.