msbuild - How to setup CruiseControl.NET with MSTest running Selenium Webdriver unit tests? -
i've been looking while step step instruction or examples of how setting cruisecontrol.net mstest works, no actual luck. i'm hoping might able , point me in right direction. i'm sure has been asked loads of times searching couldn't find answer.
<exec> <executable>c:\program files (x86)\microsoft visual studio 12.0\common7\ide\mstest.exe</executable> <basedirectory>d:\<project>\celeriac\pumpkin.selenium\bin\debug</basedirectory> <buildargs> /testcontainer:pumpkin.selenium.dll /test:<testname> /runconfig:localtestrun.testrunconfig /resultsfile:testresults.trx </buildargs> <buildtimeoutseconds>600</buildtimeoutseconds> </exec>
i've added above ccnet.config file after msbuild (which works fine) running tests after build complete doesn't work.
i not 100% if basedirectory looks correct? or need else in buildargs?
if run developer command prompt vs2013 works fine , runs selenium webdriver tests, i'm not sure i'm missing? heres snippit command prompt.
d:\<project>\celeriac\pumpkin.selenium\bin\debug>mstest /testcontainer:pum
pkin.selenium.dll /test:
thanks in advance help.
i've managed work.
i needed create batch file build args run desired tests , delete existing trx files. save locally drivers on build server itself.
testresults.bat - del testresults.trx "c:\program files (x86)\microsoft visual studio 11.0\common7\ide\mstest.exe" /testcontainer:pumpkin.selenium.dll /category:"regression" /resultsfile:testresults.trx
this saved in following location of d:\cruisecontrol\testproject\pumpkin.selenium\bin\debug\runtests.bat , called in ccnet.config file of build project.
Comments
Post a Comment