Пример #1
0
        private void ctxTestTestRun_Click(object sender, EventArgs e)
        {
            try
            {
                System.Windows.Forms.Cursor.Current = Cursors.WaitCursor;
                Document.AutomatedTest test = treeView.SelectedNode.Tag as Document.AutomatedTest;
                //if (test != null) test.Run(true);
                if (test != null)
                {
                    Utilities.frmSingleTestRunner f = new TigerClient.Utilities.frmSingleTestRunner();
                    f.Run(test);
                }

                System.Windows.Forms.Cursor.Current = Cursors.Default;
            }
            catch (Exception ex)
            {
                System.Windows.Forms.Cursor.Current = Cursors.Default;
                MessageBox.Show(ex.Message);
            }
        }
Пример #2
0
        private void ctxTestTestRun_Click(object sender, EventArgs e)
        {
            try
            {
                System.Windows.Forms.Cursor.Current = Cursors.WaitCursor;
                Document.AutomatedTest test = treeView.SelectedNode.Tag as Document.AutomatedTest;
                //if (test != null) test.Run(true);
                if (test != null)
                {
                    Utilities.frmSingleTestRunner f = new TigerClient.Utilities.frmSingleTestRunner();
                    f.Run(test);
                }

                System.Windows.Forms.Cursor.Current = Cursors.Default;
            }
            catch (Exception ex)
            {
                System.Windows.Forms.Cursor.Current = Cursors.Default;
                MessageBox.Show(ex.Message);
            }
        }