测试环境:windows XP SP3,QTP10.0
操作步骤:
1,启动QTP;
2.在专家视图输入如下脚本:
Sheet_Count=DataTable.GetSheetCount
DataTable(1,"Global")=Sheet_Count
3.F5
报错:The set DataTable.Value operation failed. The specified parameter index value: "1" does not exist in the data sheet.
Line (2): "DataTable(1,"Global")=Sheet_Count".