SeeTest_See test代码在QTP中运行(1)

SeeTest_See test代码在QTP中运行(1),第1张

概述Set client = DotNetFactory.CreateInstance("experitestClient.Client", "E:\\InstallSoftware\\SeeTest\\ExperitestStudio\\clients\\C#\\imageClient.dll") client.Connect "127.0.0.1", 8888 client.SetProjectB Set clIEnt = DotNetFactory.CreateInstance("experitestClIEnt.ClIEnt","E:\\InstallSoftware\\SeeTest\\ExperitestStudio\\clIEnts\\C#\\imageClIEnt.dll") @H_419_0@ clIEnt.Connect "127.0.0.1",8888 @H_419_0@ clIEnt.SetProjectBaseDirectory "C:\\Users\\TEMP\\workspace\\tuangou" @H_419_0@ clIEnt.SetApplicationTitle "adb:M9W1B08AKDUHXO2991" @H_419_0@ Report @H_419_0@ clIEnt.Click "default","element 0",1 @H_419_0@ Report @H_419_0@ clIEnt.Sleep 15000 @H_419_0@ Report @H_419_0@ clIEnt.Click "default","element 8",1,0 @H_419_0@ Report @H_419_0@ clIEnt.Sleep 3000 @H_419_0@ Report @H_419_0@ clIEnt.Click "default","element 2",167,"element 3",1 @H_419_0@ Report @H_419_0@ clIEnt.Sleep 3000 @H_419_0@ Report @H_419_0@ clIEnt.Click "default","element 4",157,"element 7",141,0 @H_419_0@ Report @H_419_0@ clIEnt.Sleep 3000 @H_419_0@ Report @H_419_0@ clIEnt.SendText "{ESC}" @H_419_0@ Report @H_419_0@ clIEnt.Click "default","element 1",1 @H_419_0@ Report @H_419_0@ @H_419_0@ @H_419_0@ @H_419_0@ Sub Report() @H_419_0@ Dim logline,outfile,status,errorMessage @H_419_0@ logline = clIEnt.GetResultValue ("logline") @H_419_0@ outfile = clIEnt.GetResultValue("outfile") @H_419_0@ status = clIEnt.GetResultValue("status") @H_419_0@ If StrComp (status,"True") = 0 then @H_419_0@ Reporter.ReportEvent micPass,logline,"",outfile @H_419_0@ else @H_419_0@ errorMessage = clIEnt.GetResultValue("errorMessage") @H_419_0@ Reporter.ReportEvent micFail,errorMessage,outfile @H_419_0@ end if @H_419_0@ End Sub @H_419_0@

@H_419_0@

在See Test中录制好过程,然后转化为QTP VB Script,直接在QTP中就可以运行了。

总结

以上是内存溢出为你收集整理的SeeTest_See test代码在QTP中运行(1)全部内容,希望文章能够帮你解决SeeTest_See test代码在QTP中运行(1)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1284824.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-09
下一篇2022-06-09

发表评论

登录后才能评论

评论列表(0条)

    保存