Exforsys

Online Training

Urgent Please.......

This is a discussion on Urgent Please....... within the Software Testing forums, part of the Testing category; Hi, “Wish you A Happy New Year” Urgent Please……………….. QTP doubt: Please help it. Need QTP Script. I want to ...


Go Back   Exforsys > Testing > Software Testing

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-02-2008, 07:27 AM
Junior Member
 
Join Date: Jul 2007
Posts: 13
sussain is on a distinguished road
Urgent Please.......

Hi,

“Wish you A Happy New Year”

Urgent Please………………..
QTP doubt: Please help it. Need QTP Script.

I want to Run or Execute a file (Raj1) in command prompt through QTP tool(script)

Note1: Raj1 folder is available in D:\Raj1
Note2: Raj2 file is available in D:\Raj1\Raj2

Process: (D:\Raj1\Raj2)
1. Start à run à enter cmd à click “OK”
2. Change path to à D:\Raj1 and press enter or run
3. Enter à setclasspath and press enter or run
4. Enter file name (Raj2) and run (Raj2 file is available in Raj1)
Close command prompt.

Please do needful.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-02-2008, 08:13 AM
bharathp's Avatar
Member
 
Join Date: May 2006
Location: Banglore,India
Posts: 85
bharathp is on a distinguished road
Send a message via AIM to bharathp
For this you have to Install Quick Test Plus it seems

copy the below code and save as .vbs file, then execute vbs file from command prompt (ensure that default program to open .vbs files is command prompt os script host). Will have to change D:\Raj1and C:\Raj1\Raj2 to some valid test path ... to execute tests stored in QC will require some additional lines of code ...


Public Sub ExecuteTest(TestPath)
Dim qtpApp
Dim qtpTest
Set qtpApp = CreateObject("QuickTest.Application")
qtpApp.Open TestPath, True
Set qtpTest = qtpApp.Test
qtpTest.Run
While qtpTest.IsRunning
'Wait For Test To Finish
Wend
qtpTest.Close
Set qtpTest = Nothing
qtpApp.Quit
Set qtpApp = Nothing
End Sub



http://groups.google.com/group/testi...ications?hl=en

Regards,
Bharath
TestBharath

Testing
__________________
Bharath Kumar.P
Test Engineer
Banglore, India
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Anybody having TCS 9th july paper.....its urgent! luvureet Placement Papers 1 07-14-2005 04:00 AM
Anybody having TCS 9th july paper.....its urgent! luvureet Interview Questions 0 07-13-2005 06:13 AM
plz help ...its urgent luvureet Interview Questions 1 06-15-2005 09:42 AM
Urgent Opening for the Lorus Notes Fresher - Mumbai techguru Freshers Jobs 0 05-06-2005 12:17 PM
Urgent Opening for the Lorus Notes Fresher - Mumbai admin Freshers Jobs 0 05-04-2005 10:50 AM


All times are GMT -4. The time now is 03:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.