Esempio n. 1
0
        private void btnRun_Click(object sender, EventArgs e)
        {
            if (this._testCases.Count > 0)
            {
                if (this.lstTestData.SelectedItem != null)
                {
                    TestSet set = TestSet.Standard;
                    if (this.radLoadAndMem.Checked)
                    {
                        set = TestSet.LoadAndMemory;
                    }

                    TestSuite      suite  = new TestSuite(this._testCases, (String)this.lstTestData.SelectedItem, (int)this.numIterations.Value, set);
                    fclsTestRunner runner = new fclsTestRunner(suite);
                    runner.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Please selected Test Data to use...", "Test Data Required", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
            else
            {
                MessageBox.Show("Please create one/more Test Cases...", "Test Case(s) Required", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
 private void btnRun_Click(object sender, EventArgs e)
 {
     if (this._testCases.Count > 0)
     {
         if (this.lstTestData.SelectedItem != null)
         {
             TestSuite suite = new TestSuite(this._testCases, (String)this.lstTestData.SelectedItem, (int)this.numIterations.Value);
             fclsTestRunner runner = new fclsTestRunner(suite);
             runner.ShowDialog();
         }
         else
         {
             MessageBox.Show("Please selected Test Data to use...", "Test Data Required", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
     else
     {
         MessageBox.Show("Please create one/more Test Cases...", "Test Case(s) Required", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }