Commit 23bf58af 23bf58af7f12563fa006ce4774aee8fa385892e3 by Christian Gerdes

Fixed a bug in SetTestParameter that threw exception when not enough test data f…

…or autosplit between agents.
1 parent 42f432ea
...@@ -362,6 +362,7 @@ namespace LIL_VSTT_Plugins ...@@ -362,6 +362,7 @@ namespace LIL_VSTT_Plugins
362 362
363 public void Initialize(LoadTest loadTest) 363 public void Initialize(LoadTest loadTest)
364 { 364 {
365 m_loadTest = loadTest;
365 // Only run on specific agents if specified 366 // Only run on specific agents if specified
366 if (myAgentNames.Length > 0 && !myAgentNames.ToLower().Contains(loadTest.Context.AgentName.ToLower())) return; 367 if (myAgentNames.Length > 0 && !myAgentNames.ToLower().Contains(loadTest.Context.AgentName.ToLower())) return;
367 368
...@@ -370,7 +371,6 @@ namespace LIL_VSTT_Plugins ...@@ -370,7 +371,6 @@ namespace LIL_VSTT_Plugins
370 371
371 if (myParams.Count > 0) 372 if (myParams.Count > 0)
372 { 373 {
373 m_loadTest = loadTest;
374 if (myUseUniqueIteration) 374 if (myUseUniqueIteration)
375 m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUniqueIteration); 375 m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUniqueIteration);
376 else if(myUseUniqueTestIteration) 376 else if(myUseUniqueTestIteration)
......