- 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
20 lines
1.2 KiB
JavaScript
20 lines
1.2 KiB
JavaScript
/**
|
|
* TC-ASSET-005 · 条件不满足时不能办理资源管理
|
|
* REQ-034 [FL-9.2] 反向/场景法 P0
|
|
*
|
|
* 前置:1. 【数据资产管理】可以正常打开;2. 已准备无权限账号或错误数据
|
|
* 步骤:1. 打开【数据资产管理】;2. 使用无权限账号或错误数据办理资源管理;3. 点击提交,查看提示和数据
|
|
* 预期:系统不允许办理资源管理,并说明原因。原有数据和状态不变。
|
|
*/
|
|
export const meta = {
|
|
tc: "TC-ASSET-005",
|
|
req: "REQ-034",
|
|
title: "条件不满足时不能办理资源管理",
|
|
type: "反向/场景法",
|
|
priority: "P0",
|
|
route: "/tdc/resources",
|
|
needs: ['be']
|
|
}
|
|
|
|
export async function run(t) { await t.step('使用错误数据办理资源管理',async()=>{await t.login();await t.goto('/tdc/resources');await t.openCreate();await t.fillForm({资源标识:t.uid('INVALID-RES'),资源名称:'错误资源'});await t.save();await t.expectReject('不能为空');await t.cancelDrawer()});await t.step('核对原有数据和状态不变',async()=>{t.assert((await t.apiList('/api/ssw/tdc/Resource',{keyword:t.uid('INVALID-RES')})).length===0,'错误资源管理未产生数据')});t.expectConsoleClean() }
|