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.

Unable to start the specific test.

This is a discussion on Unable to start the specific test. within the QTP forums, part of the Software Testing category; I am trying to run the QTP from commandline. I managed to execute QTP through commandline but I got as far as opening the QTP application and unable to start ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-20-2006
Expert Member
 
Join Date: Oct 2006
Posts: 689
Thanks: 0
Thanked 53 Times in 44 Posts
JobHelper is on a distinguished road
Unable to start the specific test.

I am trying to run the QTP from commandline. I managed to execute QTP through commandline but I got as far as opening the QTP application and unable to start the specific test. I found in one of the posts that I need to create the VBS file which I can execute through the batch file. I need to execute specific test. I am not sure what exactly needs to be included in the VBS file since each test folder contains lots of different files.

Can anyone help me found solution or post some working sample code?

NOTE : [This question was asked by schittoor]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-23-2008
Junior Member
 
Join Date: Aug 2006
Location: Bangalore
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
jitendramishra is on a distinguished road
Re: Unable to start the specific test.

Hi,
The solution is there in the QTP help file itself. You can get a sample script is there to access QTP and run the specific script.
Search for string "CreateObject" and see the example.

Also i am attaching the script..

' create the QTP application object

Set qtApp = CreateObject("QuickTest.Application")

qtApp.Launch

qtApp.Visible = True

qtApp.Test.Settings.Launchers("Web").Active = False

qtApp.Test.Settings.Launchers("Web").Browser = "IE"

qtApp.Test.Settings.Launchers("Web").CloseOnExit = True

qtApp.Test.Settings.Launchers("Windows Applications").Active = True

qtApp.Test.Settings.Launchers("Windows Applications").Applications.RemoveAll

qtApp.Test.Settings.Run.IterationMode = "rngAll"

qtApp.Test.Settings.Run.StartIteration = 1

qtApp.Test.Settings.Run.EndIteration = 1

qtApp.Test.Settings.Run.ObjectSyncTimeOut = 20000

qtApp.Test.Settings.Run.DisableSmartIdentification = False

qtApp.Test.Settings.Run.OnError = "Dialog"



Like this..you can create a vbs file and run it.

Thanks, Jitu
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
Uploading Test Cases into Quality Center and Test Director Rajani Test Director 2 05-13-2008 05:27 AM
XP start up without user name or password! Lokesh M Windows 9 01-17-2007 04:41 AM
Start up scripts in winrunner without Rec or Playback Lokesh M WinRunner 6 12-25-2006 11:05 PM
Steps to start testing Lokesh M Testing Issues 4 12-14-2006 01:32 AM
start an application before testing harsha_trp Testing Issues 1 11-26-2006 01:57 PM


All times are GMT -4. The time now is 03:49 PM.


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