void ITestModule.Run() { Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 100ms.", new RecordItemIndex(0)); Delay.Duration(100, false); Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.Self, false, new RecordItemIndex(1)); Report.Log(ReportLevel.Info, "Delay", "Waiting for 50ms.", new RecordItemIndex(2)); Delay.Duration(50, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 10s.", new RecordItemIndex(0)); Delay.Duration(10000, false); // E.1 Report.Log(ReportLevel.Info, "Application", "E.1\r\nRun application 'HEAVYBID.EXE' with arguments ' HEAVYMULT' in normal mode.", new RecordItemIndex(1)); Host.Local.RunApplication("HEAVYBID.EXE", " HEAVYMULT", "C:\\HeavyBidWS\\BIN\\", false); Delay.Milliseconds(0); }
//********************************************************************** /// <summary> /// Run cmd command /// </summary> public static string RunCommand(string command) { Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = false; p.StartInfo.RedirectStandardError = true; p.StartInfo.CreateNoWindow = true; p.Start(); p.StandardInput.WriteLine(command); p.StandardInput.WriteLine("exit"); Delay.Duration(10000); return(""); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 0.00; Init(); stateName = ConvertAliasToFullName(stateName); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.RibbonButtons.GenericRibbonButton' at Center.", repo.RiskeerMainWindow.RibbonButtons.GenericRibbonButtonInfo, new RecordItemIndex(1)); repo.RiskeerMainWindow.RibbonButtons.GenericRibbonButton.Click(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(2)); Delay.Duration(300, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); //Validate.Attribute(repo.WebDocumentIE.ButtonInfo, "TagName", "input"); //Delay.Milliseconds(100); repo.WebDocument19216801.Button25.Click("93;20"); Delay.Milliseconds(200); Delay.Duration(500, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.0; Init(); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.TimeCardEntry.AndroidWidgetImageView' at Center", repo.ComHcssHcssmobileTesting.TimeCardEntry.AndroidWidgetImageViewInfo, new RecordItemIndex(0)); repo.ComHcssHcssmobileTesting.TimeCardEntry.AndroidWidgetImageView.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Delay", "Waiting for 30s.", new RecordItemIndex(1)); Delay.Duration(30000, false); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.AndroidWidgetListView3.RegularCostCode' at Center", repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.RegularCostCodeInfo, new RecordItemIndex(2)); repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.RegularCostCode.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.AndroidWidgetListView3.RegularCostCode' at Center", repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.RegularCostCodeInfo, new RecordItemIndex(3)); repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.RegularCostCode.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.AndroidWidgetListView3.ExtraWorkCostCode' at Center", repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.ExtraWorkCostCodeInfo, new RecordItemIndex(4)); repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.ExtraWorkCostCode.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.AndroidWidgetListView3.MarineCostCode' at Center", repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.MarineCostCodeInfo, new RecordItemIndex(5)); repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.MarineCostCode.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.AndroidWidgetListView3.MSECostCode' at Center", repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.MSECostCodeInfo, new RecordItemIndex(6)); repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.MSECostCode.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.AndroidWidgetListView3.CostCodeWithNoBudget' at Center", repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.CostCodeWithNoBudgetInfo, new RecordItemIndex(7)); repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.CostCodeWithNoBudget.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.AndroidWidgetListView3.TMCC' at Center", repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.TMCCInfo, new RecordItemIndex(8)); repo.ComHcssHcssmobileTesting.AndroidWidgetListView3.TMCC.Touch(); Delay.Milliseconds(500); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComHcssHcssmobileTesting.Done1' at 79;74", repo.ComHcssHcssmobileTesting.Done1Info, new RecordItemIndex(9)); repo.ComHcssHcssmobileTesting.Done1.Touch("79;74"); Delay.Milliseconds(500); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VnaNG' at 966;358.", repo.VnaNG.SelfInfo, new RecordItemIndex(0)); repo.VnaNG.Self.Click("966;358"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VnaNG' at 869;160.", repo.VnaNG.SelfInfo, new RecordItemIndex(1)); repo.VnaNG.Self.Click("869;160"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VnaNG' at 868;223.", repo.VnaNG.SelfInfo, new RecordItemIndex(2)); repo.VnaNG.Self.Click("868;223"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VnaNG' at 823;254.", repo.VnaNG.SelfInfo, new RecordItemIndex(3)); repo.VnaNG.Self.Click("823;254"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VnaNG' at 956;304.", repo.VnaNG.SelfInfo, new RecordItemIndex(4)); repo.VnaNG.Self.Click("956;304"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VnaNG' at 894;449.", repo.VnaNG.SelfInfo, new RecordItemIndex(5)); repo.VnaNG.Self.Click("894;449"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(6)); Delay.Duration(300, false); Report.Log(ReportLevel.Info, "Validation", "Validating CompareImage (Screenshot: 'Screenshot13' with region {X=0,Y=0,Width=1000,Height=700}) on item 'VnaNG'.", repo.VnaNG.SelfInfo, new RecordItemIndex(7)); Validate.CompareImage(repo.VnaNG.SelfInfo, VnaNG_Screenshot13, VnaNG_Screenshot13_Options); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VnaNG' at 893;535.", repo.VnaNG.SelfInfo, new RecordItemIndex(8)); repo.VnaNG.Self.Click("893;535"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Validation", "Validating CompareImage (Screenshot: 'Screenshot14' with region {X=0,Y=0,Width=1000,Height=700}) on item 'VnaNG'.", repo.VnaNG.SelfInfo, new RecordItemIndex(9)); Validate.CompareImage(repo.VnaNG.SelfInfo, VnaNG_Screenshot14, VnaNG_Screenshot14_Options); Delay.Milliseconds(100); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Wait", "Waiting 5m to exist. Associated repository item: 'CrystalInstallation.CrystalInstaller'", repo.CrystalInstallation.CrystalInstaller.SelfInfo, new ActionTimeout(300000), new RecordItemIndex(0)); repo.CrystalInstallation.CrystalInstaller.SelfInfo.WaitForExists(300000); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(1)); Delay.Duration(5000, false); try { Report.Log(ReportLevel.Info, "Wait", "(Optional Action)\r\nWaiting 15s to exist. Associated repository item: 'CrystalInstallation.CrystalInstaller.NextButton'", repo.CrystalInstallation.CrystalInstaller.NextButtonInfo, new ActionTimeout(15000), new RecordItemIndex(2)); repo.CrystalInstallation.CrystalInstaller.NextButtonInfo.WaitForExists(15000); } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(2)); } try { Report.Log(ReportLevel.Info, "Mouse", "(Optional Action)\r\nMouse Left Click item 'CrystalInstallation.CrystalInstaller.NextButton' at Center.", repo.CrystalInstallation.CrystalInstaller.NextButtonInfo, new RecordItemIndex(3)); repo.CrystalInstallation.CrystalInstaller.NextButton.Click(); Delay.Milliseconds(200); } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(3)); } try { Report.Log(ReportLevel.Info, "Wait", "(Optional Action)\r\nWaiting 15s to exist. Associated repository item: 'CrystalInstallation.CrystalInstaller.InstallButton'", repo.CrystalInstallation.CrystalInstaller.InstallButtonInfo, new ActionTimeout(15000), new RecordItemIndex(4)); repo.CrystalInstallation.CrystalInstaller.InstallButtonInfo.WaitForExists(15000); } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); } try { Report.Log(ReportLevel.Info, "Mouse", "(Optional Action)\r\nMouse Left Click item 'CrystalInstallation.CrystalInstaller.InstallButton' at Center.", repo.CrystalInstallation.CrystalInstaller.InstallButtonInfo, new RecordItemIndex(5)); repo.CrystalInstallation.CrystalInstaller.InstallButton.Click(); Delay.Milliseconds(200); } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(5)); } try { Report.Log(ReportLevel.Info, "Wait", "(Optional Action)\r\nWaiting 45s to exist. Associated repository item: 'CrystalInstallation.CrystalInstaller.FinishButton'", repo.CrystalInstallation.CrystalInstaller.FinishButtonInfo, new ActionTimeout(45000), new RecordItemIndex(6)); repo.CrystalInstallation.CrystalInstaller.FinishButtonInfo.WaitForExists(45000); } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(6)); } try { Report.Log(ReportLevel.Info, "Mouse", "(Optional Action)\r\nMouse Left Click item 'CrystalInstallation.CrystalInstaller.FinishButton' at Center.", repo.CrystalInstallation.CrystalInstaller.FinishButtonInfo, new RecordItemIndex(7)); repo.CrystalInstallation.CrystalInstaller.FinishButton.Click(); Delay.Milliseconds(200); } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(7)); } }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagValue='Apply changes') on item 'WebDocument19216801.Button13'.", repo.WebDocument19216801.Button13Info, new RecordItemIndex(0)); //Validate.Attribute(repo.WebDocument19216801.Button13Info, "TagValue", "Apply changes"); //Delay.Milliseconds(100); //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Tabindex='37') on item 'WebDocument19216801.Button13'.", repo.WebDocument19216801.Button13Info, new RecordItemIndex(1)); //Validate.Attribute(repo.WebDocument19216801.Button13Info, "Tabindex", "37"); //Delay.Milliseconds(100); Delay.Duration(1000, false); //repo.WebDocument19216801.Button13.Click("53;32"); //Delay.Milliseconds(0); Validate.Attribute(repo.WebDocument19216801.Button25Info, "TagName", "input"); Delay.Milliseconds(100); //Validate.Attribute(repo.WebDocument19216801.Button25Info, "TagValue", "Apply changes"); //Delay.Milliseconds(100); //Validate.Attribute(repo.WebDocument19216801.Button25Info, "Tabindex", "30"); //Delay.Milliseconds(100); Validate.Attribute(repo.WebDocument19216801.Button25Info, "Type", "button"); Delay.Milliseconds(100); Validate.Attribute(repo.WebDocument19216801.Button25Info, "Value", "Apply changes"); Delay.Milliseconds(100); repo.WebDocument19216801.Button25.Click("88;26"); Delay.Milliseconds(200); //Delay.Duration(1000, false); //Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, "InnerText", "Your settings have been updated."); //Delay.Milliseconds(100); Validate_YourSettingsHaveBeenUpdated(); Delay.Milliseconds(0); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 30; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.ATagHome' at 84;50.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagHomeInfo, new RecordItemIndex(0)); repo.Login1.NavNavbarNavSamsNavbarNav.ATagHome.Click("84;50"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(1)); repo.Login1.Self.WaitForDocumentLoaded(); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.ATagPreAward' at 104;53.", repo.Login1.NavNavbarNavSamsNavbarNav.ATagPreAwardInfo, new RecordItemIndex(2)); repo.Login1.NavNavbarNavSamsNavbarNav.ATagPreAward.Click("104;53"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.NavNavbarNavSamsNavbarNav.Applications' at 90;10.", repo.Login1.NavNavbarNavSamsNavbarNav.ApplicationsInfo, new RecordItemIndex(3)); repo.Login1.NavNavbarNavSamsNavbarNav.Applications.Click("90;10"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.FormInlinePanelHeading.DatatableSearch5' at 81;25.", repo.Login1.FormInlinePanelHeading.DatatableSearch5Info, new RecordItemIndex(4)); repo.Login1.FormInlinePanelHeading.DatatableSearch5.Click("81;25"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Application_Number'.", new RecordItemIndex(5)); Keyboard.Press(Application_Number); Delay.Milliseconds(30); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{tab}{enter}'.", new RecordItemIndex(6)); Keyboard.Press("{tab}{enter}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Invoke action", "Invoking WaitForDocumentLoaded() on item 'Login1'.", repo.Login1.SelfInfo, new RecordItemIndex(7)); repo.Login1.Self.WaitForDocumentLoaded(); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 1s.", new RecordItemIndex(8)); Delay.Duration(1000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.NMKRanorexInternalTitle' at 145;18.", repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.NMKRanorexInternalTitleInfo, new RecordItemIndex(9)); repo.Login1.C8d73b9a2db393b0016bc300f7c961903NgSco.NMKRanorexInternalTitle.Click("145;18"); Delay.Milliseconds(200); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 10s.", new RecordItemIndex(0)); Delay.Duration(10000, false); doDelay(); Delay.Milliseconds(0); //repo.WebDocument19216801.AdvancedSettings.Click(); //Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.AdvancedSettings' at 52;13.", repo.WebDocument19216801.AdvancedSettingsInfo, new RecordItemIndex(3)); repo.WebDocument19216801.AdvancedSettings.Click("52;13"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.Wireless' at 28;7.", repo.WebDocument19216801.WirelessInfo, new RecordItemIndex(4)); repo.WebDocument19216801.Wireless.Click("28;7"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Wireless') on item 'WebDocument19216801.Wireless'.", repo.WebDocument19216801.WirelessInfo, new RecordItemIndex(5)); Validate.Attribute(repo.WebDocument19216801.WirelessInfo, "InnerText", "Wireless"); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.Security2' at 46;7.", repo.WebDocument19216801.Security2Info, new RecordItemIndex(6)); repo.WebDocument19216801.Security2.Click("46;7"); Delay.Milliseconds(200); //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.Wireless' at 31;8.", repo.WebDocument19216801.WirelessInfo, new RecordItemIndex(7)); //repo.WebDocument19216801.Wireless.Click("31;8"); //Delay.Milliseconds(200); //repo.WebDocument19216801.Wireless.Click("43;16"); //Delay.Milliseconds(200); //repo.WebDocument19216801.Security.Click("58;7"); //Delay.Milliseconds(0); //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.Security2' at 51;10.", repo.WebDocument19216801.Security2Info, new RecordItemIndex(10)); //repo.WebDocument19216801.Security2.Click("51;10"); //Delay.Milliseconds(200); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(0)); Delay.Duration(3000, false); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ProductSupport_link' at Center", repo.ProductSupport_linkInfo, new RecordItemIndex(1)); repo.ProductSupport_link.Touch(); Delay.Milliseconds(300); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(2)); Delay.Duration(5000, false); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'ComPentairPentairhome.ProductSupport_Header'.", repo.ComPentairPentairhome.ProductSupport_HeaderInfo, new RecordItemIndex(3)); Validate.AttributeEqual(repo.ComPentairPentairhome.ProductSupport_HeaderInfo, "Visible", "True"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeContains (AccessibilityLabel>'Product Support') on item 'ComPentairPentairhome.ProductSupport_Header'.", repo.ComPentairPentairhome.ProductSupport_HeaderInfo, new RecordItemIndex(4)); Validate.AttributeContains(repo.ComPentairPentairhome.ProductSupport_HeaderInfo, "AccessibilityLabel", "Product Support"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(5)); Delay.Duration(2000, false); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'ComPentairPentairhome.ConnectedSoftenerSupport'.", repo.ComPentairPentairhome.ConnectedSoftenerSupportInfo, new RecordItemIndex(6)); Validate.AttributeEqual(repo.ComPentairPentairhome.ConnectedSoftenerSupportInfo, "Visible", "True"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeContains (InnerText>'Connected Softener Support') on item 'ComPentairPentairhome.ConnectedSoftenerSupport'.", repo.ComPentairPentairhome.ConnectedSoftenerSupportInfo, new RecordItemIndex(7)); Validate.AttributeContains(repo.ComPentairPentairhome.ConnectedSoftenerSupportInfo, "InnerText", "Connected Softener Support"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(8)); Delay.Duration(2000, false); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.backArrow_PS' at Center", repo.ComPentairPentairhome.backArrow_PSInfo, new RecordItemIndex(9)); repo.ComPentairPentairhome.backArrow_PS.Touch(); Delay.Milliseconds(300); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(10)); Delay.Duration(3000, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$Product' with focus on 'ApplicationUnderTest.ProductName'.", repo.ApplicationUnderTest.ProductNameInfo, new RecordItemIndex(0)); repo.ApplicationUnderTest.ProductName.PressKeys(Product); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Set value", "Setting attribute TagValue to '$Product' on item 'ApplicationUnderTest.ProductName'.", repo.ApplicationUnderTest.ProductNameInfo, new RecordItemIndex(1)); repo.ApplicationUnderTest.ProductName.Element.SetAttributeValue("TagValue", Product); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.InsuranceList' at 13;12.", repo.ApplicationUnderTest.InsuranceListInfo, new RecordItemIndex(2)); repo.ApplicationUnderTest.InsuranceList.Click("13;12"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Down}' with focus on 'ApplicationUnderTest.InsuranceList'.", repo.ApplicationUnderTest.InsuranceListInfo, new RecordItemIndex(3)); repo.ApplicationUnderTest.InsuranceList.PressKeys("{Down}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Down}' with focus on 'ApplicationUnderTest.InsuranceList'.", repo.ApplicationUnderTest.InsuranceListInfo, new RecordItemIndex(4)); repo.ApplicationUnderTest.InsuranceList.PressKeys("{Down}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}' with focus on 'ApplicationUnderTest.InsuranceList'.", repo.ApplicationUnderTest.InsuranceListInfo, new RecordItemIndex(5)); repo.ApplicationUnderTest.InsuranceList.PressKeys("{Return}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}' with focus on 'ApplicationUnderTest.InsuranceList'.", repo.ApplicationUnderTest.InsuranceListInfo, new RecordItemIndex(6)); repo.ApplicationUnderTest.InsuranceList.PressKeys("{Return}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Return}' with focus on 'ApplicationUnderTest.InsuranceList'.", repo.ApplicationUnderTest.InsuranceListInfo, new RecordItemIndex(7)); repo.ApplicationUnderTest.InsuranceList.PressKeys("{Return}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.SubmitButton1' at 60;11.", repo.ApplicationUnderTest.SubmitButton1Info, new RecordItemIndex(8)); repo.ApplicationUnderTest.SubmitButton1.Click("60;11"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(9)); Delay.Duration(2000, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); //Report.Log(ReportLevel.Info, "Website", "Opening web site 'https://www.virginmedia.com/' with browser 'IE' in normal mode.", new RecordItemIndex(0)); //Host.Local.OpenBrowser("https://www.virginmedia.com/", "IE", "", false, false, false, false, false); //Delay.Milliseconds(0); //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VirginMediaOfficialSite.ConsentPromptSubmit' at 184;13.", repo.VirginMediaOfficialSite.ConsentPromptSubmitInfo, new RecordItemIndex(1)); //repo.VirginMediaOfficialSite.ConsentPromptSubmit.Click("184;13"); //Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 15s.", new RecordItemIndex(2)); Delay.Duration(15000, false); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='https://www.virginmedia.com/etc/designs/onecms/clientlibs/onecms-critical/img/header-vm-logo.lg.png') on item 'VirginMediaOfficialSite.VirginMedia'.", repo.VirginMediaOfficialSite.VirginMediaInfo, new RecordItemIndex(3)); Validate.Attribute(repo.VirginMediaOfficialSite.VirginMediaInfo, "Src", "https://www.virginmedia.com/etc/designs/onecms/clientlibs/onecms-critical/img/header-vm-logo.lg.png"); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot1' with region {X=0,Y=0,Width=133,Height=82}) on item 'VirginMediaOfficialSite.VirginMedia'.", repo.VirginMediaOfficialSite.VirginMediaInfo, new RecordItemIndex(4)); Validate.ContainsImage(repo.VirginMediaOfficialSite.VirginMediaInfo, VirginMedia_Screenshot1, VirginMedia_Screenshot1_Options); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='My Virgin Media\n ') on item 'VirginMediaOfficialSite.MyVirginMedia'.", repo.VirginMediaOfficialSite.MyVirginMediaInfo, new RecordItemIndex(5)); Validate.Attribute(repo.VirginMediaOfficialSite.MyVirginMediaInfo, "InnerText", "My Virgin Media\n "); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Href='https://my.virginmedia.com/') on item 'VirginMediaOfficialSite.MyVirginMedia'.", repo.VirginMediaOfficialSite.MyVirginMediaInfo, new RecordItemIndex(6)); Validate.Attribute(repo.VirginMediaOfficialSite.MyVirginMediaInfo, "Href", "https://my.virginmedia.com/"); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VirginMediaOfficialSite.MyVirginMedia' at 83;6.", repo.VirginMediaOfficialSite.MyVirginMediaInfo, new RecordItemIndex(7)); repo.VirginMediaOfficialSite.MyVirginMedia.Click("83;6"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VirginMediaMyVirginMedia.ATagVirginMedia' at 55;43.", repo.VirginMediaMyVirginMedia.ATagVirginMediaInfo, new RecordItemIndex(8)); repo.VirginMediaMyVirginMedia.ATagVirginMedia.Click("55;43"); Delay.Milliseconds(200); //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'VirginMediaOfficialSiteInternet.ClientCaption' at 1890;31.", repo.VirginMediaOfficialSiteInternet.ClientCaptionInfo, new RecordItemIndex(9)); //repo.VirginMediaOfficialSiteInternet.ClientCaption.Click("1890;31"); //Delay.Milliseconds(200); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Website", "Opening web site 'http://www.projektbudzik.pl/Account/Login?' with browser 'Chrome' in normal mode.", new RecordItemIndex(0)); Host.Current.OpenBrowser("http://www.projektbudzik.pl/Account/Login?", "Chrome", "", false, false, false, true, false, true); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(1)); Delay.Duration(500, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WelcomeWakeApp.ButtonTag' at 37;23.", repo.WelcomeWakeApp.ButtonTagInfo, new RecordItemIndex(2)); repo.WelcomeWakeApp.ButtonTag.Click("37;23"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WelcomeWakeApp.Email' at 160;14.", repo.WelcomeWakeApp.EmailInfo, new RecordItemIndex(3)); repo.WelcomeWakeApp.Email.Click("160;14"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'test1{RShiftKey down}@{RShiftKey up}gmail.com' with focus on 'WelcomeWakeApp.Email'.", repo.WelcomeWakeApp.EmailInfo, new RecordItemIndex(4)); repo.WelcomeWakeApp.Email.PressKeys("test1{RShiftKey down}@{RShiftKey up}gmail.com"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WelcomeWakeApp.Password' at 93;12.", repo.WelcomeWakeApp.PasswordInfo, new RecordItemIndex(5)); repo.WelcomeWakeApp.Password.Click("93;12"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'WakeApp132{RShiftKey down}!{RShiftKey up}' with focus on 'WelcomeWakeApp.Password'.", repo.WelcomeWakeApp.PasswordInfo, new RecordItemIndex(6)); repo.WelcomeWakeApp.Password.PressKeys("WakeApp132{RShiftKey down}!{RShiftKey up}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WelcomeWakeApp.DivTagRow.Submit' at 78;13.", repo.WelcomeWakeApp.DivTagRow.SubmitInfo, new RecordItemIndex(7)); repo.WelcomeWakeApp.DivTagRow.Submit.Click("78;13"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'WelcomeWakeApp.DivTagCol'.", repo.WelcomeWakeApp.DivTagColInfo, new RecordItemIndex(8)); Validate.Exists(repo.WelcomeWakeApp.DivTagColInfo); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'WelcomeWakeApp.DivTagCol1'.", repo.WelcomeWakeApp.DivTagCol1Info, new RecordItemIndex(9)); Validate.Exists(repo.WelcomeWakeApp.DivTagCol1Info); Delay.Milliseconds(100); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmMain.CreateRequisition' at 52;29.", repo.FrmMain.CreateRequisitionInfo, new RecordItemIndex(0)); repo.FrmMain.CreateRequisition.Click("52;29"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmCreateRequisition.Open' at 9;15.", repo.FrmCreateRequisition.OpenInfo, new RecordItemIndex(1)); repo.FrmCreateRequisition.Open.Click("9;15"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'GenesisAutomation.Row2' at 5;8.", repo.GenesisAutomation.Row2Info, new RecordItemIndex(2)); repo.GenesisAutomation.Row2.Click("5;8"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmCreateRequisition.Open1' at 7;15.", repo.FrmCreateRequisition.Open1Info, new RecordItemIndex(3)); repo.FrmCreateRequisition.Open1.Click("7;15"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'GenesisAutomation.Row1' at 6;10.", repo.GenesisAutomation.Row1Info, new RecordItemIndex(4)); repo.GenesisAutomation.Row1.Click("6;10"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmCreateRequisition.AddRequisition' at 74;12.", repo.FrmCreateRequisition.AddRequisitionInfo, new RecordItemIndex(5)); repo.FrmCreateRequisition.AddRequisition.Click("74;12"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(6)); Delay.Duration(2000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmCreateRequisition.Confirm' at 94;15.", repo.FrmCreateRequisition.ConfirmInfo, new RecordItemIndex(7)); repo.FrmCreateRequisition.Confirm.Click("94;15"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'GenesisAutomation1.ButtonOK'.", repo.GenesisAutomation1.ButtonOKInfo, new RecordItemIndex(8)); Validate.Exists(repo.GenesisAutomation1.ButtonOKInfo); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'GenesisAutomation1.ButtonOK' at 42;8.", repo.GenesisAutomation1.ButtonOKInfo, new RecordItemIndex(9)); repo.GenesisAutomation1.ButtonOK.Click("42;8"); Delay.Milliseconds(0); }
public void CycleComboBox() { //ListItem windowsVistaBlack = "/list/listitem[@text='Windows Vista Black']"; ComboBox myDropDown = "/form[@controlname='OptionsForm']/?/?/tabpage[@controlname='m_tabGui']/combobox[@controlname='m_cmbBannerStyle']"; myDropDown.Click(); //Show list items IList <Ranorex.ListItem> myList = myDropDown.Items; //Collect all list items Ranorex.Report.Info("Total Items = " + myList.Count); foreach (Ranorex.ListItem myItem in myList) { myItem.Select(); Delay.Duration(300); } }
void ITestModule.Run() { Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow' at UpperCenter.", repo.RiskeerMainWindow.SelfInfo, new RecordItemIndex(0)); repo.RiskeerMainWindow.Self.Click(Location.UpperCenter); Report.Log(ReportLevel.Info, "Keyboard", "Key 'Ctrl+N' Press.", new RecordItemIndex(1)); Keyboard.Press(System.Windows.Forms.Keys.N | System.Windows.Forms.Keys.Control, 49, Keyboard.DefaultKeyPressTime, 1, true); Mouse_Click_ButtonNoIfConformationDialogAppears(repo.ConfirmSaveProjectDialogWhenClosing.ButtonNoInfo); DoNotSaveIfAsked(repo.ConfirmSaveProjectDialogWhenClosing.ButtonNoInfo); FocusAndSelectTrajectIdCell(repo.DialogNewTraject.TrajectsTable.SelfInfo); //Report.Log(ReportLevel.Info, "Invoke action", "Invoking Focus() on item 'DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellTrajectId'.", repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellTrajectIdInfo, new RecordItemIndex(5)); //repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellTrajectId.Focus(); //Report.Log(ReportLevel.Info, "Invoke action", "Invoking Select() on item 'DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellTrajectId'.", repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellTrajectIdInfo, new RecordItemIndex(6)); //repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellTrajectId.Select(); //Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Text' from item 'DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellSignallingValue' and assigning its value to variable 'signallingValue'.", repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellSignallingValueInfo, new RecordItemIndex(7)); //signallingValue = repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellSignallingValue.Element.GetAttributeValueText("Text"); //Report.Log(ReportLevel.Info, "Get Value", "Getting attribute 'Text' from item 'DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellLowLimitValue' and assigning its value to variable 'lowLimitValue'.", repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellLowLimitValueInfo, new RecordItemIndex(8)); //lowLimitValue = repo.DialogNewTraject.TrajectsTable.GenericTrajectIDRow.CellLowLimitValue.Element.GetAttributeValueText("Text"); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DialogNewTraject.NormRadioButton' at CenterLeft.", repo.DialogNewTraject.NormRadioButtonInfo, new RecordItemIndex(9)); repo.DialogNewTraject.NormRadioButton.Click(Location.CenterLeft); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DialogNewTraject.ButtonOk' at Center.", repo.DialogNewTraject.ButtonOkInfo, new RecordItemIndex(10)); repo.DialogNewTraject.ButtonOk.Click(); Report.Log(ReportLevel.Info, "Wait", "Waiting 5s to exist. Associated repository item: 'RiskeerMainWindow.ProjectExplorerPanel.TrajectNode'", repo.RiskeerMainWindow.ProjectExplorerPanel.TrajectNode.SelfInfo, new ActionTimeout(5000), new RecordItemIndex(11)); repo.RiskeerMainWindow.ProjectExplorerPanel.TrajectNode.SelfInfo.WaitForExists(5000); Report.Log(ReportLevel.Info, "Delay", "Waiting for 150ms.", new RecordItemIndex(12)); Delay.Duration(150, false); Report.Screenshot(ReportLevel.Info, "User", "", repo.RiskeerMainWindow.Self, false, new RecordItemIndex(13)); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.RCTUIImageViewAnimated1' at Center", repo.ComPentairPentairhome.RCTUIImageViewAnimated1Info, new RecordItemIndex(0)); repo.ComPentairPentairhome.RCTUIImageViewAnimated1.Touch(); Delay.Milliseconds(300); Report.Log(ReportLevel.Info, "Delay", "Waiting for 3s.", new RecordItemIndex(1)); Delay.Duration(3000, false); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.ContactAProfessional1' at Center", repo.ComPentairPentairhome.ContactAProfessional1Info, new RecordItemIndex(2)); repo.ComPentairPentairhome.ContactAProfessional1.Touch(); Delay.Milliseconds(300); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(3)); Delay.Duration(5000, false); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.ContactAProScreenContainerView' at Center", repo.ComPentairPentairhome.ContactAProScreenContainerViewInfo, new RecordItemIndex(4)); repo.ComPentairPentairhome.ContactAProScreenContainerView.Touch(); Delay.Milliseconds(300); try { Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating Exists on item 'ComPentairPentairhome.ContactAProScreenContainerView'.", repo.ComPentairPentairhome.ContactAProScreenContainerViewInfo, new RecordItemIndex(5)); Validate.Exists(repo.ComPentairPentairhome.ContactAProScreenContainerViewInfo, null, false); Delay.Milliseconds(0); } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(5)); } Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.AssetsSrcCommonFeatureImagesIconBac1' at Center", repo.ComPentairPentairhome.AssetsSrcCommonFeatureImagesIconBac1Info, new RecordItemIndex(6)); repo.ComPentairPentairhome.AssetsSrcCommonFeatureImagesIconBac1.Touch(); Delay.Milliseconds(300); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(7)); Delay.Duration(5000, false); Report.Log(ReportLevel.Info, "Touch", "Touch item 'ComPentairPentairhome.RCTImageView1' at Center", repo.ComPentairPentairhome.RCTImageView1Info, new RecordItemIndex(8)); repo.ComPentairPentairhome.RCTImageView1.Touch(); Delay.Milliseconds(300); Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(9)); Delay.Duration(300, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.0; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5000ms.", new RecordItemIndex(0)); Delay.Duration(5000, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'QaAutomationQaAutomationRemoteD.OPWindowClass' at Center.", repo.QaAutomationQaAutomationRemoteD.OPWindowClassInfo, new RecordItemIndex(1)); repo.QaAutomationQaAutomationRemoteD.OPWindowClass.MoveTo("Center"); Delay.Milliseconds(200); // opening start menu to get to run program Report.Log(ReportLevel.Info, "Mouse", "opening start menu to get to run program\r\nMouse Left Click item 'QaAutomationQaAutomationRemoteD.OPWindowClass' at 22;28.", repo.QaAutomationQaAutomationRemoteD.OPWindowClassInfo, new RecordItemIndex(2)); repo.QaAutomationQaAutomationRemoteD.OPWindowClass.Click(new Location(OPWindowClass_Screenshot1, "22;28", OPWindowClass_Screenshot1_Options)); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 1m.", new RecordItemIndex(3)); Delay.Duration(60000, false); // opening folder to see if files are there Report.Log(ReportLevel.Info, "Keyboard", "opening folder to see if files are there\r\nKey sequence 'c'.", new RecordItemIndex(4)); Keyboard.Press("c"); Delay.Milliseconds(300); TypeColon(); Delay.Milliseconds(0); // opening folder to see if files are there Report.Log(ReportLevel.Info, "Keyboard", "opening folder to see if files are there\r\nKey sequence '\\heavyjob\\mgrcnsldsvc\\{Return}'.", new RecordItemIndex(6)); Keyboard.Press("\\heavyjob\\mgrcnsldsvc\\{Return}"); Delay.Milliseconds(0); // waiting until files appear Report.Log(ReportLevel.Info, "Validation", "waiting until files appear\r\nValidating ContainsImage (Screenshot: 'Screenshot6' with region {X=634,Y=484,Width=23,Height=44}) on item 'QaAutomationQaAutomationRemoteD.OPWindowClass1'.", repo.QaAutomationQaAutomationRemoteD.OPWindowClass1Info, new RecordItemIndex(7)); Validate.ContainsImage(repo.QaAutomationQaAutomationRemoteD.OPWindowClass1Info, OPWindowClass1_Screenshot6, OPWindowClass1_Screenshot6_Options); Delay.Milliseconds(0); // waiting until files are imported Report.Log(ReportLevel.Info, "Validation", "waiting until files are imported\r\nValidating ContainsImage (Screenshot: 'Screenshot5' with region {X=576,Y=383,Width=53,Height=46}) on item 'QaAutomationQaAutomationRemoteD.OPWindowClass'.", repo.QaAutomationQaAutomationRemoteD.OPWindowClassInfo, new RecordItemIndex(8)); Validate.ContainsImage(repo.QaAutomationQaAutomationRemoteD.OPWindowClassInfo, OPWindowClass_Screenshot5, OPWindowClass_Screenshot5_Options); Delay.Milliseconds(0); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow' at UpperCenter.", repo.RiskeerMainWindow.SelfInfo, new RecordItemIndex(0)); repo.RiskeerMainWindow.Self.Click(Location.UpperCenter); Report.Log(ReportLevel.Info, "Keyboard", "Key 'Ctrl+Shift+S' Press.", new RecordItemIndex(1)); Keyboard.Press(System.Windows.Forms.Keys.S | System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.Control, 31, Keyboard.DefaultKeyPressTime, 1, true); //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.Bestand' at Center.", repo.RiskeerMainWindow.Ribbon.BestandInfo, new RecordItemIndex(2)); //repo.RiskeerMainWindow.Ribbon.Bestand.Click(); //Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.Ribbon.ButtonMenuFileSaveProjectAs' at Center.", repo.RiskeerMainWindow.Ribbon.ButtonMenuFileSaveProjectAsInfo, new RecordItemIndex(3)); //repo.RiskeerMainWindow.Ribbon.ButtonMenuFileSaveProjectAs.Click(); AddWorkingDirectoryToFileNameIfRelativeFileName(); Report.Log(ReportLevel.Info, "User", "Name of file to save:", new RecordItemIndex(5)); Report.Log(ReportLevel.Info, "User", fileName, new RecordItemIndex(6)); Report.Log(ReportLevel.Info, "Set value", "Setting attribute Text to '$fileName' on item 'OpslaanAls.SaveAsFileName'.", repo.OpslaanAls.SaveAsFileNameInfo, new RecordItemIndex(7)); repo.OpslaanAls.SaveAsFileName.Element.SetAttributeValue("Text", fileName); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'OpslaanAls.SaveButton' at Center.", repo.OpslaanAls.SaveButtonInfo, new RecordItemIndex(8)); repo.OpslaanAls.SaveButton.Click(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 50ms.", new RecordItemIndex(9)); Delay.Duration(50, false); ConfirmOverwrite(repo.ButtonYesInfo); Report.Log(ReportLevel.Info, "Delay", "Waiting for 250ms.", new RecordItemIndex(11)); Delay.Duration(250, false); Report.Log(ReportLevel.Info, "Wait", "Waiting 5m to not exist. Associated repository item: 'ActivityProgressDialog.ButtonCancel'", repo.ActivityProgressDialog.ButtonCancelInfo, new ActionTimeout(300000), new RecordItemIndex(12)); repo.ActivityProgressDialog.ButtonCancelInfo.WaitForNotExists(300000); Report.Log(ReportLevel.Info, "Delay", "Waiting for 2s.", new RecordItemIndex(13)); Delay.Duration(2000, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(0)); Delay.Duration(300, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'RiskeerMainWindow.ContainerMultipleViews.HeaderOpenViews.ViewCloseButton' at Center.", repo.RiskeerMainWindow.ContainerMultipleViews.HeaderOpenViews.ViewCloseButtonInfo, new RecordItemIndex(1)); repo.RiskeerMainWindow.ContainerMultipleViews.HeaderOpenViews.ViewCloseButton.Click(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 200ms.", new RecordItemIndex(2)); Delay.Duration(200, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); repo.WebDocument19216801.MacAdd.Click("96;15"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(1)); Delay.Duration(500, false); Validate_Devices_In_Wireless_List1(); Delay.Milliseconds(0); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'RiskeerMainWindow.GenericContainerMapViewTitle' at Center.", repo.RiskeerMainWindow.GenericContainerMapViewTitle.SelfInfo, new RecordItemIndex(0)); repo.RiskeerMainWindow.GenericContainerMapViewTitle.Self.MoveTo(); Report.Log(ReportLevel.Info, "Mouse", "Mouse scroll Vertical by number of units from variable $deltaWheelMouseVertical.", new RecordItemIndex(1)); Mouse.ScrollWheel(Int32.Parse(deltaWheelMouseVertical)); Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(2)); Delay.Duration(500, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Application", "Run mobile app 'com.pentair.pentairhome' on device 'shalini’s iPhone'.", new RecordItemIndex(0)); Host.Local.RunMobileApp("shalini’s iPhone", "com.pentair.pentairhome", false); Delay.Milliseconds(3500); Report.Log(ReportLevel.Success, "User", "The Pentair home mobile app has been launched successfully", new RecordItemIndex(1)); Report.Log(ReportLevel.Info, "Delay", "Waiting for 10s.", new RecordItemIndex(2)); Delay.Duration(10000, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 0; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 0.00; Init(); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Apps}'.", new RecordItemIndex(0)); Keyboard.Press("{Apps}"); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ContextMenu.ZoomNaarAlles' at Center.", repo.ContextMenu.ZoomNaarAllesInfo, new RecordItemIndex(1)); repo.ContextMenu.ZoomNaarAlles.Click(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(2)); Delay.Duration(300, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(0)); Delay.Duration(500, false); Report.Log(ReportLevel.Info, "Wait", "Waiting 2h to not exist. Associated repository item: 'ActivityProgressDialog'", repo.ActivityProgressDialog.SelfInfo, new ActionTimeout(7200000), new RecordItemIndex(1)); repo.ActivityProgressDialog.SelfInfo.WaitForNotExists(7200000); Report.Log(ReportLevel.Info, "Delay", "Waiting for 300ms.", new RecordItemIndex(2)); Delay.Duration(300, false); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 20; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Application", "Run application 'C:\\Program Files (x86)\\Genesis Automation Ltd\\Genesis Automation\\GenesisAutomation.exe' in normal mode. Return value bound to $.", new RecordItemIndex(0)); Host.Local.RunApplication("C:\\Program Files (x86)\\Genesis Automation Ltd\\Genesis Automation\\GenesisAutomation.exe", "", "C:\\Program Files (x86)\\Genesis Automation Ltd\\Genesis Automation", false); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmLogin.TextMaskBox' at 142;3.", repo.FrmLogin.TextMaskBoxInfo, new RecordItemIndex(1)); repo.FrmLogin.TextMaskBox.Click("142;3"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}' with focus on 'FrmLogin.TextMaskBox'.", repo.FrmLogin.TextMaskBoxInfo, new RecordItemIndex(2)); repo.FrmLogin.TextMaskBox.PressKeys("{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}{Back}"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'system' with focus on 'FrmLogin.TextMaskBox'.", repo.FrmLogin.TextMaskBoxInfo, new RecordItemIndex(3)); repo.FrmLogin.TextMaskBox.PressKeys("system"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmLogin.NoCapsMsgTextBoxMaskBox' at 149;8.", repo.FrmLogin.NoCapsMsgTextBoxMaskBoxInfo, new RecordItemIndex(4)); repo.FrmLogin.NoCapsMsgTextBoxMaskBox.Click("149;8"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'password1' with focus on 'FrmLogin.NoCapsMsgTextBoxMaskBox'.", repo.FrmLogin.NoCapsMsgTextBoxMaskBoxInfo, new RecordItemIndex(5)); repo.FrmLogin.NoCapsMsgTextBoxMaskBox.PressKeys("password1"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'FrmLogin.SignIn' at 60;7.", repo.FrmLogin.SignInInfo, new RecordItemIndex(6)); repo.FrmLogin.SignIn.Click("60;7"); Delay.Milliseconds(0); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(7)); Delay.Duration(5000, false); Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'FrmMain'.", repo.FrmMain.SelfInfo, new RecordItemIndex(8)); Validate.Exists(repo.FrmMain.SelfInfo); Delay.Milliseconds(0); Report.Log(ReportLevel.Success, "User", "", new RecordItemIndex(9)); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.FmRbtnDisableDHCPv4' at 16;21.", repo.WebDocument19216801.FmRbtnDisableDHCPv4Info, new RecordItemIndex(0)); repo.WebDocument19216801.FmRbtnDisableDHCPv4.Click("16;21"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.DHCPv4' at 84;25.", repo.WebDocument19216801.DHCPv4Info, new RecordItemIndex(1)); repo.WebDocument19216801.DHCPv4.Click("84;25"); Delay.Milliseconds(200); Report.Log(ReportLevel.Info, "Delay", "Waiting for 5s.", new RecordItemIndex(2)); Delay.Duration(5000, false); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Class='confirm-wizard-text') on item 'WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdated'.", repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, new RecordItemIndex(3)); Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, "Class", "confirm-wizard-text"); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Your settings have been updated.') on item 'WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdated'.", repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, new RecordItemIndex(4)); Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, "InnerText", "Your settings have been updated."); Delay.Milliseconds(100); //Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot3' with region {X=0,Y=0,Width=297,Height=60}) on item 'WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdated'.", repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, new RecordItemIndex(5)); //Validate.ContainsImage(repo.WebDocumentIE.ConfirmWizard1.YourSettingsHaveBeenUpdatedInfo, YourSettingsHaveBeenUpdated_Screenshot3, YourSettingsHaveBeenUpdated_Screenshot3_Options); //Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (TagName='img') on item 'WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvg'.", repo.WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvgInfo, new RecordItemIndex(6)); Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvgInfo, "TagName", "img"); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Src='http://192.168.0.1/i/allgood-icon.svg') on item 'WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvg'.", repo.WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvgInfo, new RecordItemIndex(7)); Validate.Attribute(repo.WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvgInfo, "Src", "http://192.168.0.1/i/allgood-icon.svg"); Delay.Milliseconds(100); //Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot2' with region {X=0,Y=0,Width=37,Height=37}) on item 'WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvg'.", repo.WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvgInfo, new RecordItemIndex(8)); //Validate.ContainsImage(repo.WebDocumentIE.ConfirmWizard1.Http19216801IAllgoodIconSvgInfo, Http19216801IAllgoodIconSvg_Screenshot2, Http19216801IAllgoodIconSvg_Screenshot2_Options); //Delay.Milliseconds(100); Report.Screenshot(ReportLevel.Info, "User", "", null, false, new RecordItemIndex(9)); }
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.00; Init(); Report.Log(ReportLevel.Info, "Wait", "Waiting 10s to exist. Associated repository item: 'ApplicationUnderTest.LabelTagYes'", repo.ApplicationUnderTest.LabelTagYesInfo, new ActionTimeout(10000), new RecordItemIndex(0)); repo.ApplicationUnderTest.LabelTagYesInfo.WaitForExists(10000); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.CompleteThisAssignment' at 50;15.", repo.ApplicationUnderTest.CompleteThisAssignmentInfo, new RecordItemIndex(1)); repo.ApplicationUnderTest.CompleteThisAssignment.Click("50;15"); Delay.Milliseconds(200); // Validation Start Report.Log(ReportLevel.Info, "Section", "Validation Start", new RecordItemIndex(2)); Report.Log(ReportLevel.Info, "Wait", "Waiting 20s to exist. Associated repository item: 'ApplicationUnderTest.KindlyUploadTheDocumentToProceed'", repo.ApplicationUnderTest.KindlyUploadTheDocumentToProceedInfo, new ActionTimeout(20000), new RecordItemIndex(3)); repo.ApplicationUnderTest.KindlyUploadTheDocumentToProceedInfo.WaitForExists(20000); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Kindly upload the document to Proceed') on item 'ApplicationUnderTest.KindlyUploadTheDocumentToProceed'.", repo.ApplicationUnderTest.KindlyUploadTheDocumentToProceedInfo, new RecordItemIndex(4)); Validate.AttributeEqual(repo.ApplicationUnderTest.KindlyUploadTheDocumentToProceedInfo, "InnerText", "Kindly upload the document to Proceed"); Delay.Milliseconds(100); Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='New-Submission') on item 'ApplicationUnderTest.NewSubmission'.", repo.ApplicationUnderTest.NewSubmissionInfo, new RecordItemIndex(5)); Validate.AttributeEqual(repo.ApplicationUnderTest.NewSubmissionInfo, "InnerText", "New-Submission"); Delay.Milliseconds(100); // Validaion End Report.Log(ReportLevel.Info, "Section", "Validaion End", new RecordItemIndex(6)); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.LabelTagYes' at 13;10.", repo.ApplicationUnderTest.LabelTagYesInfo, new RecordItemIndex(7)); repo.ApplicationUnderTest.LabelTagYes.Click("13;10"); Delay.Milliseconds(200); Report.Screenshot(ReportLevel.Info, "User", "", repo.PegaCaseManagerPortalGoogleChrome.Screenshot_Window, false, new RecordItemIndex(8)); Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(9)); Delay.Duration(500, false); Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ApplicationUnderTest.CompleteThisAssignment' at 50;15.", repo.ApplicationUnderTest.CompleteThisAssignmentInfo, new RecordItemIndex(10)); repo.ApplicationUnderTest.CompleteThisAssignment.Click("50;15"); Delay.Milliseconds(0); }