This is a migrated thread and some comments may be shown as answers.

Relative URL Issues with Test Lists

2 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 28 Mar 2018, 04:18 PM

     So I am trying to take about 25 scripts for one application and make them be able to easily work in multiple environments and be able to easily point it somewhere else and have it work.  To do this I was making all of the base URL's in all of the navigation steps and in the frame properties into relative URLs.  What I mean by this is that I would replace the part of the URL in the front that would be changing based on environment with an "~", so I would have something like  ~/shopping/Login.asp   for all the places it would apply.  I then just go into the overall settings and change the base URL to the environment that I want to point everything to and then it works with the relative URL's the way I want it to.

 

This all works great and I can run the scripts one at a time and they all work, and then I can switch the environments and they still all work.  But when I try to make a test list with them in it, it almost instantly fails and always gives an error of "This operation is not supported for a Relative URI."  It seems to just be an issue with test lists or something?  Since they all work as expected when running them alone, but when throwing the exact same ones into a test list it fails instantly.  I also made sure to go into the test list settings and making sure that Base URL was set and it was.  

 

 

2 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
answered on 28 Mar 2018, 09:30 PM
Nevermind, I ended up figuring it out.  Apparently for every frame except for one I had the "Use Base URL" checkbox unchecked, and unchecking the last one made things start to work again.
0
Nikolay Petrov
Telerik team
answered on 02 Apr 2018, 01:05 PM
Hi Brian,

I'm glad to know you manage to resolve this problem. I hope no further problems will occur. 

Best Regards,
Nikolay Petrov
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Brian
Top achievements
Rank 1
Answers by
Brian
Top achievements
Rank 1
Nikolay Petrov
Telerik team
Share this question
or