1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method="html" version="1.0" encoding="UTF-8"
6 <xsl:template match="/">
8 <STYLE type="text/css">
9 @import "./style/tests.css";
12 <script type="text/javascript" src="./style/jquery.min.js" />
13 <script type="text/javascript" src="./style/popup.js" />
20 <h1 align="center">Suite Test Results</h1>
29 <a href="#" class="see_all">Show all</a>
32 <a href="#" class="see_failed">Show only failed</a>
35 <a href="#" class="see_blocked">Show only blocked</a>
38 <a href="#" class="see_na">Show only not executed</a>
41 <a href="summary.xml">Summary</a>
46 <div id="testcasepage">
49 <xsl:for-each select="test_definition/suite">
50 <xsl:sort select="@name" />
51 <div id="suite_title">
54 <xsl:value-of select="@name" />
58 <xsl:attribute name="name">
71 <xsl:for-each select=".//set">
72 <xsl:sort select="@name" />
75 <xsl:when test="@name">
79 <xsl:value-of select="@name" />
85 <xsl:attribute name="href"><xsl:value-of
86 select="@set_debug_msg" /></xsl:attribute>
96 <xsl:value-of select="@name" />
102 <xsl:for-each select=".//testcase">
103 <xsl:sort select="@id" />
107 style="background-color:#F5DEB3;border:1px solid black;display:none;">
108 <xsl:attribute name="id"><xsl:value-of
109 select="@id" /></xsl:attribute>
111 <xsl:for-each select="./description/steps//step">
112 <xsl:sort select="@order" />
115 <xsl:value-of select="@order" />
119 <xsl:value-of select=".//step_desc" />
122 <xsl:value-of select=".//expected" />
132 <xsl:value-of select="./description//test_script_entry" />
136 <a href="#" class="test_case_popup">
137 <xsl:attribute name="id"><xsl:value-of
138 select="@id" /></xsl:attribute>
139 <xsl:value-of select="@id" />
143 <xsl:value-of select="@purpose" />
147 <xsl:when test="@result">
148 <xsl:if test="@result = 'FAIL'">
149 <td class="red_rate">
150 <xsl:value-of select="@result" />
153 <xsl:if test="@result = 'PASS'">
154 <td class="green_rate">
155 <xsl:value-of select="@result" />
158 <xsl:if test="@result = 'BLOCK' ">
159 <td class="orange_rate">
164 test="@result != 'BLOCK' and @result != 'FAIL' and @result != 'PASS' ">
165 <td class="gray_rate">
177 <xsl:call-template name="br-replace">
178 <xsl:with-param name="word"
179 select=".//result_info/stderr" />
181 <xsl:if test=".//result_info/stderr = ''">
191 <div id="see_fail" style="display:none;">
192 <xsl:for-each select="test_definition/suite">
193 <xsl:sort select="@name" />
194 <div id="suite_title">
197 <xsl:value-of select="@name" />
201 <xsl:attribute name="name">
214 <xsl:for-each select=".//set">
215 <xsl:sort select="@name" />
218 <xsl:when test="@name">
222 <xsl:value-of select="@name" />
228 <xsl:attribute name="href"><xsl:value-of
229 select="@set_debug_msg" /></xsl:attribute>
239 <xsl:value-of select="@name" />
245 <xsl:for-each select=".//testcase[@result='FAIL']">
246 <xsl:sort select="@id" />
250 style="background-color:#F5DEB3;border:1px solid black;display:none;">
251 <xsl:attribute name="id">fail_<xsl:value-of
252 select="@id" /></xsl:attribute>
254 <xsl:for-each select="./description/steps//step">
255 <xsl:sort select="@order" />
258 <xsl:value-of select="@order" />
262 <xsl:value-of select=".//step_desc" />
265 <xsl:value-of select=".//expected" />
275 <xsl:value-of select="./description//test_script_entry" />
279 <a href="#" class="test_case_popup">
280 <xsl:attribute name="id">fail_<xsl:value-of
281 select="@id" /></xsl:attribute>
282 <xsl:value-of select="@id" />
286 <xsl:value-of select="@purpose" />
289 <td class="red_rate">
290 <xsl:value-of select="@result" />
293 <xsl:call-template name="br-replace">
294 <xsl:with-param name="word"
295 select=".//result_info/stderr" />
297 <xsl:if test=".//result_info/stderr = ''">
307 <div id="see_block" style="display:none;">
308 <xsl:for-each select="test_definition/suite">
309 <xsl:sort select="@name" />
310 <div id="suite_title">
313 <xsl:value-of select="@name" />
317 <xsl:attribute name="name">
330 <xsl:for-each select=".//set">
331 <xsl:sort select="@name" />
334 <xsl:when test="@name">
338 <xsl:value-of select="@name" />
344 <xsl:attribute name="href"><xsl:value-of
345 select="@set_debug_msg" /></xsl:attribute>
355 <xsl:value-of select="@name" />
361 <xsl:for-each select=".//testcase[@result='BLOCK']">
362 <xsl:sort select="@id" />
366 style="background-color:#F5DEB3;border:1px solid black;display:none;">
367 <xsl:attribute name="id">block_<xsl:value-of
368 select="@id" /></xsl:attribute>
370 <xsl:for-each select="./description/steps//step">
371 <xsl:sort select="@order" />
374 <xsl:value-of select="@order" />
378 <xsl:value-of select=".//step_desc" />
381 <xsl:value-of select=".//expected" />
391 <xsl:value-of select="./description//test_script_entry" />
395 <a href="#" class="test_case_popup">
396 <xsl:attribute name="id">block_<xsl:value-of
397 select="@id" /></xsl:attribute>
398 <xsl:value-of select="@id" />
402 <xsl:value-of select="@purpose" />
405 <td class="orange_rate">
406 <xsl:value-of select="@result" />
409 <xsl:call-template name="br-replace">
410 <xsl:with-param name="word"
411 select=".//result_info/stderr" />
413 <xsl:if test=".//result_info/stderr = ''">
423 <div id="see_na" style="display:none;">
424 <xsl:for-each select="test_definition/suite">
425 <xsl:sort select="@name" />
426 <div id="suite_title">
429 <xsl:value-of select="@name" />
433 <xsl:attribute name="name">
446 <xsl:for-each select=".//set">
447 <xsl:sort select="@name" />
450 <xsl:when test="@name">
454 <xsl:value-of select="@name" />
460 <xsl:attribute name="href"><xsl:value-of
461 select="@set_debug_msg" /></xsl:attribute>
471 <xsl:value-of select="@name" />
477 <xsl:for-each select=".//testcase[@result='N/A']">
478 <xsl:sort select="@id" />
482 style="background-color:#F5DEB3;border:1px solid black;display:none;">
483 <xsl:attribute name="id">na_<xsl:value-of
484 select="@id" /></xsl:attribute>
486 <xsl:for-each select="./description/steps//step">
487 <xsl:sort select="@order" />
490 <xsl:value-of select="@order" />
494 <xsl:value-of select=".//step_desc" />
497 <xsl:value-of select=".//expected" />
507 <xsl:value-of select="./description//test_script_entry" />
511 <a href="#" class="test_case_popup">
512 <xsl:attribute name="id">na_<xsl:value-of
513 select="@id" /></xsl:attribute>
514 <xsl:value-of select="@id" />
518 <xsl:value-of select="@purpose" />
521 <td class="gray_rate">
522 <xsl:value-of select="@result" />
525 <xsl:call-template name="br-replace">
526 <xsl:with-param name="word"
527 select=".//result_info/stderr" />
529 <xsl:if test=".//result_info/stderr = ''">
542 <img border="0" src="./style/back_top.png" />
544 <script type="text/javascript" src="./style/application.js" />
545 <script language="javascript" type="text/javascript">
546 $(document).ready(function(){
553 <xsl:template name="br-replace">
554 <xsl:param name="word" />
555 <xsl:variable name="cr">
556 <xsl:text>\n</xsl:text>
559 <xsl:when test="contains($word,$cr)">
560 <xsl:value-of select="substring-before($word,$cr)" />
562 <xsl:call-template name="br-replace">
563 <xsl:with-param name="word" select="substring-after($word,$cr)" />
567 <xsl:value-of select="$word" />