Can't start tests on IE (throw exception)

5 posts, 0 answers
  1. Anton
    Anton avatar
    54 posts
    Member since:
    Sep 2011

    Posted 23 Aug 2012 Link to this post

    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.

  2. Anton
    Anton avatar
    54 posts
    Member since:
    Sep 2011

    Posted 23 Aug 2012 Link to this post

    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.

  3. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 24 Aug 2012 Link to this post

    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
  4. Anton
    Anton avatar
    54 posts
    Member since:
    Sep 2011

    Posted 27 Aug 2012 Link to this post

    I can provide installation log if you give me a name of it's file.
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 27 Aug 2012 Link to this post

    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
Back to Top