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

Debug coded steps with BaseURL

2 Answers 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 02 Aug 2013, 07:27 PM
I am trying to debug a coded step in my test but I get an error in test explorer every time I attempt to debug. I have not had any problem running my tests that use BaseURL up to this point. Is there something special that you have to do to account for the BaseURL in test explorer? The error is as follows:

'8/2/2013 3:02:03 PM' - 'Fail' : 1. Navigate to : '~/iWeb'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to resolve the passed uri '/iWeb' to an absolute url.
InnerException:
System.UriFormatException: Unable to resolve the passed uri '/iWeb' to an absolute url.
   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.IntrinsicTranslators.Descriptors.NavigateToActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'8/2/2013 3:02:03 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.



2 Answers, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 07 Aug 2013, 05:01 PM
Hello Michael,

Thank you for contacting Telerik Support.

The message indicates that there is some kind of syntax error with the passed uri once the relative NavigateUrl and BaseUrl values are combined. Does the navigate step itself have a BaseUrl value and/or have you set a project wide BaseUrl? With the limited information provided, I can only advise that you try to adjust these values in attempt to rectify the full uri address which gets passed in the navigate step. If you require additional assistance, please provide us with a copy of your project in a ZIP file which we can use to reproduce the problem.

Regards,
Mario
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Michael
Top achievements
Rank 1
answered on 08 Aug 2013, 02:15 PM
I double checked all my settings and realized that while I had properly set the global BaseUrl setting that I had the wrong testsettings file selected in the TEST menu. Thanks for the reply but everything is working properly now.
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Mario
Telerik team
Michael
Top achievements
Rank 1
Share this question
or