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

1630 lines
38 KiB
JSON
Raw Normal View History

{
"schemaVersion": 1,
"id": "test_appsystem_05",
"name": "组件测试 05 · 等待与随机数",
"description": "查看运行日志中的用例结果;有失败时任务最终显示失败,其他用例仍继续。",
"enabled": true,
"trigger": {
"type": "manual",
"label": "手动运行"
},
"variables": [],
"nodes": [
{
"id": "t05_1",
"componentId": "Trigger.Manual",
"label": "人工发起",
"position": {
"x": 220,
"y": 80
},
"values": {
"entryName": "开始组件测试"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_2",
"componentId": "Basic_SetVariable",
"label": "初始化失败计数",
"position": {
"x": 220,
"y": 222
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
}
},
{
"id": "t05_3",
"componentId": "Basic_SetVariable",
"label": "初始化待确认计数",
"position": {
"x": 220,
"y": 364
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
}
},
{
"id": "t05_4",
"componentId": "Basic_SetVariable",
"label": "初始化阻塞计数",
"position": {
"x": 220,
"y": 506
},
"values": {
"value": 0
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "blocked"
}
},
{
"id": "t05_5",
"componentId": "logic_control_try_catch",
"label": "05-01 · Basic_Delay_V2",
"position": {
"x": 220,
"y": 648
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_6",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 980
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "startTime"
},
"parentId": "t05_5",
"slot": "try_fn"
},
{
"id": "t05_7",
"componentId": "Basic_Delay_V2",
"label": "Basic_Delay_V2",
"position": {
"x": 220,
"y": 980
},
"values": {
"is_random": "0",
"second": "0.15",
"min_second": "0.1",
"max_second": "0.2"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_1"
},
"parentId": "t05_5",
"slot": "try_fn"
},
{
"id": "t05_8",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 980
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "endTime"
},
"parentId": "t05_5",
"slot": "try_fn"
},
{
"id": "t05_9",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 980
},
"values": {
"value": "${[\"05-01\", \"Basic_Delay_V2\", (endTime.timestamp - startTime.timestamp >= 120 && endTime.timestamp - startTime.timestamp <= 1800) ? \"PASS\" : \"FAIL\", \"{\\\"is_random\\\":\\\"0\\\",\\\"second\\\":\\\"0.15\\\",\\\"min_second\\\":\\\"0.1\\\",\\\"max_second\\\":\\\"0.2\\\"}\", \"实际等待耗时 120~1800 ms\", endTime.timestamp - startTime.timestamp]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_1"
},
"parentId": "t05_5",
"slot": "try_fn"
},
{
"id": "t05_10",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 980
},
"values": {
"value": "${failures + (case_1[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_5",
"slot": "try_fn"
},
{
"id": "t05_11",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 980
},
"values": {
"value": "${pending + (case_1[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_5",
"slot": "try_fn"
},
{
"id": "t05_12",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 980
},
"values": {
"value": "${[\"05-01\", \"Basic_Delay_V2\", \"FAIL\", \"{\\\"is_random\\\":\\\"0\\\",\\\"second\\\":\\\"0.15\\\",\\\"min_second\\\":\\\"0.1\\\",\\\"max_second\\\":\\\"0.2\\\"}\", \"实际等待耗时 120~1800 ms\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_1"
},
"parentId": "t05_5",
"slot": "except_fn"
},
{
"id": "t05_13",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 980
},
"values": {
"value": "${failures + (case_1[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_5",
"slot": "except_fn"
},
{
"id": "t05_14",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 980
},
"values": {
"value": "${pending + (case_1[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_5",
"slot": "except_fn"
},
{
"id": "t05_15",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 1382
},
"values": {
"msg": "用例结果:${json(case_1)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_16",
"componentId": "logic_control_try_catch",
"label": "05-02 · Basic_Delay_V2",
"position": {
"x": 220,
"y": 1524
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_17",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 1340
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "startTime"
},
"parentId": "t05_16",
"slot": "try_fn"
},
{
"id": "t05_18",
"componentId": "Basic_Delay_V2",
"label": "Basic_Delay_V2",
"position": {
"x": 220,
"y": 1340
},
"values": {
"is_random": "1",
"second": "0.15",
"min_second": "0.1",
"max_second": "0.2"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_2"
},
"parentId": "t05_16",
"slot": "try_fn"
},
{
"id": "t05_19",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 1340
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "endTime"
},
"parentId": "t05_16",
"slot": "try_fn"
},
{
"id": "t05_20",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${[\"05-02\", \"Basic_Delay_V2\", (endTime.timestamp - startTime.timestamp >= 80 && endTime.timestamp - startTime.timestamp <= 1800) ? \"PASS\" : \"FAIL\", \"{\\\"is_random\\\":\\\"1\\\",\\\"second\\\":\\\"0.15\\\",\\\"min_second\\\":\\\"0.1\\\",\\\"max_second\\\":\\\"0.2\\\"}\", \"实际等待耗时 80~1800 ms\", endTime.timestamp - startTime.timestamp]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_2"
},
"parentId": "t05_16",
"slot": "try_fn"
},
{
"id": "t05_21",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${failures + (case_2[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_16",
"slot": "try_fn"
},
{
"id": "t05_22",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${pending + (case_2[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_16",
"slot": "try_fn"
},
{
"id": "t05_23",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${[\"05-02\", \"Basic_Delay_V2\", \"FAIL\", \"{\\\"is_random\\\":\\\"1\\\",\\\"second\\\":\\\"0.15\\\",\\\"min_second\\\":\\\"0.1\\\",\\\"max_second\\\":\\\"0.2\\\"}\", \"实际等待耗时 80~1800 ms\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_2"
},
"parentId": "t05_16",
"slot": "except_fn"
},
{
"id": "t05_24",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${failures + (case_2[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_16",
"slot": "except_fn"
},
{
"id": "t05_25",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 1340
},
"values": {
"value": "${pending + (case_2[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_16",
"slot": "except_fn"
},
{
"id": "t05_26",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 2258
},
"values": {
"msg": "用例结果:${json(case_2)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_27",
"componentId": "logic_control_try_catch",
"label": "05-03 · Basic_Delay_V1",
"position": {
"x": 220,
"y": 2400
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_28",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 1700
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "startTime"
},
"parentId": "t05_27",
"slot": "try_fn"
},
{
"id": "t05_29",
"componentId": "Basic_Delay_V1",
"label": "Basic_Delay_V1",
"position": {
"x": 220,
"y": 1700
},
"values": {
"second": "0.15"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_3"
},
"parentId": "t05_27",
"slot": "try_fn"
},
{
"id": "t05_30",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 1700
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "endTime"
},
"parentId": "t05_27",
"slot": "try_fn"
},
{
"id": "t05_31",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${[\"05-03\", \"Basic_Delay_V1\", (endTime.timestamp - startTime.timestamp >= 120 && endTime.timestamp - startTime.timestamp <= 1800) ? \"PASS\" : \"FAIL\", \"{\\\"second\\\":\\\"0.15\\\"}\", \"实际等待耗时 120~1800 ms\", endTime.timestamp - startTime.timestamp]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_3"
},
"parentId": "t05_27",
"slot": "try_fn"
},
{
"id": "t05_32",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${failures + (case_3[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_27",
"slot": "try_fn"
},
{
"id": "t05_33",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${pending + (case_3[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_27",
"slot": "try_fn"
},
{
"id": "t05_34",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${[\"05-03\", \"Basic_Delay_V1\", \"FAIL\", \"{\\\"second\\\":\\\"0.15\\\"}\", \"实际等待耗时 120~1800 ms\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_3"
},
"parentId": "t05_27",
"slot": "except_fn"
},
{
"id": "t05_35",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${failures + (case_3[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_27",
"slot": "except_fn"
},
{
"id": "t05_36",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 1700
},
"values": {
"value": "${pending + (case_3[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_27",
"slot": "except_fn"
},
{
"id": "t05_37",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 3134
},
"values": {
"msg": "用例结果:${json(case_3)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_38",
"componentId": "logic_control_try_catch",
"label": "05-04 · Basic_Delay",
"position": {
"x": 220,
"y": 3276
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_39",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 2060
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "startTime"
},
"parentId": "t05_38",
"slot": "try_fn"
},
{
"id": "t05_40",
"componentId": "Basic_Delay",
"label": "Basic_Delay",
"position": {
"x": 220,
"y": 2060
},
"values": {
"mileSecond": "3000"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_4"
},
"parentId": "t05_38",
"slot": "try_fn"
},
{
"id": "t05_41",
"componentId": "Time_GetDatetimeObj",
"label": "独立采集毫秒时间",
"position": {
"x": 220,
"y": 2060
},
"values": {
"date_input": "${now()}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "endTime"
},
"parentId": "t05_38",
"slot": "try_fn"
},
{
"id": "t05_42",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${[\"05-04\", \"Basic_Delay\", (endTime.timestamp - startTime.timestamp >= 2800 && endTime.timestamp - startTime.timestamp <= 6500) ? \"PASS\" : \"FAIL\", \"{\\\"mileSecond\\\":\\\"3000\\\"}\", \"实际等待耗时 2800~6500 ms\", endTime.timestamp - startTime.timestamp]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_4"
},
"parentId": "t05_38",
"slot": "try_fn"
},
{
"id": "t05_43",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${failures + (case_4[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_38",
"slot": "try_fn"
},
{
"id": "t05_44",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${pending + (case_4[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_38",
"slot": "try_fn"
},
{
"id": "t05_45",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${[\"05-04\", \"Basic_Delay\", \"FAIL\", \"{\\\"mileSecond\\\":\\\"3000\\\"}\", \"实际等待耗时 2800~6500 ms\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_4"
},
"parentId": "t05_38",
"slot": "except_fn"
},
{
"id": "t05_46",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${failures + (case_4[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_38",
"slot": "except_fn"
},
{
"id": "t05_47",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 2060
},
"values": {
"value": "${pending + (case_4[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_38",
"slot": "except_fn"
},
{
"id": "t05_48",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 4010
},
"values": {
"msg": "用例结果:${json(case_4)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_49",
"componentId": "logic_control_try_catch",
"label": "05-05 · Basic_RandomInt",
"position": {
"x": 220,
"y": 4152
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_50",
"componentId": "Basic_RandomInt",
"label": "Basic_RandomInt",
"position": {
"x": 220,
"y": 2420
},
"values": {
"min": 7,
"max": 7
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_5"
},
"parentId": "t05_49",
"slot": "try_fn"
},
{
"id": "t05_51",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${[\"05-05\", \"Basic_RandomInt\", (actual_5 === 7) ? \"PASS\" : \"FAIL\", \"{\\\"min\\\":7,\\\"max\\\":7}\", \"最小值等于最大值时返回整数 7\", actual_5]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_5"
},
"parentId": "t05_49",
"slot": "try_fn"
},
{
"id": "t05_52",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${failures + (case_5[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_49",
"slot": "try_fn"
},
{
"id": "t05_53",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${pending + (case_5[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_49",
"slot": "try_fn"
},
{
"id": "t05_54",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${[\"05-05\", \"Basic_RandomInt\", \"FAIL\", \"{\\\"min\\\":7,\\\"max\\\":7}\", \"最小值等于最大值时返回整数 7\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_5"
},
"parentId": "t05_49",
"slot": "except_fn"
},
{
"id": "t05_55",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${failures + (case_5[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_49",
"slot": "except_fn"
},
{
"id": "t05_56",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 2420
},
"values": {
"value": "${pending + (case_5[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_49",
"slot": "except_fn"
},
{
"id": "t05_57",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 4794
},
"values": {
"msg": "用例结果:${json(case_5)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_58",
"componentId": "logic_control_try_catch",
"label": "05-06 · Basic_RandomInt",
"position": {
"x": 220,
"y": 4936
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_59",
"componentId": "Basic_RandomInt",
"label": "Basic_RandomInt",
"position": {
"x": 220,
"y": 2780
},
"values": {
"min": -2,
"max": 2
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_6"
},
"parentId": "t05_58",
"slot": "try_fn"
},
{
"id": "t05_60",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${[\"05-06\", \"Basic_RandomInt\", (actual_6 >= -2 && actual_6 <= 2 && actual_6 % 1 === 0) ? \"PASS\" : \"FAIL\", \"{\\\"min\\\":-2,\\\"max\\\":2}\", \"返回 -2~2 的整数\", actual_6]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_6"
},
"parentId": "t05_58",
"slot": "try_fn"
},
{
"id": "t05_61",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${failures + (case_6[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_58",
"slot": "try_fn"
},
{
"id": "t05_62",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${pending + (case_6[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_58",
"slot": "try_fn"
},
{
"id": "t05_63",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${[\"05-06\", \"Basic_RandomInt\", \"FAIL\", \"{\\\"min\\\":-2,\\\"max\\\":2}\", \"返回 -2~2 的整数\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_6"
},
"parentId": "t05_58",
"slot": "except_fn"
},
{
"id": "t05_64",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${failures + (case_6[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_58",
"slot": "except_fn"
},
{
"id": "t05_65",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 2780
},
"values": {
"value": "${pending + (case_6[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_58",
"slot": "except_fn"
},
{
"id": "t05_66",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 5578
},
"values": {
"msg": "用例结果:${json(case_6)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_67",
"componentId": "logic_control_try_catch",
"label": "05-07 · Basic_Rnd",
"position": {
"x": 220,
"y": 5720
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_68",
"componentId": "Basic_Rnd",
"label": "Basic_Rnd",
"position": {
"x": 220,
"y": 3140
},
"values": {},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "actual_7"
},
"parentId": "t05_67",
"slot": "try_fn"
},
{
"id": "t05_69",
"componentId": "Basic_SetVariable",
"label": "记录实际值与判定",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${[\"05-07\", \"Basic_Rnd\", (actual_7 >= 0 && actual_7 < 1) ? \"PASS\" : \"FAIL\", \"{}\", \"随机小数满足 0 ≤ x < 1\", actual_7]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_7"
},
"parentId": "t05_67",
"slot": "try_fn"
},
{
"id": "t05_70",
"componentId": "Basic_SetVariable",
"label": "累计失败数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${failures + (case_7[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_67",
"slot": "try_fn"
},
{
"id": "t05_71",
"componentId": "Basic_SetVariable",
"label": "累计待人工确认数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${pending + (case_7[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_67",
"slot": "try_fn"
},
{
"id": "t05_72",
"componentId": "Basic_SetVariable",
"label": "记录异常结果",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${[\"05-07\", \"Basic_Rnd\", \"FAIL\", \"{}\", \"随机小数满足 0 ≤ x < 1\", error.reason]}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "case_7"
},
"parentId": "t05_67",
"slot": "except_fn"
},
{
"id": "t05_73",
"componentId": "Basic_SetVariable",
"label": "异常累计失败数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${failures + (case_7[2] === \"FAIL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "failures"
},
"parentId": "t05_67",
"slot": "except_fn"
},
{
"id": "t05_74",
"componentId": "Basic_SetVariable",
"label": "异常累计待确认数",
"position": {
"x": 220,
"y": 3140
},
"values": {
"value": "${pending + (case_7[2] === \"MANUAL\" ? 1 : 0)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false,
"outputVar": "pending"
},
"parentId": "t05_67",
"slot": "except_fn"
},
{
"id": "t05_75",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 6362
},
"values": {
"msg": "用例结果:${json(case_7)}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_76",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 6504
},
"values": {
"msg": "本组汇总:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_77",
"componentId": "logic_control_if_else",
"label": "汇总判定",
"position": {
"x": 220,
"y": 6646
},
"values": {
"condition": "${failures > 0 || pending > 0 || blocked > 0}"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
}
},
{
"id": "t05_78",
"componentId": "ExceptionUtil_Throws",
"label": "如实标记未通过",
"position": {
"x": 220,
"y": 3680
},
"values": {
"msg": "组件测试未全部通过:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。请查看日志。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t05_77",
"slot": "statement_if"
},
{
"id": "t05_79",
"componentId": "Log_Info",
"label": "输出测试结果",
"position": {
"x": 220,
"y": 3680
},
"values": {
"msg": "本组全部通过。"
},
"options": {
"timeoutMs": 15000,
"retryCount": 0,
"logException": false
},
"parentId": "t05_77",
"slot": "statement_else"
}
],
"edges": [
{
"id": "e_t05_2",
"source": "t05_1",
"target": "t05_2"
},
{
"id": "e_t05_3",
"source": "t05_2",
"target": "t05_3"
},
{
"id": "e_t05_4",
"source": "t05_3",
"target": "t05_4"
},
{
"id": "e_t05_5",
"source": "t05_4",
"target": "t05_5"
},
{
"id": "e_t05_15",
"source": "t05_5",
"target": "t05_15"
},
{
"id": "e_t05_16",
"source": "t05_15",
"target": "t05_16"
},
{
"id": "e_t05_26",
"source": "t05_16",
"target": "t05_26"
},
{
"id": "e_t05_27",
"source": "t05_26",
"target": "t05_27"
},
{
"id": "e_t05_37",
"source": "t05_27",
"target": "t05_37"
},
{
"id": "e_t05_38",
"source": "t05_37",
"target": "t05_38"
},
{
"id": "e_t05_48",
"source": "t05_38",
"target": "t05_48"
},
{
"id": "e_t05_49",
"source": "t05_48",
"target": "t05_49"
},
{
"id": "e_t05_57",
"source": "t05_49",
"target": "t05_57"
},
{
"id": "e_t05_58",
"source": "t05_57",
"target": "t05_58"
},
{
"id": "e_t05_66",
"source": "t05_58",
"target": "t05_66"
},
{
"id": "e_t05_67",
"source": "t05_66",
"target": "t05_67"
},
{
"id": "e_t05_75",
"source": "t05_67",
"target": "t05_75"
},
{
"id": "e_t05_76",
"source": "t05_75",
"target": "t05_76"
},
{
"id": "e_t05_77",
"source": "t05_76",
"target": "t05_77"
}
],
"meta": {
"createdAt": "2026-10-30T00:00:00.000Z",
"updatedAt": "2026-10-30T00:00:00.000Z",
"appVersion": "0.1.0"
}
}