I have this block of code in the CruiseControl.NET configuration:
<exec>
<executable>C:\Windows\System32\cmd.exe</executable>
<buildArgs>/C SETX SELENIUM_BROWSER googlechrome /M</buildArgs>
</exec>
It is followed by an NUnit execution command that will run some Selenium tests on my website. The idea is that this command changes the testing browser (system environment variable) before the tests are run.
The problem is that the command does not seem to be working. The tests are still using the default browser, Firefox. It works if I manually change the environment variable.
What am I doing wrong?
EDIT:
I tried putting the command in a batch file and executing that, but it still didn't work:
<exec executable="C:\CCNet\setChrome.bat" />
The batch file contents:
SETX SELENIUM_BROWSER googlechrome /M