You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haoliang-net/docs/test-reports/登录/20260429044113/测试报告-登录.html

44 lines
1.8 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>测试报告 - 登录模块</title>
<style>
body{font-family:'Microsoft YaHei',sans-serif;margin:20px;background:#f5f5f5}
h1{color:#333;border-bottom:2px solid #409EFF;padding-bottom:10px}
h2{color:#409EFF;margin-top:30px}
table{border-collapse:collapse;width:100%;margin:10px 0;background:#fff}
th,td{border:1px solid #ddd;padding:8px 12px;text-align:left}
th{background:#409EFF;color:#fff}
tr:nth-child(even){background:#f9f9f9}
.pass{color:#67C23A;font-weight:bold}
.fail{color:#F56C6C;font-weight:bold}
.skip{color:#E6A23C;font-weight:bold}
.info{color:#909399}
.meta{background:#fff;padding:15px;border-radius:4px;margin-bottom:20px;border-left:4px solid #409EFF}
</style>
</head>
<body>
<h1>🔐 测试报告 - 登录模块</h1>
<div class="meta">
<p><strong>测试时间</strong>2026-04-29 04:41:13</p>
<p><strong>Git Commit</strong>6522b2a</p>
<p><strong>测试环境</strong>http://192.168.1.202/admin/</p>
<p><strong>测试结果</strong><span class="pass">✅ 全部通过2/2</span></p>
</div>
<h2>测试项明细</h2>
<table>
<tr><th>#</th><th>测试项</th><th>测试方法</th><th>预期结果</th><th>实际结果</th><th>状态</th></tr>
<tr><td>1</td><td>正确密码登录</td><td>POST /api/admin/login {username:admin, password:admin123}</td><td>code=0, 返回token</td><td>code=0, token=eyJhbG...,长度>100字符</td><td class="pass">✅ 通过</td></tr>
<tr><td>2</td><td>错误密码登录</td><td>POST /api/admin/login {username:admin, password:wrong}</td><td>code≠0, 返回错误信息</td><td>code=40000, message="用户名或密码错误"</td><td class="pass">✅ 通过</td></tr>
</table>
<h2>跳过项</h2>
<table>
<tr><th>跳过项</th><th>原因</th><th>备注</th></tr>
<tr><td></td><td>-</td><td>-</td></tr>
</table>
</body>
</html>