Completed
Last Updated: 28 Oct 2015 12:34 by ADMIN
ADMIN
Cody
Created on: 21 Oct 2015 15:49
Type: Bug Report
1
Test Studio may crash when BaseUrl is left empty
1) Open an existing test project
2) Configure a Page node so that BaseUrl is empty and Path is relative - similar to attached screen shot
3) Right click on any element under that page
4) Select Edit Element
5) Select Find in Live Version
6) Select Browse & Navigate
7) Select Chrome Browser

Actual: Test Studio crashes hard and produces this entry in the log:
[10/21 01:36:45,Telerik.TestStudio.Desktop.exe(1304:20),Error] App.LogUnhandledException() : EXCEPTION! (see below)
     Situation: Unhandled exception!
     Outer Exception Type: System.UriFormatException
     Message: Unable to resolve the passed uri '/analyze/ManageResponses.aspx' to an absolute url.
     HRESULT: 0x80131537 (Official ID (if app.) = COR_E_FORMAT, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5431)
     Call Stack:
          at ArtOfTest.WebAii.Core.Browser.BuildUrl(Uri passedUrl, Boolean useDecodedUrl)
          at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri, Boolean useDecodedUrl)
          at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri, Boolean useDecodedUrl)
          at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url, Boolean useDecodedUrl)
          at ArtOfTest.WebAii.Design.UI.RecordersController.<>c__DisplayClass1.<LaunchBrowserAndConnect>b__0(IAutomationHost host, String error)
          at ArtOfTest.WebAii.Design.UI.RecordersController.<>c__DisplayClasse.<EnsureActiveRecordingBrowser>b__b(IAutomationHost host, String error)
          at Telerik.TestStudio.Web.JSRecorder.JsRecorderManager.<>c__DisplayClass36.<OnRecordingBrowserAdded>b__35(Object s)
          at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
          at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
          at System.Threading.ThreadPoolWorkQueue.Dispatch()
          at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Expected:
Test Studio to use the projects BaseUrl setting, or to display a warning that the URL is invalid and cannot be used.
Attached Files:
1 comment
ADMIN
Daniel Djambov
Posted on: 28 Oct 2015 12:33
Telerik: the issue is fixed and solution will be available in our next internal product release, planned to be out by mid Nov 2015.