summary.html 2.96 KiB
<!DOCTYPE html>
<html>
<head>
    <title>测试结果汇总</title>
    <style>
        table,table tr th,table tr td {
            border:1px solid #ccc;
            border-collapse: collapse;
			color: #669;
			padding: 6px 8px;
            font-size: 14px;
        table caption {
			font-size: 14px;
			color: #039;
			text-align: left;
            margin-top: 10px;
			margin-bottom: -10px;
            margin-left: -10px;
        .fail {
            color: red;
			width: 7em;
			text-align: center;
        .success {
            color: green;
			width: 7em;
			text-align: center;
		.details-col-elapsed {
			width: 7em;
			text-align: center;
		.details-col-msg {
			width: 7em;
			text-align: center;
			background-color:#ccc;
    </style>
</head>
<body>
<script>
function updateTime() {
  var now = new Date();
  var year = now.getFullYear();
  var month = now.getMonth() + 1;
  var day = now.getDate();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  month = (month < 10 ? "0" : "") + month;
  day = (day < 10 ? "0" : "") + day;
  hours = (hours < 10 ? "0" : "") + hours;
  minutes = (minutes < 10 ? "0" : "") + minutes;
  seconds = (seconds < 10 ? "0" : "") + seconds;
  var timeString = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
  document.getElementById("currentDateTime").textContent = timeString;
setInterval(updateTime, 1000); // 每秒更新一次时间
</script>
<div id="currentDateTime"></div>
<div>
<!--<div><h2>Test Statistics</h2></div>-->
    <table width="1000">
        <caption><ul><li>测试概要</li></ul></caption>
        <tr  width="600">
7172737475767778798081828384858687888990919293949596979899100101102103104105106
<th width="300" class='details-col-msg'>用例总数</th> <th class='details-col-msg'>成功数</th> <th class='details-col-msg'>运行用时</th> <th class='details-col-msg'>成功率</th> </tr> <tr width="600"> <td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>0分18秒</td> <td class="details-col-elapsed">100.0%</td> </tr> </table> <!--<div><h2>Test detail</h2></div>--> <table width="1000"> <caption><ul><li>测试列表</li></ul></caption> <tr width="600"> <th width="400" class='details-col-msg'>用例名称</th> <th class='details-col-msg'>执行结果</th> <th class='details-col-msg'>执行时间(秒)</th> <th class='details-col-msg'>用例作者</th> </tr> <tr width="600"> <td class="details-col-elapsed"><a href='../log/execute/log.html' target='_blank'>execute</a></td> <td class="success">成功</td> <td class="details-col-elapsed">18.756</td> <td class="details-col-elapsed">xiaohesheng</td> </tr> </table> <div><h2></h2></div> </div> </body> </html>