示例#1
0
 private void butWebService_Click(object sender, EventArgs e)
 {
     RemotingClient.ServerURI = "http://localhost:49262/ServiceMain.asmx";
     Cursor = Cursors.WaitCursor;
     try{
         if (!isOracle)
         {
             Userod user = Security.LogInWeb("Admin", "", "", Application.ProductVersion, false);              //Userods.EncryptPassword("pass",false)
             Security.CurUser            = user;
             RemotingClient.RemotingRole = RemotingRole.ClientWeb;
         }
         else if (isOracle)
         {
             MsgBox.Show(this, "Oracle does not have unit test for web service yet.");
             Cursor = Cursors.Default;
             return;
         }
     }
     catch (Exception ex) {
         Cursor = Cursors.Default;
         MessageBox.Show(ex.Message);
         return;
     }
     textResults.Text = "";
     Application.DoEvents();
     textResults.Text += WebServiceT.RunAll();
     Cursor            = Cursors.Default;
 }
示例#2
0
 private void butWebServiceParamCheck_Click(object sender, EventArgs e)
 {
     Cursor = Cursors.WaitCursor;
     if (!WebServiceT.ConnectToMiddleTier(textMiddleTierURI.Text, textMiddleTierUser.Text, textMiddleTierPassword.Text, Application.ProductVersion, _isOracle))
     {
         Cursor           = Cursors.Default;
         textResults.Text = "Error connecting to Middle Tier.";
         return;
     }
     textResults.Text = "";
     Application.DoEvents();
     textResults.Text = "This unit test has been deprecated.  Use Microsoft.VisualStudio.TestTools.UnitTesting instead.";
     Cursor           = Cursors.Default;
 }
示例#3
0
        private void butWebServiceParamCheck_Click(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;
            if (!WebServiceT.ConnectToMiddleTier(textMiddleTierURI.Text, textMiddleTierUser.Text, textMiddleTierPassword.Text, Application.ProductVersion, _isOracle))
            {
                Cursor           = Cursors.Default;
                textResults.Text = "Error connecting to Middle Tier.";
                return;
            }
            textResults.Text = "";
            Application.DoEvents();
            string results = ParamCheck.ParamCheckSClasses();

            textResults.Text = results;
            Cursor           = Cursors.Default;
        }