您的位置:首页 > 产品设计 > UI/UE

code ui test中如何解决add assertion的函数参数总是取不到超过两层的值?(比如assert.equal中取不到值)

2010-10-09 14:47 302 查看
首先取到第一层的值,即表格的值,然后再通过自写代码来得到具体的值,比如一个表格的第7行第6列的值:
public void AssertMethod1()
{
WinTable uIDataGridViewTable = this.UIHRMClientVer2320910Window.UILaurelPark1Window.UIDataGridView1Window.UIDataGridViewTable;
WinRow row = uIDataGridViewTable.Rows[6] as WinRow;
WinCell cell = row.Cells[5] as WinCell;
string cellValue = cell.Value;
Assert.AreEqual(this.AssertMethod1ExpectedValues.UIDataGridViewTableName,cellValue);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