|
Dim qtApp 'As QuickTest.Application ' Declare the application object variable
Set qtApp = CreateObject("QuickTest.Application") ' Create the application object
qtApp.SetActiveAddins Array("Web") ' Activate the Web Add-in 出现问题
qtApp.Launch ' Start QuickTest
qtApp.New ' Open a new test
' Configure the Web application to use with this test
qtApp.Test.Settings.Launchers("Web").Active = True
qtApp.Test.Settings.Launchers("Web").Browser = "IE"
qtApp.Test.Settings.Launchers("Web").Address = "http://192.10.5.201/oa/platformData/infoplat/pub/cesOA_59/shouye_503/index.html"
qtApp.Test.Settings.Launchers("Web").CloseOnExit = True
' Configure Active Screen access settings
qtApp.Test.Settings.Web.ActiveScreenAccess.UserName = "XXX"
qtApp.Test.Settings.Web.ActiveScreenAccess.Password = "XXXX"
' Configure other Web settings
qtApp.Test.Settings.Web.BrowserNavigationTimeout = 60000
qtApp.Visible = True ' Make the QuickTest application visible
Set qtApp = Nothing ' Release the Application object
为什么运行脚本的时候,qtApp.SetActiveAddins Array("Web") 这句话出现问题,请各位大大给小第一点指导,小弟先谢谢了 |
|