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

Test lists are not running with base url

2 Answers 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chakravarthy
Top achievements
Rank 1
Chakravarthy asked on 02 Feb 2011, 03:26 PM
Hi Telerik Team,

I am using WEB UI Test studio Dev edition with VS 2010. I have few scripts which are running on base url provided in settings. Scripts are running individually fine. I created an Ordered Test list for those scripts. While i am running those ordered test list i am facing below error. Please provide support for the same.

'2/2/2011 7:53:29 PM' - Starting execution....
'2/2/2011 7:53:33 PM' - Detected custom code in test. Locating test assembly: RiversandMainProject.dll.
'2/2/2011 7:53:33 PM' - Assembly Found: D:\Riversand\QA\MDMCenter6.0\Automation\Scripts\RiversandMainProject\TestResults\uppalapatik_RST1090 2011-02-02 19_53_27\Out\RiversandMainProject.dll
'2/2/2011 7:53:33 PM' - Loading code class: 'RiversandMainProject.Add_Organization_with_Parent_with_Locale_Value'.
------------------------------------------------------------
------------------------------------------------------------
'2/2/2011 7:53:33 PM' - Detected DataDriven Test. Starting data iterations.
------------------------------------------------------------
'2/2/2011 7:53:33 PM' - [Iteration #1: (OrgID=1)(ClientID=1)(OrgType=Corporate)(OrgClass=Internal)(OrgParent=Fingerhut)(OrgShortName=Auto_test_org_1)(OrgLongName=Auto_test_org_1)(ListData=ay_AL - Aya Neth,da_DK - Danish Denmark,de_AT - German Austria,el_GR - Greek Greece)(Action=ADD)(ActionIdentifier=)]
------------------------------------------------------------
Overall Result: Fail
------------------------------------------------------------
'2/2/2011 7:53:33 PM' - Enabling Html Popup Tracker. Test expecting Popups.
'2/2/2011 7:53:33 PM' - 'Fail' : 1. Navigate to : '/login.aspx'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to resolve the passed uri '/login.aspx' to an absolute url.
InnerException:
System.UriFormatException: Unable to resolve the passed uri '/login.aspx' 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 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()
------------------------------------------------------------
'2/2/2011 7:53:33 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'2/2/2011 7:53:33 PM' - Overall Result: Fail

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 03 Feb 2011, 10:31 AM
Hi Chakravarthy,

That might happen if you rely on the recording settings BaseUrl and you execute the tests in Visual Studio. Please check if you have the BaseUrl set in the VS test list settings too:
  •  Double click on the .testsettings file available in the Solution Items
  •  Select to open the "WebAii Test" section
  •  Click on the "File Paths" tab

and fill in the necessary BaseUrl there as well.

Please let us know if you need further assistance.

Kind regards,
Konstantin Petkov
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Chakravarthy
Top achievements
Rank 1
answered on 08 Feb 2011, 09:57 AM
Hi,

Thanks a lot. I am able to solve this problem. I haven't updated URL in Visual Studio Settings file.

Regards,
Kalyan Uppalapati
Tags
General Discussions
Asked by
Chakravarthy
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Chakravarthy
Top achievements
Rank 1
Share this question
or