SPONSORS:






User Tag List

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

    Global URL change

    Is there a way to globally change the URL in existing test scripts? (such as a search and replace).

  2. #2
    Junior Member
    Join Date
    Dec 2003
    Location
    Syracuse, NY
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Global URL change

    You can run any test script using a different URL by changing the Address Properties of the first page of that script. Open the first page of the script in the Visual Script view, and right click on the Address field to open the properties. Type a new URL into the URL field, and save the results. The next time the script is run, it will run against the new URL. Note that numerous link and image warnings will likely appear throughout the script when it is played back, but these can be accepted and saved as part of a new script.

    Another method to accomplish the same thing is to set the URL property of the first page to a variable (i.e. "<<varURL>>"), and define "varURL" in the databank.

    Finally, you can do a large scale search and replace, once armed with teh knowledge that the entire script file (*.mom) is actually a text file. Open it into a text editor and make the changes there...as long as you're positive that every instance of "www.mysite.com/whatever" is supposed to be changed to "www.myothersite.com/whatever".

    In all cases (especially the last one), it's a very good idea to make a backup copy of your otiginal script before proceeding...

    Kurt

  3. #3
    Junior Member
    Join Date
    Dec 2003
    Location
    Syracuse, NY
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Global URL change

    Ah, one more possibility. If you're really brave, and want to make the same change across and throughout a number of test scripts, there's a nice (free) utility called ReplaceEm that allows multiple file S&R.

    http://www.orbit.org/replace/

    Kurt

 

 

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 04:14 AM.

Copyright BetaSoft Inc.