Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Invoke QTP script from command prompt

This is a discussion on Invoke QTP script from command prompt within the QTP forums, part of the Software Testing category; Can anyone explain How to invoke QTP script from command prompt? If we need to create a batch file, what should be the content of the batch file? If we ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-21-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 198 Times in 157 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
Invoke QTP script from command prompt

Can anyone explain How to invoke QTP script from command prompt?
If we need to create a batch file, what should be the content of the batch file? If we need to create the vbs file, what should be the content of that one?

Your help is really appreciated.

Question asked by visitor Vimala
Reply With Quote
The Following User Says Thank You to Geek_Guest For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 08-21-2007
Contributing Member
 
Join Date: Feb 2006
Posts: 85
Thanks: 0
Thanked 3 Times in 3 Posts
kunals is on a distinguished road
Re: Invoke QTP script from command prompt

you can invoke it by having these lines in a VBScript file:

Set qtApp= CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True


And then call your scripts one after another
qtApp.Open "Enter Complete path for script here"
qtApp.Test.Run

and once you are done then close the QTP with the following :

qtApp.Quit

Hope this helps

Kunals.
Reply With Quote
  #3 (permalink)  
Old 01-27-2009
Junior Member
 
Join Date: Jan 2009
Location: BANGALORE
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
REDDY SIVA SARAN is on a distinguished road
Re: Invoke QTP script from command prompt

you can invoke it by having these lines in a VBScript file:

Set qtApp= CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True

And then call your scripts one after another
qtApp.Open "Enter Complete path for script here"
qtApp.Test.Run
and once you are done then close the QTP with the following :

qtApp.Quit


If we Execute the QTP Scripts like this,then how can we get the results of the Executed Script
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
trouble running rational robot script via .bat/command line Mandata Rational Robot 1 02-15-2008 07:38 AM
How to invoke IE7 using winrunner? Geek_Guest WinRunner 1 08-28-2007 11:10 PM
How to invoke the Mozilla Firefox browser Geek_Guest WinRunner 0 07-18-2007 11:04 PM
Pre-defined prompt and Report level prompt Geek_Guest Data Warehousing 1 07-03-2007 02:52 AM
Compile a C program using command prompt priyajos C and C++ 2 05-17-2007 07:52 AM


All times are GMT -4. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved