Results 1 to 8 of 8

Thread: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Answers
    4

    QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    How do you invoke the application through QTP?

    Please someone provide the code to open my test Web application from/witihin my QTP code only!
    Thanks in Advance,
    Anand Herak


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    Method 1:

    SystemUtil.Run, Open,"http:\\ yahoo . com"

    Methid 2:

    InvokeApplication("c:\Program Files\IE.exe")


    Regards,
    Nawab


  3. #3
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    Hi Anand,

    Use this code to open the required URL.


    Dim objIE
    Set objIE = CreateObject("InternetExplorer.Application")
    objIE.visible = True
    objIE.navigate "http://www.yahoo.com"
    objIE.statusbar = 1


    Further to this you can use Browser(micClass:=Browser) to work with Browser objects.

    You can also use a simple InvokeApplication command to start off applications and launch Internet Explorer.

    Also SystemUtil.Run command can be used to launch applications as well as webpages.

    Cheers....


  4. #4
    Junior Member
    Join Date
    Jan 2008
    Answers
    18

    Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    Hi

    You can invoke web application

    SystemUtil.Run "iexplore.exe","www . yahoo . com"

    Also, InvokeApplication can be used to open an application.

    InvokeApplication "provide the path"

    Thanks,
    MaluR


  5. #5
    Junior Member
    Join Date
    Jan 2009
    Answers
    3

    Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    Just chane the url in the below it will work this has been already replied by Umesh Krishnan.

    Dim objIE
    Set objIE = CreateObject("InternetExplorer.Application")
    objIE.navigate "http://www.google.com"


  6. #6
    Junior Member
    Join Date
    Sep 2007
    Answers
    1

    Thumbs up Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    It works, Thanks!


  7. #7
    Junior Member
    Join Date
    Mar 2009
    Answers
    1

    Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    How do you invoke the application through QTP?


  8. #8
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?

    Hai friend,

    Quote Originally Posted by dhanyasl View Post
    How do you invoke the application through QTP?
    What application do you want to invoke???

    Thank
    Deepa


  9.  Sponsored Ads
    Ad


     

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