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

Could you help me with writing a script which will launch QTP, associate the function library and repository, import inputsheet and run the driver script?

Thanks,
Liju
Reply
#2
Not Solved
Hi Eltee,

This can be done using VBScript. Search for it I am sure you will get something in this forum.
Reply
#3
Not Solved
Since its easy to answer -
Search with the keyword as AOM or Quicktest.application
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#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


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 593 11-05-2023, 03:55 PM
Last Post: lravi4u
  Driver Script to control child scripts sumanhyd 1 3,197 07-26-2016, 07:06 PM
Last Post: Ankesh
  How to run driver script to kick off scripts stored in QC? shipu 0 3,597 04-30-2014, 02:39 AM
Last Post: shipu
  Im new to QTP.. Trying to learn driver. suryaprasad 3 3,247 02-05-2014, 11:35 AM
Last Post: pranikgarg
  Attaching config file in driver script?? ruchi 3 4,155 01-24-2014, 12:32 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)