SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    URL indepdendent scripts

    The scenario is thus:

    We are changing the url of our test site from

    http://testsite.product.com

    to

    http://testsite.vm.product.com

    I have read the topics on Browser Independent scripting. To make my scripts compatible with the new page, do I change the URL / page property for all mapped objects to the new page?

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Posts
    1,920
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: URL indepdendent scripts

    Hi,

    You need to change the URL only for objects mapped by its value (usually, only the Page object).
    Jared - AQA Support

  3. #3
    Advanced Member
    Join Date
    Aug 2006
    Location
    Other side of the Computer
    Posts
    598
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: URL indepdendent scripts

    change the mapped Page url to "http://*product.com"

    My method of scripting.
    1) Never used the mapped objects.
    2) set the page & browser object in the library or 1 place and use it as object through out so don't worry about the page changing.

    Example:

    Set IE = Sys.Process("iexplore")
    Set Page = IE.Page("http://*product.com")

    since i have it in the library this will be global [img]/images/graemlins/smile.gif[/img]
    ===========================================

  4. #4
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,596
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: URL indepdendent scripts

    TestComplete has an option to use Project variables in the namemapping. It's good to use in situations like that.

    Also good to use when you develop project under different code names to be renamed at release time.
    David Lai
    SDET / Consultant
    LinkedIn profile

  5. #5
    Member
    Join Date
    Jul 2008
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: URL indepdendent scripts

    Thanks guys. Will give all of your suggestions a try.

 

 

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 10.00%
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 12:24 PM.

Copyright BetaSoft Inc.