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

Can't start tests on IE (throw exception)

4 Answers 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 23 Aug 2012, 12:55 PM

Hi.

I want to run tests on another computer but when i run it exception throw.

          • Set Up
            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.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
            FileName: Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
            FusionLog: WRN: Assembly binding logging is turned OFF.
            To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
            Note: There is some performance penalty associated with assembly bind failure logging.
            To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

            at ArtOfTest.Common.Win32.Connector.InjectCode(IntPtr handle, String assemblyAndClass, String pipename, String pid, Boolean waitForDocument)
            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(BrowserType browserToLaunch)
            at WebAiiFrameWork.TestsBase.MyTestInitialize()
          •  I try to run on WinXP x32 IE8 and Win7 x32 IE9.

4 Answers, 1 is accepted

Sort by
0
Anton
Top achievements
Rank 1
answered on 23 Aug 2012, 01:17 PM

I found solution:

I need to install Primary Interop Assemblies but it can't be installed without installing MS Office.

Is it a bug?

Please specify all requirement to run tests on computer on which tests was not builded.

And add it to KB.

PS. I run tests with Gallio.

Thanks.

0
Konstantin Petkov
Telerik team
answered on 24 Aug 2012, 10:08 PM
Hi Anton,

The PIA package is indeed needed in order for the test execution to "talk" with Internet Explorer. That's a job of the product installer though which should take care of installing the necessary packages so I wonder why it passed on your end without doing its job. Instead it should fail like this.

You can use the download link from the above article in order to install the package manually (you don't need to install Office, it's just a way to distribute the package).

Kind regards,
Konstantin Petkov
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Anton
Top achievements
Rank 1
answered on 27 Aug 2012, 07:42 AM
I can provide installation log if you give me a name of it's file.
0
Konstantin Petkov
Telerik team
answered on 27 Aug 2012, 08:18 AM
Hello Anton,

You can follow the step in this article in order to generate the installation log for us.

Greetings,
Konstantin Petkov
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Anton
Top achievements
Rank 1
Answers by
Anton
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or