LoadTestScenario.LoadProfile Property
Gets or sets the profile of the user load for this scenario.
Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public Property LoadProfile As LoadTestLoadProfile
public LoadTestLoadProfile LoadProfile { get; set; }
public:
property LoadTestLoadProfile^ LoadProfile {
LoadTestLoadProfile^ get ();
void set (LoadTestLoadProfile^ value);
}
member LoadProfile : LoadTestLoadProfile with get, set
function get LoadProfile () : LoadTestLoadProfile
function set LoadProfile (value : LoadTestLoadProfile)
Property Value
Type: Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestLoadProfile
The profile of the user load.
Remarks
Changes to the LoadProfile property take effect just before the next Heartbeat event after the new LoadProfile from the controller has been received by the agent. A Heartbeat event 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 change the value of theLoadProfile property. In this case, those changes are propagated to all other agents through the controller.
If plug-ins that are running on different agents all change the LoadProfile property, the last agent to change the value will override the previous value on all agents. Typically, the changes are applied in seconds on all agents. However, especially when you use 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.