/// <summary> /// Performs the playback of actions in this module. /// </summary> /// <remarks>You should not call this method directly, instead pass the module /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method /// that will in turn invoke this method.</remarks> void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.0; TCOS_POC_DEMOAPPRepository repo = TCOS_POC_DEMOAPPRepository.Instance; Ranorex.List HDComboBox = repo.RxMainFrame.RxTabUIElements.LstTestBox; HDComboBox.Click(Location.Center); IList <Ranorex.ListItem> MyListItems = HDComboBox.FindDescendants <Ranorex.ListItem>(); string[] actualStrArrItems; actualStrArrItems = new string[MyListItems.Count]; foreach (Ranorex.ListItem ThisListItem in MyListItems) { actualStrArrItems[ThisListItem.Index] = ThisListItem.Text.ToString(); } Validate.AreEqual(string.Join(",", actualStrArrItems), expectedListItems); }
public void Get_value_LstTestBox(RepoItemInfo listInfo, string listItems) { TCOS_POC_DEMOAPPRepository repo = TCOS_POC_DEMOAPPRepository.Instance; Ranorex.List HDComboBox = listInfo.FindAdapter <List>(); HDComboBox.Click(Location.Center); IList <Ranorex.ListItem> MyListItems = HDComboBox.FindDescendants <Ranorex.ListItem>(); string[] actualStrArrItems; actualStrArrItems = new string[MyListItems.Count]; foreach (Ranorex.ListItem ThisListItem in MyListItems) { actualStrArrItems[ThisListItem.Index] = ThisListItem.Text.ToString(); } // Report.Log(ReportLevel.Info,"**"+string.Join(",", actualStrArrItems)+"**"); // Report.Log(ReportLevel.Info,"**"+listItems+"**"); Validate.AreEqual(string.Join(",", actualStrArrItems), listItems); }