示例#1
0
 public CRForm(FailureHelper failureTracker)
 {
     mFailureTracker = failureTracker;
     InitializeComponent();
     TargetProcessHelper.client = new System.Net.WebClient();
     this.AcceptButton          = credentialsBtn;
     TPsettings          = new Properties.TP();
     usernameTxtBox.Text = TPsettings.UserName;
     passwordTxtBox.Text = TPsettings.Password;
     button1.Enabled     = true;
 }
示例#2
0
        private void seeStatusMessageToolStripMenuItem_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", "Bug");
                string        msg            = failureTracker.GetStatusMsg(GetSolutionName(), GetRuntimeVersion(), GetAutomationName());
                StatusMessage msgForm        = new StatusMessage(msg);
                msgForm.Show();
            }
        }
示例#3
0
        private void acceptedFailureToolStripMenuItem_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", "AcceptedFailure");
                AcceptedFailure acceptedFailureDialog = new AcceptedFailure(failureTracker);
                acceptedFailureDialog.Show();
                acceptedFailureDialog.OnFormClosed += new AcceptedFailureDialogClosed(AcceptedFailureDialog_Closed);
            }
        }
示例#4
0
        private void bugToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var node = treeListView1.SelectedNodes[0];

            //if it's a failure it will have 4 subitems (for now)
            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", "Bug");
                CRForm        crform         = new CRForm(failureTracker);
                crform.OnFormClosed += new CRFormClosed(CRForm_Closed);
                crform.Show();
                FillCrForm(crform);
            }
        }
示例#5
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);
            }
        }
示例#6
0
 public AcceptedFailure(FailureHelper failureTracker)
 {
     mFailureTracker = failureTracker;
     InitializeComponent();
     this.AcceptButton = OkayBtn;
 }