Use below snippet to achieve CL.
ExecuteTest "path of first test"
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
Thks
Nav
On Nov 12, 8:56 pm, "KANDUKURI NARESH" <[EMAIL PROTECTED]> wrote:
> Hi Naveen,
> Can you plz explain "how scripts can be executed from the Command Line" ?
> Thanks in advance...
>
> Thank you,
> Naresh Kandukuri
>
> On 11/11/08, Naveen <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all,
>
> > What is the advantage of executing scripts in Command Line mode?
>
> > Thank you,
> > NaveenKumar N
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---