Exemple #1
0
 private void HandleMouseUp()
 {
     if (ScreenShareService.Streams.ContainsKey(_authClient))
     {
         Mouse.ButtonUp(Mouse.MouseKeys.Left);
     }
 }
Exemple #2
0
        public static void DragCoffeeAndGeographyToColumns()
        {
            try
            {
                repo.VisualAnalytics.ContainerLeftPanel.Coffee.MoveTo("53;7");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                repo.VisualAnalytics.ContainerLeftPanel.Coffee.MoveTo("61;-1");
                Delay.Milliseconds(200);

                repo.VisualAnalytics.ColumnsPanel.MoveTo("66;9");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                repo.VisualAnalytics.ContainerLeftPanel.Geography.MoveTo("79;10");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                repo.VisualAnalytics.ContainerLeftPanel.Geography.MoveTo("87;2");
                Delay.Milliseconds(200);

                repo.VisualAnalytics.ColumnsPanel.MoveTo("248;6");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragCoffeeAndGeographyToColumns" + ex.Message);
            }
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'WebDocument19216801.Passphrase' at 135;19.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(0));
            repo.WebDocument19216801.Passphrase.MoveTo("135;19");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'WebDocument19216801.Passphrase' at 143;11.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(1));
            repo.WebDocument19216801.Passphrase.MoveTo("143;11");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'WebDocument19216801.WiFiPasswordSecurityKey' at 191;31.", repo.WebDocument19216801.WiFiPasswordSecurityKeyInfo, new RecordItemIndex(2));
            repo.WebDocument19216801.WiFiPasswordSecurityKey.MoveTo("191;31");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence 'aMmInOtE5t' with focus on 'WebDocument19216801.Passphrase'.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(3));
            repo.WebDocument19216801.Passphrase.PressKeys("aMmInOtE5t");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'WebDocument19216801.Passphrase' at 61;19.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(4));
            repo.WebDocument19216801.Passphrase.Click("61;19");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Not Sufficient') on item 'WebDocument19216801.PasstextWifi'.", repo.WebDocument19216801.PasstextWifiInfo, new RecordItemIndex(5));
            Validate.Attribute(repo.WebDocument19216801.PasstextWifiInfo, "InnerText", "Not Sufficient");
            Delay.Milliseconds(100);
        }
Exemple #4
0
        public static void LongitudeSilderMoves()
        {
            try
            {
                repo.VAWindow.RangeSliderInfo.WaitForItemExists(10000);
                repo.VAWindow.RangeSlider.MoveTo("4;13");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VAWindow.RangeSlider.MoveTo("40;10");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VAWindow.RangeSlider.MoveTo("41;11");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VAWindow.RangeSlider.MoveTo("5;13");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Reports.ReportLog("LongitudeSilderMoves", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : LongitudeSilderMoves : " + ex.Message);
            }
        }
Exemple #5
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'WebDocument19216801.Passphrase' at 135;19.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(0));
            repo.WebDocument19216801.Passphrase.MoveTo("135;19");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'WebDocument19216801.Passphrase' at 143;11.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(1));
            repo.WebDocument19216801.Passphrase.MoveTo("143;11");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'WebDocument19216801.WiFiPasswordSecurityKey' at 191;31.", repo.WebDocument19216801.WiFiPasswordSecurityKeyInfo, new RecordItemIndex(2));
            repo.WebDocument19216801.WiFiPasswordSecurityKey.MoveTo("191;31");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$VeryStrongPass' with focus on 'WebDocument19216801.Passphrase'.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(3));
            repo.WebDocument19216801.Passphrase.PressKeys(VeryStrongPass);
            Delay.Milliseconds(0);

            try {
                Report.Log(ReportLevel.Info, "Validation", "(Optional Action)\r\nValidating AttributeEqual (InnerText='Very Strong') on item 'WebDocument19216801.PasstextWifi'.", repo.WebDocument19216801.PasstextWifiInfo, new RecordItemIndex(4));
                Validate.Attribute(repo.WebDocument19216801.PasstextWifiInfo, "InnerText", "Very Strong", Validate.DefaultMessage, false);
                Delay.Milliseconds(100);
            } catch (Exception ex) { Report.Log(ReportLevel.Warn, "Module", "(Optional Action) " + ex.Message, new RecordItemIndex(4)); }

            Validate_Passphrase(VeryStrongPass, "Very Strong");
            Delay.Milliseconds(0);
        }
