Files
ssw-mvp/docs/e2e/cases/TC-CONTRACT_API-012.mjs
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

15 lines
926 B
JavaScript
Raw Permalink 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-CONTRACT_API-012 · 查看数字合约签订的办理结果(接口)
* REQ-012 [FL-5.2] 反向/错误推测 P1
*/
export const meta = { tc: 'TC-CONTRACT_API-012', req: 'REQ-012', title: '查看数字合约签订的办理结果', type: '反向/错误推测', priority: 'P1', needs: ['be'] }
export async function run(t) {
await t.login()
const list = await t.apiList('/api/ssw/tds/Contract')
const signed = list.find((c) => c.status === '02')
if (!signed) t.skip('无双签合约')
t.assert(!!signed.providerSignTime, `提供方签署时间已记录(${signed.providerSignTime})`)
t.assert(!!signed.consumerSignTime, `使用方签署时间已记录(${signed.consumerSignTime})`)
t.assert(signed.signCostMs != null, `签署耗时已记录(${signed.signCostMs}ms,SLA ≤ 1000ms)`)
t.assert(signed.signCostMs <= 1000, `签署耗时 SLA ≤ 1 秒 满足(${signed.signCostMs}ms)`)
}