Changing the Project to run on different server

2 posts, 0 answers
  1. Nithya
    Nithya avatar
    35 posts
    Member since:
    Aug 2016

    Posted 16 Oct 2019 Link to this post


    I haven't used the Baseurl function earlier. I have recorded my steps for my project normally and running them in single server.

    Now I want to run all my tests in the different server.

    Current server :

    New server :

    I have the below questions

    1. If I havent used the baseurl earlier, then it is not possible to change the server name now ?

    2. I have added the server name in the baseurl and change the compare mode to Baseurl , Provided the Baseurl in testlist - Then executed the test. One of my test got passed.. But others fails - It is not identifying the elements correctly in the new server. But in the current server, all the tests are runnning correctly. Could you please help me to pass the other tests in the new server.



    Nithya A.





  2. Plamen Mitrev
    Plamen Mitrev avatar
    215 posts

    Posted 18 Oct 2019 Link to this post

    Hello Nithya,

    As far as I understand you have designed already your tests and you now need to edit in a way to execute the tests against another environment, which only has different baseUrl.

    Test Studio provides you the functionality to apply a BaseUrl when initially start designing your tests and project. In such case you decide what compare mote to use for the elements and these will be recorded in regards the applied settings. Then you can change the BaseUrl only and execute the tests against the other environment

    However, it seems that it is too late for this option and you will need to maintain the already recorded elements. When Test Studio records an element, it is associated with a page and, optionally, frame - both these use URLs, captured at the time of recording. So, to adjust the project to be executed against the second environment, you will need to go through the Page and Frame nodes and adjust their properties - here is some additional information on merging pages in the Element Repository. I guess that you will need to change the CompareMode for each of the nodes to use FullPath or BaseUr (instead of the default FullPathAndQuery)l, but this will depend on the tested environment. When you start maintaining the project, do not miss to change the project setting in step 9, as well, what compare mode to be used - that way you will prevent any possible duplication of elements in the future when adding new elements. 

    You also need to configure all "Navigate to" steps to have only the part of the URL that is not the baseUrl. A quick example is to replace the original URL from "" to "/news/" and set "" as the baseUrl.

    The baseUrl project configuration will also be used in all test list, if there is nothing set in the test list settings.

    I hope this information will be helpful for you. Of course, if you have further questions or need guidance on the topic, I will be happy to assist you.


    Plamen Mitrev
    Progress Telerik

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