Watin与Windows的兼容性

7 nunit watin

我在Windows XP上成功运行测试,但在运行Windows 2003时甚至没有成功构建.

任何人都知道它是否兼容,因为我在某些网站上读到WatiN在XP上完全测试而不是在其他Windows版本上.

Rub*_*ink 8

我通常会发布这篇文章作为对Sam的回答的评论,但我正在努力使堆栈跟踪可搜索,所以这里......

WatiN.Core.Exceptions.IENotFoundException : Could not find an IE window matching constraint: Timeout while waiting to attach to newly created instance of IE.. Search expired after '30' seconds.
at WatiN.Core.IE.CreateIEPartiallyInitializedInNewProcess()
at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, IDialogHandler logonDialogHandler, Boolean createInNewProcess)
at WatiN.Core.IE..ctor(String url, Boolean createInNewProcess)
c:\...\WithVendorSite.cs(42,0): at WithVendorSite.VerifyCanLogIn(TargetSite target)
Run Code Online (Sandbox Code Playgroud)

我在Windows 7上针对WatiN 2.0.10.928开发了我的测试,但是about:blank在Windows Server 2008上运行最新的WU并且关闭了增强安全配置并且运行测试时,测试在地址栏中不断陷入空白浏览器(以管理员身份运行).

在我的情况下(感谢Sam)的问题是Microsoft.mshtml.dll在bin目录中没有(我已经想到了Interop.shdocvw.dll我在Windows 7端遇到的错误消息是必要的).

添加后Microsoft.mshtml.dll,事情运行愉快,ESC转回[但测试过程需要提升].


egl*_*ius 0

更新:官方支持,来自常见问题解答

支持哪些 Windows 版本?

Windows 2000、Windows XP、Windows 2003 和 Windows 2008。

原帖:

我一直在vista上使用它。不过我还没有在 Windows Server 2003 上使用过它。