Please ensure to include your code between [code][/code] tags while asking or replying to questions.

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Launch QTP and driver script

03-25-2011, 03:46 PM
Post: #1
Not Solved Launch QTP and driver script

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
Find all posts by this user
Quote this message in a reply
03-25-2011, 04:35 PM
Post: #2
Not Solved RE: Launch QTP and driver script
Hi Eltee,

This can be done using VBScript. Search for it I am sure you will get something in this forum.

Regards,
Manish
Find all posts by this user
Quote this message in a reply
03-25-2011, 08:20 PM
Post: #3
Not Solved RE: Launch QTP and driver script
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..
Pulsating Fiction - The writer in meSmile
Find all posts by this user
Quote this message in a reply
03-29-2011, 06:35 PM
Post: #4
Not Solved RE: Launch QTP and driver script
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to run driver script to kick off scripts stored in QC? shipu 0 247 04-30-2014 02:39 AM
Last Post: shipu
  Im new to QTP.. Trying to learn driver. suryaprasad 3 328 02-05-2014 11:35 AM
Last Post: pranikgarg
  Attaching config file in driver script?? ruchi 3 279 01-24-2014 12:32 PM
Last Post: basanth27
  "qtp.launch" throwing "class not registered" error auto_tester 0 574 08-13-2013 10:52 PM
Last Post: auto_tester
  Driver Scripts and Result Viewer rjkmr.aiht 0 1,037 10-03-2012 12:10 PM
Last Post: rjkmr.aiht



User(s) browsing this thread: 1 Guest(s)