title: Variable URL setup method with Test Complete 11.11.1064.7
body: <p>I am using test complete to create a test suite for a web based application. The URL for the login and home page needs to be variable as we have development and release versions of the application so this need's to be addressed for our tests. (The url in the example i have changed from the live one for privacy reasons)</p>
  
  <p><a href="http://100.00.0.00/dev/testweb/#/routehome" rel="nofollow">http://100.00.0.00/dev/testweb/#/routehome</a> that is written to the test steps. Which is no good because when we run the tests on another URL. So I've set up a variable with project scope that stores the base url , then each keyword test has a variable for the page URL. Each keyword test then needs a "Run Code Snippet" to concatenate the two to get the full URL of the page under test.
  so i have built </p>
  
  <pre><code>Project.Variables.BaseURL = http://100.00.0.00/dev/testweb/
  KeywordTests.LoginToTEST.Variables.PageURL = #routehome
  KeywordTests.LoginToTEST.Variables.TestURL = Project.Variables.BaseURL + KeywordTests.LoginToTEST.Variables.PageURL
  </code></pre>
  
  <p>Every keyword test needs to run :</p>
  
  <pre><code>Execute("KeywordTests.LoginToTEST.Variables.TestURL = Project.Variables.BaseURL+KeywordTests.LoginToTEST.Variables.PageURL")
  </code></pre>
  
  <p>To me this seems a messy way of doing it, but i haven't been able to find a cleaner way to get this setup. Does anyone have any suggestions?</p>