QTP - DTParameter 对象属性
| 方法名称 | 描述 | 语法 |
|---|---|---|
| 名称 | 返回运行时数据表中参数的名称。 | DTParameter.Name |
| RawValue | 返回运行时数据表当前行中单元格的原始值。 | DTParameter.RawValue |
| Value | 检索或设置运行时数据表中参数活动行单元格的值。 | DTParameter.Value |
| ValueByRow | 检索运行时数据表中参数指定行单元格的值。 | DTParameter.ValueByRow (RowNum) |
示例
考虑以下数据表 −
Val = DataTable.GetSheet("Global").GetParameter("Principal").ValueByRow(2)
print Val ' Val Displays 2556
DataTable.SetCurrentRow(1)
Val1 = DataTable.GetSheet("Global").GetParameter("Principal").Value
print Val1 ' Val1 displays 232

qtp_datatables.html