Ejemplo n.º 1
0
        public void VerifySheetQualityAnalysisStatus(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIEnablesheetqualityanCheckBox = this.UISmartViewRecipeManagWindow.UISheetQualityAnalysisWindow.UIEnablesheetqualityanWindow.UIEnablesheetqualityanCheckBox;
            #endregion

            // Select 'Enable sheet quality analysis' check box
            Assert.AreEqual(isEnabled, uIEnablesheetqualityanCheckBox.Checked);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// SelectSideLabelCheckBox - Use 'SelectSideLabelCheckBoxParams' to pass parameters into this method.
        /// </summary>
        public void SelectSideLabelCheckBox(bool isSelected)
        {
            #region Variable Declarations
            WinCheckBox uISidelabelsCheckBox = this.UIDisplayOptionsWindow.UISidelabelsWindow.UISidelabelsCheckBox;
            #endregion

            // Select 'Side labels' check box
            uISidelabelsCheckBox.Checked = isSelected;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// ShowMarkReaderViews - Use 'ShowMarkReaderViewsParams' to pass parameters into this method.
        /// </summary>
        public void ShowMarkReaderViews(bool isDisplayed)
        {
            #region Variable Declarations
            WinCheckBox uIShowmarkreaderviewsCheckBox = this.UIDisplayOptionsWindow.UIShowmarkreaderviewsWindow.UIShowmarkreaderviewsCheckBox;
            #endregion

            // Select 'Show mark reader views' check box
            uIShowmarkreaderviewsCheckBox.Checked = isDisplayed;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// UseDefaultUnits - Use 'UseDefaultUnitsParams' to pass parameters into this method.
        /// </summary>
        public void UseDefaultUnits()
        {
            #region Variable Declarations
            WinCheckBox uIUsedefaultCheckBox = this.UIDisplayOptionsWindow.UIUsedefaultWindow.UIUsedefaultCheckBox;
            #endregion

            // Select 'Use default' check box
            uIUsedefaultCheckBox.Checked = this.UseDefaultUnitsParams.UIUsedefaultCheckBoxChecked;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// FeatureColumns - Use 'FeatureColumnsParams' to pass parameters into this method.
        /// </summary>
        public void FeatureColumns()
        {
            #region Variable Declarations
            WinCheckBox uICheck1CheckBox = this.UIDisplayOptionsWindow.UICheck1Window.UICheck1CheckBox;
            #endregion

            // Select 'Check1' check box
            uICheck1CheckBox.Checked = this.FeatureColumnsParams.UICheck1CheckBoxChecked;
        }
Ejemplo n.º 6
0
        /// <summary>
        /// ShowLaneNavigations - Use 'ShowLaneNavigationsParams' to pass parameters into this method.
        /// </summary>
        public void ShowLaneNavigations()
        {
            #region Variable Declarations
            WinCheckBox uIShowlanesCheckBox = this.UIDisplayOptionsWindow.UIShowlanesWindow.UIShowlanesCheckBox;
            #endregion

            // Clear 'Show <> lanes' check box
            uIShowlanesCheckBox.Checked = this.ShowLaneNavigationsParams.UIShowlanesCheckBoxChecked;
        }
Ejemplo n.º 7
0
        /// <summary>
        /// StopScrollOnSelection - Use 'StopScrollOnSelectionParams' to pass parameters into this method.
        /// </summary>
        public void StopScrollOnSelection(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIStoponselectionCheckBox = this.UILiveModeSettingsWindow.UIStoponselectionWindow.UIStoponselectionCheckBox;
            #endregion

            // Select 'Stop on selection' check box
            uIStoponselectionCheckBox.Checked = isEnabled;
        }
Ejemplo n.º 8
0
        /// <summary>
        /// EnableRepeatingDefectDetection - Use 'EnableRepeatingDefectDetectionParams' to pass parameters into this method.
        /// </summary>
        public void EnableRepeatingDefectDetection(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIEnableCheckBox = this.UISmartViewRecipeManagWindow.UIRepeatingDefectSetupWindow.UIEnableWindow.UIEnableCheckBox;
            #endregion

            // Select 'Enable' check box
            uIEnableCheckBox.Checked = isEnabled;
        }
Ejemplo n.º 9
0
        /// <summary>
        /// EnableQuery - Use 'EnableQueryParams' to pass parameters into this method.
        /// </summary>
        public void EnableQuery(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIApplyqueryCheckBox = this.UIQueryDefinitionWindow.UIApplyqueryWindow.UIApplyqueryCheckBox;
            #endregion

            // Select 'Apply query' check box
            uIApplyqueryCheckBox.Checked = isEnabled;
        }
Ejemplo n.º 10
0
        public void VerifyEnableQuery(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIApplyqueryCheckBox = this.UIQueryDefinitionWindow.UIApplyqueryWindow.UIApplyqueryCheckBox;
            #endregion

            // Select 'Apply query' check box
            Assert.AreEqual(isEnabled, uIApplyqueryCheckBox.Checked);
        }
Ejemplo n.º 11
0
        public void VerifySideLabels(bool isShown)
        {
            #region Variable Declarations
            WinCheckBox uIShowCheckBox = this.UIDisplayOptionsWindow.UIShowWindow.UIShowCheckBox;
            #endregion

            // Select 'Show' check box
            Assert.AreEqual(isShown, uIShowCheckBox.Checked);
        }
Ejemplo n.º 12
0
        public void VerifyMarkReaderViews(bool isShown)
        {
            #region Variable Declarations
            WinCheckBox uIShowmarkreaderviewsCheckBox = this.UIDisplayOptionsWindow.UIShowmarkreaderviewsWindow.UIShowmarkreaderviewsCheckBox;
            #endregion

            // Select 'Show mark reader views' check box
            Assert.AreEqual(isShown, uIShowmarkreaderviewsCheckBox.Checked);
        }
Ejemplo n.º 13
0
        public void VerifyIndicateMaterialThatFallsOutsideLaneBoundaries(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIShowlanesCheckBox = this.UIDisplayOptionsWindow.UIShowlanesWindow.UIShowlanesCheckBox;
            #endregion

            // Select 'Show <> lanes' check box
            Assert.AreEqual(isEnabled, uIShowlanesCheckBox.Checked);
        }
        /// <summary>
        /// DisplayTotals - Use 'DisplayTotalsParams' to pass parameters into this method.
        /// </summary>
        public void DisplayTotals(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIDisplaytotalsCheckBox = this.UILaneSummaryWindow.UIDisplaytotalsWindow.UIDisplaytotalsCheckBox;
            #endregion

            // Select 'Display totals' check box
            uIDisplaytotalsCheckBox.Checked = isEnabled;
        }
Ejemplo n.º 15
0
        public void VerifyStopScrollOnSelection(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIStoponselectionCheckBox = this.UILiveModeSettingsWindow.UIStoponselectionWindow.UIStoponselectionCheckBox;
            #endregion

            // Select 'Stop on selection' check box
            Assert.AreEqual(isEnabled, uIStoponselectionCheckBox.Checked);
        }
        /// <summary>
        /// FlipRowsAndColumns - Use 'FlipRowsAndColumnsParams' to pass parameters into this method.
        /// </summary>
        public void FlipRowsAndColumns(bool isFlipped)
        {
            #region Variable Declarations
            WinCheckBox uIFliprowsandcolumnsCheckBox = this.UILaneSummaryWindow.UIFliprowsandcolumnsWindow.UIFliprowsandcolumnsCheckBox;
            #endregion

            // Select 'Flip rows and columns' check box
            uIFliprowsandcolumnsCheckBox.Checked = isFlipped;
        }
Ejemplo n.º 17
0
        /// <summary>
        /// ShowDefectBoxes - Use 'ShowDefectBoxesParams' to pass parameters into this method.
        /// </summary>
        public void ShowDefectBoxes(bool isShown)
        {
            #region Variable Declarations
            WinCheckBox uIDefectboxesCheckBox = this.UIDisplayOptionsWindow.UIDefectboxesWindow.UIDefectboxesCheckBox;
            #endregion

            // Select 'Defect boxes' check box
            uIDefectboxesCheckBox.Checked = isShown;
        }
        /// <summary>
        /// GroupByView - Use 'GroupByViewParams' to pass parameters into this method.
        /// </summary>
        public void GroupByView(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIGroupbyviewCheckBox = this.UILaneSummaryWindow.UIGroupbyviewWindow.UIGroupbyviewCheckBox;
            #endregion

            // Select 'Group by view' check box
            uIGroupbyviewCheckBox.Checked = isEnabled;
        }
Ejemplo n.º 19
0
        public void VerifyShowDefectBoxes(bool isShown)
        {
            #region Variable Declarations
            WinCheckBox uIDefectboxesCheckBox = this.UIDisplayOptionsWindow.UIDefectboxesWindow.UIDefectboxesCheckBox;
            #endregion

            // Select 'Defect boxes' check box
            Assert.AreEqual(isShown, uIDefectboxesCheckBox.Checked);
        }
Ejemplo n.º 20
0
        /// <summary>
        /// InvertDownweb - Use 'InvertDownwebParams' to pass parameters into this method.
        /// </summary>
        public void InvertDownweb()
        {
            #region Variable Declarations
            WinCheckBox uIInvertdownwebCheckBox = this.UIDisplayOptionsWindow.UIInvertdownwebWindow.UIInvertdownwebCheckBox;
            #endregion

            // Select 'Invert downweb' check box
            uIInvertdownwebCheckBox.Checked = this.InvertDownwebParams.UIInvertdownwebCheckBoxChecked;
        }
Ejemplo n.º 21
0
        /// <summary>
        /// ShowPointerToolbar - Use 'ShowPointerToolbarParams' to pass parameters into this method.
        /// </summary>
        public void ShowPointerToolbar(bool isShown)
        {
            #region Variable Declarations
            WinCheckBox uIPointertoolbarCheckBox = this.UIDisplayOptionsWindow.UIPointertoolbarWindow.UIPointertoolbarCheckBox;
            #endregion

            // Select 'Pointer toolbar' check box
            uIPointertoolbarCheckBox.Checked = isShown;
        }
Ejemplo n.º 22
0
        /// <summary>
        /// ShowLanesBasedOnQuery - Use 'ShowLanesBasedOnQueryParams' to pass parameters into this method.
        /// </summary>
        public void ShowLanesBasedOnQuery(bool isDisplayed)
        {
            #region Variable Declarations
            WinCheckBox uIShowHidelanesbasedonCheckBox = this.UIDisplayOptionsWindow.UIShowHidelanesbasedonWindow.UIShowHidelanesbasedonCheckBox;
            #endregion

            // Select 'Show/Hide lanes based on query' check box
            uIShowHidelanesbasedonCheckBox.Checked = isDisplayed;
        }
Ejemplo n.º 23
0
        public void VerifyShowPointerToolbar(bool isShown)
        {
            #region Variable Declarations
            WinCheckBox uIPointertoolbarCheckBox = this.UIDisplayOptionsWindow.UIPointertoolbarWindow.UIPointertoolbarCheckBox;
            #endregion

            // Select 'Pointer toolbar' check box
            Assert.AreEqual(isShown, uIPointertoolbarCheckBox.Checked);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// ShowSideLabels - Use 'ShowSideLabelsParams' to pass parameters into this method.
        /// </summary>
        public void ShowSideLabels(bool isDisplayed)
        {
            #region Variable Declarations
            WinCheckBox uIShowCheckBox = this.UIDisplayOptionsWindow.UIShowWindow.UIShowCheckBox;
            #endregion

            // Select 'Show' check box
            uIShowCheckBox.Checked = isDisplayed;
        }
        /// <summary>
        /// HighlightRows - Use 'HighlightRowsParams' to pass parameters into this method.
        /// </summary>
        public void HighlightRows(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIHighlightrowsCheckBox = this.UILaneSummaryWindow.UIHighlightrowsWindow.UIHighlightrowsCheckBox;
            #endregion

            // Select 'Highlight rows' check box
            uIHighlightrowsCheckBox.Checked = isEnabled;
        }
Ejemplo n.º 26
0
        /// <summary>
        /// EnableSheetQualityAnalysis - Use 'EnableSheetQualityAnalysisParams' to pass parameters into this method.
        /// </summary>
        public void EnableSheetQualityAnalysis(bool isEnabled)
        {
            #region Variable Declarations
            WinCheckBox uIEnablesheetqualityanCheckBox = this.UISmartViewRecipeManagWindow.UISheetQualityAnalysisWindow.UIEnablesheetqualityanWindow.UIEnablesheetqualityanCheckBox;
            #endregion

            // Select 'Enable sheet quality analysis' check box
            uIEnablesheetqualityanCheckBox.Checked = isEnabled;
        }
        /// <summary>
        /// ShowZeroValues - Use 'ShowZeroValuesParams' to pass parameters into this method.
        /// </summary>
        public void ShowZeroValues()
        {
            #region Variable Declarations
            WinCheckBox uIShowzerovaluesCheckBox = this.UILaneSummaryWindow.UIShowzerovaluesWindow.UIShowzerovaluesCheckBox;
            #endregion

            // Select 'Show zero values' check box
            uIShowzerovaluesCheckBox.Checked = this.ShowZeroValuesParams.UIShowzerovaluesCheckBoxChecked;
        }
        public static void SetCheckBox(string name, bool isChecked)
        {
            WinCheckBox checkBox = (WinCheckBox)Robot.FindWinControl(typeof(WinCheckBox), name, _root);

            if (checkBox.Checked != isChecked)
            {
                checkBox.Checked = isChecked;
            }
        }
Ejemplo n.º 29
0
        /// <summary>
        /// SelectShowLegendCheckBox - Use 'SelectShowLegendCheckBoxParams' to pass parameters into this method.
        /// </summary>
        public void SelectShowLegendCheckBox()
        {
            #region Variable Declarations
            WinCheckBox uIShowLegendCheckBox = this.UISmartViewProductionQWindow.UITrendViewerWindow.UIToolbarWindow.UIShowLegendCheckBox;
            #endregion

            // Clear 'Show Legend' check box
            uIShowLegendCheckBox.Checked = true;
        }
        /// <summary>
        /// ShowTable - Use 'ShowTableParams' to pass parameters into this method.
        /// </summary>
        public void ShowTable(bool isShown)
        {
            #region Variable Declarations
            WinCheckBox uIShowtableCheckBox = this.UILaneSummaryWindow.UIShowtableWindow.UIShowtableCheckBox;
            #endregion

            // Clear 'Show table' check box
            uIShowtableCheckBox.Checked = isShown;
        }
Ejemplo n.º 31
0
        public static void SetItemControlValue(string name, string type, string value, WinWindow parent)
        {
            WinWindow ItemWindow = new WinWindow(parent);
            ItemWindow.SearchProperties.Add("AccessibleName", name);
            ItemWindow.WaitForControlReady();
            WinControl uIControl = new WinControl(ItemWindow);
            uIControl.TechnologyName = "MSAA";
            uIControl.SearchProperties.Add("ControlType", type);
            uIControl.SearchProperties.Add("Name", name);
            uIControl.WaitForControlReady();

            if (type == "CheckBox")
            {
                WinCheckBox mUICheckBox = new WinCheckBox(uIControl);
                mUICheckBox.Checked = Convert.ToBoolean(value);
            }
            else if (type == "Edit")
            {
                WinEdit mUIEdit = new WinEdit(uIControl);
                mUIEdit.Text = value;
            }
        }
Ejemplo n.º 32
0
 private static WinCheckBox CheckBoxReusable()
 {
     var checkBoxReusable = new WinCheckBox(CommonUiMap.WindowMaintance());
     checkBoxReusable.SearchProperties[UITestControl.PropertyNames.Name] = "Tier 5: Contract Revenue >=";
     return checkBoxReusable;
 }
Ejemplo n.º 33
0
        public static void SetControlValue(string name, string type, string value, WinWindow parent)
        {
            WinControl uIControl;
            uIControl = new WinControl(parent);
            uIControl.TechnologyName = "MSAA";
            uIControl.SearchProperties.Add("ControlType", type);
            uIControl.SearchProperties.Add("Name", name, PropertyExpressionOperator.Contains);
            uIControl.WaitForControlReady();

            if (type == "CheckBox")
            {
                WinCheckBox mUICheckBox = new WinCheckBox(uIControl);
                mUICheckBox.Checked = Convert.ToBoolean(value);
            }
            else if (type == "Edit")
            {
                WinEdit mUIEdit = new WinEdit(uIControl);
                mUIEdit.Text = value;
            }
        }
Ejemplo n.º 34
0
        public static string GetControlValue(string name, string type, WinWindow parent)
        {
            WinControl uIControl = new WinControl(parent);
            uIControl.TechnologyName = "MSAA";
            uIControl.SearchProperties.Add("ControlType", type);
            uIControl.SearchProperties.Add("Name", name);
            uIControl.WaitForControlReady();

            if (type == "CheckBox")
            {
                WinCheckBox mUICheckBox = new WinCheckBox(uIControl);
                return mUICheckBox.Checked.ToString();
            }
            else if (type == "Edit")
            {
                WinEdit mUIEdit = new WinEdit(uIControl);
                return mUIEdit.Text;
            }
            else
            {
                throw new Exception(String.Format("Unknown control. contact automation administrator"));
            }
        }
Ejemplo n.º 35
0
 public static UITestControlCollection GetControlCollection(WinCheckBox checkControl)
 {
     return checkControl.FindMatchingControls();
 }
Ejemplo n.º 36
0
 public static void SetCheckBox(WinCheckBox checkbox, string check)
 {
     checkbox.WaitForControlReady();
     checkbox.SetFocus();
     checkbox.Checked = Convert.ToBoolean(check);
 }
        public WinCheckBox GetCUITCHeckbox(WinWindow w, string searchBy, string searchValue, int index)
        {
            Console.WriteLine("Inside function GetCUITCHeckbox");
            WinCheckBox GetCUITCHeckbox = new WinCheckBox(w);
            try
            {
                Playback.Initialize();
                switch (searchBy.Trim().ToLower())
                {
                    case "text":
                        {
                            if (index == -1)
                            {
                                GetCUITCHeckbox.SearchProperties[WinCheckBox.PropertyNames.Name] = searchValue;
                            }
                            else
                            {
                                GetCUITCHeckbox.SearchProperties.Add(WinCheckBox.PropertyNames.Name, searchValue);
                                UITestControlCollection checkboxCollection = GetCUITCHeckbox.FindMatchingControls();
                                GetCUITCHeckbox = (WinCheckBox)checkboxCollection[index];
                            }
                            break;
                        }

                    case "automationid":
                        {
                            if (index == -1)
                            {
                                GetCUITCHeckbox.SearchProperties.Add(WinCheckBox.PropertyNames.ControlName, searchValue);
                                UITestControlCollection checkboxCollection = GetCUITCHeckbox.FindMatchingControls();
                                GetCUITCHeckbox = (WinCheckBox)checkboxCollection[0];
                            }
                            else
                            {
                                GetCUITCHeckbox.SearchProperties.Add(WinCheckBox.PropertyNames.ControlName, searchValue);
                                UITestControlCollection checkboxCollection = GetCUITCHeckbox.FindMatchingControls();
                                GetCUITCHeckbox = (WinCheckBox)checkboxCollection[index];
                            }
                            break;
                        }

                    default:
                        throw new Exception(_error);
                }

                Playback.Cleanup();
                Console.WriteLine("Found Checkbox and exiting function GetCUITCHeckbox");
                return GetCUITCHeckbox;

            }
            catch (Exception e)
            {
                var st = new StackTrace(e, true);
                var testFrame = st.GetFrame(0);
                for (int i = 0; i < st.FrameCount; i++)
                {
                    testFrame = st.GetFrame(i);
                    if (testFrame.GetFileName() != null)
                    {
                        if (testFrame.GetFileName().ToString().Contains("CUITFramework.cs") == true)
                        {
                            break;
                        }
                    }

                }
                // Get the top stack frame
                var frame = testFrame;
                // Get the line number from the stack frame
                var line = frame.GetFileLineNumber();
                logTofile(_eLogPtah, "Error in GetCUITCHeckbox and in line: " + line);
                throw new Exception(_error + "CUITRButton:" + System.Environment.NewLine + e.Message);
            }
        }