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

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

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mindy
Top achievements
Rank 1
Mindy asked on 16 Nov 2012, 06:07 PM

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
 

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 16 Nov 2012, 11:42 PM
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
Tags
General Discussions
Asked by
Mindy
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or