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.

LoadTestContext::AgentId Property

 

Gets the one-based index for the current agent.

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

public:
property int AgentId {
	int get();
	internal: void set(int value);
}

Property Value

Type: System::Int32

The one-based index for the current agent.

If you run a load test on a test rig that uses four agents, the AgentId valuess are numbered 1 to 4.

Return to top
Show: