QTP??DataTable?÷?????
???????????? ???????[ 2013/12/19 10:20:10 ] ????????
????DataTable???????????
DataTable.GetSheet(dtSheet)
DataTable.GetSheetCount
DataTable.[GetSheet.]GetRowCount
DataTable.[GetSheet.]GetParameterCount
DataTable.GetSheet(sSheetName).GetParameter(“ColumName”).ValueByName(iRowNumber)
DataTable.[GetSheet.]GetCurrentRow
DataTable.[GetSheet.]SetCurrentRow(RowNumber)
DataTable.Value(ParameterID [?? SheetID]) or DataTable (ParameterID [?? SheetID])
DataTable.AddSheet(SheetName)
DataTable.DeleteSheet(SheetName)
DataTable.Export(filename)
DataTable.ExportSheet(filename??SheetName)
DataTable.Import(FileName)
DataTable.ImportSheet(FileName?? SheetSource?? SheetDest)
|
????1.???datatable????????????GetRowCount
???????????????????????????????????????????????????????????????????????г??????е?????????
????????DataTable.GetRowCount
???????????????
?????????
?????????????? GetRowCount ???????? MySheet ???????????г??????е???????????????д???檔
????rowcount = DataTable.GetSheet("MySheet").GetRowCount
????Reporter.ReportEvent 2?? "????????????? " &rowcount?? "?С?
????2.???datatable???????????????GetParameterCount
????????DTSheet.GetParameterCount
???????? paramcount = DataTable.GetSheet("MySheet").GetParameterCount
????3.GetCurrentRow????
???????????????????????????????????????????????????????????????????????е??????????С?
????????DataTable.GetCurrentRow
???????????????
?????????
?????????????? GetCurrentRow ??????????????????????????????У???????д???檔
????row = DataTable.GetCurrentRow
????Reporter.ReportEvent 1?? "?к?"?? row
????4. ??????active??????????????1????SetCurrentRow
????????DataTable.SetCurrentRow(RowNumber)
???????? DataTable.SetCurrentRow(tb_i+1)
????DataTable.GetSheet("Action1"). SetCurrentRow(tb_i+1)
????'????????????????????в???????????????
?????????????GetCurrentRow?????Action1???У????????SetCurrentRow??????????Action????????£?
????CurrRow = DataTable.GetSheet("Action1").GetCurrentRow
????DataTable.GetSheet("Action2").SetCurrentRow(CurrRow)
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11