.WebButton("增加合作商家").Click
End With
.Frame("mainFrame_2").WebButton("新 增").Click
With .Frame("mainFrame_3")
Browser("AA系统").Page("AA系统").Frame("mainFrame_3").Check CheckPoint("mainFrame_6")
Browser("AA系统").Page("AA系统").Frame("mainFrame_3").Check CheckPoint("mainFrame_7")
Browser("AA系统").Page("AA系统").Frame("mainFrame_3").Check CheckPoint("mainFrame_8")
Browser("AA系统").Page("AA系统").Frame("mainFrame_3").Check CheckPoint("mainFrame_9")
.WebEdit("Form:prodCode").Set "000009"
.WebButton("新 增").Click
End With
With .Frame("mainFrame_4")
.WebEdit("Form:prodCode").Set "0000013"
.WebEdit("Form:catalogName").Set "a"
.WebRadioGroup("Form:status").Select "I"
.WebEdit("Form:fax").Set "11"
.WebButton("新 增").Click
.Check CheckPoint("mainFrame_4")
End With
With .Frame("mainFrame_5")
.WebEdit("Form:fax").Set "1111111"
.Check CheckPoint("mainFrame_11")
.WebButton("新 增").Click
End With
With .Frame("mainFrame_6")
.WebList("Form:area").Select "B区"
.WebButton("新 增").Click
End With
.Frame("mainFrame_7").WebButton("确定").Click
End With作者: yuandjing 时间: 2007-6-13 10:59
呵呵,录制的不是VB,但是可以用VB增强脚本
比如:
'Option explicit
Dim result,list,temp,row1,row2,i
Dim ActualResult
list=DataTable("list", dtGlobalSheet)
'写文件
Set fileSystemObj = CreateObject("Scripting.FileSystemObject")
fileSpec ="C:\" &"测试报告"& ".txt"
Set logFile = fileSystemObj.OpenTextFile(fileSpec, 8, true)
'Set f = fso.OpenTextFile("c:\testfile.txt", ForWriting, True)
logFile.WriteLine ("#######################################################################")
logFile.WriteLine ("测试用例"+list+":")