shuyanping1004 发表于 2010-12-8 17:11:57

用multi工具一次运行多个action,前面运行正常,重新载入个action报找不到JTree

用multi工具一次运行多个action,前面运行正常,重新载入新action报找不到JTree,重新打开应用程序再跑又OK,很麻烦,只能一点点的跑,有高手碰到过吗?谢谢

TIB 发表于 2010-12-8 17:41:40

调试一下,可能是对象识别问题

建议用QTP的AOM自己写调度工具

shuyanping1004 发表于 2010-12-9 09:59:28

单独跑是可以的,跑多个就有问题,对象应该没问题吧,请问如何用QTP的AOM自己写调度工具,能否具体点,没用过,谢谢

timfung 发表于 2010-12-9 10:49:32

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

shuyanping1004 发表于 2010-12-10 14:20:15

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]
查看完整版本: 用multi工具一次运行多个action,前面运行正常,重新载入个action报找不到JTree