private void cmdRun_Click(object sender, EventArgs e) { List <NodeInfo> nodes = GetNodes(); if (nodes.Count == 0) { MessageBox.Show(this, "Please select the service node for the stress test!"); return; } FolderListViewItem item = GetSelectItem(); if (item.Info.Status != DTCore.Domains.DomainStatus.Completed) { MessageBox.Show(this, "Please wait while the test case is loaded!"); return; } if (item.Info.Cases == null || item.Info.Cases.Length == 0) { MessageBox.Show(this, string.Format("{0} no test cases that can run!", item.Name)); return; } mFrmStep = new FrmStep1(); mClient.MessageRoute.Register(mFrmStep); mFrmStep.UnitTest = item.Info.Name; mFrmStep.Text = mFrmStep.UnitTest; mFrmStep.Client = mClient; mFrmStep.Nodes = nodes; mFrmStep.ShowDialog(this); }
private void cmdRun_Click(object sender, EventArgs e) { List <NodeInfo> nodes = GetNodes(); if (nodes.Count == 0) { MessageBox.Show(this, "Please select the service node for the stress test!"); return; } mFrmStep = new FrmStep1(); mClient.MessageRoute.Register(mFrmStep); mFrmStep.UnitTest = GetSelectItem().Text; mFrmStep.Text = mFrmStep.UnitTest; mFrmStep.Client = mClient; mFrmStep.Nodes = nodes; mFrmStep.ShowDialog(this); }