Results 1 to 3 of 3

Thread: Invoke QTP script from command prompt

  1. #1
    Geek_Guest
    Guest

    Invoke QTP script from command prompt

    Can anyone explain How to invoke QTP script from command prompt?
    If we need to create a batch file, what should be the content of the batch file? If we need to create the vbs file, what should be the content of that one?

    Your help is really appreciated.

    Question asked by visitor Vimala


  2. #2
    Contributing Member
    Join Date
    Feb 2006
    Answers
    85

    Re: Invoke QTP script from command prompt

    you can invoke it by having these lines in a VBScript file:

    Set qtApp= CreateObject("QuickTest.Application")
    qtApp.Launch
    qtApp.Visible = True


    And then call your scripts one after another
    qtApp.Open "Enter Complete path for script here"
    qtApp.Test.Run

    and once you are done then close the QTP with the following :

    qtApp.Quit

    Hope this helps

    Kunals.


  3. #3

    Re: Invoke QTP script from command prompt

    you can invoke it by having these lines in a VBScript file:

    Set qtApp= CreateObject("QuickTest.Application")
    qtApp.Launch
    qtApp.Visible = True

    And then call your scripts one after another
    qtApp.Open "Enter Complete path for script here"
    qtApp.Test.Run
    and once you are done then close the QTP with the following :

    qtApp.Quit


    If we Execute the QTP Scripts like this,then how can we get the results of the Executed Script


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact