summary.html 3.06 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">