This question is locked. New answers and comments are not allowed.
Here is a simple coded step that always times out and fails:
public void CheckStaffSite_CodedStep2()
{
// Navigate to : Data["RelativeURL"] Note: The Base URL in the .testrunconfig
// file must be set to a valid server.
ActiveBrowser.NavigateTo((String) Data["RelativeURL"]);
}
The error I receive is this:
Overall Result: Fail
--------------------------------------------------
'12/16/2009 10:09:52 AM' - Detected DataDriven Test. Starting data iterations.
--------------------------------------------------
'12/16/2009 10:09:52 AM' - [Iteration #1: (RelativeURL=~/app/admin/Home/Default.aspx)]
--------------------------------------------------
'12/16/2009 10:10:23 AM' - 'Fail' : [CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ArtOfTest.WebAii.Design.Exceptions.ExecutionException: Exception thrown executing coded step: '[CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]'. ---> System.TimeoutException: Timed out waiting for condition to be met.
at ArtOfTest.WebAii.Synchronization.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
at CheckInstall.CheckStaffSite.CheckStaffSite_CodedStep2() in C:\tfs\app\Main\a.net\UITest\CheckInstall\CheckInstall\CheckStaffSite.aii.cs:line 72
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Object codeBehindInstance)
--------------------------------------------------
'12/16/2009 10:10:23 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'12/16/2009 10:10:23 AM' - Overall Result: Fail
--------------------------------------------------
My question is what time out is causing this to fail. It sits spinning in the browser for about 30 seconds before this fails. If I preload the page (i.e. go and hit the page manually, first) this works just fine.
public void CheckStaffSite_CodedStep2()
{
// Navigate to : Data["RelativeURL"] Note: The Base URL in the .testrunconfig
// file must be set to a valid server.
ActiveBrowser.NavigateTo((String) Data["RelativeURL"]);
}
The error I receive is this:
Overall Result: Fail
--------------------------------------------------
'12/16/2009 10:09:52 AM' - Detected DataDriven Test. Starting data iterations.
--------------------------------------------------
'12/16/2009 10:09:52 AM' - [Iteration #1: (RelativeURL=~/app/admin/Home/Default.aspx)]
--------------------------------------------------
'12/16/2009 10:10:23 AM' - 'Fail' : [CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ArtOfTest.WebAii.Design.Exceptions.ExecutionException: Exception thrown executing coded step: '[CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]'. ---> System.TimeoutException: Timed out waiting for condition to be met.
at ArtOfTest.WebAii.Synchronization.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
at CheckInstall.CheckStaffSite.CheckStaffSite_CodedStep2() in C:\tfs\app\Main\a.net\UITest\CheckInstall\CheckInstall\CheckStaffSite.aii.cs:line 72
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Object codeBehindInstance)
--------------------------------------------------
'12/16/2009 10:10:23 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'12/16/2009 10:10:23 AM' - Overall Result: Fail
--------------------------------------------------
My question is what time out is causing this to fail. It sits spinning in the browser for about 30 seconds before this fails. If I preload the page (i.e. go and hit the page manually, first) this works just fine.
11 Answers, 1 is accepted
0
Hi John,
Just a few quick questions: Does the test run alright when not data driving the test? Also, is this happening in the WebUI 1.1 version or WebUI 2.0 version?
And are you running the test in Quick Execution Mode? The Base URL would only work in Visual Studio Test Execution.
Best wishes,
Nelson Sin
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Just a few quick questions: Does the test run alright when not data driving the test? Also, is this happening in the WebUI 1.1 version or WebUI 2.0 version?
And are you running the test in Quick Execution Mode? The Base URL would only work in Visual Studio Test Execution.
Best wishes,
Nelson Sin
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John
Top achievements
Rank 1
answered on 16 Dec 2009, 09:56 PM
Yes, this happens whether it is data driven or not.
The version is WebUI 1.1, and I'm running this individual test from Test View.
The test is running IE8.
On first contact with the site, when I hit it manually in IE8, it takes about 90 seconds for the page to first come up. If I navigate to the site manually, and then run the test it, the test runs fine without that initial failure.
The version is WebUI 1.1, and I'm running this individual test from Test View.
The test is running IE8.
On first contact with the site, when I hit it manually in IE8, it takes about 90 seconds for the page to first come up. If I navigate to the site manually, and then run the test it, the test runs fine without that initial failure.
0
Hello again John,
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thanks for clearing that up. I was able to reproduce this problem when data binding browser Navigation (either as a normal navigation step or one converted to code) and try to use a relative URL.
I'll log a bug for this and as a work around, you may need to use the full URL when data binding a navigation step.
Kind regards,
Nelson
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John
Top achievements
Rank 1
answered on 16 Dec 2009, 11:17 PM
I tried this in the coded step and it has the same problem:
ActiveBrowser.NavigateTo((String)"http://10.40.20.196/app/admin/Home/Default.aspx");
ActiveBrowser.NavigateTo((String)"http://10.40.20.196/app/admin/Home/Default.aspx");
0
Hello again John,
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I'll try getting a repro going on this. Is the Base URL still set for you in the .testrunconfig when attempting to navigate?
Best wishes,
Nelson
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John
Top achievements
Rank 1
answered on 17 Dec 2009, 04:46 PM
A couple of interesting items. We were literally upgrading to 2.0 today, so I did that and this problem still looks like it occurs in WebAii 2.0.
For the test with 2.0, I completely removed the BaseURL from the testrunconfig file. I also deleted the data table entirely, to make sure the test wasn't looking at it.
Here's a stack trace from the run with WebAii 2.0, no BaseURL, no Data Table:
Overall Result: Fail
--------------------------------------------------
'12/17/2009 9:35:17 AM' - 'Fail' : 1. [CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]'.
InnerException:
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
at CheckInstall.CheckStaffSite.CheckStaffSite_CodedStep2() in C:\tfs\iMIS\Main20\imis.net\UITest\CheckInstall\CheckInstall\CheckStaffSite.aii.cs:line 75
--------------------------------------------------
'12/17/2009 9:35:17 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'12/17/2009 9:35:17 AM' - Overall Result: Fail
--------------------------------------------------
For the test with 2.0, I completely removed the BaseURL from the testrunconfig file. I also deleted the data table entirely, to make sure the test wasn't looking at it.
Here's a stack trace from the run with WebAii 2.0, no BaseURL, no Data Table:
Overall Result: Fail
--------------------------------------------------
'12/17/2009 9:35:17 AM' - 'Fail' : 1. [CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[CheckStaffSite_CodedStep2] : @"Navigate to : Base URL/Data[RelativeURL]'.
InnerException:
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
at CheckInstall.CheckStaffSite.CheckStaffSite_CodedStep2() in C:\tfs\iMIS\Main20\imis.net\UITest\CheckInstall\CheckInstall\CheckStaffSite.aii.cs:line 75
--------------------------------------------------
'12/17/2009 9:35:17 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'12/17/2009 9:35:17 AM' - Overall Result: Fail
--------------------------------------------------
0
Hello again John,
So was the test still failing on the following line in WebUI 2.0?:
ActiveBrowser.NavigateTo((String)"http://10.40.20.196/app/admin/Home/Default.aspx");
I have a setup where I am navigating to a URL starting with an IP address and it works alright on this end. Can you attach your test project for us to checkout?
Best wishes,
Nelson
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
So was the test still failing on the following line in WebUI 2.0?:
ActiveBrowser.NavigateTo((String)"http://10.40.20.196/app/admin/Home/Default.aspx");
I have a setup where I am navigating to a URL starting with an IP address and it works alright on this end. Can you attach your test project for us to checkout?
Best wishes,
Nelson
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John
Top achievements
Rank 1
answered on 17 Dec 2009, 07:43 PM
Is there a support ticket I should use?
0
John
Top achievements
Rank 1
answered on 17 Dec 2009, 07:44 PM
Yes, it still fails on 2.0.
Is there a support ticket I should use? ( I have a very simple solution that demonstrates this problem on my end. ) Not sure how to attach it here, though.
Is there a support ticket I should use? ( I have a very simple solution that demonstrates this problem on my end. ) Not sure how to attach it here, though.
0
Hi again John,
Sorry about that, I just realized it was a forum post. Can you submit a support ticket with the project attached? I'll check it out and reply in the ticket if that's ok with you.
Sincerely yours,
Nelson
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Sorry about that, I just realized it was a forum post. Can you submit a support ticket with the project attached? I'll check it out and reply in the ticket if that's ok with you.
Sincerely yours,
Nelson
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John
Top achievements
Rank 1
answered on 17 Dec 2009, 08:33 PM
The ticket is 267838