提供 13 组、74 个用例,覆盖 49 项可执行组件。 新增隔离运行、真实界面检查、结果汇总和安全安装脚本。 升级仅覆盖未修改的测试模板,并保留原文件备份。 为手动操作设置保护开关,保留修复前后验证证据。 验证:43 项相关检查、类型检查与构建通过。
2014 lines
46 KiB
JSON
2014 lines
46 KiB
JSON
{
|
||
"schemaVersion": 1,
|
||
"id": "test_appsystem_02",
|
||
"name": "组件测试 02 · 数据转换",
|
||
"description": "查看运行日志中的用例结果;有失败时任务最终显示失败,其他用例仍继续。",
|
||
"enabled": true,
|
||
"trigger": {
|
||
"type": "manual",
|
||
"label": "手动运行"
|
||
},
|
||
"variables": [],
|
||
"nodes": [
|
||
{
|
||
"id": "t02_1",
|
||
"componentId": "Trigger.Manual",
|
||
"label": "人工发起",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 80
|
||
},
|
||
"values": {
|
||
"entryName": "开始组件测试"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_2",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "初始化失败计数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 222
|
||
},
|
||
"values": {
|
||
"value": 0
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "failures"
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_3",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "初始化待确认计数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 364
|
||
},
|
||
"values": {
|
||
"value": 0
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "pending"
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_4",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "初始化阻塞计数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 506
|
||
},
|
||
"values": {
|
||
"value": 0
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "blocked"
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_5",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-01 · Basic_StringToNum",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 648
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_6",
|
||
"componentId": "Basic_StringToNum",
|
||
"label": "Basic_StringToNum",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 980
|
||
},
|
||
"values": {
|
||
"val": "123.5"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_1"
|
||
},
|
||
"parentId": "t02_5",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_7",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 980
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-01\", \"Basic_StringToNum\", (actual_1 === 123.5) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":\\\"123.5\\\"}\", \"数字 123.5\", actual_1]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_1"
|
||
},
|
||
"parentId": "t02_5",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_8",
|
||
"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": "t02_5",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_9",
|
||
"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": "t02_5",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_10",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 980
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-01\", \"Basic_StringToNum\", \"FAIL\", \"{\\\"val\\\":\\\"123.5\\\"}\", \"数字 123.5\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_1"
|
||
},
|
||
"parentId": "t02_5",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_11",
|
||
"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": "t02_5",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_12",
|
||
"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": "t02_5",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_13",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1290
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_1)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_14",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-02 · Basic_ConvertNumber",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1432
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_15",
|
||
"componentId": "Basic_ConvertNumber",
|
||
"label": "Basic_ConvertNumber",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1340
|
||
},
|
||
"values": {
|
||
"val": "-42.25"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_2"
|
||
},
|
||
"parentId": "t02_14",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_16",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1340
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-02\", \"Basic_ConvertNumber\", (actual_2 === -42.25) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":\\\"-42.25\\\"}\", \"数字 -42.25\", actual_2]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_2"
|
||
},
|
||
"parentId": "t02_14",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_17",
|
||
"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": "t02_14",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_18",
|
||
"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": "t02_14",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_19",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1340
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-02\", \"Basic_ConvertNumber\", \"FAIL\", \"{\\\"val\\\":\\\"-42.25\\\"}\", \"数字 -42.25\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_2"
|
||
},
|
||
"parentId": "t02_14",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_20",
|
||
"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": "t02_14",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_21",
|
||
"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": "t02_14",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_22",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2074
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_2)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_23",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-03 · Basic_ConvertInt",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2216
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_24",
|
||
"componentId": "Basic_ConvertInt",
|
||
"label": "Basic_ConvertInt",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1700
|
||
},
|
||
"values": {
|
||
"val": -3.9
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_3"
|
||
},
|
||
"parentId": "t02_23",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_25",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1700
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-03\", \"Basic_ConvertInt\", (actual_3 === -3) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":-3.9}\", \"整数 -3(向零截断)\", actual_3]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_3"
|
||
},
|
||
"parentId": "t02_23",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_26",
|
||
"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": "t02_23",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_27",
|
||
"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": "t02_23",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_28",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 1700
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-03\", \"Basic_ConvertInt\", \"FAIL\", \"{\\\"val\\\":-3.9}\", \"整数 -3(向零截断)\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_3"
|
||
},
|
||
"parentId": "t02_23",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_29",
|
||
"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": "t02_23",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_30",
|
||
"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": "t02_23",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_31",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2858
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_3)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_32",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-04 · Basic_ConvertBool",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3000
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_33",
|
||
"componentId": "Basic_ConvertBool",
|
||
"label": "Basic_ConvertBool",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2060
|
||
},
|
||
"values": {
|
||
"val": "true"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_4"
|
||
},
|
||
"parentId": "t02_32",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_34",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2060
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-04\", \"Basic_ConvertBool\", (actual_4 === true) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":\\\"true\\\"}\", \"布尔 true\", actual_4]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_4"
|
||
},
|
||
"parentId": "t02_32",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_35",
|
||
"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": "t02_32",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_36",
|
||
"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": "t02_32",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_37",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2060
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-04\", \"Basic_ConvertBool\", \"FAIL\", \"{\\\"val\\\":\\\"true\\\"}\", \"布尔 true\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_4"
|
||
},
|
||
"parentId": "t02_32",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_38",
|
||
"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": "t02_32",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_39",
|
||
"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": "t02_32",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_40",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3642
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_4)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_41",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-05 · Basic_ConvertBool",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3784
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_42",
|
||
"componentId": "Basic_ConvertBool",
|
||
"label": "Basic_ConvertBool",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2420
|
||
},
|
||
"values": {
|
||
"val": "false"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_5"
|
||
},
|
||
"parentId": "t02_41",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_43",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2420
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-05\", \"Basic_ConvertBool\", (actual_5 === false) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":\\\"false\\\"}\", \"布尔 false\", actual_5]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_5"
|
||
},
|
||
"parentId": "t02_41",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_44",
|
||
"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": "t02_41",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_45",
|
||
"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": "t02_41",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_46",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2420
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-05\", \"Basic_ConvertBool\", \"FAIL\", \"{\\\"val\\\":\\\"false\\\"}\", \"布尔 false\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_5"
|
||
},
|
||
"parentId": "t02_41",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_47",
|
||
"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": "t02_41",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_48",
|
||
"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": "t02_41",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_49",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4426
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_5)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_50",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-06 · Basic_ConvertString",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4568
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_51",
|
||
"componentId": "Basic_ConvertString",
|
||
"label": "Basic_ConvertString",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2780
|
||
},
|
||
"values": {
|
||
"val": 42
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_6"
|
||
},
|
||
"parentId": "t02_50",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_52",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2780
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-06\", \"Basic_ConvertString\", (actual_6 === \"42\") ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":42}\", \"文本 \\\"42\\\"\", actual_6]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_6"
|
||
},
|
||
"parentId": "t02_50",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_53",
|
||
"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": "t02_50",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_54",
|
||
"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": "t02_50",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_55",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 2780
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-06\", \"Basic_ConvertString\", \"FAIL\", \"{\\\"val\\\":42}\", \"文本 \\\"42\\\"\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_6"
|
||
},
|
||
"parentId": "t02_50",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_56",
|
||
"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": "t02_50",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_57",
|
||
"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": "t02_50",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_58",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 5210
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_6)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_59",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-07 · Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 5352
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_60",
|
||
"componentId": "Basic_DataTypeConversion",
|
||
"label": "Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3140
|
||
},
|
||
"values": {
|
||
"val": "42",
|
||
"into_type": "number"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_7"
|
||
},
|
||
"parentId": "t02_59",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_61",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3140
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-07\", \"Basic_DataTypeConversion\", (actual_7 === 42) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":\\\"42\\\",\\\"into_type\\\":\\\"number\\\"}\", \"数值 42,严格区分文本和数值\", actual_7]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_7"
|
||
},
|
||
"parentId": "t02_59",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_62",
|
||
"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": "t02_59",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_63",
|
||
"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": "t02_59",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_64",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3140
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-07\", \"Basic_DataTypeConversion\", \"FAIL\", \"{\\\"val\\\":\\\"42\\\",\\\"into_type\\\":\\\"number\\\"}\", \"数值 42,严格区分文本和数值\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_7"
|
||
},
|
||
"parentId": "t02_59",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_65",
|
||
"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": "t02_59",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_66",
|
||
"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": "t02_59",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_67",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 5994
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_7)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_68",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-08 · Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 6136
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_69",
|
||
"componentId": "Basic_DataTypeConversion",
|
||
"label": "Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3500
|
||
},
|
||
"values": {
|
||
"val": "-3.9",
|
||
"into_type": "int"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_8"
|
||
},
|
||
"parentId": "t02_68",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_70",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3500
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-08\", \"Basic_DataTypeConversion\", (actual_8 === -3) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":\\\"-3.9\\\",\\\"into_type\\\":\\\"int\\\"}\", \"整数 -3\", actual_8]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_8"
|
||
},
|
||
"parentId": "t02_68",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_71",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "累计失败数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3500
|
||
},
|
||
"values": {
|
||
"value": "${failures + (case_8[2] === \"FAIL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "failures"
|
||
},
|
||
"parentId": "t02_68",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_72",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "累计待人工确认数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3500
|
||
},
|
||
"values": {
|
||
"value": "${pending + (case_8[2] === \"MANUAL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "pending"
|
||
},
|
||
"parentId": "t02_68",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_73",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3500
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-08\", \"Basic_DataTypeConversion\", \"FAIL\", \"{\\\"val\\\":\\\"-3.9\\\",\\\"into_type\\\":\\\"int\\\"}\", \"整数 -3\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_8"
|
||
},
|
||
"parentId": "t02_68",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_74",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "异常累计失败数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3500
|
||
},
|
||
"values": {
|
||
"value": "${failures + (case_8[2] === \"FAIL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "failures"
|
||
},
|
||
"parentId": "t02_68",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_75",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "异常累计待确认数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3500
|
||
},
|
||
"values": {
|
||
"value": "${pending + (case_8[2] === \"MANUAL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "pending"
|
||
},
|
||
"parentId": "t02_68",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_76",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 6778
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_8)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_77",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-09 · Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 6920
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_78",
|
||
"componentId": "Basic_DataTypeConversion",
|
||
"label": "Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3860
|
||
},
|
||
"values": {
|
||
"val": "false",
|
||
"into_type": "bool"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_9"
|
||
},
|
||
"parentId": "t02_77",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_79",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3860
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-09\", \"Basic_DataTypeConversion\", (actual_9 === false) ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":\\\"false\\\",\\\"into_type\\\":\\\"bool\\\"}\", \"布尔 false\", actual_9]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_9"
|
||
},
|
||
"parentId": "t02_77",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_80",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "累计失败数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3860
|
||
},
|
||
"values": {
|
||
"value": "${failures + (case_9[2] === \"FAIL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "failures"
|
||
},
|
||
"parentId": "t02_77",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_81",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "累计待人工确认数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3860
|
||
},
|
||
"values": {
|
||
"value": "${pending + (case_9[2] === \"MANUAL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "pending"
|
||
},
|
||
"parentId": "t02_77",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_82",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3860
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-09\", \"Basic_DataTypeConversion\", \"FAIL\", \"{\\\"val\\\":\\\"false\\\",\\\"into_type\\\":\\\"bool\\\"}\", \"布尔 false\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_9"
|
||
},
|
||
"parentId": "t02_77",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_83",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "异常累计失败数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3860
|
||
},
|
||
"values": {
|
||
"value": "${failures + (case_9[2] === \"FAIL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "failures"
|
||
},
|
||
"parentId": "t02_77",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_84",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "异常累计待确认数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 3860
|
||
},
|
||
"values": {
|
||
"value": "${pending + (case_9[2] === \"MANUAL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "pending"
|
||
},
|
||
"parentId": "t02_77",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_85",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 7562
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_9)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_86",
|
||
"componentId": "logic_control_try_catch",
|
||
"label": "02-10 · Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 7704
|
||
},
|
||
"values": {},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_87",
|
||
"componentId": "Basic_DataTypeConversion",
|
||
"label": "Basic_DataTypeConversion",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4220
|
||
},
|
||
"values": {
|
||
"val": 42,
|
||
"into_type": "string"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "actual_10"
|
||
},
|
||
"parentId": "t02_86",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_88",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录实际值与判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4220
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-10\", \"Basic_DataTypeConversion\", (actual_10 === \"42\") ? \"PASS\" : \"FAIL\", \"{\\\"val\\\":42,\\\"into_type\\\":\\\"string\\\"}\", \"文本 \\\"42\\\"\", actual_10]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_10"
|
||
},
|
||
"parentId": "t02_86",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_89",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "累计失败数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4220
|
||
},
|
||
"values": {
|
||
"value": "${failures + (case_10[2] === \"FAIL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "failures"
|
||
},
|
||
"parentId": "t02_86",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_90",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "累计待人工确认数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4220
|
||
},
|
||
"values": {
|
||
"value": "${pending + (case_10[2] === \"MANUAL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "pending"
|
||
},
|
||
"parentId": "t02_86",
|
||
"slot": "try_fn"
|
||
},
|
||
{
|
||
"id": "t02_91",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "记录异常结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4220
|
||
},
|
||
"values": {
|
||
"value": "${[\"02-10\", \"Basic_DataTypeConversion\", \"FAIL\", \"{\\\"val\\\":42,\\\"into_type\\\":\\\"string\\\"}\", \"文本 \\\"42\\\"\", error.reason]}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "case_10"
|
||
},
|
||
"parentId": "t02_86",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_92",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "异常累计失败数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4220
|
||
},
|
||
"values": {
|
||
"value": "${failures + (case_10[2] === \"FAIL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "failures"
|
||
},
|
||
"parentId": "t02_86",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_93",
|
||
"componentId": "Basic_SetVariable",
|
||
"label": "异常累计待确认数",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4220
|
||
},
|
||
"values": {
|
||
"value": "${pending + (case_10[2] === \"MANUAL\" ? 1 : 0)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false,
|
||
"outputVar": "pending"
|
||
},
|
||
"parentId": "t02_86",
|
||
"slot": "except_fn"
|
||
},
|
||
{
|
||
"id": "t02_94",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 8346
|
||
},
|
||
"values": {
|
||
"msg": "用例结果:${json(case_10)}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_95",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 8488
|
||
},
|
||
"values": {
|
||
"msg": "本组汇总:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_96",
|
||
"componentId": "logic_control_if_else",
|
||
"label": "汇总判定",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 8630
|
||
},
|
||
"values": {
|
||
"condition": "${failures > 0 || pending > 0 || blocked > 0}"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
}
|
||
},
|
||
{
|
||
"id": "t02_97",
|
||
"componentId": "ExceptionUtil_Throws",
|
||
"label": "如实标记未通过",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4760
|
||
},
|
||
"values": {
|
||
"msg": "组件测试未全部通过:失败 ${failures} 项,阻塞 ${blocked} 项,待人工确认 ${pending} 项。请查看日志。"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
},
|
||
"parentId": "t02_96",
|
||
"slot": "statement_if"
|
||
},
|
||
{
|
||
"id": "t02_98",
|
||
"componentId": "Log_Info",
|
||
"label": "输出测试结果",
|
||
"position": {
|
||
"x": 220,
|
||
"y": 4760
|
||
},
|
||
"values": {
|
||
"msg": "本组全部通过。"
|
||
},
|
||
"options": {
|
||
"timeoutMs": 15000,
|
||
"retryCount": 0,
|
||
"logException": false
|
||
},
|
||
"parentId": "t02_96",
|
||
"slot": "statement_else"
|
||
}
|
||
],
|
||
"edges": [
|
||
{
|
||
"id": "e_t02_2",
|
||
"source": "t02_1",
|
||
"target": "t02_2"
|
||
},
|
||
{
|
||
"id": "e_t02_3",
|
||
"source": "t02_2",
|
||
"target": "t02_3"
|
||
},
|
||
{
|
||
"id": "e_t02_4",
|
||
"source": "t02_3",
|
||
"target": "t02_4"
|
||
},
|
||
{
|
||
"id": "e_t02_5",
|
||
"source": "t02_4",
|
||
"target": "t02_5"
|
||
},
|
||
{
|
||
"id": "e_t02_13",
|
||
"source": "t02_5",
|
||
"target": "t02_13"
|
||
},
|
||
{
|
||
"id": "e_t02_14",
|
||
"source": "t02_13",
|
||
"target": "t02_14"
|
||
},
|
||
{
|
||
"id": "e_t02_22",
|
||
"source": "t02_14",
|
||
"target": "t02_22"
|
||
},
|
||
{
|
||
"id": "e_t02_23",
|
||
"source": "t02_22",
|
||
"target": "t02_23"
|
||
},
|
||
{
|
||
"id": "e_t02_31",
|
||
"source": "t02_23",
|
||
"target": "t02_31"
|
||
},
|
||
{
|
||
"id": "e_t02_32",
|
||
"source": "t02_31",
|
||
"target": "t02_32"
|
||
},
|
||
{
|
||
"id": "e_t02_40",
|
||
"source": "t02_32",
|
||
"target": "t02_40"
|
||
},
|
||
{
|
||
"id": "e_t02_41",
|
||
"source": "t02_40",
|
||
"target": "t02_41"
|
||
},
|
||
{
|
||
"id": "e_t02_49",
|
||
"source": "t02_41",
|
||
"target": "t02_49"
|
||
},
|
||
{
|
||
"id": "e_t02_50",
|
||
"source": "t02_49",
|
||
"target": "t02_50"
|
||
},
|
||
{
|
||
"id": "e_t02_58",
|
||
"source": "t02_50",
|
||
"target": "t02_58"
|
||
},
|
||
{
|
||
"id": "e_t02_59",
|
||
"source": "t02_58",
|
||
"target": "t02_59"
|
||
},
|
||
{
|
||
"id": "e_t02_67",
|
||
"source": "t02_59",
|
||
"target": "t02_67"
|
||
},
|
||
{
|
||
"id": "e_t02_68",
|
||
"source": "t02_67",
|
||
"target": "t02_68"
|
||
},
|
||
{
|
||
"id": "e_t02_76",
|
||
"source": "t02_68",
|
||
"target": "t02_76"
|
||
},
|
||
{
|
||
"id": "e_t02_77",
|
||
"source": "t02_76",
|
||
"target": "t02_77"
|
||
},
|
||
{
|
||
"id": "e_t02_85",
|
||
"source": "t02_77",
|
||
"target": "t02_85"
|
||
},
|
||
{
|
||
"id": "e_t02_86",
|
||
"source": "t02_85",
|
||
"target": "t02_86"
|
||
},
|
||
{
|
||
"id": "e_t02_94",
|
||
"source": "t02_86",
|
||
"target": "t02_94"
|
||
},
|
||
{
|
||
"id": "e_t02_95",
|
||
"source": "t02_94",
|
||
"target": "t02_95"
|
||
},
|
||
{
|
||
"id": "e_t02_96",
|
||
"source": "t02_95",
|
||
"target": "t02_96"
|
||
}
|
||
],
|
||
"meta": {
|
||
"createdAt": "2026-10-30T00:00:00.000Z",
|
||
"updatedAt": "2026-10-30T00:00:00.000Z",
|
||
"appVersion": "0.1.0"
|
||
}
|
||
}
|