PRA-only-demo/resources/test-flows/app-system/test_appsystem_06.json
liuwenxin d489288c8e test(应用与系统): 添加组件验收流程与复测报告
提供 13 组、74 个用例,覆盖 49 项可执行组件。
新增隔离运行、真实界面检查、结果汇总和安全安装脚本。
升级仅覆盖未修改的测试模板,并保留原文件备份。
为手动操作设置保护开关,保留修复前后验证证据。

验证:43 项相关检查、类型检查与构建通过。
2026-11-02 09:06:40 +08:00

1508 lines
35 KiB
JSON

{
"schemaVersion": 1,
"id": "test_appsystem_06",
"name": "组件测试 06 · 系统路径与环境变量",
"description": "查看运行日志中的用例结果;有失败时任务最终显示失败,其他用例仍继续。",
"enabled": true,
"trigger": {
"type": "manual",
"label": "手动运行"
},
"variables": [],
"nodes": [
{
"id": "t06_1",
"componentId": "Trigger.Manual",
"label": "人工发起",
"position": {
"x": 220,
"y": 80
},
"values": {
"entryName": "开始组件测试"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_2",
"componentId": "Basic_SetVariable",
"label": "初始化失败计数",
"position": {
"x": 220,
"y": 222
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
}
},
{
"id": "t06_3",
"componentId": "Basic_SetVariable",
"label": "初始化待确认计数",
"position": {
"x": 220,
"y": 364
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
}
},
{
"id": "t06_4",
"componentId": "Basic_SetVariable",
"label": "初始化阻塞计数",
"position": {
"x": 220,
"y": 506
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "blocked"
}
},
{
"id": "t06_5",
"componentId": "System_ExecuteCommand",
"label": "独立读取 Windows 系统路径",
"position": {
"x": 220,
"y": 648
},
"values": {
"action": "@{temp=[IO.Path]::GetTempPath().TrimEnd('\\'); home=[Environment]::GetFolderPath('UserProfile'); desktop=[Environment]::GetFolderPath('Desktop')} | ConvertTo-Json -Compress"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pathOracle"
}
},
{
"id": "t06_6",
"componentId": "Basic_SetVariable",
"label": "解析独立预期路径",
"position": {
"x": 220,
"y": 790
},
"values": {
"value": "${parseJson(pathOracle)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "paths"
}
},
{
"id": "t06_7",
"componentId": "logic_control_try_catch",
"label": "06-01 · System_GetTempPath",
"position": {
"x": 220,
"y": 932
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_8",
"componentId": "System_GetTempPath",
"label": "System_GetTempPath",
"position": {
"x": 220,
"y": 1340
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_1"
},
"parentId": "t06_7",
"slot": "try_fn"
},
{
"id": "t06_9",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${[\"06-01\", \"System_GetTempPath\", (actual_1 === paths.temp || actual_1 === paths.temp + \"\\\\\") ? \"PASS\" : \"FAIL\", \"{}\", \"与系统临时目录一致(忽略尾部分隔符)\", actual_1]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_1"
},
"parentId": "t06_7",
"slot": "try_fn"
},
{
"id": "t06_10",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${failures + (case_1[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_7",
"slot": "try_fn"
},
{
"id": "t06_11",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${pending + (case_1[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_7",
"slot": "try_fn"
},
{
"id": "t06_12",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${[\"06-01\", \"System_GetTempPath\", \"FAIL\", \"{}\", \"与系统临时目录一致(忽略尾部分隔符)\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_1"
},
"parentId": "t06_7",
"slot": "except_fn"
},
{
"id": "t06_13",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${failures + (case_1[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_7",
"slot": "except_fn"
},
{
"id": "t06_14",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${pending + (case_1[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_7",
"slot": "except_fn"
},
{
"id": "t06_15",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 1574
},
"values": {
"msg": "用例结果:${json(case_1)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_16",
"componentId": "logic_control_try_catch",
"label": "06-02 · System_GetHomePath",
"position": {
"x": 220,
"y": 1716
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_17",
"componentId": "System_GetHomePath",
"label": "System_GetHomePath",
"position": {
"x": 220,
"y": 1700
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_2"
},
"parentId": "t06_16",
"slot": "try_fn"
},
{
"id": "t06_18",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${[\"06-02\", \"System_GetHomePath\", (actual_2 === paths.home) ? \"PASS\" : \"FAIL\", \"{}\", \"与 Windows 用户文件夹一致\", actual_2]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_2"
},
"parentId": "t06_16",
"slot": "try_fn"
},
{
"id": "t06_19",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${failures + (case_2[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_16",
"slot": "try_fn"
},
{
"id": "t06_20",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${pending + (case_2[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_16",
"slot": "try_fn"
},
{
"id": "t06_21",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${[\"06-02\", \"System_GetHomePath\", \"FAIL\", \"{}\", \"与 Windows 用户文件夹一致\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_2"
},
"parentId": "t06_16",
"slot": "except_fn"
},
{
"id": "t06_22",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${failures + (case_2[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_16",
"slot": "except_fn"
},
{
"id": "t06_23",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${pending + (case_2[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_16",
"slot": "except_fn"
},
{
"id": "t06_24",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 2358
},
"values": {
"msg": "用例结果:${json(case_2)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_25",
"componentId": "logic_control_try_catch",
"label": "06-03 · System_GetSystemPath",
"position": {
"x": 220,
"y": 2500
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_26",
"componentId": "System_GetSystemPath",
"label": "System_GetSystemPath",
"position": {
"x": 220,
"y": 2060
},
"values": {
"path_name": "desktop"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_3"
},
"parentId": "t06_25",
"slot": "try_fn"
},
{
"id": "t06_27",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${[\"06-03\", \"System_GetSystemPath\", (actual_3 === paths.desktop) ? \"PASS\" : \"FAIL\", \"{\\\"path_name\\\":\\\"desktop\\\"}\", \"与 Windows 实际桌面目录一致(包含重定向)\", actual_3]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_3"
},
"parentId": "t06_25",
"slot": "try_fn"
},
{
"id": "t06_28",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${failures + (case_3[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_25",
"slot": "try_fn"
},
{
"id": "t06_29",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${pending + (case_3[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_25",
"slot": "try_fn"
},
{
"id": "t06_30",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${[\"06-03\", \"System_GetSystemPath\", \"FAIL\", \"{\\\"path_name\\\":\\\"desktop\\\"}\", \"与 Windows 实际桌面目录一致(包含重定向)\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_3"
},
"parentId": "t06_25",
"slot": "except_fn"
},
{
"id": "t06_31",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${failures + (case_3[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_25",
"slot": "except_fn"
},
{
"id": "t06_32",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${pending + (case_3[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_25",
"slot": "except_fn"
},
{
"id": "t06_33",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 3142
},
"values": {
"msg": "用例结果:${json(case_3)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_34",
"componentId": "logic_control_try_catch",
"label": "06-04 · System_GetEnv",
"position": {
"x": 220,
"y": 3284
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_35",
"componentId": "System_GetEnv",
"label": "System_GetEnv",
"position": {
"x": 220,
"y": 2420
},
"values": {
"name": "RPA_APP_SYSTEM_TEST_VALUE"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "originalEnv"
},
"parentId": "t06_34",
"slot": "try_fn"
},
{
"id": "t06_36",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${[\"06-04\", \"System_GetEnv\", (true) ? \"PASS\" : \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\"}\", \"读取测试专用变量的原始值,作为恢复依据\", originalEnv]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_4"
},
"parentId": "t06_34",
"slot": "try_fn"
},
{
"id": "t06_37",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${failures + (case_4[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_34",
"slot": "try_fn"
},
{
"id": "t06_38",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${pending + (case_4[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_34",
"slot": "try_fn"
},
{
"id": "t06_39",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${[\"06-04\", \"System_GetEnv\", \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\"}\", \"读取测试专用变量的原始值,作为恢复依据\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_4"
},
"parentId": "t06_34",
"slot": "except_fn"
},
{
"id": "t06_40",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${failures + (case_4[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_34",
"slot": "except_fn"
},
{
"id": "t06_41",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${pending + (case_4[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_34",
"slot": "except_fn"
},
{
"id": "t06_42",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 3926
},
"values": {
"msg": "用例结果:${json(case_4)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_43",
"componentId": "logic_control_try_catch",
"label": "06-05 · System_SetEnv",
"position": {
"x": 220,
"y": 4068
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_44",
"componentId": "System_SetEnv",
"label": "System_SetEnv",
"position": {
"x": 220,
"y": 2780
},
"values": {
"name": "RPA_APP_SYSTEM_TEST_VALUE",
"value": "中文-测试-42"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_5"
},
"parentId": "t06_43",
"slot": "try_fn"
},
{
"id": "t06_45",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${[\"06-05\", \"System_SetEnv\", (actual_5 === \"中文-测试-42\") ? \"PASS\" : \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\",\\\"value\\\":\\\"中文-测试-42\\\"}\", \"当前应用进程内设置成功\", actual_5]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_5"
},
"parentId": "t06_43",
"slot": "try_fn"
},
{
"id": "t06_46",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${failures + (case_5[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_43",
"slot": "try_fn"
},
{
"id": "t06_47",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${pending + (case_5[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_43",
"slot": "try_fn"
},
{
"id": "t06_48",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${[\"06-05\", \"System_SetEnv\", \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\",\\\"value\\\":\\\"中文-测试-42\\\"}\", \"当前应用进程内设置成功\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_5"
},
"parentId": "t06_43",
"slot": "except_fn"
},
{
"id": "t06_49",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${failures + (case_5[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_43",
"slot": "except_fn"
},
{
"id": "t06_50",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${pending + (case_5[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_43",
"slot": "except_fn"
},
{
"id": "t06_51",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 4710
},
"values": {
"msg": "用例结果:${json(case_5)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_52",
"componentId": "logic_control_try_catch",
"label": "06-06 · System_GetEnv",
"position": {
"x": 220,
"y": 4852
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_53",
"componentId": "System_GetEnv",
"label": "System_GetEnv",
"position": {
"x": 220,
"y": 3140
},
"values": {
"name": "RPA_APP_SYSTEM_TEST_VALUE"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_6"
},
"parentId": "t06_52",
"slot": "try_fn"
},
{
"id": "t06_54",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${[\"06-06\", \"System_GetEnv\", (actual_6 === \"中文-测试-42\") ? \"PASS\" : \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\"}\", \"能读回中文-测试-42\", actual_6]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_6"
},
"parentId": "t06_52",
"slot": "try_fn"
},
{
"id": "t06_55",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${failures + (case_6[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_52",
"slot": "try_fn"
},
{
"id": "t06_56",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${pending + (case_6[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_52",
"slot": "try_fn"
},
{
"id": "t06_57",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${[\"06-06\", \"System_GetEnv\", \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\"}\", \"能读回中文-测试-42\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_6"
},
"parentId": "t06_52",
"slot": "except_fn"
},
{
"id": "t06_58",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${failures + (case_6[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_52",
"slot": "except_fn"
},
{
"id": "t06_59",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${pending + (case_6[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_52",
"slot": "except_fn"
},
{
"id": "t06_60",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 5494
},
"values": {
"msg": "用例结果:${json(case_6)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_61",
"componentId": "logic_control_try_catch",
"label": "06-07 · System_SetEnv",
"position": {
"x": 220,
"y": 5636
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_62",
"componentId": "System_SetEnv",
"label": "System_SetEnv",
"position": {
"x": 220,
"y": 3500
},
"values": {
"name": "RPA_APP_SYSTEM_TEST_VALUE",
"value": "${originalEnv}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_7"
},
"parentId": "t06_61",
"slot": "try_fn"
},
{
"id": "t06_63",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 3500
},
"values": {
"value": "${[\"06-07\", \"System_SetEnv\", (actual_7 === originalEnv) ? \"PASS\" : \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\",\\\"value\\\":\\\"${originalEnv}\\\"}\", \"恢复测试前读取值\", actual_7]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_7"
},
"parentId": "t06_61",
"slot": "try_fn"
},
{
"id": "t06_64",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 3500
},
"values": {
"value": "${failures + (case_7[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_61",
"slot": "try_fn"
},
{
"id": "t06_65",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 3500
},
"values": {
"value": "${pending + (case_7[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_61",
"slot": "try_fn"
},
{
"id": "t06_66",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 3500
},
"values": {
"value": "${[\"06-07\", \"System_SetEnv\", \"FAIL\", \"{\\\"name\\\":\\\"RPA_APP_SYSTEM_TEST_VALUE\\\",\\\"value\\\":\\\"${originalEnv}\\\"}\", \"恢复测试前读取值\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_7"
},
"parentId": "t06_61",
"slot": "except_fn"
},
{
"id": "t06_67",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 3500
},
"values": {
"value": "${failures + (case_7[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t06_61",
"slot": "except_fn"
},
{
"id": "t06_68",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 3500
},
"values": {
"value": "${pending + (case_7[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t06_61",
"slot": "except_fn"
},
{
"id": "t06_69",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 6278
},
"values": {
"msg": "用例结果:${json(case_7)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_70",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 6420
},
"values": {
"msg": "本组汇总:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_71",
"componentId": "logic_control_if_else",
"label": "汇总判定",
"position": {
"x": 220,
"y": 6562
},
"values": {
"condition": "${failures > 0 || pending > 0 || blocked > 0}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t06_72",
"componentId": "ExceptionUtil_Throws",
"label": "如实标记未通过",
"position": {
"x": 220,
"y": 4040
},
"values": {
"msg": "组件测试未全部通过:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。请查看日志。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t06_71",
"slot": "statement_if"
},
{
"id": "t06_73",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 4040
},
"values": {
"msg": "本组全部通过。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t06_71",
"slot": "statement_else"
}
],
"edges": [
{
"id": "e_t06_2",
"source": "t06_1",
"target": "t06_2"
},
{
"id": "e_t06_3",
"source": "t06_2",
"target": "t06_3"
},
{
"id": "e_t06_4",
"source": "t06_3",
"target": "t06_4"
},
{
"id": "e_t06_5",
"source": "t06_4",
"target": "t06_5"
},
{
"id": "e_t06_6",
"source": "t06_5",
"target": "t06_6"
},
{
"id": "e_t06_7",
"source": "t06_6",
"target": "t06_7"
},
{
"id": "e_t06_15",
"source": "t06_7",
"target": "t06_15"
},
{
"id": "e_t06_16",
"source": "t06_15",
"target": "t06_16"
},
{
"id": "e_t06_24",
"source": "t06_16",
"target": "t06_24"
},
{
"id": "e_t06_25",
"source": "t06_24",
"target": "t06_25"
},
{
"id": "e_t06_33",
"source": "t06_25",
"target": "t06_33"
},
{
"id": "e_t06_34",
"source": "t06_33",
"target": "t06_34"
},
{
"id": "e_t06_42",
"source": "t06_34",
"target": "t06_42"
},
{
"id": "e_t06_43",
"source": "t06_42",
"target": "t06_43"
},
{
"id": "e_t06_51",
"source": "t06_43",
"target": "t06_51"
},
{
"id": "e_t06_52",
"source": "t06_51",
"target": "t06_52"
},
{
"id": "e_t06_60",
"source": "t06_52",
"target": "t06_60"
},
{
"id": "e_t06_61",
"source": "t06_60",
"target": "t06_61"
},
{
"id": "e_t06_69",
"source": "t06_61",
"target": "t06_69"
},
{
"id": "e_t06_70",
"source": "t06_69",
"target": "t06_70"
},
{
"id": "e_t06_71",
"source": "t06_70",
"target": "t06_71"
}
],
"meta": {
"createdAt": "2026-10-30T00:00:00.000Z",
"updatedAt": "2026-10-30T00:00:00.000Z",
"appVersion": "0.1.0"
}
}