Ejemplo n.º 1
0
        public void ldapSecurityRealm()
        {
            lnksRealm.Clicks(); Thread.Sleep(500);
            allRadioButton();
            btnLDAPSave.Clicks(); Thread.Sleep(500);
            txtChangeLdapUser.EnterText("*****@*****.**");
            txtChangeLdapUserPassword.EnterText("Iso*help");
            btnLDAPValidate.Clicks(); Thread.Sleep(500);

            ServicesBase servicesBase = new ServicesBase();

            servicesBase.ControlService();
            servicesBase.ContentService();
            servicesBase.PrinterMonitor();
            servicesBase.StorageMaintenance();
            servicesBase.ServiceHost();
            servicesBase.CloudPrintLicenseService();
            servicesBase.LicenseService();
            servicesBase.AccountManagement();
        }
Ejemplo n.º 2
0
        public void lic()
        {
            Process p = new Process();

            lnkVMLic.Clicks(); Thread.Sleep(1000);
            btnBrowse.SendKeys("C:\\Data\\testpermenent.lic"); Thread.Sleep(2000);//Update the File Name here
            btnAddLic.Clicks(); Thread.Sleep(1000);

            ServicesBase servicesBase = new ServicesBase();

            servicesBase.CloudPrintLicenseService();

            //try
            //{
            //    string targetDir;
            //    targetDir = string.Format(@"C:\Users\administrator.EE\Desktop\Final\ePrintConsole\ePrintConsole\services");//batch script file path

            //    p.StartInfo.UseShellExecute = true;
            //    p.StartInfo.WorkingDirectory = targetDir;
            //    p.StartInfo.FileName = "HPCloudPrintLicenseService_Disable.bat"; Thread.Sleep(5000);
            //    p.StartInfo.CreateNoWindow = false;
            //    p.Start();
            //    p.WaitForExit();

            //    p.StartInfo.UseShellExecute = true;
            //    p.StartInfo.WorkingDirectory = targetDir;
            //    p.StartInfo.FileName = "HPCloudPrintLicenseService_Auto.bat";
            //    p.StartInfo.CreateNoWindow = false;
            //    p.Start();
            //    p.WaitForExit();


            //    Thread.Sleep(5000);
            //}
            //catch(Exception e){}
            for (int view = 0; view <= 5; view++)
            {
                lnkVMLic.Clicks(); Thread.Sleep(5000);
                allLic.Clicks(); Thread.Sleep(5000);
            }
        }