SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Dec 2007
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    running tests with no browser

    Hi,

    is it possible to run tests with no browser displayed? In Watir/Watin it is possible to run a test with no browser output at all.

    I was wondering if this functionality was available in QTP also.

  2. #2
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: running tests with no browser

    If you are asking "can QTP process HTTP protocol commands and replies?" the answer is no. You talk protocol with LoadRunner and emulator an end user interacting with a browser using QTP.

  3. #3
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: running tests with no browser

    Yes you can do that. But there would be some events that might not work for yout. Mostly it would be one with dialogs.

  4. #4
    Junior Member
    Join Date
    Dec 2007
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: running tests with no browser

    Thanks guys,

    I guess my main reason for asking was due to the fact other test suites such as Watir, allow you to run a complete test with no browser window open whatsoever. If QTP offered this sort of functionality it would have been very useful to me indeed.

    Tarun, I think the issue with dialogs and no browser window is an issue with other functional test suites as well [img]/images/graemlins/smile.gif[/img]

  5. #5
    Senior Member
    Join Date
    Jan 2006
    Location
    Stockholm, Sweden
    Posts
    371
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: running tests with no browser

    Yes it is possible. It can be done for example by using COM-object WinHttp.

  6. #6
    Junior Member
    Join Date
    Dec 2007
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: running tests with no browser

    Hi Stefan,

    thanks for that info - sounds very positive! Do you know of an example that could demonstrate this to me? I am unfamiliar with this particular component.

  7. #7
    Senior Member
    Join Date
    Jan 2006
    Location
    Stockholm, Sweden
    Posts
    371
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: running tests with no browser

    GET example:

    <font class="small">Code:</font><hr /><pre>
    Dim WinHttpReq
    Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
    WinHttpReq.Open "GET", "http://www.google.se/", False
    WinHttpReq.Send
    Msgbox WinHttpReq.ResponseText
    </pre><hr />

    If you Google on CreateObject("WinHttp.WinHttpRequest.5.1") you find a lot of examples I guess...

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:17 PM.

Copyright BetaSoft Inc.