pages.g.cs has hard-coded URL (Test Studio Web test)

2 posts, 0 answers
  1. Mark
    Mark avatar
    2 posts
    Member since:
    Apr 2016

    Posted 20 May 2016 Link to this post

    I am developing tests for an application that uses a web-browser based UI; the application is hosted on a machine running IIS;  I am currently developing the tests on a remote machine, using the IP address of the machine hosting the application as the URL.  I was hoping to use the test-settings (settings.aiis) or testsettings file to change the URL to localhost when running the test from the build system, as an automated test.  is there a way to make pages.g.cs use the URL from the settings file rather than the hard-coded value in the file?




  2. Ivaylo
    Ivaylo avatar
    782 posts

    Posted 25 May 2016 Link to this post

    Hello Mark,

    Are you using Test Studio to execute the tests. If you are, why don't you use the BaseURL setting?

    Another way to proceed is with config file as mentioned in this article.

    Let me know if you have any further questions.

    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top