コード例 #1
0
ファイル: CRForm.cs プロジェクト: bbai/TestResultUI
        private void SubmitCRBtn_Click(object sender, EventArgs e)
        {
            string result = TargetProcessHelper.MakeCR(GetChosenProject(), GetChosenUserStory(),
                                                       GetBugName(), GetBugLocation(), GetFailMessage());

            if (result != null)
            {
                MessageBox.Show("Success! CR#" + result + " submitted.");
                mFailureTracker.ProcessFailure("http://target.openspan.com/tp/entity/" + result);
                OnFormClosed("Submit");
                this.Close();
            }
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text.Count() == 0)
     {
         MessageBox.Show("Please Enter Message!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         bool status = mFailureTracker.ProcessFailure(textBox1.Text);
         if (status == true)
         {
             MessageBox.Show("Marking as Accepted Failure Success!", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         OnFormClosed("OK");
         this.Close();
     }
 }
コード例 #3
0
        private void failureToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var node = treeListView1.SelectedNodes[0];

            if (node.SubItems.Count != 6)
            {
                MessageBox.Show("Please Select a Failure Node", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                FailureHelper failureTracker = new FailureHelper(DbAddressTxt.Text, PortTxt.Text, DbNameTxt.Text,
                                                                 GetSolutionName(), GetRuntimeVersion(), GetAutomationName(), "False", "Failure");
                failureTracker.ProcessFailure("Unknown");
                node.SubItems[1].Text = "\u2714";
                node.SubItems[2].Text = " ";
                node.SubItems[3].Text = " ";
                MessageBox.Show("Successfully marked as Failure!", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }