When I run the WatiN tests on our build server, they throw this InteropServices.COMException:
MyTestClassName.MyTestMethodName: System.Runtime.InteropServices.COMException: creating an instance of a COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from IClassFactory failed due to the following error: 80004005.
I get the same result, I launch them through TeamCity or launch them manually on the server as an administrator using the NUnit GUI (2.5).
This is a sample code:
[TestFixture] public class MyTestClassName { private string pageUrl; [TestFixtureSetUp] public void TestFixtureSetUp() { pageUrl = ConfigurationManager.AppSettings["SiteURL"] + "/Pages/MyPage.aspx"; Settings.MakeNewIeInstanceVisible = false; } [Test] public void MyTestMethodName() { using (var ie = new IE(pageUrl)) { ie.SelectList(new Regex(@"^*DropDownList1*$")).Option("TheOption").Select(); ie.SelectList(new Regex(@"^*DropDownList2*$")).Option("AnOption").Select(); ie.SelectList(new Regex(@"^*DropDownList3*$")).Option("OtherOption").Select(); } } }
Any ideas what this could be?
/ Joachim
source share