| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>自动化测试报告</title>
- <style>
- body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
- .container { max-width: 800px; margin: 0 auto; padding: 20px; }
- .header { background-color: #f8f9fa; padding: 20px; border-radius: 5px; margin-bottom: 20px; }
- .summary { background-color: #e9ecef; padding: 15px; border-radius: 5px; margin-bottom: 20px; }
- .stats { display: flex; justify-content: space-between; margin-bottom: 20px; }
- .stat-box { flex: 1; text-align: center; padding: 15px; border-radius: 5px; margin: 0 5px; }
- .passed { background-color: #d4edda; color: #155724; }
- .failed { background-color: #f8d7da; color: #721c24; }
- .skipped { background-color: #fff3cd; color: #856404; }
- .total { background-color: #d1ecf1; color: #0c5460; }
- .footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #dee2e6; color: #6c757d; }
- </style>
- </head>
- <body>
- <div class="container">
- <div class="header">
- <h1>自动化测试报告</h1>
- <p>{{ company_name }} - {{ team_name }}</p>
- </div>
- <div class="summary">
- <h2>测试执行摘要</h2>
- <p>测试运行已完成,以下是执行结果的摘要信息。</p>
- </div>
- <div class="stats">
- <div class="stat-box total">
- <h3>总测试数</h3>
- <p>{{ test_results.total }}</p>
- </div>
- <div class="stat-box passed">
- <h3>通过</h3>
- <p>{{ test_results.passed }}</p>
- </div>
- <div class="stat-box failed">
- <h3>失败</h3>
- <p>{{ test_results.failed }}</p>
- </div>
- <div class="stat-box skipped">
- <h3>跳过</h3>
- <p>{{ test_results.skipped }}</p>
- </div>
- </div>
- <div>
- <h2>详细结果</h2>
- <p><strong>通过率:</strong> {{ test_results.pass_rate }}%</p>
- <p><strong>执行时长:</strong> {{ test_results.duration }} 秒</p>
- <p><strong>报告生成时间:</strong> {{ report_info.timestamp }}</p>
- </div>
- <div class="footer">
- <p>此邮件由自动化测试系统自动生成,请勿直接回复。</p>
- <p>如有问题,请联系相关测试团队成员。</p>
- </div>
- </div>
- </body>
- </html>
|