I am loading a browser component to run a couple of ATDD tests.
I would like to accomplish this in both, an integration server with
CC.NET and locally at my box.
I have the browser that needs to be loaded declared in a properties
file, something like:
<configuration>
<properties>
<?define Browser_IE?>
</properties>
</configuration>
And in the components declaration file I have something like this:
<configuration>
<components>
<?if Browser_Firefox?>
<component id="Browser"
service="WatiN.Core.Browser, WatiN.Core"
type="WatiN.Core.FireFox, WatiN.Core"
lifestyle="transient" />
<?end?>
<?if Browser_IE?>
<component id="Browser"
service="WatiN.Core.Browser, WatiN.Core"
type="WatiN.Core.IE, WatiN.Core"
lifestyle="transient" />
<?end?>
</components>
</configuration>
I have to run the set of tests for both: first with IE and then with
Firefox. So I have to change my .properties file dynamically so that
one or the other is defined according to the last run.
What is the best approach for this?
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.