-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport-example.php
More file actions
169 lines (108 loc) · 3.84 KB
/
report-example.php
File metadata and controls
169 lines (108 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
$html = '
<html>
<head>
<title>Selenate Test Results</title>
<style type="text/css">
.test-results-header {
}
.test-result-table {
border: 1px solid black;
width: 800px;
}
.test-result-table-header-cell {
border-bottom: 1px solid black;
background-color: silver;
}
.test-result-step-command-cell {
border-bottom: 1px solid gray;
}
.test-result-step-description-cell {
border-bottom: 1px solid gray;
}
.test-result-step-result-cell-ok {
border-bottom: 1px solid gray;
background-color: green;
}
.test-result-step-result-cell-failure {
border-bottom: 1px solid gray;
background-color: red;
}
.test-result-step-result-cell-notperformed {
border-bottom: 1px solid gray;
background-color: white;
}
.test-result-describe-cell {
background-color: tan;
font-style: italic;
}
.test-result-step-row {
}
.test-result-comment-row {
}
.test-result-step-row-altone {
/* background-color: white; */
}
.test-result-step-row-alttwo {
/* background-color: cadetblue; */
}
.test-cast-status-box-ok {
border: 1px solid black;
float: left;
margin-right: 10px;
width: 45px;
height: 25px;
background-color: green;
}
</style>
</head>
<body>
<h1 class="test-results-header">Selenate Test Results (2010-Sep-01)</h1>
<h2 class="test-result-name"><div class="test-cast-status-box-ok"> </div> Test Case: Something or Another (12437ms)</h2>
<table class="test-result-table" cellspacing="0">
<thead>
<tr>
<td class="test-result-table-header-cell">Selenium Step</td>
<td class="test-result-table-header-cell">Description</td>
<td class="test-result-table-header-cell">Result</td>
</tr>
</thead>
<tbody>
<tr class="test-result-step-row test-result-step-row-altone">
<td class="test-result-step-command-cell">open /</td>
<td class="test-result-step-description-cell">Open browser to "/"</td>
<td class="test-result-step-result-cell-ok">OK</td>
</tr>
<tr class="test-result-step-row test-result-comment-row">
<td class="test-result-describe-cell" colspan="3">Describe: This is a comment</td>
</tr>
<tr class="test-result-step-row test-result-step-row-alttwo">
<td class="test-result-step-command-cell">click btnG</td>
<td class="test-result-step-description-cell">Click on page element with identifier of "btnG"</td>
<td class="test-result-step-result-cell-failure">FAILURE - Unable to find element named "btnG"</td>
</tr>
<tr class="test-result-step-row test-result-step-row-altone">
<td class="test-result-step-command-cell">assertTitle something</td>
<td class="test-result-step-description-cell">Test that the title of the page is "something"</td>
<td class="test-result-step-result-cell-notperformed">NOT PERFORMED</td>
</tr>
</tbody>
</table>
</body>
</html>
';
//==============================================================
//==============================================================
//==============================================================
include("mpdf.php");
$mpdf=new mPDF();
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
//==============================================================
//==============================================================
//==============================================================
?>