WatiN 与 Windows 的兼容性

发布于 2024-07-17 18:15:10 字数 141 浏览 6 评论 0原文

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

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

I am running tests successfully on Windows XP but not even got a single successful build while running through Windows 2003.

Any one knows whether it is compatible or not as I read on some site that WatiN is fully tested on XP and not on other Windows editions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

_畞蕅 2024-07-24 18:15:10

我通常会将此作为对 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 开发了测试,但测试不断陷入困境在具有最新 WU 的 Windows Server 2008 上运行时,地址栏中显示空白浏览器,并且增强的安全配置已关闭并运行提升的测试(以管理员身份运行)。

我的情况的问题(感谢 Sam)是 bin 目录中缺少 Microsoft.mshtml.dll (我从错误中发现 Interop.shdocvw.dll 是必要的)我在 Windows 7 端遇到的消息)。

添加Microsoft.mshtml.dll后,一切运行顺利,ESC转回[但测试过程需要提升运行]。

I'd ordinarily post this as a comment on Sam's answer, but I'm trying to make a stack trace searchable, so here goes...

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)

I developed my test on Windows 7 against WatiN 2.0.10.928 but the test was continually getting stuck with a blank browser with about:blank in the address bar when run on Windows Server 2008 with latest WUs, and Enhanced Security Configuration turned off and running the tests elevated (Run as Administrator).

The problem in my case (thanks Sam) was the absence of Microsoft.mshtml.dll in the bin directory (I had figured out Interop.shdocvw.dll was necessary from error messages I'd encountered on the Windows 7 side).

After adding Microsoft.mshtml.dll, things run happily with ESC turned back [but the test process needs to run elevated].

醉生梦死 2024-07-24 18:15:10

我在 Windows 2003 上使用 IE6 运行我们的 WatiN 集成测试套件(数百个测试)。 效果很好,没有做任何特殊的技巧。 您遇到的异常是什么? 您确定 mshtml.dll(Windows 目录中某处的 COM dll)在本机上正确注册吗? Microsoft.mshtml.dll(互操作程序集)和 interop.shdocvw.dll 是否与 WatiN.Core.dll 位于同一目录中?

I run our WatiN integration test suite (hundreds of tests) on Windows 2003 with IE6. Works fine, no special tricks done. What is the exception you are getting? Are you sure mshtml.dll (the COM dll somewhere in the windows directory) is registered correctly on this machine? Do you have the Microsoft.mshtml.dll (interop assembly) and interop.shdocvw.dll in the same directory as WatiN.Core.dll?

望笑 2024-07-24 18:15:10

更新:官方支持,来自faq

支持哪些 Windows 版本?

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

原帖:

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

Update: Its officially supported, from the faq

Which windows versions are supported?

Windows 2000, Windows XP, Windows 2003
and Windows 2008.

Original post:

I use it on vista all the time. I haven't used it on windows server 2003 though.

浅黛梨妆こ 2024-07-24 18:15:10

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

Have you tried logging on interactively into the server and trying to run the tests manually? It may be because of the account that your build server is running under or some particular security settings you have setup. Have you checked to see if IE is stopping you from viewing the page due to it not being in the trusted sites list?

仙女山的月亮 2024-07-24 18:15:10

我在 Windows XP 上使用 Watin 1.3,但在 Win 7 上也有问题......
官方称 Watin 1.3 可在 OS Xp 和更早版本的 Win XP 上运行,

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

I was using Watin 1.3 on Windows XP but the same on Win 7 having problem....
Officially Watin 1.3 works on O.S. Xp and earlier on Win XP

But Watin 2.1 works fine on Win 7 and XP.
Officially Watin 2.1 supports any Microsoft O.S.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文