コード例 #1
0
ファイル: CRForm.cs プロジェクト: bbai/TestResultUI
 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;
 }