This question is locked. New answers and comments are not allowed.
I'm just finished the automation of my tests and I want to integrate the project in my integration server cc.NET.
Here is Tests Task what I added to the file server ccnet.config
<project name="RunAutomatedTest1" queue="Q1" queuePriority="1"> |
<workingDirectory>D:\AutomatedTest</workingDirectory> |
<artifactDirectory>D:\Integration\unAutomatedTest1.Artifacts</artifactDirectory> |
<category>UnitTest</category> |
<webURL>http://ip/ccnet</webURL> |
<modificationDelaySeconds>2</modificationDelaySeconds> |
<maxSourceControlRetries>10</maxSourceControlRetries> |
<!--Stopped,Started --> |
<initialState>Started</initialState> |
<!--UseInitialState,UseLastState --> |
<startupMode>UseInitialState</startupMode> |
<triggers> |
<scheduleTrigger time="03:15" buildCondition="ForceBuild" name="Scheduled"> |
<weekDays> |
<weekDay>Monday</weekDay> |
<weekDay>Tuesday</weekDay> |
<weekDay>Wednesday</weekDay> |
<weekDay>Thursday</weekDay> |
<weekDay>Friday</weekDay> |
<weekDay>Saturday</weekDay> |
<weekDay>Sunday</weekDay> |
</weekDays> |
</scheduleTrigger> |
</triggers> |
<!-- <state type="yourStateManagerType" ..=""/>--> |
<sourcecontrol type="svn"> |
<trunkUrl>http://server/svnrepos/AutomatedTest/trunk</trunkUrl> |
<workingDirectory>D:\AutomatedTest\AutomatedTestProject1</workingDirectory> |
<executable>C:\program files\VisualSVN\bin\svn.exe</executable> |
<username>user</username> |
<password>pass</password> |
<autoGetSource>true</autoGetSource> |
<checkExternals>false</checkExternals> |
<!--<webUrlBuilder></webUrlBuilder>--> |
<tagOnSuccess>false</tagOnSuccess> |
<tagBaseUrl>false</tagBaseUrl> |
<timeout units="minutes">10</timeout> |
<!--<issueUrlBuilder></issueUrlBuilder>--> |
</sourcecontrol> |
<labeller type="defaultlabeller"> |
<initialBuildLabel>01</initialBuildLabel> |
<prefix>RunAutomatedTest1</prefix> |
<postfix></postfix> |
<incrementOnFailure>false</incrementOnFailure> |
<labelFormat>00000</labelFormat> |
</labeller> |
<tasks> |
<exec> |
<!-- Call mstest to run the tests contained in the TestProject --> |
<executable>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe</executable> |
<baseDirectory>D:\AutomatedTest\AutomatedTestProject1</baseDirectory> |
<buildArgs>/testcontainer:bin\Release\AutomatedTest.AutomatedTestProject1.dll /test:LogInTest /resultsfile:results.xml</buildArgs> |
<buildTimeoutSeconds>30</buildTimeoutSeconds> |
</exec> |
</tasks> |
<publishers> |
<merge> |
<files> |
<file>D:\AutomatedTest\AutomatedTestProject1\results.xml</file> |
</files> |
</merge> |
<xmllogger logDir="D:\Integration\RunAutomatedTest1.BuildLogs" /> |
<email from="mail" mailhost="ip" mailport="25" includeDetails="TRUE" useSSL="FALSE"> |
<users> |
<user name="name" group="buildmaster" address="mail"/> |
</users> |
<groups> |
<group name="projectteam"> |
<notifications> |
<notificationType>Always</notificationType> |
<!--<notificationType>Failed</notificationType> |
<notificationType>Fixed</notificationType>--> |
</notifications> |
</group> |
<group name="buildmaster" > |
<notifications> |
<notificationType>Always</notificationType> |
</notifications> |
</group> |
</groups> |
<converters> |
<regexConverter find="$" replace="@xxx.aaa" /> |
</converters> |
<!-- |
Always Send email when any build occurs. |
Change Send email when the status of the build changes (e.g., from "Success" to "Failed"). |
Failed Send email when the build fails. |
Success Send email when the build succeeds. |
Fixed Send mail when the status of the build changes from "Failed" to "Success".--> |
<modifierNotificationTypes> |
<NotificationType>Failed</NotificationType> |
<NotificationType>Fixed</NotificationType> |
<NotificationType>Always</NotificationType> |
</modifierNotificationTypes> |
<subjectSettings> |
<subject buildResult="Success" value="[${CCNetProject}][CruiseControl.NET][Success] The Build is Yet Again Successfull. Build N°[${CCNetLabel}] " /> |
<subject buildResult="Broken" value="[${CCNetProject}][CruiseControl.NET][Broken] Project Broke at ${CCNetBuildDate} ${CCNetBuildTime} , last checkin(s) by ${CCNetFailureUsers}" /> |
<subject buildResult="StillBroken" value="[${CCNetProject}][CruiseControl.NET][StillBroken] Build is Still Broken for ${CCNetProject}, the Fix Failed." /> |
<subject buildResult="Fixed" value="[${CCNetProject}][CruiseControl.NET][Fixed] The build is OK Now, it was Broken Last Time. Build N°[${CCNetLabel}]" /> |
<subject buildResult="Exception" value="[${CCNetProject}][CruiseControl.NET][Exception] Serious Problem for ${CCNetProject}, Mostly a Status of Network / SourceControl" /> |
</subjectSettings> |
<xslFiles> |
<file>xsl\header.xsl</file> |
<file>xsl\compile.xsl</file> |
<file>xsl\MsTestReport2008.xsl</file> |
<file>xsl\modifications.xsl</file> |
</xslFiles> |
<!--<attachments> |
<file>D:\Data\AFile.txt</file> |
<file>Relative.txt</file> |
</attachments>--> |
</email> |
</publishers> |
<externalLinks> |
<externalLink name="ccnet" url="http://ip/ccnet" /> |
</externalLinks> |
</project> |
and when i force the build of project it send me the mail :
BUILD FAILED |
Project: RunAutomatedTest1 |
Date of build: 2010-05-27 17:54:24 |
Running time: 00:00:01 |
Integration Request: Build (ForceBuild) triggered from UNICC-SERVER- |
Tests run: 0 |
No tests found |
Modifications since last build (0) |
Many thanks