Files
ssw-mvp/docs/e2e/cases/TC-PORT-002.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

35 lines
1.7 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-PORT-002 · 系统易安装与卸载
* REQ-Q-PORT 质量特性-可移植性 正向 P1
*
* 前置:1. 系统已部署并正常运行 2. 网络及测试环境可用
* 步骤:1. 在指定目标环境中安装系统 2. 执行卸载
* 预期:1. 在指定环境中系统能够被轻易地成功安装或卸载
*
* 安装/卸载是部署侧操作,浏览器无法介入。所有信息都已在 docs/PROJECT.md / docs/README.md
* 给出,"易安装/易卸载"由人工核对部署报告与一键脚本验证。
*/
export const meta = {
tc: 'TC-PORT-002',
req: 'Q-PORT',
title: '系统易安装与卸载',
type: '正向',
priority: 'P1',
route: '',
needs: []
}
export async function run(t) {
t.manual(`人工核对"系统易安装与卸载"(浏览器自动化无法介入部署/卸载流程):
1. 安装侧:
a) 阅读 docs/PROJECT.md §4「启动命令」与 docs/README.md「本地运行要点」;
b) 在一台干净的目标环境(不同 OS / 不同 JDK / 不同 PostgreSQL)按 docs/README.md 的命令拉起后端 java -jar 与前端 pnpm dev;
c) 是否能在 30 分钟内完成:Java 21 + Redis 容器 + PostgreSQL 容器 + 后端 jar + 前端 pnpm install + pnpm dev;
d) 三个子系统(TDS / TDC / SSWFLOW)是否在同一进程内可启动、API 前缀 /api/ssw/{tds,tdc,sswflow} 全部能 200;
2. 卸载侧:
a) 关闭 java 进程(lsof :30000 找到 PID 后 kill);
b) 关闭 vite 进程(lsof :5173 找到 PID 后 kill);
c) 是否能在 5 分钟内完全卸载(移除 jar + 移除 pnpm 依赖 + drop database);
3. 校验文档:docs/PROJECT.md §14「移动目录注意事项」是否给出了完整的停服→迁移→重启流程。`)
}