test/test-automation/style.xsl
author Markus Kauppila <markus.kauppila@gmail.com>
Sun, 03 Jul 2011 19:21:35 +0300
changeset 5739 be70f1dfd7aa
parent 5727 390fdae0a318
child 5748 91a7152856f3
permissions -rw-r--r--
Fixed white space issue in XSL stylesheet.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="ISO-8859-1"?>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     2
<xsl:stylesheet version="1.0" 
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     3
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     4
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     5
<xsl:template match="/">
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     6
	
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     7
<html>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     8
<head>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
     9
<title>Test report</title>
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    10
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    11
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"/>
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    12
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    13
<script type="text/javascript">
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    14
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    15
var hideTests = '[Hide tests]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    16
var showTests = '[Show tests]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    17
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    18
var hideAsserts = '[Hide Assert Summary]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    19
var showAsserts = '[Show Assert Summary]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    20
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    21
var hideAllTests = '[Hide All Tests]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    22
var showAllTests = '[Show All Tests]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    23
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    24
var hideEverything = '[Hide Everything]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    25
var showEverything = '[Show Everything]';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    26
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    27
var animationSpeed = 'fast';
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    28
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    29
$(document).ready(function() {
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    30
	$("span.show-tests").click(function() {
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    31
		var content = $(this).html();
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    32
		var id = $(this).attr('uid');
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    33
		var searchString = "div.tests[uid="+id+"]";
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    34
	
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    35
		if(content == hideTests) {
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    36
			$(searchString).hide(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    37
			$(this).text(showTests);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    38
		} else {
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    39
			$(searchString).show(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    40
			$(this).text(hideTests);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    41
		}
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    42
	});
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    43
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    44
	$("span.show-asserts").click(function() {
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    45
		var content = $(this).html();
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    46
		var id = $(this).attr('uid');
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    47
		var searchString = "div.asserts[uid="+id+"]";
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    48
		
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    49
		if(content == hideAsserts) {
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    50
			$(searchString).hide(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    51
			$(this).text(showAsserts);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    52
		} else {
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    53
			$(searchString).show(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    54
			$(this).text(hideAsserts);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    55
		}
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    56
	});
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    57
	
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    58
	$("span.show-all-tests").click(function() {
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    59
		var content = $(this).html();
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    60
		var searchString = "div.tests";
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    61
		
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    62
		if(content == hideAllTests) {
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    63
			$(searchString).hide(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    64
			$(this).text(showAllTests);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    65
			
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    66
			/* handle the individual '[show tests]' switcher */
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    67
			$("span.show-tests[uid]").text(showTests);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    68
		} else {
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    69
			$(searchString).show(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    70
			$(this).text(hideAllTests);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    71
			
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    72
			/* handle the individual '[show tests]' switcher */
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    73
			$("span.show-tests[uid]").text(hideTests);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    74
		}
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    75
	});
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    76
	
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    77
	$("span.show-everything").click(function() {
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    78
		var content = $(this).html();
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    79
		var searchString = "div.tests";
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    80
		
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    81
		if(content == hideEverything) {
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    82
			$("div.tests").hide(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    83
			$("div.asserts").hide(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    84
			$(this).text(showEverything);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    85
			
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    86
			/* handle the individual switchers */
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    87
			$("span.show-tests[uid]").text(showTests);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    88
			$("span.show-asserts[uid]").text(showAsserts);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    89
		} else {
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    90
			$("div.tests").show(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    91
			$("div.asserts").show(animationSpeed);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    92
			$(this).text(hideEverything);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    93
			
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    94
			/* handle the individual switchers */
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    95
			$("span.show-tests[uid]").text(hideTests);
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
    96
			$("span.show-asserts[uid]").text(hideAsserts);
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    97
		}
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    98
	});
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
    99
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   100
	/* Initially everything is hidden */
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   101
	$("div.tests").hide();
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   102
	$("div.asserts").hide();
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   103
	
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   104
	/* Color the tests based on the result */
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   105
	$("div.test[result='passed']").addClass('passed');
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   106
	$("div.test[result='failed']").addClass('failed');
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   107
	
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   108
	/* Color the asserts based on the result */
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   109
	$("div.assert[result='pass']").addClass('passed');
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   110
	$("div.assert[result='failure']").addClass('failed');
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   111
});
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   112
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   113
</script>
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   114
<style>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   115
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   116
div, h1 {
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   117
  padding: 3px 10px 2px 10px;
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   118
  margin: 5px 0px 5px 0px;
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   119
}
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   120
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   121
.document {
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   122
  font-family: Arial;
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   123
  font-size: 11pt;
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   124
  background-color: #EDEDED;
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   125
}
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   126
	
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   127
.description {
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   128
  font-style: italic;
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   129
}	
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   130
	
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   131
.bigtitle {
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   132
  font-size: 14pt;
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   133
  font-weight: bold;
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   134
}
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   135
	
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   136
.title {
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   137
  font-weight: bold;
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   138
}
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   139
	
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   140
.switch {
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   141
  font-style: italic;
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   142
  color: rgb(10, 10, 200); /*#024A68;*/
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   143
  font-size: 10pt;
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   144
  cursor: pointer;
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   145
}	
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   146
	
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   147
.passed {
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   148
 background-color: #64AA2B;
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   149
}
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   150
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   151
.failed {
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   152
 background-color: #FF6E40;
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   153
}
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   154
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   155
</style>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   156
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   157
</head>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   158
<body class="document">
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   159
  <h1>Test Report</h1>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   160
  <div>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   161
    <span class="title">Start time: </span><xsl:value-of select="testlog/startTime"/><br/>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   162
    <!-- and ended at <xsl:value-of select="testlog/endTime"/>.<br/>-->
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   163
    <span class="title">Total runtime: </span><xsl:value-of select="testlog/totalRuntime"/> seconds.<br/>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   164
    <span class="title">Harness parameters: </span>
5739
be70f1dfd7aa Fixed white space issue in XSL stylesheet.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5727
diff changeset
   165
	<span xml:space="preserve">
be70f1dfd7aa Fixed white space issue in XSL stylesheet.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5727
diff changeset
   166
      <xsl:for-each select="testlog/parameters/parameter">
be70f1dfd7aa Fixed white space issue in XSL stylesheet.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5727
diff changeset
   167
        <xsl:value-of select="."/> 	 
be70f1dfd7aa Fixed white space issue in XSL stylesheet.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5727
diff changeset
   168
      </xsl:for-each>
be70f1dfd7aa Fixed white space issue in XSL stylesheet.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5727
diff changeset
   169
    </span>
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   170
	<br/>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   171
    <span class="title">Statistics:</span><br/>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   172
    <div class="statistics">
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   173
      <span>Executed </span> <xsl:value-of select="testlog/numSuites"/> test suites. <br/>
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   174
      <span>Tests in total: </span> <xsl:value-of select="testlog/numTests"/> (passed: <xsl:value-of select="testlog/numPassedTests"/>, failed: <xsl:value-of select="testlog/numFailedTests"/>)
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   175
    </div>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   176
  </div>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   177
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   178
  <div>
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   179
	<br/>
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   180
	<span class="bigtitle">Test Results</span><br/>
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   181
    <span class="switch show-all-tests">[Show All Tests] </span> | 
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   182
    <span class="switch show-everything">[Show Everything]</span>
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   183
  </div>
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   184
	<br/>
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   185
	
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   186
  <xsl:for-each select="testlog/suite">
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   187
    <div id="suite">
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   188
    Suite: <span class="title"> <xsl:value-of select="name"/></span> (<xsl:value-of select="startTime"/>)
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   189
	<div class="suiteInfo">
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   190
		Tests: passed <xsl:value-of select="testsPassed"/>, failed <xsl:value-of select="testsFailed"/>, skipped <xsl:value-of select="testsSkipped"/>.<br/>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   191
		Total runtime: <xsl:value-of select="totalRuntime"/> seconds. <br/>
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   192
		<span class="show-tests switch" uid="{generate-id(test)}">[Show tests]</span>
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   193
        <div class="tests" uid="{generate-id(test)}">
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   194
	      <xsl:for-each select="test">
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   195
			<div class="test">
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   196
			  <xsl:attribute name="result">
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   197
			    <xsl:value-of select="result"/>
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   198
	          </xsl:attribute>
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   199
		      
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   200
		      Name:  <xsl:value-of select="name"/> (<xsl:value-of select="startTime"/>  - <xsl:value-of select="endTime"/>  ) <br/>
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   201
		      Description: <span class="description"> <xsl:value-of select="description"/> </span><br/> 
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   202
		
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   203
	          Total runtime: <xsl:value-of select="totalRuntime"/> seconds  <br/>
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   204
		      Result: <xsl:value-of select="result"/>  <br/>
5725
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   205
		      
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   206
		      <span class="switch show-asserts" uid="{generate-id(assertSummary)}">[Show Assert Summary]</span><br/>
077778dd80bd Added some interactivity to XSLT stylesheet using javascript.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5723
diff changeset
   207
			  <div class="asserts" uid="{generate-id(assertSummary)}">
5727
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   208
		        <xsl:for-each select="assert"> 
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   209
			      <div class="assert">
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   210
  			        <xsl:attribute name="result">
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   211
				      <xsl:value-of select="result"/>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   212
				    </xsl:attribute>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   213
		            Assert name: <xsl:value-of select="name"/> <br/>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   214
		            Result: <xsl:value-of select="result"/> <br/>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   215
		            Message <xsl:value-of select="message"/> <br/>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   216
		            Time <xsl:value-of select="time"/> <br/>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   217
		          </div>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   218
		        </xsl:for-each>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   219
		        AssertSummary:
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   220
		        Assert count: <xsl:value-of select="assertSummary/assertCount"/> <br/>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   221
		        Asserts Passed <xsl:value-of select="assertSummary/assertsPassed"/> <br/>
390fdae0a318 Cleaned the XSL style a bit.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5726
diff changeset
   222
		        Asserts Failed <xsl:value-of select="assertSummary/assertsFailed"/> <br/>
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   223
		      </div>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   224
    		</div>
5726
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   225
		  </xsl:for-each>
6e82c70f9c83 Refined the XSL style.
Markus Kauppila <markus.kauppila@gmail.com>
parents: 5725
diff changeset
   226
	    </div>
5723
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   227
	</div>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   228
  </div>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   229
  </xsl:for-each>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   230
  <br/>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   231
</body>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   232
</html>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   233
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   234
</xsl:template>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   235
</xsl:stylesheet>
7c6e8be702c1 Added plain XLST file.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff changeset
   236