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. |
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 ...
|
|||||||
|
|||
|
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] |
| Sponsored Links |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |