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); }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
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); }
public void VerifySideLabels(bool isShown) { #region Variable Declarations WinCheckBox uIShowCheckBox = this.UIDisplayOptionsWindow.UIShowWindow.UIShowCheckBox; #endregion // Select 'Show' check box Assert.AreEqual(isShown, uIShowCheckBox.Checked); }
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); }
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; }
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; }
/// <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; }
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); }
/// <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; }
/// <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; }
/// <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; }
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); }
/// <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; }
/// <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; } }
/// <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; }
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; } }
private static WinCheckBox CheckBoxReusable() { var checkBoxReusable = new WinCheckBox(CommonUiMap.WindowMaintance()); checkBoxReusable.SearchProperties[UITestControl.PropertyNames.Name] = "Tier 5: Contract Revenue >="; return checkBoxReusable; }
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; } }
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")); } }
public static UITestControlCollection GetControlCollection(WinCheckBox checkControl) { return checkControl.FindMatchingControls(); }
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); } }