Ejemplo n.º 1
0
        /// <summary>
        /// AddOrder_2 - Use 'AddOrder_2Params' to pass parameters into this method.
        /// </summary>
        public void AddOrder_2()
        {
            #region Variable Declarations
            WpfComboBox uIComboBox_frameSizeComboBox   = this.UIBuildaBikeWindow.UIComboBox_frameSizeComboBox;
            WpfComboBox uIComboBox_frameColourComboBox = this.UIBuildaBikeWindow.UIComboBox_frameColourComboBox;
            WpfComboBox uIComboBox_gearsBreaksComboBox = this.UIBuildaBikeWindow.UIComboBox_gearsBreaksComboBox;
            WpfComboBox uIComboBox_wheelsComboBox      = this.UIBuildaBikeWindow.UIComboBox_wheelsComboBox;
            WpfComboBox uIComboBox_handlebarSaComboBox = this.UIBuildaBikeWindow.UIComboBox_handlebarSaComboBox;
            WpfButton   uIAddButton = this.UIBuildaBikeWindow.UIAddButton;
            #endregion

            // Select 'Small' in 'comboBox_frameSize' combo box
            uIComboBox_frameSizeComboBox.SelectedItem = this.AddOrder_2Params.UIComboBox_frameSizeComboBoxSelectedItem;

            // Select 'Blue' in 'comboBox_frameColour' combo box
            uIComboBox_frameColourComboBox.SelectedItem = this.AddOrder_2Params.UIComboBox_frameColourComboBoxSelectedItem;

            // Select 'Group Set 2 (SRAM, Avid)' in 'comboBox_gearsBreaks' combo box
            uIComboBox_gearsBreaksComboBox.SelectedItem = this.AddOrder_2Params.UIComboBox_gearsBreaksComboBoxSelectedItem;

            // Select 'Campagnolo' in 'comboBox_wheels' combo box
            uIComboBox_wheelsComboBox.SelectedItem = this.AddOrder_2Params.UIComboBox_wheelsComboBoxSelectedItem;

            // Select 'Group Set 2 (Race Face, Fizik Arione)' in 'comboBox_handlebarSaddle' combo box
            uIComboBox_handlebarSaComboBox.SelectedItem = this.AddOrder_2Params.UIComboBox_handlebarSaComboBoxSelectedItem;

            // Click 'Add' button
            Mouse.Click(uIAddButton, new Point(50, 9));
        }
        public void SelectRoundingType(string roundingType)
        {
            UITestControl roundingTypeDropDown = GetComboBox();
            WpfComboBox   comboBox             = (WpfComboBox)roundingTypeDropDown;

            comboBox.SelectedItem = roundingType;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// CheckAddition - Use 'CheckAdditionParams' to pass parameters into this method.
        /// </summary>
        public void CheckAddition()
        {
            #region Variable Declarations
            WpfEdit     uITextBoxEdit       = this.UIMainWindowWindow.UITextBoxEdit;
            WpfEdit     uITextBox_CopyEdit  = this.UIMainWindowWindow.UITextBox_CopyEdit;
            WpfComboBox uIComboBoxComboBox  = this.UIMainWindowWindow.UIComboBoxComboBox;
            WpfEdit     uITextBox_Copy1Edit = this.UIMainWindowWindow.UITextBox_Copy1Edit;
            WpfButton   uICalculateButton   = this.UIMainWindowWindow.UICalculateButton;
            #endregion

            // Type '2' in 'textBox' text box
            uITextBoxEdit.Text = this.CheckAdditionParams.UITextBoxEditText;

            // Type '{Tab}' in 'textBox' text box
            Keyboard.SendKeys(uITextBoxEdit, this.CheckAdditionParams.UITextBoxEditSendKeys, ModifierKeys.None);

            // Type '1' in 'textBox_Copy' text box
            uITextBox_CopyEdit.Text = this.CheckAdditionParams.UITextBox_CopyEditText;

            // Type '{Tab}' in 'textBox_Copy' text box
            Keyboard.SendKeys(uITextBox_CopyEdit, this.CheckAdditionParams.UITextBox_CopyEditSendKeys, ModifierKeys.None);

            // Select 'Add' in 'comboBox' combo box
            uIComboBoxComboBox.SelectedItem = this.CheckAdditionParams.UIComboBoxComboBoxSelectedItem;

            // Click 'textBox_Copy1' text box
            Mouse.Click(uITextBox_Copy1Edit, new Point(101, 17));

            // Click 'Calculate' button
            Mouse.Click(uICalculateButton, new Point(72, 17));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// AddOrder_1 - Use 'AddOrder_1Params' to pass parameters into this method.
        /// </summary>
        public void AddOrder_1()
        {
            #region Variable Declarations
            WpfComboBox uIComboBox_frameSizeComboBox   = this.UIBuildaBikeWindow.UIComboBox_frameSizeComboBox;
            WpfComboBox uIComboBox_frameColourComboBox = this.UIBuildaBikeWindow.UIComboBox_frameColourComboBox;
            WpfComboBox uIComboBox_gearsBreaksComboBox = this.UIBuildaBikeWindow.UIComboBox_gearsBreaksComboBox;
            WpfComboBox uIComboBox_wheelsComboBox      = this.UIBuildaBikeWindow.UIComboBox_wheelsComboBox;
            WpfComboBox uIComboBox_handlebarSaComboBox = this.UIBuildaBikeWindow.UIComboBox_handlebarSaComboBox;
            WpfCheckBox uIExtendwarrantyCheckBox       = this.UIBuildaBikeWindow.UIExtendwarrantyCheckBox;
            WpfButton   uIAddButton = this.UIBuildaBikeWindow.UIAddButton;
            #endregion

            // Select 'Extra Small' in 'comboBox_frameSize' combo box
            uIComboBox_frameSizeComboBox.SelectedItem = this.AddOrder_1Params.UIComboBox_frameSizeComboBoxSelectedItem;

            // Select 'Red' in 'comboBox_frameColour' combo box
            uIComboBox_frameColourComboBox.SelectedItem = this.AddOrder_1Params.UIComboBox_frameColourComboBoxSelectedItem;

            // Select 'Group Set 1 (Shimano, Shimano)' in 'comboBox_gearsBreaks' combo box
            uIComboBox_gearsBreaksComboBox.SelectedItem = this.AddOrder_1Params.UIComboBox_gearsBreaksComboBoxSelectedItem;

            // Select 'Shimano' in 'comboBox_wheels' combo box
            uIComboBox_wheelsComboBox.SelectedItem = this.AddOrder_1Params.UIComboBox_wheelsComboBoxSelectedItem;

            // Select 'Group Set 1 (Renthal FatBar, Prologo)' in 'comboBox_handlebarSaddle' combo box
            uIComboBox_handlebarSaComboBox.SelectedItem = this.AddOrder_1Params.UIComboBox_handlebarSaComboBoxSelectedItem;

            // Select 'Extend warranty' check box
            uIExtendwarrantyCheckBox.Checked = this.AddOrder_1Params.UIExtendwarrantyCheckBoxChecked;

            // Click 'Add' button
            Mouse.Click(uIAddButton, new Point(50, 17));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// CreateTestCatalog - Use 'CreateTestCatalogParams' to pass parameters into this method.
        /// </summary>
        public void CreateTestCatalog()
        {
            #region Variable Declarations
            WpfTabList  uIMainRegionTabList1 = this.UIWpfWindow.UIMainRegionTabList1;
            WpfEdit     uIItemEdit           = this.UIWpfWindow.UIVirtoCommerceManagemPane.UICatalogidText.UIItemEdit;
            WpfEdit     uIItemEdit1          = this.UIWpfWindow.UIVirtoCommerceManagemPane.UICatalognameText.UIItemEdit;
            WpfComboBox uIItemComboBox       = this.UIWpfWindow.UIVirtoCommerceManagemPane.UIDefaultlanguageText.UIItemComboBox;
            WpfButton   uIFinishButton       = this.UIWpfWindow.UIFinishButton;
            #endregion

            // Click 'MainRegion' tab list
            Mouse.Click(uIMainRegionTabList1, new Point(1768, 152));

            // Type 'TestCatalog' in first text box next to '* Catalog id:' label
            uIItemEdit.Text = this.CreateTestCatalogParams.UIItemEditText;

            // Type 'Test catalog' in first text box next to '* Catalog name:' label
            uIItemEdit1.Text = this.CreateTestCatalogParams.UIItemEditText1;

            // Last action on list item was not recorded because the control does not have any good identification property.

            // Last action on list item was not recorded because the control does not have any good identification property.

            // Click first combo box next to '* Default language:' label
            Mouse.Click(uIItemComboBox, new Point(384, 14));

            // Last action on list item was not recorded because the control does not have any good identification property.

            // Click 'Finish' button
            Mouse.Click(uIFinishButton, new Point(50, 15));
        }
        /// <summary>
        /// TravTestRecordedMethod - Use 'TravTestRecordedMethodParams' to pass parameters into this method.
        /// </summary>
        private void TravTestRecordedMethod()
        {
            #region Variable Declarations
            WpfTabPage  uIHelpTabPage = this.UIBusinessDesignStudioWindow.UIRibbonTabList.UIHelpTabPage;
            WpfTreeItem uIUI_SourceServer_BUGSTreeItem = this.UIBusinessDesignStudioWindow.UISourceNavigationViewCustom.UITvExplorerTree.UIDev2StudioViewModelsTreeItem.UIUI_SourceServer_WORKTreeItem.UIUI_SourceServer_BUGSTreeItem;
            WpfCheckBox uIUI_CheckBoxBUGS_AutoCheckBox = this.UIBusinessDesignStudioWindow.UISourceNavigationViewCustom.UITvExplorerTree.UIDev2StudioViewModelsTreeItem.UIUI_SourceServer_WORKTreeItem.UIUI_SourceServer_BUGSTreeItem.UIUI_CheckBoxBUGS_AutoCheckBox;
            WpfComboBox uIUI_DestinationServerComboBox = this.UIBusinessDesignStudioWindow.UIDeployResourcesCustom.UIDeployUserControlCustom.UIUI_DestinationServerComboBox;
            WpfButton   uIDeployButton = this.UIBusinessDesignStudioWindow.UIDeployResourcesCustom.UIDeployUserControlCustom.UIDeployButton;
            #endregion

            // Click 'Help' tab
            Mouse.Click(uIHelpTabPage, new Point(304, 64));

            // Expand 'Dev2.Studio.ViewModels.Navigation.EnvironmentTreeV...' -> 'UI_SourceServer_WORKFLOWS_AutoID' -> 'UI_SourceServer_BUGS_AutoID' tree item
            uIUI_SourceServer_BUGSTreeItem.Expanded = this.TravTestRecordedMethodParams.UIUI_SourceServer_BUGSTreeItemExpanded;

            // Select 'UI_CheckBoxBUGS_AutoID' check box
            uIUI_CheckBoxBUGS_AutoCheckBox.Checked = this.TravTestRecordedMethodParams.UIUI_CheckBoxBUGS_AutoCheckBoxChecked;

            // Select 'Dev2.Studio.Core.InterfaceImplementors.ServerDTO' in 'UI_DestinationServercbx_AutoID' combo box
            uIUI_DestinationServerComboBox.SelectedItem = this.TravTestRecordedMethodParams.UIUI_DestinationServerComboBoxSelectedItem;

            // Click 'Deploy' button
            Mouse.Click(uIDeployButton, new Point(25, 17));
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Open menu for today and create one
        /// </summary>
        public void CreateMenu()
        {
            #region Variable Declarations
            WpfButton   uIJedálnylístokButton  = this.UIMainWindowWindow1.UIJedálnylístokButton;
            WpfButton   uIPridaťButton         = this.UIMainWindowWindow1.UIFramePane.UIPridaťButton;
            WpfComboBox uIDesertsComboComboBox = this.UIMainWindowWindow1.UIDesertsComboComboBox;
            WpfComboBox uISoupsComboComboBox   = this.UIMainWindowWindow1.UISoupsComboComboBox;
            WpfEdit     uIPriceEdit            = this.UIMainWindowWindow1.UIPriceEdit;
            WpfButton   uIUložiťButton         = this.UIMainWindowWindow1.UIUložiťButton;
            WpfButton   uIZatvoriťButton       = this.UIMainWindowWindow1.UIZatvoriťButton;
            #endregion

            // Click 'Jedálny lístok' button
            Mouse.Click(uIJedálnylístokButton, new Point(111, 7));

            // Click 'Pridať' button
            Mouse.Click(uIPridaťButton, new Point(32, 25));

            // Select 'Zmrzlina: Čučoriedková' in 'desertsCombo' combo box
            uIDesertsComboComboBox.SelectedItem = this.CreateMenuParams.UIDesertsComboComboBoxSelectedItem;

            // Select 'Brokolicová: Zelena' in 'soupsCombo' combo box
            uISoupsComboComboBox.SelectedItem = this.CreateMenuParams.UISoupsComboComboBoxSelectedItem;

            // Type '5' in 'price' text box
            uIPriceEdit.Text = this.CreateMenuParams.UIPriceEditText;

            // Click 'Uložiť' button
            Mouse.Click(uIUložiťButton, new Point(54, 7));

            // Click 'Zatvoriť' button
            Mouse.Click(uIZatvoriťButton, new Point(92, 12));
        }
Ejemplo n.º 8
0
        /// <summary>
        /// AddOrder_3 - Use 'AddOrder_3Params' to pass parameters into this method.
        /// </summary>
        public void AddOrder_3()
        {
            #region Variable Declarations
            WpfComboBox uIComboBox_frameSizeComboBox   = this.UIBuildaBikeWindow.UIComboBox_frameSizeComboBox;
            WpfComboBox uIComboBox_frameColourComboBox = this.UIBuildaBikeWindow.UIComboBox_frameColourComboBox;
            WpfComboBox uIComboBox_gearsBreaksComboBox = this.UIBuildaBikeWindow.UIComboBox_gearsBreaksComboBox;
            WpfComboBox uIComboBox_wheelsComboBox      = this.UIBuildaBikeWindow.UIComboBox_wheelsComboBox;
            WpfComboBox uIComboBox_handlebarSaComboBox = this.UIBuildaBikeWindow.UIComboBox_handlebarSaComboBox;
            WpfCheckBox uIExtendwarrantyCheckBox       = this.UIBuildaBikeWindow.UIExtendwarrantyCheckBox;
            WpfButton   uIAddButton = this.UIBuildaBikeWindow.UIAddButton;
            #endregion

            // Select 'Large' in 'comboBox_frameSize' combo box
            uIComboBox_frameSizeComboBox.SelectedItem = this.AddOrder_3Params.UIComboBox_frameSizeComboBoxSelectedItem;

            // Select 'Black' in 'comboBox_frameColour' combo box
            uIComboBox_frameColourComboBox.SelectedItem = this.AddOrder_3Params.UIComboBox_frameColourComboBoxSelectedItem;

            // Select 'Group Set 3 (Campagnolo, Clarks)' in 'comboBox_gearsBreaks' combo box
            uIComboBox_gearsBreaksComboBox.SelectedItem = this.AddOrder_3Params.UIComboBox_gearsBreaksComboBoxSelectedItem;

            // Select 'DT Swiss' in 'comboBox_wheels' combo box
            uIComboBox_wheelsComboBox.SelectedItem = this.AddOrder_3Params.UIComboBox_wheelsComboBoxSelectedItem;

            // Select 'Group Set 2 (Race Face, Fizik Arione)' in 'comboBox_handlebarSaddle' combo box
            uIComboBox_handlebarSaComboBox.SelectedItem = this.AddOrder_3Params.UIComboBox_handlebarSaComboBoxSelectedItem;

            // Select 'Extend warranty' check box
            uIExtendwarrantyCheckBox.Checked = this.AddOrder_3Params.UIExtendwarrantyCheckBoxChecked;

            // Click 'Add' button
            Mouse.Click(uIAddButton, new Point(13, 19));
        }
 public static WpfComboBox GetUserListComboBox()
 {
     if (_userListComboBox == null)
     {
         _userListComboBox = new WpfComboBox(GetItemCustom());
         _userListComboBox.SearchProperties[WpfComboBox.PropertyNames.AutomationId] = "UserList";
     }
     return(_userListComboBox);
 }
        /// <summary>
        /// IsLoggedIn - Use 'IsLoggedInExpectedValues' to pass parameters into this method.
        /// </summary>
        public void IsLoggedIn()
        {
            #region Variable Declarations
            WpfComboBox uIItemComboBox = this.UIConciergeLinkWindow.UIItemCustom2.UIZButton.UIItemComboBox;
            #endregion

            // Verify that the 'ControlType' property of first combo box next to 'Z' button contains 'ComboBox'
            StringAssert.Contains(uIItemComboBox.ControlType.ToString(), this.IsLoggedInExpectedValues.UIItemComboBoxControlType);
        }
Ejemplo n.º 11
0
        public void SelectSplitOn(int index)
        {
            WpfComboBox comboBox = GetQuickVariableInputView().FindByAutomationId("QviSplitOnCombobox", false) as WpfComboBox;

            if (comboBox != null)
            {
                comboBox.SelectedIndex = index;
            }
        }
        /// <summary>
        /// RoundingComboBoxClick
        /// </summary>
        public void RoundingComboBoxClick()
        {
            #region Variable Declarations
            WpfComboBox uIUI__Rounding_ComboBoComboBox = this.UIBusinessDesignStudioWindow.UIFlowchartCustom1.UIDsfNumberFormatActivCustom.UIUI__Rounding_ComboBoComboBox;
            #endregion

            // Click 'UI__Rounding_ComboBox_AutoID' combo box
            Mouse.Click(uIUI__Rounding_ComboBoComboBox, new Point(65, 6));
        }
Ejemplo n.º 13
0
        /// <summary>
        /// AfdelingField_Test - Use 'AfdelingField_TestParams' to pass parameters into this method.
        /// </summary>
        public void AfdelingField_Test()
        {
            #region Variable Declarations
            WpfComboBox uIItemComboBox = this.UILagerkingWindow.UIItemComboBox;
            #endregion

            // Select 'B' in combo box
            uIItemComboBox.SelectedItem = this.AfdelingField_TestParams.UIItemComboBoxSelectedItem;
        }
Ejemplo n.º 14
0
 private void Initilize()
 {
     _comboBox    = new WpfComboBox();
     _elementHost = new ElementHost();
     Controls.Add(_elementHost);
     _elementHost.Child               = _comboBox;
     _elementHost.AutoSize            = false;
     _comboBox.Host.DropDownOpened   += Host_DropDownOpened;
     _comboBox.Host.SelectionChanged += Host_SelectionChanged;
     InitilizeComponent();
 }
Ejemplo n.º 15
0
        public void ChooseSourceServer(UITestControl theTab, string serverName)
        {
            UITestControl sourceServerList = GetSourceServerList(theTab);
            WpfComboBox   comboBox         = (WpfComboBox)sourceServerList;
            var           serverItem       = comboBox.Items.ToList().FirstOrDefault(c => c.FriendlyName == serverName);

            if (serverItem != null)
            {
                comboBox.SelectedIndex = comboBox.Items.IndexOf(serverItem);
            }
        }
Ejemplo n.º 16
0
        public void ChooseServer(string connection)
        {
            UITestControl destinationServerList = GetConnectControl("ComboBox");
            WpfComboBox   comboBox   = (WpfComboBox)destinationServerList;
            var           serverItem = comboBox.Items.ToList().FirstOrDefault(c => c.FriendlyName == connection);

            if (serverItem != null)
            {
                comboBox.SelectedIndex = comboBox.Items.IndexOf(serverItem);
            }
        }
Ejemplo n.º 17
0
        public WpfComboBox ComboBoxObject(string btnNameProperty)
        {
            var cmbProps = new WpfComboBox(WinUWindow)
            {
                TechnologyName = "MSAA"
            };

            cmbProps.SearchProperties[WpfControl.PropertyNames.AutomationId] = btnNameProperty;
            cmbProps.WindowTitles.Add("MainWindow");
            return(cmbProps);
        }
Ejemplo n.º 18
0
 public void ConnectToAllServers(WpfComboBox comboBox)
 {
     for (int itemIdx = 1; itemIdx <= comboBox.Items.Count; itemIdx++)
     {
         Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(comboBox);
         for (int findItm = 0; findItm < itemIdx; findItm++)
         {
             Keyboard.SendKeys("{DOWN}");
         }
         Keyboard.SendKeys("{ENTER}");
     }
 }
        /// <summary>
        /// OrderSelectionMethod
        /// </summary>
        public void OrderSelectionMethod()
        {
            #region Variable Declarations
            WpfComboBox uIOrderComboBox = this.UICareTendWindow.UIItemCustom.UITabsControlTabList.UIDeliveryTicketItemsTabPage.UIOrderComboBox;
            #endregion

            // Click 'Order' combo box
            //Mouse.Click(uIOrderComboBox, new Point(290, 14));
            Mouse.Click(uIOrderComboBox, new Point(291, 11));
            Keyboard.SendKeys("{Down}, {Down}");
            Keyboard.SendKeys("{Enter}");
            Playback.Wait(5000);
        }
Ejemplo n.º 20
0
        /// <summary>
        /// TestCalculator - Use 'TestCalculatorParams' to pass parameters into this method.
        /// </summary>
        public void TestCalculator()
        {
            #region Variable Declarations
            WinEdit     uINameEdit         = this.UIDebugWindow.UIItemWindow.UISampleCalculatorexeListItem.UINameEdit;
            WpfEdit     uITextBoxEdit      = this.UIMainWindowWindow.UITextBoxEdit;
            WpfEdit     uITextBox_CopyEdit = this.UIMainWindowWindow.UITextBox_CopyEdit;
            WpfComboBox uIComboBoxComboBox = this.UIMainWindowWindow.UIComboBoxComboBox;
            WpfButton   uICalculateButton  = this.UIMainWindowWindow.UICalculateButton;
            WinButton   uICloseButton      = this.UIMainWindowWindow1.UICloseButton;
            #endregion

            // Double-Click 'Name' text box
            Mouse.DoubleClick(uINameEdit, new Point(63, 19));

            // Type '1' in 'textBox' text box
            uITextBoxEdit.Text = this.TestCalculatorParams.UITextBoxEditText;

            // Type '2' in 'textBox_Copy' text box
            uITextBox_CopyEdit.Text = this.TestCalculatorParams.UITextBox_CopyEditText;

            // Select 'Add' in 'comboBox' combo box
            uIComboBoxComboBox.SelectedItem = this.TestCalculatorParams.UIComboBoxComboBoxSelectedItem;

            // Click 'Calculate' button
            Mouse.Click(uICalculateButton, new Point(65, 7));

            // Select 'Multiply' in 'comboBox' combo box
            uIComboBoxComboBox.SelectedItem = this.TestCalculatorParams.UIComboBoxComboBoxSelectedItem1;

            // Click 'Calculate' button
            Mouse.Click(uICalculateButton, new Point(59, 15));

            // Select 'Divide' in 'comboBox' combo box
            uIComboBoxComboBox.SelectedItem = this.TestCalculatorParams.UIComboBoxComboBoxSelectedItem2;

            // Click 'Calculate' button
            Mouse.Click(uICalculateButton, new Point(64, 19));

            // Select 'Substract' in 'comboBox' combo box
            uIComboBoxComboBox.SelectedItem = this.TestCalculatorParams.UIComboBoxComboBoxSelectedItem3;

            // Click 'Calculate' button
            Mouse.Click(uICalculateButton, new Point(63, 15));

            // Click 'Close' button
            Mouse.Click(uICloseButton, new Point(15, 18));
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Negativtest - Verwenden Sie "NegativtestParams", um Parameter an diese Methode zu übergeben.
        /// </summary>
        public void Negativtest()
        {
            #region Variable Declarations
            WinEdit       uINameEdit                  = this.UIDebugWindow.UIItemWindow.UILb120_2_BibliothekexListItem.UINameEdit;
            WpfButton     uIBücherButton              = this.UIMainWindowWindow.UIBücherButton;
            WpfText       uIAforbeginnersText         = this.UIMainWindowWindow.UIItemCustom2.UIDataGridTable.UIItem166Row.UIAforbeginnersCell.UIAforbeginnersText;
            WpfDatePicker uIDtpStartDatePicker        = this.UIMainWindowWindow.UIScrollViewerPane.UIDtpStartDatePicker;
            WpfDatePicker uIDtpEndDatePicker          = this.UIMainWindowWindow.UIScrollViewerPane.UIDtpEndDatePicker;
            WpfComboBox   uICbxKundeComboBox          = this.UIMainWindowWindow.UIScrollViewerPane.UICbxKundeComboBox;
            WpfButton     uISpeichernButton           = this.UIMainWindowWindow.UIScrollViewerPane.UISpeichernButton;
            WpfText       uIDatumüberschneidetsiText1 = this.UIMainWindowWindow.UIItemCustom1.UIGespeichertText.UIDatumüberschneidetsiText1;
            WpfButton     uIZurückButton              = this.UIMainWindowWindow.UIScrollViewerPane.UIZurückButton;
            WinButton     uISchließenButton           = this.UIMainWindowWindow1.UISchließenButton;
            #endregion

            // Doppelklicken "Name" Textfeld
            Mouse.DoubleClick(uINameEdit, new Point(234, 10));

            // Klicken "Bücher" Schaltfläche
            Mouse.Click(uIBücherButton, new Point(78, 12));

            // Doppelklicken "A# for beginners" Bezeichnung
            Mouse.DoubleClick(uIAforbeginnersText, new Point(82, 10));

            // "06-Jun-2018" in "dtpStart" Datumsauswahl auswählen
            uIDtpStartDatePicker.DateAsString = this.NegativtestParams.UIDtpStartDatePickerDateAsString;

            // "01-Dec-2018" in "dtpEnd" Datumsauswahl auswählen
            uIDtpEndDatePicker.DateAsString = this.NegativtestParams.UIDtpEndDatePickerDateAsString;

            // "111" in "cbxKunde" Kombinationsfeld auswählen
            uICbxKundeComboBox.SelectedItem = this.NegativtestParams.UICbxKundeComboBoxSelectedItem;

            // Klicken "Speichern" Schaltfläche
            Mouse.Click(uISpeichernButton, new Point(44, 11));

            // Klicken "Datum überschneidet sich mit einer anderen Ausleih..." Bezeichnung
            Mouse.Click(uIDatumüberschneidetsiText1, new Point(81, 11));

            // Klicken "Zurück" Schaltfläche
            Mouse.Click(uIZurückButton, new Point(49, 13));

            // Klicken "Schließen" Schaltfläche
            Mouse.Click(uISchließenButton, new Point(23, 20));
        }
Ejemplo n.º 22
0
        public static void ConnectHostLoginView()
        {
            Logger.log.Info("******  Start ConnectHostLoginView() ********");

            WpfCustom settingBladeCustom = DesktopAppControls.GetSettingBladeCustom();

            Thread.Sleep(1000);
            Mouse.Click(settingBladeCustom, new Point(44, 114));  // win10
            // Mouse.Click(settingBladeCustom, new Point(62, 157));   // win7
            Thread.Sleep(8000);

            // hamburger
            WpfImage hamburgerImageImage = LoginViewControls.GetHamburgerImageImage();

            Mouse.Click(hamburgerImageImage);
            Thread.Sleep(2000);

            // user name
            WpfComboBox userListComboBox = LoginViewControls.GetUserListComboBox();

            Mouse.Click(userListComboBox);
            Thread.Sleep(2000);

            // pwd
            WpfEdit passwordFieldEdit = LoginViewControls.GetPasswordFieldEdit();

            Mouse.Click(passwordFieldEdit);
            Thread.Sleep(2000);

            // login button
            WpfButton logInButton = LoginViewControls.GetLogInButton();

            Mouse.Click(logInButton);
            Thread.Sleep(2000);

            // cancel button
            WpfButton cancelButton = LoginViewControls.GetCancelButton();

            Mouse.Click(cancelButton);
            Thread.Sleep(2000);


            Logger.log.Info("******  End ConnectHostLoginView() ********");
        }
Ejemplo n.º 23
0
        public void TestCalculatorThroughCode()
        {
            ApplicationUnderTest appObj = ApplicationUnderTest.Launch(@"D:\CSD\Projects\BillManagement\SampleCalculator\bin\Debug\SampleCalculator.exe");

            Assert.AreEqual(appObj.Title, "MainWindow");
            WinUWindow = new WpfWindow();
            WinUWindow.SearchProperties[UITestControl.PropertyNames.Name] = "MainWindow";
            WinUWindow.SearchProperties.Add(new PropertyExpression(UITestControl.PropertyNames.ClassName, "HwndWrapper", PropertyExpressionOperator.Contains));
            WinUWindow.WindowTitles.Add("MainWindow");
            Keyboard.SendKeys(TextboxObject("textBox"), "2");
            Keyboard.SendKeys(TextboxObject("textBox_Copy"), "1");
            WpfComboBox comboObj = ComboBoxObject("comboBox");

            comboObj.SelectedIndex = 1;
            Mouse.Click(ButtonObject("button"));
            var outVal = TextboxObject("textBox_Copy1").Text;

            Assert.AreEqual(outVal, "3");
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Einsatz_Erstellen - Verwenden Sie "Einsatz_ErstellenParams", um Parameter an diese Methode zu übergeben.
        /// </summary>
        public void Einsatz_Erstellen()
        {
            #region Variable Declarations
            WinListItem   uIM120LB2FS16ListItem = this.UIDebugWindow.UIItemWindow.UIElementansichtList.UIM120LB2FS16ListItem;
            WinEdit       uINameEdit            = this.UIDebugWindow.UIItemWindow.UIM120LB2FS16ListItem.UINameEdit;
            WpfButton     uINeuButton           = this.UIMainWindowWindow.UINeuButton;
            WpfComboBox   uIMitarbeiterComboBox = this.UIEinzelAnsichtWindow.UIMitarbeiterComboBox;
            WpfDatePicker uIDatumDatePicker     = this.UIEinzelAnsichtWindow.UIDatumDatePicker;
            WpfEdit       uIStart_zeitEdit      = this.UIEinzelAnsichtWindow.UIStart_zeitEdit;
            WpfEdit       uIEnd_zeitEdit        = this.UIEinzelAnsichtWindow.UIEnd_zeitEdit;
            WpfButton     uISpeichernButton     = this.UIEinzelAnsichtWindow.UISpeichernButton;
            #endregion

            // "Alt + p" in "M120-LB2-FS16" Listenelement eingeben
            Keyboard.SendKeys(uIM120LB2FS16ListItem, this.Einsatz_ErstellenParams.UIM120LB2FS16ListItemSendKeys, ModifierKeys.Alt);

            // Doppelklicken "Name" Textfeld
            Mouse.DoubleClick(uINameEdit, new Point(128, 9));

            // Klicken "Neu" Schaltfläche
            Mouse.Click(uINeuButton, new Point(28, 6));

            // "Anton Affolter" in "mitarbeiter" Kombinationsfeld auswählen
            uIMitarbeiterComboBox.SelectedItem = this.Einsatz_ErstellenParams.UIMitarbeiterComboBoxSelectedItem;

            // "06-Jun-2016" in "datum" Datumsauswahl auswählen
            uIDatumDatePicker.DateAsString = this.Einsatz_ErstellenParams.UIDatumDatePickerDateAsString;

            // "08:00" in "start_zeit" Textfeld eingeben
            uIStart_zeitEdit.Text = this.Einsatz_ErstellenParams.UIStart_zeitEditText;

            // "{Tab}" in "start_zeit" Textfeld eingeben
            Keyboard.SendKeys(uIStart_zeitEdit, this.Einsatz_ErstellenParams.UIStart_zeitEditSendKeys, ModifierKeys.None);

            // "15:00" in "end_zeit" Textfeld eingeben
            uIEnd_zeitEdit.Text = this.Einsatz_ErstellenParams.UIEnd_zeitEditText;

            // Klicken "Speichern" Schaltfläche
            Mouse.Click(uISpeichernButton, new Point(56, 8));
        }
        /// <summary>
        /// CreatingNewDTMethod - Use 'CreatingNewDTMethodParams' to pass parameters into this method.
        /// </summary>
        public void CreatingNewDTMethod()
        {
            #region Variable Declarations
            WpfButton     uINewButton = this.UICareTendWindow.UINewButton;
            WpfDatePicker uITargetDeliveryDateDatePicker = this.UICareTendWindow.UIItemCustom.UITabsControlTabList.UIDeliveryInstructionsTabPage.UITargetDeliveryDateDatePicker;
            WpfComboBox   uIDeliveryCompanyComboBox      = this.UICareTendWindow.UIItemCustom.UITabsControlTabList.UIDeliveryInstructionsTabPage.UIDeliveryCompanyComboBox;
            #endregion

            // Click 'New' button
            Mouse.Click(uINewButton, new Point(36, 10));
            Playback.Wait(5000);

            // Select Date in date picker
            Keyboard.SendKeys("{Ctrl}" + "{Insert}");
            Playback.Wait(5000);

            // Select 'Roger's Ohio Company' in 'DeliveryCompany' combo box
            Mouse.Click(uIDeliveryCompanyComboBox);
            Keyboard.SendKeys("Roger's Ohio Company");
            Keyboard.SendKeys("{Enter}");
            Playback.Wait(5000);
        }
 public void ConnectToAllServers(WpfComboBox comboBox)
 {
     for(int itemIdx = 1; itemIdx <= comboBox.Items.Count; itemIdx++)
     {
         Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(comboBox);
         for(int findItm = 0; findItm < itemIdx; findItm++)
         {
             Keyboard.SendKeys("{DOWN}");
         }
         Keyboard.SendKeys("{ENTER}");
     }
 }
Ejemplo n.º 27
0
        /// <summary>
        /// Go through all major views.
        /// </summary>
        public void USurviveFlythrough()
        {
            #region Variable Declarations
            WpfButton   uIUserFilesButton            = this.UIUSurviveWindow.UINavigationFramePane.UIUserFilesButton;
            WpfComboBox uIUserDropdownComboBox       = this.UIUserSelectionWindow.UIUserDropdownComboBox;
            WpfEdit     uIEnterFieldEdit             = this.UICreateUserWindow.UIEnterFieldEdit;
            WpfButton   uIOKButton                   = this.UICreateUserWindow.UIOKButton;
            WpfButton   uISelectButton               = this.UIUserSelectionWindow.UISelectButton;
            WpfButton   uIClassesBtnButton           = this.UIUSurviveWindow.UIClassesBtnButton;
            WpfButton   uIAddClassButton             = this.UIUSurviveWindow.UINavigationFramePane.UIAddClassButton;
            WpfEdit     uITbNameEdit                 = this.UIEditClassWindow.UITbNameEdit;
            WpfEdit     uITbInstructorEdit           = this.UIEditClassWindow.UITbInstructorEdit;
            WpfEdit     uITbInstEmailEdit            = this.UIEditClassWindow.UITbInstEmailEdit;
            WpfEdit     uITbWebsiteEdit              = this.UIEditClassWindow.UITbWebsiteEdit;
            WpfButton   uIEditMeetingTimesButton     = this.UIEditClassWindow.UIEditMeetingTimesButton;
            WpfCheckBox uISunCheckBox                = this.UIEditMeetingTimeWindow.UISunCheckBox;
            WpfCheckBox uIWedCheckBox                = this.UIEditMeetingTimeWindow.UIWedCheckBox;
            WpfCheckBox uITHCheckBox                 = this.UIEditMeetingTimeWindow.UITHCheckBox;
            WpfButton   uIAddMeetingButton           = this.UIEditMeetingTimeWindow.UIAddMeetingButton;
            WpfButton   uISaveButton                 = this.UIEditMeetingTimeWindow.UISaveButton;
            WpfEdit     uITbNotesEdit                = this.UIEditClassWindow.UITbNotesEdit;
            WpfButton   uISaveButton1                = this.UIEditClassWindow.UISaveButton;
            WpfButton   uIAssignmentsBtnButton       = this.UIUSurviveWindow.UIAssignmentsBtnButton;
            WpfButton   uIAddAssignmentButton        = this.UIUSurviveWindow.UINavigationFramePane.UIAddAssignmentButton;
            WpfComboBox uICmbClassesComboBox         = this.UIEditAssignmentWindow.UICmbClassesComboBox;
            WpfEdit     uITbAssignmentNameEdit       = this.UIEditAssignmentWindow.UITbAssignmentNameEdit;
            WpfEdit     uIPART_TextBoxEdit           = this.UIEditAssignmentWindow.UIPART_TextBoxEdit;
            WpfButton   uIPART_IncreaseButtonButton  = this.UIEditAssignmentWindow.UIPART_IncreaseButtonButton;
            WpfButton   uIPART_IncreaseButtonButton1 = this.UIEditAssignmentWindow.UIPART_IncreaseButtonButton1;
            WpfComboBox uICmbTypeComboBox            = this.UIEditAssignmentWindow.UICmbTypeComboBox;
            WpfButton   uISaveButton2                = this.UIEditAssignmentWindow.UISaveButton;
            WpfButton   uICloseButton                = this.UIUSurviveNotificationWindow.UICloseButton;
            WpfButton   uIGradebookBtnButton         = this.UIUSurviveWindow.UIGradebookBtnButton;
            WpfText     uIPointsEarnedText           = this.UIUSurviveWindow.UINavigationFramePane.UIDG1Table.UIPART_ColumnHeadersPrHeader.UIPointsEarnedColumnHeader.UIPointsEarnedText;
            WpfEdit     uIOldgpaEdit                 = this.UIUSurviveWindow.UINavigationFramePane.UIOldgpaEdit;
            WpfButton   uIDisplayGPAButton           = this.UIUSurviveWindow.UINavigationFramePane.UIDisplayGPAButton;
            WinButton   uICloseButton1               = this.UIGPACalculatorWindow.UICloseButton;
            WinButton   uICloseButton2               = this.UIUSurviveWindow1.UICloseButton;
            #endregion

            // Click 'User Files' button
            Mouse.Click(uIUserFilesButton, new Point(61, 11));

            // Select '<Create new user...>' in 'userDropdown' combo box
            uIUserDropdownComboBox.SelectedItem = this.USurviveFlythroughParams.UIUserDropdownComboBoxSelectedItem;

            // Type 'New' in 'enterField' text box
            uIEnterFieldEdit.Text = this.USurviveFlythroughParams.UIEnterFieldEditText;

            // Click 'OK' button
            Mouse.Click(uIOKButton, new Point(60, 4));

            // Click 'Select' button
            Mouse.Click(uISelectButton, new Point(27, 9));

            // Click 'ClassesBtn' button
            Mouse.Click(uIClassesBtnButton, new Point(109, 53));

            // Click 'Add Class' button
            Mouse.Click(uIAddClassButton, new Point(75, 6));

            // Type 'Class' in 'tbName' text box
            uITbNameEdit.Text = this.USurviveFlythroughParams.UITbNameEditText;

            // Type 'Inst' in 'tbInstructor' text box
            uITbInstructorEdit.Text = this.USurviveFlythroughParams.UITbInstructorEditText;

            // Type '*****@*****.**' in 'tbInstEmail' text box
            uITbInstEmailEdit.Text = this.USurviveFlythroughParams.UITbInstEmailEditText;

            // Type 'www.google.com' in 'tbWebsite' text box
            uITbWebsiteEdit.Text = this.USurviveFlythroughParams.UITbWebsiteEditText;

            // Click 'Edit Meeting Times' button
            Mouse.Click(uIEditMeetingTimesButton, new Point(101, 13));

            // Select 'Sun' check box
            uISunCheckBox.Checked = this.USurviveFlythroughParams.UISunCheckBoxChecked;

            // Select 'Wed' check box
            uIWedCheckBox.Checked = this.USurviveFlythroughParams.UIWedCheckBoxChecked;

            // Select 'Th' check box
            uITHCheckBox.Checked = this.USurviveFlythroughParams.UITHCheckBoxChecked;

            // Click 'Add Meeting' button
            Mouse.Click(uIAddMeetingButton, new Point(117, 8));

            // Click 'Save' button
            Mouse.Click(uISaveButton, new Point(92, 6));

            // Type 'notes' in 'tbNotes' text box
            uITbNotesEdit.Text = this.USurviveFlythroughParams.UITbNotesEditText;

            // Click 'Save' button
            Mouse.Click(uISaveButton1, new Point(112, 10));

            // Click 'AssignmentsBtn' button
            Mouse.Click(uIAssignmentsBtnButton, new Point(112, 62));

            // Click 'Add Assignment' button
            Mouse.Click(uIAddAssignmentButton, new Point(42, 8));

            // Select 'Class' in 'cmbClasses' combo box
            uICmbClassesComboBox.SelectedItem = this.USurviveFlythroughParams.UICmbClassesComboBoxSelectedItem;

            // Type 'assign' in 'tbAssignmentName' text box
            uITbAssignmentNameEdit.Text = this.USurviveFlythroughParams.UITbAssignmentNameEditText;

            // Click 'PART_TextBox' text box
            Mouse.Click(uIPART_TextBoxEdit, new Point(154, 11));

            // Double-Click 'PART_IncreaseButton' button
            Mouse.DoubleClick(uIPART_IncreaseButtonButton, new Point(15, 3));

            // Click 'PART_IncreaseButton' button
            Mouse.Click(uIPART_IncreaseButtonButton1, new Point(12, 6));

            // Select 'Assignment' in 'cmbType' combo box
            uICmbTypeComboBox.SelectedItem = this.USurviveFlythroughParams.UICmbTypeComboBoxSelectedItem;

            // Click 'Save' button
            Mouse.Click(uISaveButton2, new Point(123, 9));

            // Click 'Close' button
            Mouse.Click(uICloseButton, new Point(70, 16));

            // Click 'GradebookBtn' button
            Mouse.Click(uIGradebookBtnButton, new Point(58, 74));

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Click 'Points Earned' label
            Mouse.Click(uIPointsEarnedText, new Point(56, 9));

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Last action on Row was not recorded because the control does not have any good identification property.

            // Type '' in 'oldgpa' text box
            uIOldgpaEdit.Text = this.USurviveFlythroughParams.UIOldgpaEditText;

            // Click 'Display GPA' button
            Mouse.Click(uIDisplayGPAButton, new Point(116, 4));

            // Click 'Close' button
            Mouse.Click(uICloseButton1, new Point(21, 14));

            // Click 'Close' button
            Mouse.Click(uICloseButton2, new Point(19, 19));
        }
Ejemplo n.º 28
0
        public void ConnectToLowis(bool CreateNewStore)
        {
            WpfWindow LOWISConnect = new WpfWindow();
            LOWISConnect.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
            LOWISConnect.SearchProperties.Add(WpfWindow.PropertyNames.Name, "LOWIS: Connect");
            LOWISConnect.WindowTitles.Add("LOWIS: Connect");

            WpfComboBox HostCB = new WpfComboBox(LOWISConnect);
            HostCB.WindowTitles.Add("LOWIS: Connect");

            WpfEdit HostTB = new WpfEdit(HostCB);
            HostTB.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
            HostTB.SearchProperties.Add(WpfEdit.PropertyNames.AutomationId, "PART_EditableTextBox");

            HostTB.Text = ConnectClientTo;
            Trace.WriteLine("Set ServerName to " + ConnectClientTo);
            WpfRadioButton Credentials = new WpfRadioButton(LOWISConnect);
            Credentials.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
            Credentials.SearchProperties.Add(WpfRadioButton.PropertyNames.Name, "Use my windows credentials.");
            Credentials.WindowTitles.Add("LOWIS: Connect");

            Credentials.Selected = true;
            Trace.WriteLine("Use Windows Credentials checkbox is set to true");

            WpfButton ConnectButton = new WpfButton(LOWISConnect);
            ConnectButton.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
            ConnectButton.SearchProperties[WpfButton.PropertyNames.AccessKey] = "\r";
            ConnectButton.WindowTitles.Add("LOWIS: Connect");

            WpfButton SettingsButton = new WpfButton(LOWISConnect);
            SettingsButton.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
            SettingsButton.WindowTitles.Add("LOWIS: Connect");

            WpfWindow SettingsWin = new WpfWindow();
            SettingsWin.SearchProperties[WpfWindow.PropertyNames.Name] = "LOWIS: Settings";
            SettingsWin.SearchProperties.Add(new PropertyExpression(WpfWindow.PropertyNames.ClassName, "HwndWrapper", PropertyExpressionOperator.Contains));
            SettingsWin.WindowTitles.Add("LOWIS: Settings");

            WpfEdit CsStore = new WpfEdit(SettingsWin);
            CsStore.WindowTitles.Add("LOWIS: Settings");

            WpfButton SaveButton = new WpfButton(SettingsWin);
            SaveButton.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
            SaveButton.SearchProperties[WpfButton.PropertyNames.AccessKey] = "\r";
            SaveButton.WindowTitles.Add("LOWIS: Settings");

            if (CreateNewStore == true)
            {
                Mouse.Click(SettingsButton);
                Trace.WriteLine("Clicked Settings button on client Logon");
                CsStore.Text = "C:\\csstore18";
                Trace.WriteLine("Set CsStore path");
                Mouse.Click(SaveButton);
                Trace.WriteLine("Clicked Save Button on settings window");
            }
            Mouse.Click(ConnectButton);
            Trace.WriteLine("Clicked LOWIS connect button");
        }
        public static void Select(this WpfComboBox listControl, Predicate <WpfListItem> shouldSelectItem)
        {
            listControl.WaitForControlEnabled();

            listControl.SelectedItem = listControl.Items.Cast <WpfListItem>().First(i => shouldSelectItem(i)).DisplayText;
        }
Ejemplo n.º 30
0
        /// <summary>
        /// TestInterfaceStandard - Utilisez 'TestInterfaceStandardParams' pour passer les parametres dans cette methode.
        /// </summary>
        public void TestInterfaceStandard()
        {
            #region Variable Declarations
            WinEdit     uINomEdit    = this.UIDebugWindow.UIItemWindow.UISpaceBattleViewexeListItem.UINomEdit;
            WinList     uIBureauList = this.UIProgramManagerWindow.UIFolderViewWindow.UIBureauList;
            WpfComboBox uIComboBoxPlayerNbComboBox = this.UIPlayerSelectionWindow.UIComboBoxPlayerNbComboBox;
            WpfButton   uIStartButton = this.UIPlayerSelectionWindow.UIStartButton;
            WpfComboBox uIComboBoxArtefactsComboBox = this.UIPlayerSelectionWindow.UIComboBoxArtefactsComboBox;
            WpfButton   uIButtonDicesP3Button       = this.UIPlayerSelectionWindow.UIButtonDicesP3Button;
            WpfButton   uIButtonDicesP4Button       = this.UIPlayerSelectionWindow.UIButtonDicesP4Button;
            WpfButton   uIButtonDicesP2Button       = this.UIPlayerSelectionWindow.UIButtonDicesP2Button;
            WpfButton   uIButtonDicesP1Button       = this.UIPlayerSelectionWindow.UIButtonDicesP1Button;
            WpfImage    uIImageMusicImage           = this.UIMainGameWindow.UIImageMusicImage;
            WpfButton   uIButtonRollDicesButton     = this.UIMainGameWindow.UIButtonRollDicesButton;
            WpfButton   uIMoveButton       = this.UIMainGameWindow.UIMoveButton;
            WpfImage    uIImageStars2Image = this.UIMainGameWindow.UIImageStars2Image;
            WpfButton   uIShootButton      = this.UIMainGameWindow.UIShootButton;
            WinWindow   uIMainGameWindow1  = this.UIMainGameWindow1;
            WinButton   uIOKButton         = this.UIOKWindow.UIOKButton;
            WpfButton   uIFermerButton     = this.UIPlayerSelectionWindow.UIPlayerSelectionTitleBar.UIFermerButton;
            #endregion

            // Double-clic 'Nom' zone de texte
            Mouse.DoubleClick(uINomEdit, new Point(72, 10));

            // Clic 'Bureau' zone de liste
            Mouse.Click(uIBureauList, new Point(743, 95));

            // Double-clic 'Nom' zone de texte
            Mouse.DoubleClick(uINomEdit, new Point(55, 8));

            // Selectionner '4' dans 'comboBoxPlayerNb' zone de liste deroulante
            uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem;

            // Clic 'Start' bouton
            Mouse.Click(uIStartButton, new Point(27, 19));

            // Selectionner '2' dans 'comboBoxArtefacts' zone de liste deroulante
            uIComboBoxArtefactsComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxArtefactsComboBoxSelectedItem;

            // Clic 'Start' bouton
            Mouse.Click(uIStartButton, new Point(40, 16));

            // Selectionner '2' dans 'comboBoxPlayerNb' zone de liste deroulante
            uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem1;

            // Clic 'Start' bouton
            Mouse.Click(uIStartButton, new Point(63, 19));

            // Selectionner '4' dans 'comboBoxPlayerNb' zone de liste deroulante
            uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem2;

            // Clic 'buttonDicesP3' bouton
            Mouse.Click(uIButtonDicesP3Button, new Point(38, 24));

            // Clic 'buttonDicesP4' bouton
            Mouse.Click(uIButtonDicesP4Button, new Point(28, 9));

            // Selectionner '2' dans 'comboBoxPlayerNb' zone de liste deroulante
            uIComboBoxPlayerNbComboBox.SelectedItem = this.TestInterfaceStandardParams.UIComboBoxPlayerNbComboBoxSelectedItem3;

            // Clic 'buttonDicesP2' bouton
            Mouse.Click(uIButtonDicesP2Button, new Point(19, 10));

            // Clic 'buttonDicesP1' bouton
            Mouse.Click(uIButtonDicesP1Button, new Point(26, 15));

            // Clic 'Start' bouton
            Mouse.Click(uIStartButton, new Point(45, 23));

            // Clic 'imageMusic' image
            Mouse.Click(uIImageMusicImage, new Point(6, 8));

            // Clic 'imageMusic' image
            Mouse.Click(uIImageMusicImage, new Point(6, 8));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(19, 20));

            // Clic 'Move' bouton
            Mouse.Click(uIMoveButton, new Point(29, 19));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(246, 421));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(22, 22));

            // Clic 'Move' bouton
            Mouse.Click(uIMoveButton, new Point(24, 11));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(157, 251));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(32, 17));

            // Clic 'Shoot' bouton
            Mouse.Click(uIShootButton, new Point(34, 10));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(308, 292));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(18, 31));

            // Clic 'Move' bouton
            Mouse.Click(uIMoveButton, new Point(19, 13));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(-1, 44));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(29, 30));

            // Clic 'Shoot' bouton
            Mouse.Click(uIShootButton, new Point(35, 13));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(243, 316));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(33, 27));

            // Clic 'Move' bouton
            Mouse.Click(uIMoveButton, new Point(29, 8));

            // Clic 'MainGame' fenetre
            Mouse.Click(uIMainGameWindow1, new Point(137, 471));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(14, 23));

            // Clic 'Shoot' bouton
            Mouse.Click(uIShootButton, new Point(36, 10));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(131, 341));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(23, 31));

            // Clic 'Move' bouton
            Mouse.Click(uIMoveButton, new Point(37, 13));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(209, 258));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(30, 30));

            // Clic 'Shoot' bouton
            Mouse.Click(uIShootButton, new Point(34, 19));

            // Clic 'Move' bouton
            Mouse.Click(uIMoveButton, new Point(16, 17));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(326, 222));

            // Clic 'buttonRollDices' bouton
            Mouse.Click(uIButtonRollDicesButton, new Point(33, 26));

            // Clic 'Move' bouton
            Mouse.Click(uIMoveButton, new Point(28, 15));

            // Clic 'imageStars2' image
            Mouse.Click(uIImageStars2Image, new Point(25, 426));

            // Clic 'OK' bouton
            Mouse.Click(uIOKButton, new Point(36, 11));

            // Clic 'Fermer' bouton
            Mouse.Click(uIFermerButton, new Point(35, 14));
        }
        /// <summary>
        /// ClickExplorerTab - Use 'ClickExplorerTabParams' to pass parameters into this method.
        /// </summary>
        private void ClickExplorerTab()
        {
            #region Variable Declarations
            WpfTabPage  uIExplorerTabPage = this.UIBusinessDesignStudioWindow.UIUI_DocManager_AutoIDCustom.UIPART_UnpinnedTabAreaTabList.UIExplorerTabPage;
            WpfComboBox uIUI_ExplorerServerCbxComboBox = this.UIBusinessDesignStudioWindow.UIExplorerCustom.UIExplorerCustom1.UIUI_ExplorerServerCbxComboBox;
            WinListItem uIRunninganexistingCodListItem = this.UIScreenAnnotationsWindow.UIList1Window.UIRunninganexistingCodListItem;
            WinClient   uIRunninganexistingCodClient   = this.UIRunninganexistingCodWindow.UIRunninganexistingCodClient;
            WinMenuItem uICloseMenuItem     = this.UIItemWindow.UIContextMenu.UICloseMenuItem;
            WinListItem uIAfterTestListItem = this.UIScreenAnnotationsWindow.UIList1Window.UIAfterTestListItem;
            WinClient   uIAfterTestClient   = this.UIAfterTestWindow.UIAfterTestClient;
            WinMenuItem uIEditTextMenuItem  = this.UIItemWindow.UIContextMenu.UIEditTextMenuItem;
            WinEdit     uIItemEdit          = this.UITextPropertiesWindow.UIItemWindow.UIItemEdit;
            WinButton   uICloseButton       = this.UITextPropertiesWindow.UICloseWindow.UICloseButton;
            WinButton   uICloseButton1      = this.UIScreenAnnotationsWindow.UICloseWindow.UICloseButton;
            #endregion

            // Click 'Explorer' tab
            Mouse.Click(uIExplorerTabPage, new Point(14, 27));

            // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box
            Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys, ModifierKeys.Alt);

            // Double-Click 'Running an existing Coded UI Test' list item
            Mouse.DoubleClick(uIRunninganexistingCodListItem, new Point(62, 12));

            // Double-Click 'Running an existing Coded UI Test' list item
            Mouse.DoubleClick(uIRunninganexistingCodListItem, new Point(52, 8));

            // Right-Click 'Running an existing Coded UI Test' client
            Mouse.Click(uIRunninganexistingCodClient, MouseButtons.Right, ModifierKeys.None, new Point(73, 119));

            // Click 'Close' menu item
            Mouse.Click(uICloseMenuItem, new Point(84, 6));

            // Double-Click 'AfterTest' list item
            Mouse.DoubleClick(uIAfterTestListItem, new Point(40, 2));

            // Move 'AfterTest' client
            Mouse.StartDragging(uIAfterTestClient, new Point(130, 86));
            Mouse.StopDragging(uIAfterTestClient, -29, -166);

            // Right-Click 'AfterTest' client
            Mouse.Click(uIAfterTestClient, MouseButtons.Right, ModifierKeys.None, new Point(130, 82));

            // Click 'Edit Text ...' menu item
            Mouse.Click(uIEditTextMenuItem, new Point(112, 21));

            // Type 'I have clicked the "Explorer" tab. A single click is enough for one step.' in text box
            uIItemEdit.Text = this.ClickExplorerTabParams.UIItemEditText;

            // Click 'Close' button
            Mouse.Click(uICloseButton, new Point(28, 10));

            // Move 'AfterTest' client
            Mouse.StartDragging(uIAfterTestClient, new Point(272, 164));
            Mouse.StopDragging(uIAfterTestClient, 20, -74);

            // Click 'Close' button
            Mouse.Click(uICloseButton1, new Point(23, 6));

            // Click 'Explorer' tab
            Mouse.Click(uIExplorerTabPage, new Point(12, 24));

            // Type '{CapsLock}{CapsLock}{CapsLock}{CapsLock}' in 'UI_ExplorerServerCbx_AutoID' combo box
            Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys1, ModifierKeys.None);

            // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box
            Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys2, ModifierKeys.Alt);

            // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box
            Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys3, ModifierKeys.Alt);

            // Right-Click 'AfterTest' client
            Mouse.Click(uIAfterTestClient, MouseButtons.Right, ModifierKeys.None, new Point(155, 57));

            // Click 'Close' menu item
            Mouse.Click(uICloseMenuItem, new Point(64, 11));

            // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box
            Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys4, ModifierKeys.Alt);

            // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box
            Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys5, ModifierKeys.Alt);

            // Type 'Alt + {F2}' in 'UI_ExplorerServerCbx_AutoID' combo box
            Keyboard.SendKeys(uIUI_ExplorerServerCbxComboBox, this.ClickExplorerTabParams.UIUI_ExplorerServerCbxComboBoxSendKeys6, ModifierKeys.Alt);
        }
        /// <summary>
        /// RecordedMethod1 - Use 'RecordedMethod1Params' to pass parameters into this method.
        /// </summary>
        public void RecordedMethod1()
        {
            #region Variable Declarations
            WpfRadioButton uIRoadBike20RadioButton        = this.UIMainWindowWindow.UIRoadBike20RadioButton;
            WpfComboBox    uIComboBoxColorComboBox        = this.UIMainWindowWindow.UIComboBoxColorComboBox;
            WpfCheckBox    uISmall1718100CheckBox         = this.UIMainWindowWindow.UISmall1718100CheckBox;
            WpfCheckBox    uISingleSpeed20CheckBox        = this.UIMainWindowWindow.UISingleSpeed20CheckBox;
            WpfCheckBox    uICarbonSaddle20CheckBox       = this.UIMainWindowWindow.UICarbonSaddle20CheckBox;
            WpfCheckBox    uIBullhorn20CheckBox           = this.UIMainWindowWindow.UIBullhorn20CheckBox;
            WpfCheckBox    uIRoadWheels30CheckBox         = this.UIMainWindowWindow.UIRoadWheels30CheckBox;
            WpfCheckBox    uIRimBrakes20CheckBox          = this.UIMainWindowWindow.UIRimBrakes20CheckBox;
            WpfCheckBox    uIUpgradeto3yearwarranCheckBox = this.UIMainWindowWindow.UIUpgradeto3yearwarranCheckBox;
            WpfButton      uISubmitPreferenceButton       = this.UIMainWindowWindow.UISubmitPreferenceButton;
            WinButton      uIYesButton   = this.UIConfirmationWindow.UIYesWindow.UIYesButton;
            WpfButton      uIClearButton = this.UIMainWindowWindow.UIClearButton;
            WpfRadioButton uIMountainBike50RadioButton = this.UIMainWindowWindow.UIMountainBike50RadioButton;
            WpfCheckBox    uILarge1920150CheckBox      = this.UIMainWindowWindow.UILarge1920150CheckBox;
            WpfCheckBox    uIItem24Speed150CheckBox    = this.UIMainWindowWindow.UIItem24Speed150CheckBox;
            WpfCheckBox    uIGelSaddle30CheckBox       = this.UIMainWindowWindow.UIGelSaddle30CheckBox;
            WpfCheckBox    uIFlat15CheckBox            = this.UIMainWindowWindow.UIFlat15CheckBox;
            WpfCheckBox    uIOffRoadWheels50CheckBox   = this.UIMainWindowWindow.UIOffRoadWheels50CheckBox;
            WinButton      uIOKButton             = this.UIOKWindow.UIOKButton;
            WpfCheckBox    uIDiscBrakes50CheckBox = this.UIMainWindowWindow.UIDiscBrakes50CheckBox;
            #endregion

            // The recording for the application under test '\\napier-mail.napier.ac.uk\students\School of Computing\User Data\40288545\My Profile\Desktop\Presentation\Presentation\Presentation\bin\Debug\Presentation.exe' may not be correct as it is located on a network share. Please install the application on a local path.

            // Select 'Road Bike £20' radio button
            uIRoadBike20RadioButton.Selected = this.RecordedMethod1Params.UIRoadBike20RadioButtonSelected;

            // Select 'Green £20' in 'ComboBoxColor' combo box
            uIComboBoxColorComboBox.SelectedItem = this.RecordedMethod1Params.UIComboBoxColorComboBoxSelectedItem;

            // Select 'Small(17"-18") £100' check box
            uISmall1718100CheckBox.Checked = this.RecordedMethod1Params.UISmall1718100CheckBoxChecked;

            // Select 'Single Speed £20' check box
            uISingleSpeed20CheckBox.Checked = this.RecordedMethod1Params.UISingleSpeed20CheckBoxChecked;

            // Select 'Carbon Saddle £20' check box
            uICarbonSaddle20CheckBox.Checked = this.RecordedMethod1Params.UICarbonSaddle20CheckBoxChecked;

            // Select 'Bullhorn £20' check box
            uIBullhorn20CheckBox.Checked = this.RecordedMethod1Params.UIBullhorn20CheckBoxChecked;

            // Select 'Road Wheels £30' check box
            uIRoadWheels30CheckBox.Checked = this.RecordedMethod1Params.UIRoadWheels30CheckBoxChecked;

            // Select 'Rim Brakes £20' check box
            uIRimBrakes20CheckBox.Checked = this.RecordedMethod1Params.UIRimBrakes20CheckBoxChecked;

            // Select 'Upgrade to 3 year warranty £50' check box
            uIUpgradeto3yearwarranCheckBox.Checked = this.RecordedMethod1Params.UIUpgradeto3yearwarranCheckBoxChecked;

            // Click 'Submit Preference' button
            Mouse.Click(uISubmitPreferenceButton, new Point(57, 35));

            // Click '&Yes' button
            Mouse.Click(uIYesButton, new Point(62, 14));

            // Click 'Clear' button
            Mouse.Click(uIClearButton, new Point(78, 24));

            // Select 'Mountain Bike £50' radio button
            uIMountainBike50RadioButton.Selected = this.RecordedMethod1Params.UIMountainBike50RadioButtonSelected;

            // Select 'Blue £20' in 'ComboBoxColor' combo box
            uIComboBoxColorComboBox.SelectedItem = this.RecordedMethod1Params.UIComboBoxColorComboBoxSelectedItem1;

            // Clear 'Small(17"-18") £100' check box
            uISmall1718100CheckBox.Checked = this.RecordedMethod1Params.UISmall1718100CheckBoxChecked1;

            // Select 'Large(19"-20") £150' check box
            uILarge1920150CheckBox.Checked = this.RecordedMethod1Params.UILarge1920150CheckBoxChecked;

            // Clear 'Single Speed £20' check box
            uISingleSpeed20CheckBox.Checked = this.RecordedMethod1Params.UISingleSpeed20CheckBoxChecked1;

            // Select '24-Speed £150' check box
            uIItem24Speed150CheckBox.Checked = this.RecordedMethod1Params.UIItem24Speed150CheckBoxChecked;

            // Clear 'Carbon Saddle £20' check box
            uICarbonSaddle20CheckBox.Checked = this.RecordedMethod1Params.UICarbonSaddle20CheckBoxChecked1;

            // Select 'Gel Saddle £30' check box
            uIGelSaddle30CheckBox.Checked = this.RecordedMethod1Params.UIGelSaddle30CheckBoxChecked;

            // Clear 'Bullhorn £20' check box
            uIBullhorn20CheckBox.Checked = this.RecordedMethod1Params.UIBullhorn20CheckBoxChecked1;

            // Select 'Flat £15' check box
            uIFlat15CheckBox.Checked = this.RecordedMethod1Params.UIFlat15CheckBoxChecked;

            // Clear 'Road Wheels £30' check box
            uIRoadWheels30CheckBox.Checked = this.RecordedMethod1Params.UIRoadWheels30CheckBoxChecked1;

            // Select 'Off-Road Wheels £50' check box
            uIOffRoadWheels50CheckBox.Checked = this.RecordedMethod1Params.UIOffRoadWheels50CheckBoxChecked;

            // Clear 'Rim Brakes £20' check box
            uIRimBrakes20CheckBox.Checked = this.RecordedMethod1Params.UIRimBrakes20CheckBoxChecked1;

            // Click 'Submit Preference' button
            Mouse.Click(uISubmitPreferenceButton, new Point(66, 50));

            // Click 'OK' button
            Mouse.Click(uIOKButton, new Point(65, 16));

            // Click 'OK' button
            Mouse.Click(uIOKButton, new Point(56, 15));

            // Click 'Clear' button
            Mouse.Click(uIClearButton, new Point(84, 15));

            // Select 'Disc Brakes £50' check box
            uIDiscBrakes50CheckBox.Checked = this.RecordedMethod1Params.UIDiscBrakes50CheckBoxChecked;

            // Click 'Submit Preference' button
            Mouse.Click(uISubmitPreferenceButton, new Point(35, 22));

            // Click '&Yes' button
            Mouse.Click(uIYesButton, new Point(49, 13));
        }