
- Forum
- Testing
- Software Testing
- Urgent Please.......
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 ...
-
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.
-
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

Reply With Quote





