QTP学习笔记datatable应用

DataTable应用
1、定位数据行

  DataTable.GetSheet("Action2").SetCurrentRow(2)
2、获取当前行
  GetCurrentRow
3、获取指定行的值
  getValueByRow = DataTable.GetSheet("Action2") .GetParameter("Column7").ValueByRow(2)
4、获取当前Sheet总行数
  GetSheet('Action1').GetRowCount
如下程序是运行Global sheet中的前4行中的相应列值
 
原文地址:https://www.cnblogs.com/autumnvivi/p/3260305.html