1

我几乎可以适应 ccnet 集成,但我的结果没有显示在我的仪表板中,尽管遵循以下操作:

http://confluence.public.thoughtworks.org/display/CCNET/Using+CruiseControl.NET+with+FitNesse

我使用 File Merge Task 合并了我的 xml 结果文件,我使用以下方法生成: Parse Fitnesse RESTFul XML output into TFS Test format

在下面的 XML 中,xml 是应该的方式吗?这是我来自 ccnet webdashboard 的日志文件:

<cruisecontrol project="MagnusTest">
<request source="KDP021368" buildCondition="ForceBuild">Build (ForceBuild) triggered    from KDP021368</request>
<parameters>
<parameter name="$CCNetArtifactDirectory" value="C:\Program   Files\CruiseControl.NET\server\MagnusTest\Artifacts" />
<parameter name="$CCNetBuildCondition" value="ForceBuild" />
<parameter name="$CCNetBuildDate" value="2011-05-05" />
<parameter name="$CCNetBuildTime" value="14:36:44" />
<parameter name="$CCNetFailureUsers" value="System.Collections.ArrayList" />
<parameter name="$CCNetIntegrationStatus" value="Unknown" />
<parameter name="$CCNetLabel" value="7" />
<parameter name="$CCNetLastIntegrationStatus" value="Success" />
<parameter name="$CCNetListenerFile" value="C:\Program Files\CruiseControl.NET\server\MagnusTest\Artifacts\MagnusTest_ListenFile.xml" />
<parameter name="$CCNetModifyingUsers" value="System.Collections.ArrayList" />
<parameter name="$CCNetNumericLabel" value="7" />
<parameter name="$CCNetProject" value="MagnusTest" />
<parameter name="$CCNetProjectUrl" value="http://KDP021368/ccnet" />
<parameter name="$CCNetRequestSource" value="KDP021368" />
<parameter name="$CCNetUser" value="" />
<parameter name="$CCNetWorkingDirectory" value="C:\Program Files\CruiseControl.NET\server\MagnusTest\WorkingDirectory" />
</parameters>
<modifications />
<integrationProperties>
<CCNetArtifactDirectory>C:\Program Files\CruiseControl.NET\server\MagnusTest\Artifacts</CCNetArtifactDirectory>
<CCNetBuildCondition>ForceBuild</CCNetBuildCondition>
<CCNetBuildDate>2011-05-05</CCNetBuildDate>
<CCNetBuildTime>14:36:44</CCNetBuildTime>
<CCNetFailureUsers />
<CCNetIntegrationStatus>Success</CCNetIntegrationStatus>
<CCNetLabel>7</CCNetLabel>
<CCNetLastIntegrationStatus>Success</CCNetLastIntegrationStatus>
<CCNetListenerFile>C:\Program Files\CruiseControl.NET\server\MagnusTest\Artifacts\MagnusTest_ListenFile.xml</CCNetListenerFile>
<CCNetModifyingUsers />
<CCNetNumericLabel>7</CCNetNumericLabel>
<CCNetProject>MagnusTest</CCNetProject>
<CCNetProjectUrl>http://KDP021368/ccnet</CCNetProjectUrl>
<CCNetRequestSource>KDP021368</CCNetRequestSource>
<CCNetWorkingDirectory>C:\Program Files\CruiseControl.NET\server\MagnusTest\WorkingDirectory</CCNetWorkingDirectory>
<LastIntegrationStatus>Success</LastIntegrationStatus>
<LastSuccessfulIntegrationLabel>7</LastSuccessfulIntegrationLabel>
<LastModificationDate>04.05.2011 14:36:46</LastModificationDate>
</integrationProperties>
<build date="2011-05-05 14:36:44" buildtime="00:00:01" buildcondition="ForceBuild">

<msbuild startTime="05/05/2011 14:36:45" elapsedTime="00:00:01" elapsedSeconds="1" success="true">
<project name="FitnesseTest" file="M:\magnufu_PCtcGbad1_Test\CtcGbad1_pres\BuildAllComponents.proj" startTime="05/05/2011 14:36:46" elapsedTime="00:00:00" elapsedSeconds="0" success="true">
<target name="FitnesseTest" startTime="05/05/2011 14:36:46" elapsedTime="00:00:00" elapsedSeconds="0" success="true">
  <message level="high"><![CDATA[echo Dette er BuildAllComponents.proj]]></message>
  <message level="high"><![CDATA[Dette er BuildAllComponents.proj]]></message>
</target>
</project>
</msbuild>

<SummaryResult>
<TestName>TestSmoke</TestName>
<TestResult>Failed</TestResult>
<ErrorMessage>6 right, 3 wrong, 0 ignores and 2 exceptions.
</ErrorMessage>
<InnerTests>
<InnerTest>
  <TestName>TestSmoke</TestName>
  <TestResult>Failed</TestResult>
  <ErrorMessage>6 right, 3 wrong, 0 ignores and 2 exceptions.
</ErrorMessage>
</InnerTest>
</InnerTests>
</SummaryResult></build>
</cruisecontrol>

那么为什么我的结果没有显示在仪表板中?我已经编辑了我的 dashboard.config 以包括:

 <xslReportBuildPlugin description="Fitnesse Report" actionName="FitnesseReport"       xslFileName="xsl\fitnesse.xsl"/>

我在构建日志中获得了 XML。

谢谢你!

干杯

4

0 回答 0