1 / 114
文档名称:

一个完整的qtp项目脚本.doc

格式:doc   页数:114页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

一个完整的qtp项目脚本.doc

上传人:cdsqbyl 2015/9/9 文件大小:0 KB

下载得到文件列表

一个完整的qtp项目脚本.doc

相关文档

文档介绍

文档介绍:Action_Init
Option Explicit
'=====================================================
Dim fso,file,filename,objTestLib,objmsgbox
'=====================================================
'create a new file system object to output information
Set objTestLib = createobject("")
'create a new sqamsgbox object
Set objmsgbox = CreateObject("")
'=====================================================
'add global varibles to global sheet
"filename", ""
"UI_Flag",""
"Appno1", ""
"Appno2", ""
"Appno3", ""
'=====================================================
'define a global file name variable
filename = "c:\log\log" & mid(date,1,2) & mid(date,4,2) & ""
DataTable("filename",dtGlobalSheet) = filename
Set fso = CreateObject("")
Set file = (filename,2,True)
'=====================================================
Call (file,3,"The beginning of all the scripts!")
"We will start demo for Presidio" ,"AA Auto Test",3,0
'===========================================
Set objTestLib = nothing
Set objmsgbox = nothing
Set fso = nothing
Set file = nothing
Login As Admin
Option Explicit
'=================================================================
Dim fso,file,filename,objTestLib,objmsgbox
Dim UI_Flag,TrueOrFlase
'fetch filename form the global sheet
'filename = "c:\"
filename = ("filename",dtGlobalSheet)
'=================================================================
'create a new file system object to output information
Set fso = CreateObject("")
Set file = (filename,8,True)
Set objTestLib = createobject("")
'create a new sqamsgbox object
Set objmsgbox = Cre