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 int AgentId { get; internal set; }

Property Value

Type: 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.

Show: