01 2014 档案
摘要:安装LoadRunner时出现“计算机缺少vc2005_sp1_with_atl_fix_redist”的解决办法在lr安装包里面 loadrunner-11\lrunner\En\prerequisites\vc2005_sp1_redist 下有 vcredist_x86.exe 安装下就可以了然后重新安装程序即可
阅读全文
摘要:' Const Reading=1,Writing=2,Appending=8' Set Fso=CreateObject("Scripting.FileSystemObject")' Dim txtPath' a=DATE()' Datetime = date ' Parameter = Array("yyyy","m","d")' For Each P In Parameter' Temp = DatePart(P,Datetime)' I
阅读全文
摘要:1、 Set aa=browser(“网易”).page(“网易”).objectbb= aa.cookiebb已经获取到cookie里所有字符串,用截取字符串方法进行有效截取便可得到生成的cookid,当然还可以截取其他信息cookKey=Format(Now)aa.cookie=”userId=828; expire=”+cookKey;重新赋值2、qtp中的WebUtil a= WebUtil.GetCookies(url) ‘获取cookie WebUtil.DeleteCookie(domain,cookies) ‘ 删除cookie Webutil.DeleteCookies删除所
阅读全文
摘要:QTP - 脚本相关收集1)生产随机数列 第一种方法 randomize\'更新反回的数据 funcation rand(k,n) n="int((k-1)*rnd+1) rand=n end funcation 第二种方法 n="randomnumber.value(1,255) 2)wintreeview一些操作 选择一个条目:wintreeview.select(item)\'根是0 根的名称:wintreeview.getitem(0)3)QTP中用代码连接数据库 Set Conn = CreateObject("ADODB.Connect
阅读全文
摘要:新学两招:Dim doc,scriptSet doc=ControlPlanPopWin.document ' 通过脚本注入改变alert的行为Set script. =doc.createElement("script")script.text="var alert=function(){return true}; "doc.appendChild(script)' 通过脚本注入改变confirm的行为Set script. =doc.createElement("script")script.text="
阅读全文
摘要:1、window.document.write("hello, how are you")2、window.open()url: 后面必须有"http://“ 和 "/"例如 window.open("http://www.baidu.com/")public Function checkdelset Table1=browser("搜狐畅游客服专区").Page("搜狐畅游客服专区").Frame("mainFrame_2").Object.getElementB
阅读全文
摘要:1、ExitAction() 退出当前操作,无论其本地(操作)循环属性是什么。2、ExitActionIteration() 退出操作的当前循环。3、ExitComponent()退出当前组件并继续业务流程测试中的下一个组件,无论组件的循环设置是什么。4、ExitComponentIteration() 退出当前组件循环并继续该组件的下一次循环,或者,如果当前组件没有其他循环,则继续业务流程测试中的下一个组件。5、ExitGlobalIteration() 退出当前的全局循环,并使用全局数据表的下一行开始下一次循环。6、ExitRun() 退出测试,无论其全局循环属性是什么。7、ExitTes
阅读全文

浙公网安备 33010602011771号