I'm having a problem with NavigateTo in a coded step.

2 posts, 0 answers
  1. Mindy
    Mindy avatar
    28 posts
    Member since:
    Sep 2012

    Posted 16 Nov 2012 Link to this post

    I have a script that has a coded step after the user logged in:

    ActiveBrowser.NavigateTo("~/Communication.mvc/Messages?cb=Inbox");

    The test failed on that line:

    Failure Information: ~~~~~~~~~~~~~~~Exception thrown executing coded step: '[Case_Manager_CodedStep] : New Coded Step'.InnerException:System.UriFormatException: Unable to resolve the passed uri '/Communication.mvc/Messages?cb=Inbox' to an absolute url. at ArtOfTest.WebAii.Core.Browser.BuildUrl(Uri passedUrl) at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri) at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri) at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url) at Titan.WebTests.Case_Manager.Case_Manager_CodedStep() in c:\Titan.QA\Titan.WebTests\Login Page\No Cert\Case Manager.tstest.cs:line 86

     

    I'm using build 2012.2.1022.  This script ran before without a problem, so I'm not sure why.  
    Help please.

    Thanks,
    Mindy
     

  2. Byron
    Admin
    Byron avatar
    184 posts

    Posted 16 Nov 2012 Link to this post

    Hi Mindy,

    This error indicates that the URL provided to the browser is not an fully-qualified domain name (FQDN). A NavigateURL of  "~/Communication.mvc/Messages?cb=Inbox" implies a baseURL prefix (like "http://www.example.com") that is itself an FQDN. It is possible that this step is failing because the BaseURL for the project has been disabled or removed. I recommend reviewing the project settings recording options tab.

    If this does not resolve your issue, we will need more information about your test scenario. Please provide us with a copy of your test and access to your application. Also, please provide your failure log and a copy of the DOM at the time of failure. You can export these to file from the failure tab for your test and add them to a .zip archive. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. You can capture a Fiddler trace using FiddlerCap.  Thanks for helping us advise you.

    Regards,
    Byron
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
Back to Top