7

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

任何人都知道它是否兼容,正如我在某个网站上看到的那样,WatiN 在 XP 而不是其他 Windows 版本上经过全面测试。

4

5 回答 5

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)

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

我的问题(感谢 Sam)是Microsoft.mshtml.dllbin 目录中没有(我Interop.shdocvw.dll从我在 Windows 7 端遇到的错误消息中发现这是必要的)。

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

于 2009-09-30T09:04:57.607 回答
4

我在带有 IE6 的 Windows 2003 上运行我们的 WatiN 集成测试套件(数百个测试)。工作正常,没有做任何特殊的技巧。你得到什么异常?您确定在这台机器上正确注册了 mshtml.dll(windows 目录中某处的 COM dll)吗?您是否在与 WatiN.Core.dll 相同的目录中有 Microsoft.mshtml.dll(互操作程序集)和 interop.shdocvw.dll?

于 2009-04-17T08:31:53.710 回答
0

更新:它的官方支持,来自常见问题

支持哪些 Windows 版本?

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

原帖:

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

于 2009-04-15T07:22:28.637 回答
0

我在 Windows XP 上使用 Watin 1.3,但在 Win 7 上也有问题.... 官方上,Watin 1.3 在 OS Xp 和更早的 Win XP 上工作

但 Watin 2.1 在 Win 7 和 XP 上运行良好。Watin 2.1 正式支持任何微软操作系统

于 2013-02-05T09:48:17.983 回答
0

您是否尝试过以交互方式登录到服务器并尝试手动运行测试?这可能是因为您的构建服务器正在运行的帐户或您设置的某些特定安全设置。您是否检查过 IE 是否因为该页面不在受信任的站点列表中而阻止您查看该页面?

于 2009-04-17T11:13:00.920 回答