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

Exception launching Internet Explorer

5 Answers 293 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Julio
Top achievements
Rank 1
Julio asked on 27 Jun 2012, 01:48 PM
Hi,

I have been getting the exception below in what appears to be on a random fashion. We use the free Telerik Testing Framework 2011.1 and ArtOfTest.WebAii.dll version 2011.1.502.0. I've done what is listed here: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/recording-problems/unable-to-launch-recorder.aspx 
-It rarely happens on our local machines running WIndows XP SP3
-It happens a lot on our VMs running Windows XP SP3

I've looked at other threads with similar errors, but I haven't been able to resolve it.
Can you please help? Error below and files attached.

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
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync waitString extraExceptionInfo)
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicateT targetBoolean invertConditionInt32 timeout)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicateT targetInt32 timeout)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.GetIEFrameFromProcess(Process process)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeoutProcessWindowStyle windowStyleString pipename)
System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeoutProcessWindowStyle windowStyleString pipename)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnectProcessWindowStyle windowStyleString arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnectProcessWindowStyle windowStyle)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnect)
at WebAii.Framework.Context.WebTest.get_ActiveBrowser() in WebTest.cs: line 88
at WebAii.Framework.Context.WebTest.get_Find() in WebTest.cs: line 95
at IFS.AF.BaseContext.AfWebTest.<.ctor>b__0() in AfWebTest.cs: line 89

5 Answers, 1 is accepted

Sort by
0
Julio
Top achievements
Rank 1
answered on 27 Jun 2012, 01:51 PM
I forgot to mention that a browser window opens and stays blank.
0
Cody
Telerik team
answered on 29 Jun 2012, 09:33 PM
Hi,

When you say "It happens a lot on our VMs running Windows XP SP3" does that mean this problem is intermittent on the same machine... sometimes the test works and sometimes you get this error? If it's intermittent you are probably running into a timeout issue. We have a built in 5 second timeout to connect to the browser. After 5 seconds we give up and display the error you are getting.

How long does it take for IE to launch and be ready to navigate? Is it close to 5 seconds? One other customer had this problem and was able to fix it doing a general reset of IE.

Greetings,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Paola
Top achievements
Rank 1
answered on 05 Jul 2012, 05:46 PM

Hello, I'm having almost exactly the same problem, I developed an app with visual studio 2010 I did the deployment and I have installed the app on a VM with Microsoft XP SP3,  the internet explorer browser is launched, but then an exception appears.

I did the same over the machine where I have developed the app and everything works fine, both machines have Telerik Testing Framework 2012., NET Framework 4,  IE 8 and Microsoft XP SP3

I have already resetted the browser but still not working

I'm sending you the ErrorLogFile with all the information, I couldn't attach the file, here is the information:

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.TypeInitializationException: The type initializer for 'ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'ArtOfTest.InternetExplorer, Version=2012.1.411.0, Culture=neutral, PublicKeyToken=5339893a7cefe4d6' or one of its dependencies. The system cannot find the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions..cctor()
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
   at Online1_5.FirstTest.RunTest()

Do you want me to start another thread for this issue? Let me know

 

Thanks,
Paola

0
Plamen
Telerik team
answered on 10 Jul 2012, 04:10 PM
Hello Paola and Julio,

Unfortunately, if you are not able to resolve this following the steps provided in our troubleshooting guide for this issue, a local reproduction is needed so our developers can find the root cause and fix it. Would it be possible for you to provide us with a copy of a VM image you're using so we can reproduce the issue locally? To provide us with a copy of the VM image, you can file a support ticket(which is confidential unlike this forum thread) and I'll send you the credentials for our FTP server.

Kind regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Paola
Top achievements
Rank 1
answered on 11 Jul 2012, 10:25 PM
Hello everybody, I have found the solution, in case you still have the problem:

Nothing of the troubleshooting solved my issue, so I kept looking and I got this:

 

This is the part that solved my problem, I highlighted the actions in red: 

 

  • If you are not using NUnit or Visual Studio Team Test, you can still use Telerik Testing Framework from a Console Application, a Class Library, or a Windows Application. Simply follow the rest of the instructions below. Note: For Visual Studio 2010, change the solution's "Target Framework" property to .NET Framework 3.5 or .NET Framework 4.0. The Client Profile Frameworks will not work.

 

Once Telerik Testing Framework is installed on the target machine, you can easily start using it from your .NET project by simply referencing the ArtOfTest.WebAii.dll (and ArtOfTest.Common.dll for version 2010 and older) file placed in your %InstallDir%. Those are the only dll's you need to reference to get the full functionality. To reference the Telerik library:

  • Select your project in the Solution Explorer in Visual Studio, or start a new project.
  • Right-click the References folder displayed in the solution and select 'Add Reference...'.
  • Navigate to the ArtOfTest.WebAii.dll installed on your machine in your %InstallDir%\bin folder.
  • Select ArtOfTest.WebAii.dll (and ArtOfTest.Common.dll for version 2010 and older).
  • Click OK to finish adding the needed references.

 

This is the full link for this documentation http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-telerik-testing-framework.aspx

 

Thank you so much for your help

Tags
General Discussions
Asked by
Julio
Top achievements
Rank 1
Answers by
Julio
Top achievements
Rank 1
Cody
Telerik team
Paola
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or