Files
ssw-mvp/docs/e2e/cases/TC-REL-014.mjs
T
admin 3247e9fd15 init: ssw-mvp initial commit
- boot/ (Java/Maven, JNPF 7.0) — 移除旧的 boot/.git,源码直接纳入仓库
- web/ (Vue 3 + Vite + Ant Design Vue, pnpm)
- docs/, scard/, nax/
- refs/INDEX.md + refs/国标/(其余 refs/* 开源子仓库不纳入)
- 已忽略: connector_data/, jweb/, log/, web/{dist,node_modules,.pnpm}, boot/*/target/, .DS_Store, .idea, .vscode
2026-08-05 18:29:12 +08:00

40 lines
1.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* TC-REL-014 · 长时间运行无异常
* REQ-Q-REL 质量特性-可靠性 正向 P1
*
* 前置:1. 系统已部署并正常运行 2. 网络及测试环境可用
* 步骤:1. 系统持续运行一段时间 2. 监控资源占用与日志
* 预期:1. 长时间运行无内存泄漏、无异常退出
*
* 「长时间运行 + 监控资源」本质是压测/Soak Test,CI 90 秒硬超时无法承载。
*/
export const meta = {
tc: 'TC-REL-014',
req: 'Q-REL',
title: '长时间运行无异常',
type: '正向',
priority: 'P1',
route: '',
needs: []
}
export async function run(t) {
await t.step('前置:登录系统,确认会话正常', async () => {
await t.login()
const r = await t.api('GET', '/api/ssw/tds/Space')
t.assert(r.code === 200, `登录后 Space 接口 200(code=${r.code})`)
})
t.manual(`人工核对指引(长时间 Soak Test 需要 24h+ 持续运行):
1. 在测试环境部署整套系统;
2. 使用 jmeter / locust / gatling 等工具按 docs/tdd/P1P2_CHAIN_K8S_REPORT.md 中给出的「典型负载」持续运行 ≥ 24 小时;
3. 每 1 小时采集一次指标:
- JVM / 容器内存(应稳定,无单调上涨);
- CPU 占用(应在合理区间,不应出现持续 > 90%);
- 错误日志条数(应无 NullPointer / OOM / ConnectTimeout 异常累积);
4. 核对项:
- 接口响应时间 P99 < 阈值(依项目 SLA);
- 数据库连接池未泄漏(active 数量稳定回落);
- 关键对象(空间/合约/产品)条数与基线一致,无脏数据写入;
5. 出具 Soak Test 报告。`)
}