1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
5
<title>Example tests</title>
6
<meta name="generator" content="HTMLTestRunner 0.8.2"/>
7
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
9
<style type="text/css" media="screen">
10
body { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
11
table { font-size: 100%; }
14
/* -- heading ---------------------------------------------------------------------- */
29
.heading .description {
34
/* -- css div popup ------------------------------------------------------------------------ */
47
/*border: solid #627173 1px; */
49
background-color: #E6E6D6;
50
font-family: "Lucida Console", "Courier New", Courier, monospace;
57
/* -- report ------------------------------------------------------------------------ */
64
border-collapse: collapse;
65
border: 1px solid #777;
70
background-color: #777;
73
border: 1px solid #777;
76
#total_row { font-weight: bold; }
77
.passClass { background-color: #6c6; }
78
.failClass { background-color: #c60; }
79
.errorClass { background-color: #c00; }
80
.passCase { color: #6c6; }
81
.failCase { color: #c60; font-weight: bold; }
82
.errorCase { color: #c00; font-weight: bold; }
83
.hiddenRow { display: none; }
84
.testcase { margin-left: 2em; }
87
/* -- ending ---------------------------------------------------------------------- */
95
<script language="javascript" type="text/javascript"><!--
96
output_list = Array();
98
/* level - 0:Summary; 1:Failed; 2:All */
99
function showCase(level) {
100
trs = document.getElementsByTagName("tr");
101
for (var i = 0; i < trs.length; i++) {
104
if (id.substr(0,2) == 'ft') {
106
tr.className = 'hiddenRow';
112
if (id.substr(0,2) == 'pt') {
117
tr.className = 'hiddenRow';
124
function showClassDetail(cid, count) {
125
var id_list = Array(count);
127
for (var i = 0; i < count; i++) {
128
tid0 = 't' + cid.substr(1) + '.' + (i+1);
130
tr = document.getElementById(tid);
133
tr = document.getElementById(tid);
140
for (var i = 0; i < count; i++) {
143
document.getElementById('div_'+tid).style.display = 'none'
144
document.getElementById(tid).className = 'hiddenRow';
147
document.getElementById(tid).className = '';
153
function showTestDetail(div_id){
154
var details_div = document.getElementById(div_id)
155
var displayState = details_div.style.display
156
// alert(displayState)
157
if (displayState != 'block' ) {
158
displayState = 'block'
159
details_div.style.display = 'block'
162
details_div.style.display = 'none'
167
function html_escape(s) {
168
s = s.replace(/&/g,'&');
169
s = s.replace(/</g,'<');
170
s = s.replace(/>/g,'>');
174
/* obsoleted by detail in <div>
175
function showOutput(id, name) {
176
var w = window.open("", //url
178
"resizable,scrollbars,status,width=800,height=450");
181
d.write(html_escape(output_list[id]));
183
d.write("<a href='javascript:window.close()'>close</a>\n");
190
<div class='heading'>
191
<h1>Example tests</h1>
192
<p class='attribute'><strong>Start Time:</strong> 2014-10-10 09:40:50</p>
193
<p class='attribute'><strong>Duration:</strong> 0:00:23.213288</p>
194
<p class='attribute'><strong>Status:</strong> Pass 5</p>
196
<p class='description'>A suite of tests that permit to test PyUnit class</p>
201
<p id='show_detail_line'>Show
202
<a href='javascript:showCase(0)'>Summary</a>
203
<a href='javascript:showCase(1)'>Failed</a>
204
<a href='javascript:showCase(2)'>All</a>
206
<table id='result_table'>
209
<col align='right' />
210
<col align='right' />
211
<col align='right' />
212
<col align='right' />
213
<col align='right' />
216
<td>Test Group/Test case</td>
224
<tr class='passClass'>
225
<td>test_0010_account.AccountTest</td>
230
<td><a href="javascript:showClassDetail('c1',1)">Detail</a></td>
233
<tr id='pt1.1' class='hiddenRow'>
234
<td class='none'><div class='testcase'>test_010_coa: Check Chart of Account length</div></td>
235
<td colspan='5' align='center'>pass</td>
238
<tr class='passClass'>
239
<td>test_0100_invoice.InvoiceTest</td>
244
<td><a href="javascript:showClassDetail('c2',2)">Detail</a></td>
247
<tr id='pt2.1' class='hiddenRow'>
248
<td class='none'><div class='testcase'>test_010_supplier_invoice</div></td>
249
<td colspan='5' align='center'>pass</td>
252
<tr id='pt2.2' class='hiddenRow'>
253
<td class='none'><div class='testcase'>test_020_purchase_order_invoice</div></td>
254
<td colspan='5' align='center'>pass</td>
257
<tr class='passClass'>
258
<td>test_0150_mass_reallocation.MassReallocationTest</td>
263
<td><a href="javascript:showClassDetail('c3',1)">Detail</a></td>
266
<tr id='pt3.1' class='hiddenRow'>
267
<td class='none'><div class='testcase'>test_010_fp_changes</div></td>
268
<td colspan='5' align='center'>pass</td>
271
<tr class='passClass'>
272
<td>test_0202_resourcing_ir.ResourcingIRTest</td>
277
<td><a href="javascript:showClassDetail('c4',1)">Detail</a></td>
280
<tr id='pt4.1' class='hiddenRow'>
281
<td class='none'><div class='testcase'>test_uf_2507</div></td>
282
<td colspan='5' align='center'>pass</td>
295
<div id='ending'> </div>