PRA-only-demo/resources/test-flows/app-system/test_appsystem_11.json

1088 lines
25 KiB
JSON
Raw Normal View History

{
"schemaVersion": 1,
"id": "test_appsystem_11",
"name": "组件测试 11 · 屏保【手动】",
"description": "手动测试:先阅读测试说明。默认不开启执行开关,不能把组件返回成功当作功能通过。",
"enabled": true,
"trigger": {
"type": "manual",
"label": "手动运行"
},
"variables": [],
"nodes": [
{
"id": "t11_1",
"componentId": "Trigger.Manual",
"label": "人工发起",
"position": {
"x": 220,
"y": 80
},
"values": {
"entryName": "开始组件测试"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_2",
"componentId": "Basic_SetVariable",
"label": "初始化失败计数",
"position": {
"x": 220,
"y": 222
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
}
},
{
"id": "t11_3",
"componentId": "Basic_SetVariable",
"label": "初始化待确认计数",
"position": {
"x": 220,
"y": 364
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
}
},
{
"id": "t11_4",
"componentId": "Basic_SetVariable",
"label": "初始化阻塞计数",
"position": {
"x": 220,
"y": 506
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "blocked"
}
},
{
"id": "t11_5",
"componentId": "Basic_SetVariable",
"label": "手动执行开关:确认环境后才可改为 true",
"position": {
"x": 220,
"y": 648
},
"values": {
"value": false
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "manualEnabled"
}
},
{
"id": "t11_6",
"componentId": "logic_control_try_catch",
"label": "11-01 · System_ScreenSaverShow",
"position": {
"x": 220,
"y": 790
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_7",
"componentId": "logic_control_if_else",
"label": "手动执行保护",
"position": {
"x": 220,
"y": 1160
},
"values": {
"condition": "${manualEnabled === true}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_6",
"slot": "try_fn"
},
{
"id": "t11_8",
"componentId": "ExceptionUtil_Throws",
"label": "默认不执行系统状态操作",
"position": {
"x": 220,
"y": 1160
},
"values": {
"msg": "待人工确认:执行开关未开启"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_7",
"slot": "statement_else"
},
{
"id": "t11_9",
"componentId": "System_ScreenSaverShow",
"label": "System_ScreenSaverShow",
"position": {
"x": 220,
"y": 1160
},
"values": {
"text": "RPA 测试",
"status": "1"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_1"
},
"parentId": "t11_7",
"slot": "statement_if"
},
{
"id": "t11_10",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 1160
},
"values": {
"value": "${[\"11-01\", \"System_ScreenSaverShow\", \"MANUAL\", \"{\\\"text\\\":\\\"RPA 测试\\\",\\\"status\\\":\\\"1\\\"}\", \"屏幕实际进入屏保;无配置时记录阻塞\", actual_1]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_1"
},
"parentId": "t11_7",
"slot": "statement_if"
},
{
"id": "t11_11",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 1160
},
"values": {
"value": "${failures + (case_1[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_7",
"slot": "statement_if"
},
{
"id": "t11_12",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 1160
},
"values": {
"value": "${pending + (case_1[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_7",
"slot": "statement_if"
},
{
"id": "t11_13",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 1160
},
"values": {
"value": "${[\"11-01\", \"System_ScreenSaverShow\", manualEnabled === true ? \"FAIL\" : \"MANUAL\", \"{\\\"text\\\":\\\"RPA 测试\\\",\\\"status\\\":\\\"1\\\"}\", \"屏幕实际进入屏保;无配置时记录阻塞\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_1"
},
"parentId": "t11_6",
"slot": "except_fn"
},
{
"id": "t11_14",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 1160
},
"values": {
"value": "${failures + (case_1[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_6",
"slot": "except_fn"
},
{
"id": "t11_15",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 1160
},
"values": {
"value": "${pending + (case_1[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_6",
"slot": "except_fn"
},
{
"id": "t11_16",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 1294
},
"values": {
"msg": "用例结果:${json(case_1)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_17",
"componentId": "logic_control_try_catch",
"label": "11-02 · System_ScreenSaverStop",
"position": {
"x": 220,
"y": 1436
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_18",
"componentId": "logic_control_if_else",
"label": "手动执行保护",
"position": {
"x": 220,
"y": 1520
},
"values": {
"condition": "${manualEnabled === true}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_17",
"slot": "try_fn"
},
{
"id": "t11_19",
"componentId": "ExceptionUtil_Throws",
"label": "默认不执行系统状态操作",
"position": {
"x": 220,
"y": 1520
},
"values": {
"msg": "待人工确认:执行开关未开启"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_18",
"slot": "statement_else"
},
{
"id": "t11_20",
"componentId": "System_ScreenSaverStop",
"label": "System_ScreenSaverStop",
"position": {
"x": 220,
"y": 1520
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_2"
},
"parentId": "t11_18",
"slot": "statement_if"
},
{
"id": "t11_21",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 1520
},
"values": {
"value": "${[\"11-02\", \"System_ScreenSaverStop\", \"MANUAL\", \"{}\", \"屏保实际关闭,可正常操作\", actual_2]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_2"
},
"parentId": "t11_18",
"slot": "statement_if"
},
{
"id": "t11_22",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 1520
},
"values": {
"value": "${failures + (case_2[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_18",
"slot": "statement_if"
},
{
"id": "t11_23",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 1520
},
"values": {
"value": "${pending + (case_2[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_18",
"slot": "statement_if"
},
{
"id": "t11_24",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 1520
},
"values": {
"value": "${[\"11-02\", \"System_ScreenSaverStop\", manualEnabled === true ? \"FAIL\" : \"MANUAL\", \"{}\", \"屏保实际关闭,可正常操作\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_2"
},
"parentId": "t11_17",
"slot": "except_fn"
},
{
"id": "t11_25",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 1520
},
"values": {
"value": "${failures + (case_2[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_17",
"slot": "except_fn"
},
{
"id": "t11_26",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 1520
},
"values": {
"value": "${pending + (case_2[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_17",
"slot": "except_fn"
},
{
"id": "t11_27",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 1940
},
"values": {
"msg": "用例结果:${json(case_2)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_28",
"componentId": "logic_control_try_catch",
"label": "11-03 · System_ScreenSaverShowV1",
"position": {
"x": 220,
"y": 2082
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_29",
"componentId": "logic_control_if_else",
"label": "手动执行保护",
"position": {
"x": 220,
"y": 1880
},
"values": {
"condition": "${manualEnabled === true}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_28",
"slot": "try_fn"
},
{
"id": "t11_30",
"componentId": "ExceptionUtil_Throws",
"label": "默认不执行系统状态操作",
"position": {
"x": 220,
"y": 1880
},
"values": {
"msg": "待人工确认:执行开关未开启"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_29",
"slot": "statement_else"
},
{
"id": "t11_31",
"componentId": "System_ScreenSaverShowV1",
"label": "System_ScreenSaverShowV1",
"position": {
"x": 220,
"y": 1880
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_3"
},
"parentId": "t11_29",
"slot": "statement_if"
},
{
"id": "t11_32",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 1880
},
"values": {
"value": "${[\"11-03\", \"System_ScreenSaverShowV1\", \"MANUAL\", \"{}\", \"开启 Windows 已配置的屏保,不要求输入密码;人工确认屏幕实际变化\", actual_3]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_3"
},
"parentId": "t11_29",
"slot": "statement_if"
},
{
"id": "t11_33",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 1880
},
"values": {
"value": "${failures + (case_3[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_29",
"slot": "statement_if"
},
{
"id": "t11_34",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 1880
},
"values": {
"value": "${pending + (case_3[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_29",
"slot": "statement_if"
},
{
"id": "t11_35",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 1880
},
"values": {
"value": "${[\"11-03\", \"System_ScreenSaverShowV1\", manualEnabled === true ? \"FAIL\" : \"MANUAL\", \"{}\", \"开启 Windows 已配置的屏保,不要求输入密码;人工确认屏幕实际变化\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_3"
},
"parentId": "t11_28",
"slot": "except_fn"
},
{
"id": "t11_36",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 1880
},
"values": {
"value": "${failures + (case_3[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_28",
"slot": "except_fn"
},
{
"id": "t11_37",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 1880
},
"values": {
"value": "${pending + (case_3[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_28",
"slot": "except_fn"
},
{
"id": "t11_38",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 2586
},
"values": {
"msg": "用例结果:${json(case_3)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_39",
"componentId": "logic_control_try_catch",
"label": "11-04 · System_ScreenSaverStop",
"position": {
"x": 220,
"y": 2728
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_40",
"componentId": "logic_control_if_else",
"label": "手动执行保护",
"position": {
"x": 220,
"y": 2240
},
"values": {
"condition": "${manualEnabled === true}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_39",
"slot": "try_fn"
},
{
"id": "t11_41",
"componentId": "ExceptionUtil_Throws",
"label": "默认不执行系统状态操作",
"position": {
"x": 220,
"y": 2240
},
"values": {
"msg": "待人工确认:执行开关未开启"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_40",
"slot": "statement_else"
},
{
"id": "t11_42",
"componentId": "System_ScreenSaverStop",
"label": "System_ScreenSaverStop",
"position": {
"x": 220,
"y": 2240
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_4"
},
"parentId": "t11_40",
"slot": "statement_if"
},
{
"id": "t11_43",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 2240
},
"values": {
"value": "${[\"11-04\", \"System_ScreenSaverStop\", \"MANUAL\", \"{}\", \"第二种屏保实际关闭\", actual_4]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_4"
},
"parentId": "t11_40",
"slot": "statement_if"
},
{
"id": "t11_44",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 2240
},
"values": {
"value": "${failures + (case_4[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_40",
"slot": "statement_if"
},
{
"id": "t11_45",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 2240
},
"values": {
"value": "${pending + (case_4[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_40",
"slot": "statement_if"
},
{
"id": "t11_46",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 2240
},
"values": {
"value": "${[\"11-04\", \"System_ScreenSaverStop\", manualEnabled === true ? \"FAIL\" : \"MANUAL\", \"{}\", \"第二种屏保实际关闭\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_4"
},
"parentId": "t11_39",
"slot": "except_fn"
},
{
"id": "t11_47",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 2240
},
"values": {
"value": "${failures + (case_4[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t11_39",
"slot": "except_fn"
},
{
"id": "t11_48",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 2240
},
"values": {
"value": "${pending + (case_4[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t11_39",
"slot": "except_fn"
},
{
"id": "t11_49",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 3232
},
"values": {
"msg": "用例结果:${json(case_4)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_50",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 3374
},
"values": {
"msg": "本组汇总:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_51",
"componentId": "logic_control_if_else",
"label": "汇总判定",
"position": {
"x": 220,
"y": 3516
},
"values": {
"condition": "${failures > 0 || pending > 0 || blocked > 0}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t11_52",
"componentId": "ExceptionUtil_Throws",
"label": "如实标记未通过",
"position": {
"x": 220,
"y": 2780
},
"values": {
"msg": "组件测试未全部通过:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。请查看日志。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_51",
"slot": "statement_if"
},
{
"id": "t11_53",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 2780
},
"values": {
"msg": "本组全部通过。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t11_51",
"slot": "statement_else"
}
],
"edges": [
{
"id": "e_t11_2",
"source": "t11_1",
"target": "t11_2"
},
{
"id": "e_t11_3",
"source": "t11_2",
"target": "t11_3"
},
{
"id": "e_t11_4",
"source": "t11_3",
"target": "t11_4"
},
{
"id": "e_t11_5",
"source": "t11_4",
"target": "t11_5"
},
{
"id": "e_t11_6",
"source": "t11_5",
"target": "t11_6"
},
{
"id": "e_t11_16",
"source": "t11_6",
"target": "t11_16"
},
{
"id": "e_t11_17",
"source": "t11_16",
"target": "t11_17"
},
{
"id": "e_t11_27",
"source": "t11_17",
"target": "t11_27"
},
{
"id": "e_t11_28",
"source": "t11_27",
"target": "t11_28"
},
{
"id": "e_t11_38",
"source": "t11_28",
"target": "t11_38"
},
{
"id": "e_t11_39",
"source": "t11_38",
"target": "t11_39"
},
{
"id": "e_t11_49",
"source": "t11_39",
"target": "t11_49"
},
{
"id": "e_t11_50",
"source": "t11_49",
"target": "t11_50"
},
{
"id": "e_t11_51",
"source": "t11_50",
"target": "t11_51"
}
],
"meta": {
"createdAt": "2026-10-30T00:00:00.000Z",
"updatedAt": "2026-10-30T00:00:00.000Z",
"appVersion": "0.1.0"
}
}