使用Coded UI Test测试DataGridView遇到的问题
来源:互联网 发布:nginx根据域名跳转 编辑:程序博客网 时间:2024/04/30 08:06
使用以下方法对DataGridView的单元格进行随机赋值,实际运行中发现在Visual Studio 2010中无法执行对TextBox单元格(WinEdit)的赋值,报错
PlaybackFailureException: 不能对控件执行“值为“12”的 Value 的 SetProperty”
后改用Visual Studio 2015可正常执行。
public void RecordedTest1() { #region Variable Declarations WinComboBox uIEditControlComboBox = this.UIMyWinFormWindow.UIMyWinForm2Window.UIItemWindow.UIEditPanelClient.UIEditControlComboBox; WinEdit uIEditControlEdit = this.UIMyWinFormWindow.UIBMyWinForm2Window.UIItemWindow.UIEditPanelClient.UIEditControlEdit; WinTable uITable = this.UIMyWinFormWindow.UIMyWinForm2Window.UIGrvFenceWindow.UIDataGridViewTable; WinRow uIRow; WinCell uICell; #endregion Random rnd = new Random(13579); for (int i = 0; i < uITable.Rows.Count; i++) { uIRow = uITable.Rows[i] as WinRow; //DataGridViewComboBox uICell = uIRow.Cells[0] as WinCell; Mouse.Click(uICell); uIEditControlComboBox.SelectedIndex = rnd.Next(3); //DataGridViewTextBox uICell = uIRow.Cells[1] as WinCell; Mouse.Click(uICell); uIEditControlEdit.Text = rnd.Next(100).ToString(); } }
0 0
- 使用Coded UI Test测试DataGridView遇到的问题
- Coded Ui Test使用数据源
- 使用vs2010的Coded UI Test实现数据驱动的用户自动登录测试
- 使用vs2010的Coded UI Test实现数据驱动的用户自动登录测试
- 测试:VS2010的Coded UI Test参考内容列表
- Coded UI Test-创建一个排序的测试组
- 微软测试管理运行Coded UI Test
- Coded UI Test
- VS 2010 测试功能学习(18) – Coded UI Test三个必知的函数
- VS 2010 测试功能学习(18) – Coded UI Test三个必知的函数
- Coded UI Test数据验证
- Rnp and Coded UI Test
- Coded UI Test功能扩展
- VS2010的Coded UI Test参考内容列表
- 分布式Coded UI Tests测试
- 推荐一篇调试Coded UI测试的文章
- 如何打开Coded UI Test Builder
- Coded UI Test 入门学习(一)
- Aanroid 加载so库失败:java.lang.UnsatisfiedLinkError
- leetcode 134. Gas Station
- Eclipse调试过程中,如何修改变量的值?
- Sklearn-preprocessing.scale/StandardScaler/MinMaxScaler
- JavaScript事件
- 使用Coded UI Test测试DataGridView遇到的问题
- Linux驱动技术(七) _内核定时器与延迟工作
- What is the difference between pages and blocks?
- Java移位运算符及小技巧
- Zepto Click点透情况解决办法
- bugly使用心得
- 1021. Deepest Root (25)
- Hibernate 主键生成
- css设置透明度