使用 Team City 以静默模式运行 Watin

发布于 2024-08-31 06:47:54 字数 47 浏览 4 评论 0原文

我可以在静默模式下运行什么测试程序以及如何让 Team City 运行我的测试?

I what to run may watin tester in silent mode and how I can get Team City to run my tests ?

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

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

发布评论

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

评论(1

闻呓 2024-09-07 06:47:54

通过设置 MakeNewIeInstanceVisible 标志,可以使 Watin 测试在隐藏 IE 的情况下运行。默认情况下是正确的。

在 WatiN 2 候选版本中,可以通过以下方式隐藏 IE:

WatiN.Core.Settings.MakeNewIeInstanceVisible = false;

我尚未在早期的 WatiN 版本上进行测试,但 releasenotes 解释了该版本的功能:

默认情况下,WatiN 测试使创建的 Internet Explorer 实例对用户可见。您可以通过更改以下设置来运行不可见的测试。请注意,即使您将此设置设置为 false,HTMLDialogs 和任何弹出窗口也会显示(这是 Internet Explorer 的默认行为,当前无法抑制)。

<块引用>

IE.Settings.MakeNewIeInstanceVisible = false; // 默认为 true

Watin tests can be made to run with IE hidden from view by setting the MakeNewIeInstanceVisible flag. It is true by default.

In the WatiN 2 release candidate, IE can be hidden with:

WatiN.Core.Settings.MakeNewIeInstanceVisible = false;

I have not tested on earlier WatiN versions but the releasenotes for version 1.2.0.4 explains the feature for that version:

By default WatiN tests make the created Internet Explorer instances visible to the user. You >can run your test invisible by changing the following setting. Be aware that HTMLDialogs and >any popup windows will be shown even if you set this setting to false (this is default >behavior of Internet Explorer which currently can't be suppressed).

IE.Settings.MakeNewIeInstanceVisible = false; // default is true

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