| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2008 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> |
| <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> |
| |
| <xsl:template match="/"> |
| |
| <html> |
| <STYLE type="text/css"> |
| @import "cts_result.css"; |
| </STYLE> |
| |
| <body> |
| <!-- Title of the Report --> |
| <DIV id="title"> |
| <TABLE> |
| <TR> |
| <TD width="40%" align="left"><img src="logo.gif"></img></TD> |
| <TD width="60%" align="left"> |
| <h1>Test Report for <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@buildName"/> - |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@deviceID"/> |
| </h1> |
| </TD> |
| </TR> |
| </TABLE> |
| </DIV> |
| <img src="newrule-green.png" align="left"></img> |
| |
| <br></br> |
| <br></br> |
| |
| <!-- Header with phone and plan information --> |
| <DIV id="summary"> |
| <TABLE width="90%" frame="none"> |
| <TR> |
| <TH>Device Information</TH> |
| <TH>Test Summary</TH> |
| </TR> |
| |
| <TR> |
| <TD> |
| <!-- Device information --> |
| <div id="summaryinfo"> |
| <TABLE width="75%"> |
| <TR> |
| <TD class="rowtitle">Device Make</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@buildName"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Build model</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@deviceID"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Firmware Version</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@buildVersion"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Firmware Build Number</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@buildID"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Android Platform Version</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@androidPlatformVersion"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Supported Locales</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@locales"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Screen size</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/Screen/@resolution"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Phone number</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/PhoneSubInfo/@subscriberId"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">x dpi</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@Xdpi"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">y dpi</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@Ydpi"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Touch</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@touch"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Navigation</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@navigation"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Keypad</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@keypad"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Network</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@network"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">IMEI</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@imei"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">IMSI</TD> |
| <TD> |
| <xsl:value-of select="TestResult/DeviceInfo/BuildInfo/@imsi"/> |
| </TD> |
| </TR> |
| </TABLE> |
| </div> |
| </TD> |
| |
| <!-- plan information --> |
| <TD> |
| <div id="summaryinfo"> |
| <TABLE width="75%"> |
| <TR> |
| <TD class="rowtitle">Plan name</TD> |
| <TD> |
| <xsl:value-of select="TestResult/@testPlan"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Start time</TD> |
| <TD> |
| <xsl:value-of select="TestResult/@starttime"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">End time</TD> |
| <TD> |
| <xsl:value-of select="TestResult/@endtime"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Version</TD> |
| <TD> |
| <xsl:value-of select="TestResult/@version"/> |
| </TD> |
| </TR> |
| |
| <!-- Test Summary --> |
| <TR><TD><BR></BR></TD><TD></TD></TR> |
| <TR><TD><BR></BR></TD><TD></TD></TR> |
| <TR> |
| <TD class="rowtitle">Tests Passed</TD> |
| <TD> |
| <xsl:value-of select="TestResult/Summary/@pass"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Tests Failed</TD> |
| <TD> |
| <xsl:value-of select="TestResult/Summary/@failed"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Tests Timed out</TD> |
| <TD> |
| <xsl:value-of select="TestResult/Summary/@timeout"/> |
| </TD> |
| </TR> |
| <TR> |
| <TD class="rowtitle">Tests Not Executed</TD> |
| <TD> |
| <xsl:value-of select="TestResult/Summary/@notExecuted"/> |
| </TD> |
| </TR> |
| </TABLE> |
| </div> |
| </TD> |
| </TR> |
| </TABLE> |
| </DIV> |
| |
| <!-- High level summary of test execution --> |
| <h2 align="center">Test Summary by Package</h2> |
| <DIV id="testsummary"> |
| <TABLE> |
| <TR> |
| <TH>Test Package</TH> |
| <TH>Tests Passed</TH> |
| </TR> |
| <xsl:for-each select="TestResult/TestPackage"> |
| <TR> |
| <TD> <xsl:value-of select="@name"/> </TD> |
| <TD> |
| <xsl:value-of select="count(TestSuite//Test[@result = 'pass'])"/> / <xsl:value-of select="count(TestSuite//Test)"/> |
| </TD> |
| </TR> |
| </xsl:for-each> <!-- end package --> |
| </TABLE> |
| </DIV> |
| |
| <!-- Details of all the executed tests --> |
| <h2 align="center">Detailed Test Report</h2> |
| |
| <!-- test package --> |
| <DIV id="testdetail"> |
| <xsl:for-each select="TestResult/TestPackage"> |
| <DIV id="none"> |
| <TABLE> |
| <TR> |
| <TD class="none" align="left"> Compatibility Test Package: <xsl:value-of select="@name"/> </TD> |
| </TR> |
| </TABLE> |
| </DIV> |
| |
| <TABLE> |
| <TR> |
| <TH width="25%">Test</TH> |
| <TH width="5%">Result</TH> |
| <TH width="70%">Failure Details</TH> |
| </TR> |
| |
| <TR> |
| <TD class="testsuite">Suite: <xsl:for-each select=".//TestSuite"><xsl:value-of select="@name"/>.</xsl:for-each></TD> |
| <TD></TD> |
| <TD></TD> |
| </TR> |
| <!-- test case --> |
| <xsl:for-each select="TestSuite//TestCase"> |
| <TR> |
| <TD class="testcase"> - <xsl:value-of select="@name"/></TD> |
| <TD></TD> |
| <TD></TD> |
| </TR> |
| <!-- test --> |
| <xsl:for-each select="Test"> |
| <TR> |
| <TD class="testname"> -- <xsl:value-of select="@name"/></TD> |
| |
| <!-- test results --> |
| <xsl:if test="@result='pass'"> |
| <TD class="pass"> |
| <div style="text-align: center; margin-left:auto; margin-right:auto;"> |
| <xsl:value-of select="@result"/> |
| </div> |
| </TD> |
| </xsl:if> |
| |
| <xsl:if test="@result='fail'"> |
| <TD class="failed"> |
| <div style="text-align: center; margin-left:auto; margin-right:auto;"> |
| <xsl:value-of select="@result"/> |
| </div> |
| </TD> |
| </xsl:if> |
| |
| <xsl:if test="@result='timeout'"> |
| <TD class="timeout"> |
| <div style="text-align: center; margin-left:auto; margin-right:auto;"> |
| <xsl:value-of select="@result"/> |
| </div> |
| </TD> |
| </xsl:if> |
| |
| <xsl:if test="@result='notExecuted'"> |
| <TD class="notExecuted"> |
| <div style="text-align: center; margin-left:auto; margin-right:auto;"> |
| <xsl:value-of select="@result"/> |
| </div> |
| </TD> |
| </xsl:if> |
| |
| <TD class="failuredetails"> |
| <xsl:if test="@result='fail'"> |
| <div id="details"> |
| <xsl:value-of select="FailedScene/@message"/> |
| </div> |
| </xsl:if> |
| </TD> |
| </TR> |
| </xsl:for-each> <!-- end test --> |
| </xsl:for-each> <!-- end test case --> |
| </TABLE> |
| </xsl:for-each> <!-- end test package --> |
| </DIV> |
| |
| </body> |
| </html> |
| </xsl:template> |
| |
| |
| </xsl:stylesheet> |