Completed
Last Updated: 22 Jan 2016 15:41 by Ewin
Ewin
Created on: 08 Jan 2016 18:44
Type: Bug Report
0
baseurl return empty
Hello, 

Currently on Internal build 2015.3.1217, something happened to the BaseUrl.

The BaseURL is returning an empty string even though in the project settings, the BaseURL is set. 

I use BaseURL all the time. 

I even copied one of my testlists that use BaseURL and had the same problem since it did not execute my coded step properly.

3 comments
Ewin
Posted on: 22 Jan 2016 15:41
I had my testsettings file but not set to that file.  

I have my tests utilize calls to the Manager.Current.Settings.Web.BaseUrl.  

Would the ExecutionContext line you provided account for all test executions from Quick Execute and Test List Executions or is using my call to Manager.Current.Settings.Web.BaseUrl fine to use?

I guess I don't see a difference.
ADMIN
Daniel Djambov
Posted on: 15 Jan 2016 15:08
Telerik: this is actually working in Test Studio or when running .tstests with our Test Studio runner (from quick execute for example). When running the test from Visual Studio Test Runner, there are certain steps you need to do to do: 1. Visual Studio Test Explorer does not read our Settings.aiis file, where you change BaseURL 2. you have to create Visual Studio .testsettings file in which there is Telerik Test Studio item, in which you can set BaseURL (in your code you refer exactly to this item ExecutionContext.Current.Manager.Settings.Web.BaseUrl) 3. Then from Visual Studio "TEST" menu you have to select Test Settings and point to newly created .testsettings file 4. now running .tstests from Visual Studio Test Explorer you will load these settings and get the BaseURL from there.
Please configure it and let us know if there is something unclear - this is how running our tests in Visual Studio has worked always. Hope this helps.
Ewin
Posted on: 08 Jan 2016 19:38
deleted by Hong