4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <xsl:template match="testsuites">
8 <title> gTest Report - <xsl:value-of select="@name"/> </title>
11 <body bgcolor="#e0e0f0">
13 <h3 style="border: #008fd5 3px solid">
14 <b> gTest Report - <xsl:value-of select="@name"/> </b>
18 <table cols="5" width="90%" align="center">
19 <tr bgcolor="#9573bd">
21 <strong>Unit-test Summary</strong>
25 <tr bgcolor="#f0e0f0" >
26 <td width="30%" style="background-color: #32cd32"> Success APIs </td>
27 <td width="20%" style="background-color: #32cd32"> <xsl:value-of select="@successAPIs"/> </td>
28 <td width="50%" style="background-color: #32cd32"> success : <xsl:value-of select="@success"/> </td>
30 <tr bgcolor="#f0e0f0" >
31 <td width="30%" style="background-color: #ff9090"> Failure APIs </td>
32 <td width="20%" style="background-color: #ff9090"> <xsl:value-of select="@failureAPIs"/> </td>
33 <td width="50%" style="background-color: #ff9090"> failures : <xsl:value-of select="@failures"/>, disabled : <xsl:value-of select="@disabled"/>, errors : <xsl:value-of select="@errors"/> </td>
35 <tr bgcolor="#f0e0f0" >
36 <td width="30%" style="background-color: #ba8759"> Total APIs </td>
37 <td width="20%" style="background-color: #ba8759"> <xsl:value-of select="@testAPIs"/> </td>
38 <td width="50%" style="background-color: #ba8759"> total tests : <xsl:value-of select="@tests"/>, time : <xsl:value-of select="@time"/> sec </td>
42 <td colspan="4" style="background-color: #e0e0f0">
48 <hr align="center" width="90%" color="maroon" />
50 <table cols="4" width="90%" align="center">
52 <td colspan="4" style="background-color: #e0e0f0">
56 <tr bgcolor="#9573bd">
57 <td colspan="4"><strong>Result Details</strong></td>
60 <td width="25%"> </td>
61 <td width="25%"> </td>
62 <td width="25%"> </td>
63 <td width="25%"> </td>
65 <xsl:apply-templates/>
68 <hr align="center" width="90%" color="maroon" />
73 <xsl:template match="testsuite">
75 <td colspan="4" style="background-color: #e0e0f0">
79 <tr bgcolor="#8db0d1">
91 <xsl:apply-templates/>
92 <tr bgcolor="#ffffc0">
94 tests: <xsl:value-of select="@tests"/>
97 disabled: <xsl:value-of select="@disabled"/>
100 failures: <xsl:value-of select="@failures"/>
103 errors: <xsl:value-of select="@errors"/>
108 <xsl:template match="testcase">
109 <tr bgcolor="#e0f0d0">
110 <td colspan="2"> <xsl:value-of select="substring-after(@classname, 'utc_blink_')"/></td>
112 <xsl:value-of select="@name"/>
115 <xsl:when test="child::*">
116 <td bgcolor="#ff5050"> Failed </td>
119 <td bgcolor="#50ff50"> Passed </td>
123 <xsl:apply-templates/>
126 <xsl:template match="failure">
127 <tr><td colspan="4" bgcolor="#ff9090">
130 <th width="15%"> File Name </th>
131 <td width="50%" bgcolor="#e0eee0">
132 <xsl:value-of select="substring-before(.,':')"/>
134 <th width="20%"> Line Number </th>
135 <td width="10%" bgcolor="#e0eee0">
136 <xsl:value-of select='substring-after(substring-before(.,"
"),":")'/>
140 <th width="15%"> message </th>
141 <td colspan="3" width="85%" bgcolor="#e0eee0">
142 <xsl:value-of select="@message"/>