Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run Watin in silent mode, using Team City

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

like image 964
SpeedyNinja Avatar asked May 03 '10 12:05

SpeedyNinja


People also ask

How do you run a command in TeamCity?

To open the tool's settings page, navigate to the My Settings&Tools page| TeamCity Tools side panel | Command Line Remote Run and click configure. Create a mapping configuration file: select a build configuration to run your personal build on from the dropdown with and click Add.

How do I enable build step in TeamCity?

In Build Steps, click Auto-detect build steps, and then select the proposed steps you want to add to the current build configuration. You can change their settings afterwards.


1 Answers

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

like image 93
John Kane Avatar answered Oct 29 '22 00:10

John Kane