void EndpointsCTRL_ConnectEndpoint(object sender, ConnectEndpointEventArgs e)
{
try
{
if (m_running)
{
throw new InvalidOperationException("Test is already running.");
}
if (m_testConfiguration.Coverage == 0)
{
m_testConfiguration.Coverage = 100;
}
SetRunning(true);
EndpointTB.Text = e.Endpoint.EndpointUrl.ToString();
TestsCompletedTB.Text = "---";
IterationTB.Text = "---";
TestCaseTB.Text = "---";
TestCaseProgressCTRL.Value = 0;
ResultsTB.Clear();
ThreadPool.QueueUserWorkItem(Run, e.Endpoint);
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
e.UpdateControl = false;
}
}