test_result.mako 2.34 KB
Newer Older
1 2 3 4 5 6 7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//END"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>${testname} - Details</title>
8
    <link rel="stylesheet" href="${css}" type="text/css" />
9 10 11 12 13
  </head>
  <body>
    <h1>Results for ${testname}</h1>
    <h2>Overview</h2>
    <div>
14
      <p><b>Result:</b> ${value.result}</p>
15
    </div>
16
    <p><a href="${index}">Back to summary</a></p>
17 18 19 20 21 22 23 24
    <h2>Details</h2>
    <table>
      <tr>
        <th>Detail</th>
        <th>Value</th>
      </tr>
      <tr>
        <td>Returncode</td>
25
        <td>${value.returncode}</td>
26 27 28
      </tr>
      <tr>
        <td>Time</td>
29
        <td>${value.time.delta}</b>
30
      </tr>
31
    % if value.images:
32
      <tr>
33
        <td>Images</td>
34
        <td>
35 36 37 38 39 40 41 42 43 44 45 46 47 48
          <table>
            <tr>
              <td/>
              <td>reference</td>
              <td>rendered</td>
            </tr>
          % for image in images:
            <tr>
              <td>${image['image_desc']}</td>
              <td><img src="file://${image['image_ref']}" /></td>
              <td><img src="file://${image['image_render']}" /></td>
            </tr>
          % endfor
          </table>
49 50
        </td>
      </tr>
51 52 53 54
    % endif
      <tr>
        <td>Stdout</td>
        <td>
55
          <pre>${value.out | h}</pre>
56 57 58 59 60
        </td>
      </tr>
      <tr>
        <td>Stderr</td>
        <td>
61
          <pre>${value.err | h}</pre>
62 63
        </td>
      </tr>
64
    % if value.environment:
65 66 67
      <tr>
        <td>Environment</td>
        <td>
68
          <pre>${value.environment | h}</pre>
69 70
        </td>
      </tr>
71
    % endif
72 73 74
      <tr>
        <td>Command</td>
        <td>
75
          </pre>${value.command}</pre>
76 77
        </td>
      </tr>
78 79 80 81 82 83 84 85
    % if value.exception:
      <tr>
        <td>Exception</td>
        <td>
          <pre>${value.exception | h}</pre>
        </td>
      </tr>
    % endif
86
    % if value.traceback:
87 88 89
      <tr>
        <td>Traceback</td>
        <td>
90
          <pre>${value.traceback | h}</pre>
91 92
        </td>
      </tr>
93
    % endif
94 95 96
      <tr>
        <td>dmesg</td>
        <td>
97
          <pre>${value.dmesg | h}</pre>
98 99
        </td>
      </tr>
100
    </table>
101
    <p><a href="${index}">Back to summary</a></p>
102 103
  </body>
</html>