var assignedConfigKey = context.config.parallelNum % dom.configModels.Count; ConfigModel assignedConfig = null;
int index = 0; foreach (var key in dom.configModels.Keys) { if (index == assignedConfigKey) { assignedConfig = dom.configModels[key]; break; } index++; }
Console.WriteLine("The current machine is executing the configmodel:"); Console.WriteLine(assignedConfig);
// Start agents foreach (Dom.Agent agent in test.agents.Values) { // Only use agent if on correct platform if ((agent.platform & Platform.GetOS()) != Platform.OS.None) { context.agentManager.AgentConnect(agent,assignedConfig); context.agentManager.GetAgent(agent.name).SessionStarting();
// Note: We want to perfrom SessionStarting on each agent // in turn. We do this incase the first agent starts // a virtual machine that contains the second agent. } }