Ejemplo n.º 1
0
 private void mnuProjectAddTestParameter_Click(object sender, EventArgs e)
 {
     Document.AutomatedTest test = projectExplorerControl1.SelectedObject as Document.AutomatedTest;
     if (test != null)
     {
         Document.TestParameter newParameter = new TigerClient.Document.TestParameter();
         test.Parameters.Add(newParameter);
         projectExplorerControl1.SelectNodeFor(newParameter);
     }
 }
Ejemplo n.º 2
0
        private void mnuProject_DropDownOpening(object sender, EventArgs e)
        {
            if (isProjectExecuting)
            {
                mnuProjectAddTarget.Enabled        = false;
                mnuProjectAddTest.Enabled          = false;
                mnuProjectAddTestParameter.Enabled = false;
                mnuProjectRun.Enabled  = false;
                mnuProjectStop.Enabled = true;
            }
            else
            {
                mnuProjectAddTarget.Enabled = true;
                mnuProjectRun.Enabled       = true;
                mnuProjectStop.Enabled      = false;

                Document.Target target = propertiesControl1.SelectedObject as Document.Target;
                mnuProjectAddTest.Enabled = (target != null);

                Document.AutomatedTest test = propertiesControl1.SelectedObject as Document.AutomatedTest;
                mnuProjectAddTestParameter.Enabled = (test != null);
            }
        }