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

IE sometimes fails to start

4 Answers 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 17 Feb 2012, 02:12 PM
Hi

I'm sometimes having problems starting IE, it happens maybe 1/200 times but it's quite annoying.

Is this a known issue? or is there something i can do to prevent this from happening, from what i can see it's Telerik that fails to detect the browser or something like that.

Info:
We are running a test suite of 50 tests multiple times a day and i see this maybe once or twice a day.


Error message:
Initialization method Iit.TradingFloor.TestWebUI.ErrorPageTests.TopTestInitialize threw exception. System.ApplicationException: System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.TimeoutException: Wait for condition has timed out.

Error Stack Trace:
ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Int32 timeout)
ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.WaitForIEFrameFromProcess(Process process, Int32 iWaitMilliseconds)
ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
Iit.TradingFloor.TestWebUI.BaseClasses.WebUITestBase.PrepareBrowser(Boolean clearCache, Boolean clearCookies) in C:\Source Control\0071 Trading Floor v3.0\Main\Source\TestWebUI\BaseClasses\WebUITestBase.cs: line 113
Iit.TradingFloor.TestWebUI.BaseClasses.WebUITestBase.TestInitialize() in C:\Source Control\0071 Trading Floor v3.0\Main\Source\TestWebUI\BaseClasses\WebUITestBase.cs: line 106
Iit.TradingFloor.TestWebUI.ErrorPageTests.TopTestInitialize() in C:\Source Control\0071 Trading Floor v3.0\Main\Source\TestWebUI\Tests\ErrorPageTests.cs: line 19


4 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 22 Feb 2012, 05:41 PM
Hello Martin,

Please give this a try and let us know if it worked:

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/recording-problems/unable-to-launch-recorder.aspx 

Greetings,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Martin
Top achievements
Rank 1
answered on 01 Mar 2012, 01:06 PM
I haven't found a solution to this issue.

I think I'm going to just wrap it in a try - catch even though that's not really a good solution.
0
Ivaylo
Telerik team
answered on 01 Mar 2012, 04:20 PM
Hello Martin,

This is definitely an environment-specific issue and it will be tough to nail down exactly what is causing the problem. Here are some other things to check:

  • Windows Updates - We've seen rolling back certain updates remedies issues similar to this.
  • IE Toolbars - If you've ruled out problematic Add-ons, there may be a toolbar interfering.
  • Anti-Virus - Do you run Anti-Virus software or your machine? Did it recently update? Does it plug in to the browser?

In order to launch IE without add-ons go to Windows Start Button->All Programs->Accessories->System Tools->Internet Explorer (No Add-ons).

Hope this will help.

Regards,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Martin
Top achievements
Rank 1
answered on 02 Mar 2012, 08:04 AM
I think your right, it also doesn't appear to happen on our VMs runnng a server version.

I think for now i will see if the try catch workaround works. If it does then Ill leave it at that and if it doesn't ill come back to you and we can spend more time investigatin.

For now I don't think it's worth using alot more time on.
Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Martin
Top achievements
Rank 1
Share this question
or