Exemple #6
0
        public static void DragFreight()
        {
            try
            {
                repo.VAWindow.FreightInfo.WaitForItemExists(1000);

                repo.VAWindow.Freight.Click("49;9");
                Delay.Milliseconds(200);

                repo.VAWindow.Freight.MoveTo("48;8");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                repo.VAWindow.Freight.MoveTo("56;0");
                Delay.Milliseconds(200);

                repo.VAWindow.ColumnContainer.MoveTo("79;3");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(500);

                Reports.ReportLog("Result should be modified accordingly", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragFreight  : " + ex.Message);
            }
        }
Exemple #7
0
        public static void DragSubtotaltoColor()
        {
            try
            {
                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.SUMSubTotal.Click("50;8");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.SUMSubTotal.MoveTo("54;8");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.SUMSubTotal.MoveTo("62;0");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.Color.MoveTo("26;18");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                Reports.ReportLog("Color shades are assigned to data in ascending order", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragSubtotaltoColor  : " + ex.Message);
            }
        }
Exemple #8
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 0;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 0.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'NewProtocolWizard.SomeContainer2.OptionMark' at 3;3.", repo.NewProtocolWizard.SomeContainer2.OptionMarkInfo, new RecordItemIndex(0));
            repo.NewProtocolWizard.SomeContainer2.OptionMark.Click("3;3");

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'NewProtocolWizard.SomeContainer2.SomeElement' at 18;10.", repo.NewProtocolWizard.SomeContainer2.SomeElementInfo, new RecordItemIndex(1));
            repo.NewProtocolWizard.SomeContainer2.SomeElement.MoveTo("18;10");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'NewProtocolWizard.SomeContainer2.SomeElement' at 26;2.", repo.NewProtocolWizard.SomeContainer2.SomeElementInfo, new RecordItemIndex(2));
            repo.NewProtocolWizard.SomeContainer2.SomeElement.MoveTo("26;2");

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'NewProtocolWizard.SomeContainer2.SomeContainer' at 174;9.", repo.NewProtocolWizard.SomeContainer2.SomeContainerInfo, new RecordItemIndex(3));
            repo.NewProtocolWizard.SomeContainer2.SomeContainer.MoveTo("174;9");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '15'.", new RecordItemIndex(4));
            Keyboard.Press("15");

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'NewProtocolWizard.SomeContainer2.Next' at 27;3.", repo.NewProtocolWizard.SomeContainer2.NextInfo, new RecordItemIndex(5));
            repo.NewProtocolWizard.SomeContainer2.Next.Click("27;3");

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'NewProtocolWizard.SomeContainer2.Next' at 34;9.", repo.NewProtocolWizard.SomeContainer2.NextInfo, new RecordItemIndex(6));
            repo.NewProtocolWizard.SomeContainer2.Next.Click("34;9");
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AdobeAcrobatProDCTrunk05242020.File' at 18;19.", repo.AdobeAcrobatProDCTrunk05242020.FileInfo, new RecordItemIndex(0));
            repo.AdobeAcrobatProDCTrunk05242020.File.Click("18;19");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'Acrobat.OpenCtrlPlusO' at 58;18.", repo.Acrobat.OpenCtrlPlusOInfo, new RecordItemIndex(1));
            repo.Acrobat.OpenCtrlPlusO.Click("58;18");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'Open.SystemItemNameDisplay' at 58;8.", repo.Open.SystemItemNameDisplayInfo, new RecordItemIndex(2));
            repo.Open.SystemItemNameDisplay.MoveTo("58;8");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'Open.SystemItemNameDisplay' at 58;8.", repo.Open.SystemItemNameDisplayInfo, new RecordItemIndex(3));
            repo.Open.SystemItemNameDisplay.MoveTo("58;8");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left DoubleClick item 'Open.SystemItemNameDisplay' at 58;8.", repo.Open.SystemItemNameDisplayInfo, new RecordItemIndex(4));
            repo.Open.SystemItemNameDisplay.DoubleClick("58;8");
            Delay.Milliseconds(0);
        }
Exemple #10
0
        public static void DragProducttoShapeDeck()
        {
            try
            {
                repo.VATest.ContainerLeftPanel.ProductCategory.Click("69;11");
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.ProductCategory.MoveTo("53;11");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.ProductCategory.MoveTo("61;3");
                Delay.Milliseconds(200);


                repo.VATest.ContainerWorksheetPanel.Shape.MoveTo("23;24");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                Reports.ReportLog("Shapes are displayed in the minimum size", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragProducttoShapeDeck  : " + ex.Message);
            }
        }
Exemple #11
0
        public static void SlidermovetoMinimum()
        {
            try
            {
                repo.VATest.Size.Click("20;21");
                Delay.Milliseconds(200);


                repo.Datastudio1.JSlider.MoveTo("54;11");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.Datastudio1.JSlider.MoveTo("62;3");
                Delay.Milliseconds(200);


                repo.Datastudio1.PropertiesPopup.MoveTo("1;90");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                Reports.ReportLog("Shapes are displayed in the minimum size", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : SlidermovetoMinimum  : " + ex.Message);
            }
        }
Exemple #12
0
        public static void DragFreighttoSizeDeck()
        {
            try
            {
                repo.VATest.ContainerLeftPanel.SUMFreight.Click("53;11");
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.SUMFreight.MoveTo("47;11");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.SUMFreight.MoveTo("55;3");
                Delay.Milliseconds(200);


                repo.VATest.ContainerWorksheetPanel.Size.MoveTo("28;21");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                Reports.ReportLog("The size of the ShapeChart in the graph is reset", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragFreighttoSizeDeck  : " + ex.Message);
            }
        }
Exemple #13
0
        public static void DragCurrencytoColor()
        {
            try
            {
                repo.VATest.ContainerLeftPanel.CurrencyCode.Click("73;9");
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.CurrencyCode.MoveTo("59;8");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.CurrencyCode.MoveTo("67;0");
                Delay.Milliseconds(200);


                repo.VATest.ContainerWorksheetPanel.Color.MoveTo("25;28");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                Reports.ReportLog("Colors are assigned and Shape graph are displayed", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragCurrencytoColor  : " + ex.Message);
            }
        }
Exemple #14
0
        public static void DragFreighttoColumn()
        {
            try
            {
                repo.VATest.ContainerLeftPanel.SUMFreight.Click("49;10");
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.SUMFreight.MoveTo("44;9");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VATest.ContainerLeftPanel.SUMFreight.MoveTo("52;1");
                Delay.Milliseconds(200);


                repo.VATest.ContainerWorksheetPanel.Panel.MoveTo("47;9");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                Reports.ReportLog("Shape graph is changed as per the new addition", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragFreighttoColumn  : " + ex.Message);
            }
        }
Exemple #15
0
        public static void DragStagetoColumn()
        {
            try
            {
                repo.VAWindow.ContainerContentPanel.StageInfo.WaitForItemExists(10000);
                repo.VAWindow.ContainerContentPanel.Stage.Click("45;4");
                Delay.Milliseconds(200);


                repo.VAWindow.ContainerContentPanel.Stage.MoveTo("39;8");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VAWindow.ContainerContentPanel.Stage.MoveTo("47;0");
                Delay.Milliseconds(200);


                repo.VAWindow.ContainerContentPanel.Panel.MoveTo("68;9");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);
                Reports.ReportLog("DragStagetoColumn", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragStagetoColumn : " + ex.Message);
            }
        }
Exemple #16
0
 public void Release()
 {
     foreach (var btn in _pressedButtons.ToArray())
     {
         Mouse.ButtonUp(btn);
     }
 }
Exemple #17
0
        public static void DragAPACtoRow()
        {
            try
            {
                repo.VAWindow.ContainerContentPanel.SUMAPACInfo.WaitForItemExists(15000);
                repo.VAWindow.ContainerContentPanel.SUMAPAC.Click("42;10");
                Delay.Milliseconds(200);


                repo.VAWindow.ContainerContentPanel.SUMAPAC.MoveTo("40;8");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VAWindow.ContainerContentPanel.SUMAPAC.MoveTo("48;0");
                Delay.Milliseconds(200);


                repo.VAWindow.ContainerContentPanel.Panel1.MoveTo("79;9");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);
                Reports.ReportLog("DragAPACtoRow", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragAPACtoRow : " + ex.Message);
            }
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.AutomIdFunctionsSeparator'.", repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.AutomIdFunctionsSeparatorInfo, new RecordItemIndex(0));
            Validate.Attribute(repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.AutomIdFunctionsSeparatorInfo, "Visible", "True");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ProgramFunctionBTN' at 104;26.", repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ProgramFunctionBTNInfo, new RecordItemIndex(1));
            repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ProgramFunctionBTN.Click("104;26");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ItemText1' at 75;12.", repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ItemText1Info, new RecordItemIndex(2));
            repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ItemText1.MoveTo("75;12");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ItemText1' at 75;12.", repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ItemText1Info, new RecordItemIndex(3));
            repo.DeviceCare.MenuArea.Menu_DeviceScreen.DTMFunctionMenutop.ItemText1.MoveTo("75;12");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Delay", "Waiting for 500ms.", new RecordItemIndex(4));
            Delay.Duration(500, false);
        }
Exemple #19
0
        public static void SwapRowandColumn()
        {
            try
            {
                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.RowsInfo.WaitForItemExists(1000);
                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.Rows.Click("32;10");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.Rows.MoveTo("36;16");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.Rows.MoveTo("44;8");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.MultiSplitWorksheetDollarMultiGlassPane.MoveTo("209;11");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);

                Reports.ReportLog("Columns and rows are interchanged ", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : SwapRowandColumn  : " + ex.Message);
            }
        }
Exemple #20
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 20;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'TempusProConfigurationUtility.ToggleButton' at 90;11.", repo.TempusProConfigurationUtility.ToggleButtonInfo, new RecordItemIndex(0));
            repo.TempusProConfigurationUtility.ToggleButton.Click("90;11");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'TempusProConfigurationUtility.ToggleButton' at 76;8.", repo.TempusProConfigurationUtility.ToggleButtonInfo, new RecordItemIndex(1));
            repo.TempusProConfigurationUtility.ToggleButton.MoveTo("76;8");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'TempusProConfigurationUtility.ToggleButton' at 158;8.", repo.TempusProConfigurationUtility.ToggleButtonInfo, new RecordItemIndex(2));
            repo.TempusProConfigurationUtility.ToggleButton.MoveTo("158;8");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'TempusProConfigurationUtility1.ListItemTC3' at 44;4.", repo.TempusProConfigurationUtility1.ListItemTC3Info, new RecordItemIndex(3));
            repo.TempusProConfigurationUtility1.ListItemTC3.Click("44;4");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'TempusProConfigurationUtility.Settings' at 13;9.", repo.TempusProConfigurationUtility.SettingsInfo, new RecordItemIndex(4));
            repo.TempusProConfigurationUtility.Settings.Click("13;9");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'TempusProConfigurationUtility1.HighlightTC3LinkedEvents' at 30;4.", repo.TempusProConfigurationUtility1.HighlightTC3LinkedEventsInfo, new RecordItemIndex(5));
            repo.TempusProConfigurationUtility1.HighlightTC3LinkedEvents.Click("30;4");
            Delay.Milliseconds(0);
        }
Exemple #21
0
        public static void DragProducttoColorDeck()
        {
            try
            {
                repo.VAWindow.ProductCategory.Click("55;8");
                Delay.Milliseconds(200);


                repo.VAWindow.ProductCategory.MoveTo("58;6");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VAWindow.ProductCategory.MoveTo("66;-2");
                Delay.Milliseconds(200);


                repo.VAWindow.Color.MoveTo("16;29");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);
                Reports.ReportLog("DragProducttoColorDeck", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragProducttoColorDeck : " + ex.Message);
            }
        }
Exemple #22
0
        public static void SwaptheRowandColumn()
        {
            try
            {
                repo.VATest.ContainerContentPanel.Rows.Click("38;9");
                Delay.Milliseconds(200);


                repo.VATest.ContainerContentPanel.Rows.MoveTo("41;12");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VATest.ContainerContentPanel.Rows.MoveTo("49;4");
                Delay.Milliseconds(200);


                repo.VATest.ContainerContentPanel.MultiSplitWorksheetDollarMultiGlassPane.MoveTo("202;9");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);
                Reports.ReportLog("Columns and rows are interchanged", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : SwaptheRowandColumn  : " + ex.Message);
            }
        }
Exemple #23
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'WebDocumentIE.Modemstatus'.", repo.WebDocumentIE.ModemstatusInfo, new RecordItemIndex(0));
            Validate.Exists(repo.WebDocumentIE.ModemstatusInfo);
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='WAN IP settings') on item 'WebDocumentIE.LabelWANIP'.", repo.WebDocumentIE.LabelWANIPInfo, new RecordItemIndex(1));
            Validate.Attribute(repo.WebDocumentIE.LabelWANIPInfo, "InnerText", "WAN IP settings");
            Delay.Milliseconds(100);

            Report.Screenshot(ReportLevel.Info, "User", "", null, false, new RecordItemIndex(2));

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'WebDocument19216801.WebDocument19216801' at 1912;716.", repo.WebDocument19216801.WebDocument19216801Info, new RecordItemIndex(3));
            repo.WebDocument19216801.WebDocument19216801.MoveTo("1912;716");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'WebDocument19216801.WebDocument19216801' at 1919;858.", repo.WebDocument19216801.WebDocument19216801Info, new RecordItemIndex(4));
            repo.WebDocument19216801.WebDocument19216801.MoveTo("1919;858");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating Exists on item 'WebDocumentIE.Modemstatus'.", repo.WebDocumentIE.ModemstatusInfo, new RecordItemIndex(5));
            Validate.Exists(repo.WebDocumentIE.ModemstatusInfo);
            Delay.Milliseconds(100);

            Verify_Device_Info_IPv6(std_spec, hw_version, sw_version, cab_modem_serial_number, nw_access, cab_mac_address);
            Delay.Milliseconds(0);
        }
Exemple #24
0
        public static void DragCurrencyCodetoColor()
        {
            try
            {
                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.CurrencyCode.Click("68;10");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.CurrencyCode.MoveTo("62;9");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.CurrencyCode.MoveTo("70;1");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.Color.MoveTo("20;23");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);
                System.Threading.Thread.Sleep(500);

                Reports.ReportLog("Colors are assigned and bars are displayed ", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragCurrencyCodetoColor  : " + ex.Message);
            }
        }
Exemple #25
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'ExpenseXtraDetailsForm.ButtonEditorDropdownButton' at 10;11.", repo.ExpenseXtraDetailsForm.ButtonEditorDropdownButtonInfo, new RecordItemIndex(0));
            repo.ExpenseXtraDetailsForm.ButtonEditorDropdownButton.Click("10;11");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'ExpenseXtraDetailsForm.ButtonEditorDropdownButton' at 8;12.", repo.ExpenseXtraDetailsForm.ButtonEditorDropdownButtonInfo, new RecordItemIndex(1));
            repo.ExpenseXtraDetailsForm.ButtonEditorDropdownButton.MoveTo("8;12");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'ExpenseXtraDetailsForm.ButtonEditorDropdownButton' at 16;4.", repo.ExpenseXtraDetailsForm.ButtonEditorDropdownButtonInfo, new RecordItemIndex(2));
            repo.ExpenseXtraDetailsForm.ButtonEditorDropdownButton.MoveTo("16;4");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'AmicusAttorneyXWin.ComboDropDownControl' at 2272;402.", repo.AmicusAttorneyXWin.ComboDropDownControlInfo, new RecordItemIndex(3));
            repo.AmicusAttorneyXWin.ComboDropDownControl.MoveTo("2272;402");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
        }
Exemple #26
0
        public static void DragFreighttoRowDeck()
        {
            try
            {
                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.SUMFreight.Click("54;5");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.SUMFreight.MoveTo("44;8");
                Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.ContainerContentPanel.SUMFreight.MoveTo("52;0");
                Delay.Milliseconds(200);


                repo.VisualAnalyticsVATestsVizxAsteri.Panel.MoveTo("278;13");
                Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
                Delay.Milliseconds(200);
                Reports.ReportLog("Bar graph is changed", Reports.ADSReportLevel.Success, null, Configuration.Config.TestCaseName);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : DragFreighttoRowDeck  : " + ex.Message);
            }
        }
Exemple #27
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'MainWindow.PnlUserControlCollection.RdbOutputPower' at 6;6.", repo.MainWindow.PnlUserControlCollection.RdbOutputPowerInfo, new RecordItemIndex(0));
            repo.MainWindow.PnlUserControlCollection.RdbOutputPower.MoveTo("6;6");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'MainWindow.PnlUserControlCollection.RdbOutputPower' at 6;6.", repo.MainWindow.PnlUserControlCollection.RdbOutputPowerInfo, new RecordItemIndex(1));
            repo.MainWindow.PnlUserControlCollection.RdbOutputPower.MoveTo("6;6");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text='Computed') on item 'MainWindow.PnlCommonParameters.TxtPower'.", repo.MainWindow.PnlCommonParameters.TxtPowerInfo, new RecordItemIndex(2));
            Validate.AttributeEqual(repo.MainWindow.PnlCommonParameters.TxtPowerInfo, "Text", "Computed");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (BackColor='255, 255, 153') on item 'MainWindow.PnlCommonParameters.TxtPower'.", repo.MainWindow.PnlCommonParameters.TxtPowerInfo, new RecordItemIndex(3));
            Validate.AttributeEqual(repo.MainWindow.PnlCommonParameters.TxtPowerInfo, "BackColor", "255, 255, 153");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Text='100') on item 'MainWindow.PnlCommonParameters.TxtSampleSize'.", repo.MainWindow.PnlCommonParameters.TxtSampleSizeInfo, new RecordItemIndex(4));
            Validate.AttributeEqual(repo.MainWindow.PnlCommonParameters.TxtSampleSizeInfo, "Text", "100");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (BackColor='Pink') on item 'MainWindow.PnlCommonParameters.TxtSampleSize'.", repo.MainWindow.PnlCommonParameters.TxtSampleSizeInfo, new RecordItemIndex(5));
            Validate.AttributeEqual(repo.MainWindow.PnlCommonParameters.TxtSampleSizeInfo, "BackColor", "Pink");
            Delay.Milliseconds(100);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'MainWindow.PnlCommonParameters.TxtPower' at 51;7.", repo.MainWindow.PnlCommonParameters.TxtPowerInfo, new RecordItemIndex(0));
            repo.MainWindow.PnlCommonParameters.TxtPower.Click("51;7");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence '.' with focus on 'MainWindow.PnlCommonParameters.TxtPower'.", repo.MainWindow.PnlCommonParameters.TxtPowerInfo, new RecordItemIndex(1));
            repo.MainWindow.PnlCommonParameters.TxtPower.PressKeys(".");
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'MainWindow.BtnCompute' at 46;16.", repo.MainWindow.BtnComputeInfo, new RecordItemIndex(2));
            repo.MainWindow.BtnCompute.MoveTo("46;16");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'MainWindow.BtnCompute' at 54;8.", repo.MainWindow.BtnComputeInfo, new RecordItemIndex(3));
            repo.MainWindow.BtnCompute.MoveTo("54;8");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'MainWindow.PnlUserControlCollection.TabErrRates' at 1222;663.", repo.MainWindow.PnlUserControlCollection.TabErrRatesInfo, new RecordItemIndex(4));
            repo.MainWindow.PnlUserControlCollection.TabErrRates.MoveTo("1222;663");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);
        }
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            repo.WebDocument19216801.WebDocument19216801.MoveTo("1359;269");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            repo.WebDocument19216801.Passphrase.PressKeys("{LControlKey up}");
            Delay.Milliseconds(0);

            repo.WebDocument19216801.WebDocument19216801.MoveTo("1358;408");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Keyboard.Press("{LControlKey up}");
            Delay.Milliseconds(0);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'WebDocument19216801.Button7'.", repo.WebDocument19216801.Button7Info, new RecordItemIndex(4));
            //Validate.Attribute(repo.WebDocument19216801.Button7Info, "Visible", "True");
            //Delay.Milliseconds(100);

            //Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Value='Apply changes') on item 'WebDocument19216801.Button7'.", repo.WebDocument19216801.Button7Info, new RecordItemIndex(5));
            //Validate.Attribute(repo.WebDocument19216801.Button7Info, "Value", "Apply changes");
            //Delay.Milliseconds(100);

            repo.WebDocument19216801.Button7.Click("99;20");
            Delay.Milliseconds(200);
        }
