Launch Watin in silent mode using Team City

I need to run the tester in silent mode and how can I get Team City to run my tests?

+7
teamcity watin
source share
1 answer

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

In the candidate for the release of WatiN 2 IE you can hide:

WatiN.Core.Settings.MakeNewIeInstanceVisible = false; 

I have not tested previous versions of WatiN, but releasenotes for version 1.2.0.4 explains this function for this version:

By default, WatiN tests make created instances of Internet Explorer visible to the user. You can run your test invisible by changing the following setting. Keep in mind that HTMLDialogs and> all pop-ups will be shown, even if you set this parameter to false (this is the default) behavior of Internet Explorer, which cannot be suppressed at present).

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

+8
source share

All Articles