SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Join Date
    Aug 2002
    Location
    Denver, Colorado
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to instuct QTP NOT to launch browser on replay

    How can I instruct QTP (9.5) to NOT launch web browser during replay until a given function is called? It seems like the Record and Run settings must have at least a valid URL. I would like to instantiate and set all of the App.Test.Settings myself in a method call. Via QTP > Tools > Options > General > Generate automation script for the global testing options I can see all the options getting set and the App.Launch call. In addition when I look at the QTP > File > Settings > Properties > Click to generate an automation script for the test setting I can see the App.Launch and the App.Test.Settings.Launchers("Web").Address = “someaddress” calls. So to be clear, I know I can override these but specifically I want to NOT launch the browser and NOT navigate to the web address until a specific function call happens (if it does happen). Where does QTP store these settings and is it safe / how do I modify them?

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to instuct QTP NOT to launch browser on replay

    I would advise you to use an IE COM object to launch the browser when you want, set R&R setting to record and run on any browser then run this in QTP at the place you want to launch IE:

    Set IE = CreateObject("InternetExplorer.Application")
    IE.Visible = True
    IE.Navigate "www.google.com"
    Set IE = Nothing

    Mark Smith.

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Location
    Denver, Colorado
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to instuct QTP NOT to launch browser on re

    Mark

    exactly what I want to do, get COM object and manipulate it. So now that I have set the Record and Run options I need the script to NOT launch the browser on startup but only if a certain method call returns true. Im sure these settings are in a file somewhere and to make matters worse I am storing everything in Quality Center.

    thanks

  4. #4
    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: How to instuct QTP NOT to launch browser on re

    Go to Record and Run Settings...and disable the launching of browser. Launch the browser using code as shown by Mark.

  5. #5
    Junior Member
    Join Date
    Aug 2002
    Location
    Denver, Colorado
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to instuct QTP NOT to launch browser on re

    Tarun

    Do you mean QTP > Automation > Record and Run Settings > Web > and then select the "Record and Run test on any open browser" radio button?

    thanks

  6. #6
    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: How to instuct QTP NOT to launch browser on re

    Yep

  7. #7
    Junior Member
    Join Date
    Aug 2002
    Location
    Denver, Colorado
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to instuct QTP NOT to launch browser on re

    Okay for those following the thread

    "Record and Run Test on any open Browser" = "Do Not Launch Browser"

    works good, lasts long time.

    Thanks Tarun

  8. #8
    Junior Member
    Join Date
    Aug 2002
    Location
    Denver, Colorado
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to instuct QTP NOT to launch browser on re

    Perhaps I should not have been so quick in my above post.

    Works for the current run but it seems that the Record and Run settings are reverted to on the next run. I am storing the test in QC and am fairly certain the files are getting updated there.

  9. #9
    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: How to instuct QTP NOT to launch browser on re

    This is a test setting and would not change for run also. Once you change it and save the test it would remain that way only.

  10. #10
    Junior Member
    Join Date
    Aug 2002
    Location
    Denver, Colorado
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to instuct QTP NOT to launch browser on re

    Unable to find in documentation how to set these run settings programatically. I suspect something like...

    Set qtTest = qtApp.Test
    qtTest.Settings.Run.???

 

 
Page 1 of 2 12 LastLast

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 12.50%
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 01:08 PM.

Copyright BetaSoft Inc.