Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load Add-in at execution time
#1
Not Solved
I am executing multiple QTP scripts via a Windows Script batch file and Windows Scheduler. One of the multiple scripts listed in the batch file use the SAP Add-in, while the others do not. Is there anybody out here that knows how to select and/or remove Add-ins from the Add-in Manager at run-time? Here's the Script code:

Code:
Const strEnvironment = "QA"
Const strBatchSetLoc = "[location]"

'---------------------------------------------------------------------------------------------

Dim qtApp, qtTest
Set qtApp = CreateObject("QuickTest.Application")
'Set ObjCmd = createobject("wscript.shell")
qtApp.Launch
qtApp.Visible = True

qtApp.Open (strBatchSetLoc&strEnvironment&"\[test name 1]"), True
Set qtTest = qtApp.Test
qtTest.Run         
qtTest.Close

qtApp.Open (strBatchSetLoc&strEnvironment&"\[test name 2]"), True
Set qtTest = qtApp.Test
qtTest.Run         
qtTest.Close

...

'---------------------------------------------------------------------------------------------

qtApp.quit
Set qtTest = Nothing
Set qtApp = Nothing

Is there a better method than this? Any help is appreciated.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Page load is not working as desired Charanpreet 1 2,641 04-14-2011, 10:14 AM
Last Post: manabh
  QTP is waiting for the page to load succesfully and then doing actions bostonma 3 12,058 12-01-2010, 10:12 AM
Last Post: bfakruddin
  Load Data from Excel SweetyChowdhury 3 4,072 04-28-2010, 07:38 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)