SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How set url of init browser in automation script

    I need to run QTP test from a script (using QTP automation) and from this script to change the test configuration of the URL of the browser that opens when the tests starts to run. In QTP you can see this at: Automation > Record and Run Settings > Open the following address when a run session begins.
    Can anyone tell me how to manage the url in that section from the script? (i.e. from automation). I could not find this in QTP Automation help.

  2. #2
    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 set url of init browser in automation scri

    from QTP help

    <font class="small">Code:</font><hr /><pre>
    Configure Web Settings for Recording and Running

    '************************************************* ************************************************** *********************

    'Description:

    '

    'This example starts QuickTest, opens a new test, and configures it for recording and running on a Web application.

    '

    'Assumptions:

    'QuickTest is not open.

    '************************************************* ************************************************** *********************



    Dim qtApp 'As QuickTest.Application ' Declare the application object variable

    Set qtApp = CreateObject("QuickTest.Application") ' Create the application object



    qtApp.SetActiveAddins Array("Web") ' Activate the Web Add-in

    qtApp.Launch ' Start QuickTest

    qtApp.New ' Open a new test



    ' Configure the Web application to use with this test

    qtApp.Test.Settings.Launchers("Web").Active = True

    qtApp.Test.Settings.Launchers("Web").Browser = "IE"

    qtApp.Test.Settings.Launchers("Web").Address = "http://newtours.mercuryinteractive.com "

    qtApp.Test.Settings.Launchers("Web").CloseOnExit = True



    ' Configure Active Screen access settings

    qtApp.Test.Settings.Web.ActiveScreenAccess.UserNam e = "user1"

    qtApp.Test.Settings.Web.ActiveScreenAccess.Passwor d = "mypassword"



    ' Configure other Web settings

    qtApp.Test.Settings.Web.BrowserNavigationTimeout = 60000



    qtApp.Visible = True ' Make the QuickTest application visible

    Set qtApp = Nothing ' Release the Application object
    </pre><hr />

  3. #3
    Member
    Join Date
    Sep 2007
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How set url of init browser in automation scri

    Thanks a lot Tarun!!!
    I missed this when I searched QTP help. I need to be more accurate in searching QTP help in the future, in order not to bother people with trivial questions.
    And again i am much obliged to you.

 

 

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 03:57 AM.

Copyright BetaSoft Inc.