Forum Discussion

land_okamris's avatar
land_okamris
Frequent Visitor
6 years ago

Changing a keyword test URL for multiple tests.

I have created a number of keyword tests in our sandbox environment, but would like to change the URL to our identical (except for the url) production site. What would be the most efficient way to change the URL's for multiple tests? 

1 Reply

  • cunderw's avatar
    cunderw
    Community Hero

    In general it's not a good idea to hard code anything environment related directly into your tests. A project variable and / or a config file you read into set it would be your best option. A project variable can also be used as the url property of your name mapping criteria.

     

    That said in a pinch, keyword tests files are just xml files, so you should be able to a search and replace in them using any text editor or a powershell script.