Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Launch QTP and driver script
#4
Not Solved
Hi team,

I wanted to keep it simple. Here's my code:

Code:
Dim qtApp
Const ForReading = 1, ForWriting = 2
Dim fso, f, result
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("C:\Results.txt", ForWriting, True)
Set qtApp = CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True
qtApp.Test.Settings.Resources.Libraries.Add(LibraryDirectory&"Generic_function.qfl")
Set qtResourcesTab = qtApp.Test.Settings.Resources
qtTestResourcesTab.ObjectRepositoryPath = "E:\Framework\Object_Repository\AAI_Object_Repository_merged_March24.tsr"
qtp.open "E:\Framework\SampleTest\DriverScript_WithoutDiscount",True,True
And VBScript error throws upon line 11 (w.r.t to qtResourcesTab). Please help me launch the correct Obj Rep and open the driver script in QTP.
Reply


Messages In This Thread
Launch QTP and driver script - by eltee - 03-25-2011, 03:46 PM
RE: Launch QTP and driver script - by basanth27 - 03-25-2011, 08:20 PM
RE: Launch QTP and driver script - by eltee - 03-29-2011, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 323 11-05-2023, 03:55 PM
Last Post: lravi4u
  Driver Script to control child scripts sumanhyd 1 2,946 07-26-2016, 07:06 PM
Last Post: Ankesh
  How to run driver script to kick off scripts stored in QC? shipu 0 3,382 04-30-2014, 02:39 AM
Last Post: shipu
  Im new to QTP.. Trying to learn driver. suryaprasad 3 3,071 02-05-2014, 11:35 AM
Last Post: pranikgarg
  Attaching config file in driver script?? ruchi 3 3,955 01-24-2014, 12:32 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)