Esempio n. 1
0
        public void checkIE()
        {
//          if IE run the first time, check "use recommend ..." and click ok
            firstRun fr = new firstRun();

            fr.checkIEForm();
        }
Esempio n. 2
0
        public void OpenApp()
        {
//			repo.Taskbar.Start.Click();
//			Delay.Milliseconds(200);
//
//			repo.Start.ContainerHash.Click();
//			Delay.Milliseconds(200);
//
//			repo.Start.TextD.Click();
//			Delay.Milliseconds(200);

            try{
//				repo.Start.AppsList.Click(new Location(AppsList_Screenshot1, "4;4", AppsList_Screenshot1_Options));
//				Delay.Milliseconds(200);
//
                repo.Start.AppsList.Click(new Location(AppsList_Screenshot2, "12;15", AppsList_Screenshot2_Options));
                Delay.Milliseconds(200);

                Report.Log(ReportLevel.Success, "DHS Icon found on All App Start Menu");

//				Delay.Seconds(5);
                if (repo.DHSForm.SelfInfo.Exists(30000))
                {
                    Report.Success("DHS Main UI show up success");
                }
                else
                {
                    Report.Failure("DHS Main UI show up failure");
                }
            }
            catch (RanorexException) {
                Report.Log(ReportLevel.Failure, "DHS Icon NOT found on All App Start Menu");
            }


//			if DHS is THeadTag 1st time running, "Warranty" panel will be enabled and need to be closed
            firstRun fr = new firstRun();

            Delay.Milliseconds(5000);
            fr.checkDHSFirstRun();
        }
Esempio n. 3
0
        public void CheckSNP()
        {
            Text findAccessoriesText = repo.DHSMainWindow.FindAccessories.FindSingle(".");

            findAccessoriesText.Click();
            Delay.Milliseconds(5000);

//			if IE run the first time, check "use recommend ..." and click ok
            firstRun fr = new firstRun();

            fr.checkIEForm();

            try{
                repo.IE.TitleBarInfo.WaitForExists(10000);
                try{
                    repo.IESetupPopop.SetupIETitleInfo.WaitForExists(10000);
                    repo.IESetupPopop.RadioButtonUseRecommended.Click();
                    repo.IESetupPopop.ButtonOK.Click();
                }
                catch (RanorexException ex) {
                }

                Report.Log(ReportLevel.Success, "IE is opened SNP Page");

                // check region
                Keyboard.Press("{End}");
                ATag country = repo.DellSupport.ProductSupportDellUS.CountryName.FindSingle <ATag>(".");
                country.MoveTo();
                Delay.Milliseconds(2000);
                string countryName    = country.InnerText.Trim();
                string geoCountryName = GetCurrentGEOLocationCountry().Trim();
                Report.Log((countryName == geoCountryName)?ReportLevel.Success:ReportLevel.Failure, "Check if country found on Dell SNP {" + countryName + "} same with current GEO country {" + geoCountryName + "}");
                repo.IE.Close.Click();
            }
            catch (RanorexException ex) {
                Report.Log(ReportLevel.Failure, "SNP Page was not opened");
            }
        }
Esempio n. 4
0
        /// <summary>
        /// This method gets called right after the recording has been started.
        /// It can be used to execute recording specific initialization code.
        /// </summary>
        private void Init()
        {
            while (!Objects.Internet.IsConnectToInternetOKWithOutConfig())
            {
                MessageBox.Show(new WinForms.Form {
                    TopMost = true
                }, "The SUT does not connect to the internet. Please connect to the internect and click OK when you are done.");
            }
            Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://dell.com/support' with browser 'IE' in maximized mode.");
            Host.Local.OpenBrowser("http://dell.com/support", "IE", "", false, true, false, false, false);
            Delay.Milliseconds(500);

//			if IE11 runs at first time, the FirstRunWizard must be closed
            firstRun fr = new firstRun();

            fr.checkIEForm();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Detect Product'.");
            repo.DellSupport.ProductSupportDellUS.BtnDetectmyProductInfo.WaitForExists(120000);
            repo.DellSupport.ProductSupportDellUS.BtnDetectmyProduct.Click();
            Delay.Seconds(5);
            int i = 0;

            while (true)
            {
                if (repo.DellSupport.ProductSupportDellUS.BtnDetectmyProductInfo.Exists(5000))
                {
                    repo.DellSupport.ProductSupportDellUS.BtnDetectmyProduct.Click();
                    i++;
                    if (i >= 50)
                    {
                        break;
                    }
                }
                else
                {
                    break;
                }
                Delay.Seconds(5);
            }

            repo.DellSupport.ProductSupportDellUS.ProductNameInfo.WaitForExists(120000);
            if (repo.DellSupport.ProductSupportDellUS.ProductNameInfo.Exists(5000))
            {
                Report.Info("Check Infomation is ready or not.");
                repo.DellSupport.ProductSupportDellUS.ProductName.Click();
                //=> continue getinfo
            }
            else
            {
                //start setup for getinfo
                repo.DHS_HaiNT21_Page.AgreeTerm.Click();
                Delay.Seconds(3);
                repo.DHS_HaiNT21_Page.Continue.Click();
                Delay.Seconds(30);
                Keyboard.Press(System.Windows.Forms.Keys.W | System.Windows.Forms.Keys.Control, 17, Keyboard.DefaultKeyPressTime, 1, true);
                //Keyboard.Press(System.Windows.Forms.Keys.W | System.Windows.Forms.Keys.Control, 17, Keyboard.DefaultKeyPressTime, 1, true);

                Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://dell.com/support' with browser 'IE' in maximized mode.");
                Host.Local.OpenBrowser("http://dell.com/support", "IE", "", false, true, false, false, false);
                Delay.Milliseconds(0);
                Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Detect Product'.");
                while (repo.DellSupport.ProductSupportDellUS.BtnDetectmyProductInfo.Exists(1000))
                {
                    repo.DellSupport.ProductSupportDellUS.BtnDetectmyProduct.Click();
                    Delay.Seconds(5);
                }
            }


            GetDellSystemInfo();
            Delay.Milliseconds(0);


            Delay.Duration(3000, false);

            // Close browser window
            Report.Log(ReportLevel.Info, "Keyboard", "Close browser window\r\nKey 'Ctrl+W' Press.");
            Keyboard.Press(System.Windows.Forms.Keys.W | System.Windows.Forms.Keys.Control, 17, Keyboard.DefaultKeyPressTime, 1, true);
            Delay.Milliseconds(0);
        }