Exemple #30
0
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.00;

            Init();

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Down item 'WebDocument19216801.Passphrase' at 141;18.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(0));
            repo.WebDocument19216801.Passphrase.MoveTo("141;18");
            Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Move item 'WebDocument19216801.Passphrase' at 149;10.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(1));
            repo.WebDocument19216801.Passphrase.MoveTo("149;10");
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Up item 'WebDocument19216801.WiFiPasswordSecurityKey' at 242;26.", repo.WebDocument19216801.WiFiPasswordSecurityKeyInfo, new RecordItemIndex(2));
            repo.WebDocument19216801.WiFiPasswordSecurityKey.MoveTo("242;26");
            Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left);
            Delay.Milliseconds(200);

            Report.Log(ReportLevel.Info, "Keyboard", "Key sequence from variable '$StrongPassword' with focus on 'WebDocument19216801.Passphrase'.", repo.WebDocument19216801.PassphraseInfo, new RecordItemIndex(3));
            repo.WebDocument19216801.Passphrase.PressKeys(StrongPassword);
            Delay.Milliseconds(0);

            Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (InnerText='Strong') on item 'WebDocument19216801.PasstextWifi'.", repo.WebDocument19216801.PasstextWifiInfo, new RecordItemIndex(4));
            Validate.Attribute(repo.WebDocument19216801.PasstextWifiInfo, "InnerText", "Strong");
            Delay.Milliseconds(100);

            Report.Log(ReportLevel.Info, "Validation", "Validating ContainsImage (Screenshot: 'Screenshot3' with region {X=0,Y=0,Width=52,Height=21}) on item 'WebDocument19216801.PasstextWifi'.", repo.WebDocument19216801.PasstextWifiInfo, new RecordItemIndex(5));
            Validate.ContainsImage(repo.WebDocument19216801.PasstextWifiInfo, PasstextWifi_Screenshot3, PasstextWifi_Screenshot3_Options);
            Delay.Milliseconds(100);
        }