ASP.NET单元测试 - 华廷和Windows 7 / Internet Explorer 8的 [英] ASP.NET Unit Testing - WatiN and Windows 7 / Internet Explorer 8

查看:356
本文介绍了ASP.NET单元测试 - 华廷和Windows 7 / Internet Explorer 8的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何技巧在获得华廷对Win7的/ IE8上运行?

我的code:

 浏览器=新的IE();
    browser.GoTo(HTTP:// TESTSERVER);
    browser.TextField(Find.ByName(txtUser))的TypeText(廷德尔);
 

第三行从来没有真正运行,我得到一个错误回来:

System.Runtime.InteropServices.COMException:RPC服务器不可用。 (从HRESULT异常:0x800706BA)

第二行似乎运行。 IE8似乎并导航到正确的URL。

解决方案

重新启动计算机

  

有Windows更新获得在实例化新COM对象的方式。

有关详细信息,请参阅我的回答对这个问题:

<一个href="http://stackoverflow.com/questions/6600482/watin-nunit-and-cruisecontrol-net-error-message-800704a6/8797600#8797600">WatiN, NUnit的和CruiseControl.NET--错误消息800704a6

Any tricks in getting WatiN to run on Win7/IE8?

My code:

    browser = new IE();
    browser.GoTo("http://testserver");
    browser.TextField(Find.ByName("txtUser")).TypeText("tyndall");

The third line never really runs and I get an error back:

System.Runtime.InteropServices.COMException : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

The second line seems to run. IE8 appears and is navigated to the correct URL.

解决方案

Reboot the machine

There are windows updates getting in the way of instantiating new COM objects.

See my answer on this question for more details:

WatiN, NUnit and CruiseControl.NET-- Error message 800704a6

这篇关于ASP.NET单元测试 - 华廷和Windows 7 / Internet Explorer 8的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