feat(admin): 添加用户管理相关文件
添加用户管理视图、API和状态管理文件
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 19:14:57</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T19:14:57.182797",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:14:57.181895"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:14:57.182784"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 19:15:14</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T19:15:14.806296",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:15:14.805421"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:15:14.806284"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 19:15:30</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">1</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">1</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T19:15:30.992094",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:15:30.991363"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:15:30.992085"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 19:15:31</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 19:20:10</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T19:20:10.082546",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:20:10.081808"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:20:10.082536"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 19:23:00</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T19:23:00.758738",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:23:00.758034"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T19:23:00.758730"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 22:18:17</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T22:18:17.329331",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T22:18:17.328611"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T22:18:17.329323"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 22:34:06</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T22:34:06.481595",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T22:34:06.479215"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T22:34:06.481553"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 23:23:44</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">1</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">1</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,201 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 23:23:45</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">1</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">1</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-07T23:23:45.123871",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T23:23:45.122486"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-07T23:23:45.123826"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-07 23:23:46</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>API测试报告</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
border-bottom: 3px solid #007bff;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.summary-card {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
border: 1px solid #dee2e6;
|
||||
}
|
||||
.summary-card h3 {
|
||||
margin: 0 0 10px 0;
|
||||
color: #6c757d;
|
||||
font-size: 14px;
|
||||
}
|
||||
.summary-card .value {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #007bff;
|
||||
}
|
||||
.summary-card .value.passed {
|
||||
color: #28a745;
|
||||
}
|
||||
.summary-card .value.failed {
|
||||
color: #dc3545;
|
||||
}
|
||||
.summary-card .value.skipped {
|
||||
color: #ffc107;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: #e9ecef;
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background-color: #dc3545;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
th, td {
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
th {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.status-pass {
|
||||
color: #28a745;
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-fail {
|
||||
color: #dc3545;
|
||||
font-weight: bold;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.badge-info {
|
||||
background-color: #17a2b8;
|
||||
color: white;
|
||||
}
|
||||
.badge-warning {
|
||||
background-color: #ffc107;
|
||||
color: #212529;
|
||||
}
|
||||
.badge-danger {
|
||||
background-color: #dc3545;
|
||||
color: white;
|
||||
}
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>API测试报告</h1>
|
||||
<p class="timestamp">测试套件: Test Suite</p>
|
||||
<p class="timestamp">生成时间: 2026-03-08 19:26:48</p>
|
||||
|
||||
<div class="summary">
|
||||
<div class="summary-card">
|
||||
<h3>总用例数</h3>
|
||||
<div class="value">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过</h3>
|
||||
<div class="value passed">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>失败</h3>
|
||||
<div class="value failed">2</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>跳过</h3>
|
||||
<div class="value skipped">0</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>通过率</h3>
|
||||
<div class="value">0.0%</div>
|
||||
</div>
|
||||
<div class="summary-card">
|
||||
<h3>执行时长</h3>
|
||||
<div class="value">0.00s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: 0.0%">
|
||||
0.0%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>测试结果详情</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用例ID</th>
|
||||
<th>用例名称</th>
|
||||
<th>模块</th>
|
||||
<th>状态</th>
|
||||
<th>状态码</th>
|
||||
<th>响应时间</th>
|
||||
<th>错误信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>TC001</td>
|
||||
<td>测试用例1</td>
|
||||
<td>test</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>TC002</td>
|
||||
<td>测试用例2</td>
|
||||
<td>user</td>
|
||||
<td class="status-fail">失败</td>
|
||||
<td>0</td>
|
||||
<td>N/A</td>
|
||||
<td class="error-message">执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"suite_name": "Test Suite",
|
||||
"total": 2,
|
||||
"passed": 0,
|
||||
"failed": 2,
|
||||
"skipped": 0,
|
||||
"pass_rate": 0.0,
|
||||
"duration": 0.0,
|
||||
"start_time": "2026-03-08T19:26:48.162985",
|
||||
"end_time": null,
|
||||
"results": [
|
||||
{
|
||||
"test_case_id": "TC001",
|
||||
"test_case_name": "测试用例1",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-08T19:26:48.160487"
|
||||
},
|
||||
{
|
||||
"test_case_id": "TC002",
|
||||
"test_case_name": "测试用例2",
|
||||
"passed": false,
|
||||
"status_code": 0,
|
||||
"response_body": null,
|
||||
"response_headers": {},
|
||||
"error_message": "执行异常: 登录请求失败: Invalid URL '${API_BASE_URL}/sys/auth/login': No scheme supplied. Perhaps you meant https://${API_BASE_URL}/sys/auth/login?",
|
||||
"performance": null,
|
||||
"execution_time": 0.0,
|
||||
"retry_count": 0,
|
||||
"timestamp": "2026-03-08T19:26:48.162973"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user