RTC Reports
Hi,
I'm running a build in RTC that runs Rhapsody ,VectorCast and Lint.
The problem is that i can't find a way to create a report that shows me the xml output that was created during the build by VectorCast and Lint.
What do i need to do?
do i need to install somehting for it?
Thank you,
Galit.
I'm running a build in RTC that runs Rhapsody ,VectorCast and Lint.
The problem is that i can't find a way to create a report that shows me the xml output that was created during the build by VectorCast and Lint.
What do i need to do?
do i need to install somehting for it?
Thank you,
Galit.
8 answers
Hi Galit,
With base RTC Build, we support various test frameworks: JUnit, MSTest, CPPTest and NUnit. I'm not aware of any RTC extensions directly supporting the other tools you mention.
You can use the logPublisher Ant task to publish the XML file to the build result. If you're able to determine the overall success/failure status based on the log, that can be specified when uploading the log, which will be reflected in the overall build status.
Another option is to use XSLT to transform the log files into the form we expect for JUnit or one of the other supported tools. For example, see:
http://jazz.net/forums/viewtopic.php?t=9173
With base RTC Build, we support various test frameworks: JUnit, MSTest, CPPTest and NUnit. I'm not aware of any RTC extensions directly supporting the other tools you mention.
You can use the logPublisher Ant task to publish the XML file to the build result. If you're able to determine the overall success/failure status based on the log, that can be specified when uploading the log, which will be reflected in the overall build status.
Another option is to use XSLT to transform the log files into the form we expect for JUnit or one of the other supported tools. For example, see:
http://jazz.net/forums/viewtopic.php?t=9173
Hi,
I'm running RTC build not with ant commands, but with command line that runs a Final Builder project (in the project i'm running Rhapsody , VectorCast and Lint).
When finishing the build in the artifact directory i'm getting xml outputs
from VectorCast and Lint.
I'm sorry but i still don't understand how can i create a report
out of these outputs?
Thank you,
Galit Levin.
I'm running RTC build not with ant commands, but with command line that runs a Final Builder project (in the project i'm running Rhapsody , VectorCast and Lint).
When finishing the build in the artifact directory i'm getting xml outputs
from VectorCast and Lint.
I'm sorry but i still don't understand how can i create a report
out of these outputs?
Thank you,
Galit Levin.
Can you post an example XML file from one of these tools? We could help craft an XSLT to transform it into a format we support. Be sure to check 'Disable HTML in this post' or the forum software will lose the content between tags (also note that this setting gets lost if you use Preview).
The Ant tasks to publish the data could be invoked from your command line script, which we could help with too.
The Ant tasks to publish the data could be invoked from your command line script, which we could help with too.
Hi,
I posted an example of VectorCast output.
I want to present in the report the contents of TestCaseHtmlFile and totalpass.
It will be great if you can show me how to publish the data from command line.
Thank you,
Galit Levin.
<?xml version="1.0" encoding="UTF-8" ?>
- <testcase_data xml_testcase_version="1.0">
<Share>\\COMPUTER_NAME\Builds\Project2\2010\05\16_164048\Calculator2Multiply\CALCULATOR_management_report.html</Share>
<Share1>\\COMPUTER_NAME\Builds\Project2\2010\05\16_164048\Calculator2Multiply\CALCULATOR_management_report.html</Share1>
<TestCaseHtmlFile>CALCULATOR_management_report.html</TestCaseHtmlFile>
<totalpass>1 / 1</totalpass>
- <compound>
<name><<COMPOUND>></name>
</compound>
- <init>
<name><<INIT>></name>
</init>
- <unit index="9" coverage_type="STATEMENT">
<name>Calculator</name>
- <subprogram index="1">
<name>(cl)Calculator::Calculator</name>
</subprogram>
- <subprogram index="2">
<name>(cl)Calculator::~Calculator</name>
</subprogram>
- <subprogram index="3">
<name>(cl)Calculator::Multiply</name>
- <testcase index="1">
<name>(CL)CALCULATOR::MULTIPLY.001</name>
<command_file>C-000001.DAT</command_file>
- <creation_date>
<month>5</month>
<day>16</day>
<year>2010</year>
</creation_date>
- <creation_time>
<hour>4</hour>
<minute>41</minute>
<seconds>50</seconds>
<ampm>PM</ampm>
</creation_time>
- <execution_date>
<month>5</month>
<day>16</day>
<year>2010</year>
</execution_date>
- <execution_time>
<hour>4</hour>
<minute>41</minute>
<seconds>51</seconds>
<ampm>PM</ampm>
</execution_time>
- <results>
<pass>1</pass>
<total>1</total>
</results>
</testcase>
</subprogram>
</unit>
</testcase_data>
I posted an example of VectorCast output.
I want to present in the report the contents of TestCaseHtmlFile and totalpass.
It will be great if you can show me how to publish the data from command line.
Thank you,
Galit Levin.
<?xml version="1.0" encoding="UTF-8" ?>
- <testcase_data xml_testcase_version="1.0">
<Share>\\COMPUTER_NAME\Builds\Project2\2010\05\16_164048\Calculator2Multiply\CALCULATOR_management_report.html</Share>
<Share1>\\COMPUTER_NAME\Builds\Project2\2010\05\16_164048\Calculator2Multiply\CALCULATOR_management_report.html</Share1>
<TestCaseHtmlFile>CALCULATOR_management_report.html</TestCaseHtmlFile>
<totalpass>1 / 1</totalpass>
- <compound>
<name><<COMPOUND>></name>
</compound>
- <init>
<name><<INIT>></name>
</init>
- <unit index="9" coverage_type="STATEMENT">
<name>Calculator</name>
- <subprogram index="1">
<name>(cl)Calculator::Calculator</name>
</subprogram>
- <subprogram index="2">
<name>(cl)Calculator::~Calculator</name>
</subprogram>
- <subprogram index="3">
<name>(cl)Calculator::Multiply</name>
- <testcase index="1">
<name>(CL)CALCULATOR::MULTIPLY.001</name>
<command_file>C-000001.DAT</command_file>
- <creation_date>
<month>5</month>
<day>16</day>
<year>2010</year>
</creation_date>
- <creation_time>
<hour>4</hour>
<minute>41</minute>
<seconds>50</seconds>
<ampm>PM</ampm>
</creation_time>
- <execution_date>
<month>5</month>
<day>16</day>
<year>2010</year>
</execution_date>
- <execution_time>
<hour>4</hour>
<minute>41</minute>
<seconds>51</seconds>
<ampm>PM</ampm>
</execution_time>
- <results>
<pass>1</pass>
<total>1</total>
</results>
</testcase>
</subprogram>
</unit>
</testcase_data>
Is that also true for individual test cases, e.g. would a test case failure be expressed as:
In the event of a failure, does the testcase carry extra information, such as the stack trace at the point of failure? If so, how is this represented?
<testcase>
...
<results>
<pass>0</pass>
<total>1</total>
</results>
</testcase>
In the event of a failure, does the testcase carry extra information, such as the stack trace at the point of failure? If so, how is this represented?