Third-Party Reports problem in the Build Results page; Its very urgent please help me

Hi,

       I am using TeamCity 4.0.2 build and i congifured my C# project with msbuild buildrunner. My application internally executes the  test cases and it exports the results to HTML file and i configured these HTML files as a buildartifacts. Now, i want to show these html files as a separate tab in the results page. I have modified the MainConfig.Xml file, but the results pages showing the artifacts lists but its not showing as a separate tab.

Could you please let me know the procedure to add a new custom tab in the result page.


Here is the newly added line in the MainConfig.Xml file.

<report-tab title="ResultsInfo" basePath="\\WIN-SHK\dnetp\\Tests\Conf\\Debug" startPage="results.html" />

Here i am attaching the screenshot of the results page and General settings page



Attachment(s):
buildartifact.JPG
Genealsettings.JPG
11 comments
Comment actions Permalink

Hello,

  try using

<report-tab title="ResultsInfo" basePath="." startPage="results.html" />

Hope this helps,
KIR

0
Comment actions Permalink

KIR,

       Thanks a lot and its working fine.Now i am able to show my custom results as a separate tab.

Kiran

0
Comment actions Permalink

KIR,

         Thanks for your reply and the trick is worked for me. Now, i am able to import my html test reports as a separate tab to Teamcity Dashboard. Currently we are invoking the 3rd party test-framework tool from the nunit test cases  and it export the test results to an xml file. After that, we have converted the xml files to html files, which were treated as a build artifacts. I have followed your trick , now i am able to show the results as a separate tab. 

Now, i want to show the Test summary information in the build results page. Could you please let me know the procedure for showing the Tests summary information in the Build results page. I have read the BuildScript interacation to Teamcity in the help document, but i was not clear about it. I am using the Msbuild script for building the solution file and i am using Nunit task for execution of the testcases. How to send the message to tests summary information to the Teamcity server. Is there any way to access the build artifacts and get the Test summary information ?

Thanks in Advance
kiran  

0
Comment actions Permalink

Hello,

  To have the build summary information I'd suggest to try using TeamCity 4.5.1 and leverage its xml-report plugin:
  http://www.jetbrains.net/confluence/display/TW/XML+Test+Reporting (this plugin is bundled with TC 4.5.1).

  I hope your third-party framework produces a XML report in a known format, like NUnit or Ant.

  Hope this helps,
  KIR

0
Comment actions Permalink

KIR,

         I have tried your suggestion and its not worked for me.  I have tried to import the xml results file to teamcity with the help of xml-report plugin, but the teamcity is not recognizing the xml file. Here is the sample results.xml file.



Attachment(s):
QuikTests.xml
log.txt
0
Comment actions Permalink

Hello,

  If this doesn't work, you really need to send TeamCity service messages to change the status description of the build, as described in our docs.

  Or you can try report your tests individually, one-by-one, using echo command, as described here.

  Regards,
  KIR

0
Comment actions Permalink

KIR,

       I have no idea about how to access the html files/xml files from the msbuild script. Could you please let me know how to process the xml files from msbuild script


Thanks in Advance
Kiran

0
Comment actions Permalink

I've checked the logs and found out that produced XML file does not seem to be an NUnit report.
Xml reporting plugin reported malformed xml report failed too.

Could you please check this xml file creation

0
Comment actions Permalink

You may consider using TeamCity addin for NUnit, have a look to documentation of it at
http://www.jetbrains.net/confluence/display/TCD4/TeamCity+NUnit+Test+Launcher

Thanks!

0
Comment actions Permalink

Eugene,

               Thanks for your reply. Currently we are using 3rd party test framework for execution of the test cases , but teamcity doesn't supports that test-framework.So, we are invoking the 3rd test-framwork and executing some n number of test cases under single nunit testcase. The 3rd party test framework can able to export the results to an xml file. Now we manually converting the xml file to a html file and these are treated as a build artifacts and publishing the html file as a separte tab in the results page of the teamcity. But, i want to publish the test-summary information to teamcity.

In the previous thread, KIR has suggested to import the xml files to teamcity. So i have done that trick, but it doesn't work for me.  I folllowed your suggestion, if i export the  nunit test results to an xml files. The xml file contains the information about the nunit test case information, not the 3rd party test-cases information.

Please let me know "how to get the test summary information and how to send it to teamcity server".I think, we need to access and process the build artifacts (i.e xml files ) for getting the test-summary information. Please let me know the procedure for accessing the test-summary information.

0
Comment actions Permalink

The right way to integrate custom test runing tool is to use TeamCity service messages.
http://www.jetbrains.net/confluence/display/TCD4/Build+Script+Interaction+with+TeamCity

You may update you html report generator to print teamcity service message to console.

Integrating with NUnit would not provide a good result, because you do not have one-to-one mapping
between a 3-rd party unit test and NUnit test.

0

Please sign in to leave a comment.