【软件自动化测试-QTP实战技能 16】==QTP_调用外部EXCEL数据替换DataTable中的数据
2010-10-19 11:16
465 查看
'Sheet1: The name or index of the sheet in the file that you want to import. Index values begin with
1.
'Action1: The name or index of the sheet in the Data Table that you want to replace with the
SheetSource. Index values begin with
1.
DataTable.ImportSheet "C:/JX/WorkSpace/test.xls","Sheet1","Action1"
Dim xl
Set xl = createobject("excel.application")
xl.Visible = true
xl.Workbooks.Open("C:/JX/WorkSpace/test.xls")
Set xl = nothing
1.
'Action1: The name or index of the sheet in the Data Table that you want to replace with the
SheetSource. Index values begin with
1.
DataTable.ImportSheet "C:/JX/WorkSpace/test.xls","Sheet1","Action1"
Dim xl
Set xl = createobject("excel.application")
xl.Visible = true
xl.Workbooks.Open("C:/JX/WorkSpace/test.xls")
Set xl = nothing
相关文章推荐
- 【软件自动化测试-QTP实战技能 9】== 从外部excel中读出数据导入到qtp的data中
- 【软件自动化测试-QTP实战技能 4】== 取得Excel中的单元格值并作比较
- 【软件自动化测试-QTP实战技能 19】== 关闭 MESSAGE BOX 当关闭EXCEL 时
- 【软件自动化测试-QTP实战技能 11】== QTP code for excel link
- 【软件自动化测试-QTP实战技能 25】== QTP_DataTable
- 【软件自动化测试-QTP实战技能 23】== QTP 常用Functions
- 【软件自动化测试-QTP实战技能 21】== QTP_use RegExp 匹配numbers
- 【软件自动化测试-QTP实战技能 17】== QTP_Compare local sheet values with run time data table values
- 【软件自动化测试-QTP实战技能 10】== QTP用到的一些特殊方法
- 【软件自动化测试-QTP实战技能 20】== QTP_ Delete files from Temp Folder:删除Folder
- 【软件自动化测试-QTP实战技能 3】== 数据库检查点手动SQL写法
- 【软件自动化测试-QTP实战技能 12】== QTP 返回磁盘 freeSpace
- 【软件自动化测试-QTP实战技能 14】== 自动化测试思想之QTP登录脚本
- 【软件自动化测试-QTP实战技能 15】== QTP compare each iteration to enditeration
- 【软件自动化测试-QTP实战技能 28】== Minimize QTP
- 【软件自动化测试-QTP实战技能 24】== QTP Code_ Useing Description Objects
- 【软件自动化测试-QTP实战技能 27】== QTP open ldif file
- 【软件自动化测试-QTP实战技能 26】== QTP_Training:Environment Variables
- 【软件自动化测试-QTP实战技能 1】== 使用技巧实例
- 【软件自动化测试-QTP实战技能 2】== Test Object Model