用multi工具一次运行多个action,前面运行正常,重新载入个action报找不到JTree
用multi工具一次运行多个action,前面运行正常,重新载入新action报找不到JTree,重新打开应用程序再跑又OK,很麻烦,只能一点点的跑,有高手碰到过吗?谢谢 调试一下,可能是对象识别问题建议用QTP的AOM自己写调度工具 单独跑是可以的,跑多个就有问题,对象应该没问题吧,请问如何用QTP的AOM自己写调度工具,能否具体点,没用过,谢谢 multi不好用,自己写吧!
Set qtApp = CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True
qtApp.Options.Run.RunMode = "FAST"
qtApp.Options.Run.ViewResults = False
Dim ActionList(4)
ActionList(0) = ""
ActionList(1) = ""
ActionList(2) = ""
ActionList(3) = ""
For i = 0 To UBound(ActionList)-1
qtApp.Open ActionList(i),True
qtApp.Test.Run
qtApp.Test.Close
Next
qtApp.Quit
Set qtApp = Nothing Set qtApp = CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True
qtApp.Options.Run.RunMode = "FAST"
qtApp.Options.Run.ViewResults = False
Dim testList(2)
testList(0) = "test11"
testList(1) = "test22"
For i = 0 To UBound(testList)-1
qtApp.Open testList(i),True
qtApp.Test.Run
qtApp.Test.Close
Next
qtApp.Quit
Set qtApp = Nothing
想运行多个test,模仿上面写的,运行报错,找不到test
多谢高手指教(初学)
页:
[1]