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
public void Initialize(LoadTest loadTest)
{
m_loadTest = loadTest;
// Only run on specific agents if specified
if (myAgentNames.Length > 0 && !myAgentNames.ToLower().Contains(loadTest.Context.AgentName.ToLower())) return;
......@@ -370,7 +371,6 @@ namespace LIL_VSTT_Plugins
if (myParams.Count > 0)
{
m_loadTest = loadTest;
if (myUseUniqueIteration)
m_loadTest.TestStarting += new EventHandler<TestStartingEventArgs>(loadTestStartingUniqueIteration);
else if(myUseUniqueTestIteration)
......