Debug coded steps with BaseURL

3 posts, 0 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    Oct 2012

    Posted 02 Aug 2013 Link to this post

    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. Mario
    Admin
    Mario avatar
    8 posts

    Posted 07 Aug 2013 Link to this post

    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
  3. Michael
    Michael avatar
    6 posts
    Member since:
    Oct 2012

    Posted 08 Aug 2013 Link to this post

    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.
Back to Top