eSIM RSP 测试用例对比站

人工切片(-man) ↔ Cas 盲生成(-cas)· 真机真卡执行证据对照

源码对照:4.2.23.2.3

ES10c 删除 Profile(Case 4) / TC_eUICC_ES10c.DeleteProfile_Case4

左侧为人工切片入口(-man,来自 原料/切片 的最小可执行脚本),右侧为 Cas 盲生成入口(-cas,仅依据规范生成)。文件按原始编码(多为 GBK)解码为 UTF-8 显示,行号自 1 起;字节级原文与 sha256 见两侧脚本包。完整 unified diff 见本页底部折叠区,以及 报告原文 §4。
-man 入口
Import/TestCase_SGP_23.js
49 行 / 1969 字符 / gb18030
-cas 入口
TC_eUICC_ES10c_DeleteProfile_Case4/Import/TC_eUICC_ES10c_DeleteProfile_Case4.js
90 行 / 7826 字符 / gb18030
默认折行显示长行;取消勾选可横向滚动查看原始行宽
-man 人工切片Import/TestCase_SGP_23.js49 行 / 1969 字符 / gb18030入口函数 @L3
1// slice of Import\TestCase_SGP_23.js - cases: TC_eUICC_ES10c_DeleteProfile_Case4_01_Nominal_Delete_Profile_by_ISD_P_AID (extracted verbatim)
2
3function TC_eUICC_ES10c_DeleteProfile_Case4_01_Nominal_Delete_Profile_by_ISD_P_AID()
4{
5	initial_condition_PROFILE_OPERATIONAL1_is_Disabled();
6	var ISD_P_Test01 = curProfile_ISD_P_AID;
7	
8	tracenamestr = "测试目的:通过ISD-P AID删除profile";
9	curDis.TraceStart(sno++,tracenamestr);
10	
11	curLogicChannel = 0;
12	curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
13	Ini_powerOn_eUICC_LPAe_not_activate();
14	
15	curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
16	TS_MANAGE_CHANNEL_OPEN();
17	
18	curLogicChannel = 1;
19	
20	curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
21	TS_SELECT("Select ISD",ISD_R_AID,"9000");
22	
23	curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行DeleteProfileRequest,通过ISD-P AID删除profile;");
24	var deleProfileRequest = new DeleteProfileRequest();
25	deleProfileRequest.isdpAid = ISD_P_Test01;
26	deleProfileRequest.GenHexData();
27	var respData = LPAd_Transport_data_to_eUICC(deleProfileRequest.hexData,"91","00","9000");
28	
29	curStrHandle.CheckData("BF3303800100", respData, "DeleteProfileResponse");
30	
31	curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile状态;");
32	var proInfoListRequest = new ProfileInfoListRequest();
33	proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.isdpAid,ISD_P_Test01);
34	proInfoListRequest.tagList = "5A4F9F70";
35	proInfoListRequest.GenHexData();
36	var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
37	
38	var proInfoListResponse = new  ProfileInfoListResponse();
39	proInfoListResponse.checkCardResDataFormat(respData);
40	try
41	{
42		curStrHandle.CheckData("00", obj.ToHex(proInfoListResponse.profileInfoListOk.arrOfElement.length),"Profile Info number");
43	}catch(e){
44		obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
45	}
46	
47	RecoverCard();
48}
49
-cas 盲生成TC_eUICC_ES10c_DeleteProfile_Case4/Import/TC_eUICC_ES10c_DeleteProfile_Case4.js90 行 / 7826 字符 / gb18030
1// Author: 卡思Cas智能体
2// Date: 20261004-021956
3// Function: (purpose 原文未由 SGP.23 该 TC 提供,corpus vacuum 登记)TC_eUICC_ES10c.DeleteProfile_Case4,Test Sequence #01-#02 Nominal(本 TC 全部 2 条 Test Sequence 合并展开),适用性 M。
4// Test points: ICH-IC1-K1-C1 ATR_present;ICH-IC1-K2-C2 FCP_Template;ICH-IC1-K2-C4 SW
5//   ICH-IC1-K3-C4 SW;ICH-IC1-K4-C4 final SW;ICH-IC2-K1-C4 SW;ICH-IC2-K1-C3 CHANNEL_NUMBER extracted
6//   ICH-IC2-K2-C4 SW;S1-C1 SW;S1-C2 deleteResult ok;S2-C1 SW;S2-C2 profileInfoListOk empty;S3-C1 SW
7//   S3-C2 deleteResult ok;S4-C1 SW;S4-C2 profileInfoListOk empty
8// 本函数由 CaseIR 4.2.23.2.3 编译生成(4.2.23.2.3-TC_eUICC_ES10c.DeleteProfile_Case4-20261004_021956,SGP.23 v1.16 × SGP.22 v2.7):字节权威=CaseIR,非誊录黄金脚本。
9// Value-free template: every data byte is injected from CaseIR fields; no scaffold globals (see docs/speconly/compile-symbol-migration.md).
10// 适用性 M:编译期门,运行时由 harness 环境前置承担。
11function TC_eUICC_ES10c_DeleteProfile_Case4_01_02_Nominal_TC_2_Test_Sequence() {
12    var bind = curBind;
13    var profileAidSession = BindEs10xProcProfileDynamic.beginSession(bind, "TC_eUICC_ES10c_DeleteProfile_Case4_01_02_Nominal_TC_2_Test_Sequence");
14    // runtime-bound payload: ISD_P_AID1 stays in execution domain; context_lineage: {"context_id": "5e43d9f19c242cac", "authority_reference": "E_tc_4223/38-38/G_annexB_dynamic:L51"}
15    var cardCtxLoad1 = BindCardContext.load(bind, profileAidSession, "ISD_P_AID1", {"tag":"4F","bytes":16,"range":{"minHex":"A0000005591010FFFFFFFF8900001000","maxHex":"A0000005591010FFFFFFFF8900FFFF00","lastByte":"00"}}, {token: CARD_CONTEXT_TOKEN, domainId: CARD_CONTEXT_DOMAIN});
16    // PREFLIGHT_CONTEXT AUTHORIZED_DISCOVERY: declared unexpanded (non-PROC row or K corpus vacuum; see CaseIR open_items).
17
18    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 1):RESET(K 语料机械展开)
19    var s6 = bind.resetAndAtr();
20    bind.checkData("ICH-IC1-K1-C1 ATR_present", "1", s6.atr_hex !== "" ? "1" : "0");
21
22    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 2):SELECT_MF(K 语料机械展开)
23    // FCP outer tag not materialized from clause: tag-face asserted only when corpus fixes the tag byte (e.g. TS 102 221 FCP '62').
24    var s7 = bind.sendApdu("00", "A4", "00", "04", "3F00", "00", "9000");
25    bind.checkData("ICH-IC1-K2-C2 FCP_Template", "1", s7.resp.length > 0 ? "1" : "0");
26    bind.checkData("ICH-IC1-K2-C4 SW", "9000", s7.sw);
27
28    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 3):TERMINAL_CAPABILITY_LPAd(K 语料机械展开)
29    var s8 = bind.sendApdu("80", "AA", "00", "00", "A9058100830107", null, "9000");
30    bind.checkData("ICH-IC1-K3-C4 SW", "9000", s8.sw);
31
32    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 4):TERMINAL_PROFILE(K 语料机械展开)
33    var steady9 = bind.runToSteadyState(function () {
34        return bind.sendTerminalProfile("FFFFFFFF7F9D00DFBF00001FE2000000C7EB0000000168005000000000000200", "9000");
35    });
36    bind.checkData("ICH-IC1-K4-C4 final SW", "9000", steady9.final.sw);
37
38    // IC head inline (initial_conditions → PROC_OPEN_LOGICAL_CHANNEL_AND_SELECT_ISDR, K row 1):MANAGE_CHANNEL_OPEN(K 语料机械展开)
39    // CHANNEL_NUMBER extraction and dynamic CLA rebinding are CasBind internal state (chaining rule; no generated-code re-implementation).
40    var s10 = bind.manageChannelOpen("9000");
41    bind.checkData("ICH-IC2-K1-C4 SW", "9000", s10.sw);
42    bind.checkData("ICH-IC2-K1-C3 CHANNEL_NUMBER extracted", "1", s10.chan !== null ? "1" : "0");
43
44    // IC head inline (initial_conditions → PROC_OPEN_LOGICAL_CHANNEL_AND_SELECT_ISDR, K row 2):MTD_SELECT(K 语料机械展开)
45    // CLA = bound channel (cla_rule) and <L> length binding are CasBind internal state (chaining rule; no generated-code re-implementation).
46    var s11 = bind.sendApdu(null, "A4", "04", "00", "A0000005591010FFFFFFFF8900000100", null, "9000");
47    // MTD_SELECT expected face is SW-only (K Annex C.2 open-channel procedure step 2: no FCI content assertion in corpus); no fabricated template parse.
48    bind.checkData("ICH-IC2-K2-C4 SW", "9000", s11.sw);
49
50    // 步骤 1:MTD_STORE_DATA(tc_step)
51    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
52    var s1 = bind.sendApdu("81", "E2", "91", "00", "BF2D035C014F", "00", "9000");
53
54    // 步骤 2:Seq#01] MTD_STORE_DATA(tc_step;REQ: RQ24_010, RQ24_016, RQ24_020, RQ32_049, RQ32_051, RQ32_052, RQ57_154, RQ57_158, RQ57_159, RQ57_160)
55    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
56    var sdCla2 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
57    // runtime-bound payload: ISD_P_AID1 stays in execution domain
58    var s2 = bind.sendApdu(sdCla2, "E2", "91", "00", BindEs10xProcProfileDynamic.bindProfileAidTemplate(bind, "ISD_P_AID1", "BF33124F10", "", profileAidSession), "00", "9000");
59    bind.checkData("S1-C1 SW", "9000", s2.sw);
60    BindEs10xProcProfileDynamic.assertBoundPayload(bind, "ISD_P_AID1", s2.cmd, profileAidSession);
61    var r2w2 = BindGecaProc.parseGecaResponse(s2.resp, {outer: "BF33", required: ["80"]});
62    bind.checkData("S1-C2 deleteResult ok", "00", (r2w2.ok && r2w2.fields["80"] === "00") ? "00" : (r2w2.fields["80"] || "absent"));
63
64    // 步骤 3:Seq#01] MTD_STORE_DATA(tc_step;REQ: RQ24_010, RQ24_020, RQ57_119)
65    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
66    var sdCla3 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
67    // runtime-bound payload: ISD_P_AID1 stays in execution domain
68    var s3 = bind.sendApdu(sdCla3, "E2", "91", "00", BindEs10xProcProfileDynamic.bindProfileAidTemplate(bind, "ISD_P_AID1", "BF2D14A0124F10", "", profileAidSession), "00", "9000");
69    bind.checkData("S2-C1 SW", "9000", s3.sw);
70    BindEs10xProcProfileDynamic.assertBoundPayload(bind, "ISD_P_AID1", s3.cmd, profileAidSession);
71    var r2p3 = BindEs10xProcProfile.walkChoiceList(s3.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
72    bind.checkData("S2-C2 profileInfoListOk empty", "1", (r2p3.branch_tag === "A0" && r2p3.elements.length === 0) ? "1" : "0");
73
74    // 步骤 4:Seq#02] MTD_STORE_DATA(tc_step;REQ: RQ24_016, RQ24_020, RQ32_049, RQ32_051, RQ32_052, RQ57_154, RQ57_158, RQ57_159)
75    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
76    var sdCla4 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
77    var s4 = bind.sendApdu(sdCla4, "E2", "91", "00", "BF330C5A0A989209012143658709F5", "00", "9000");
78    bind.checkData("S3-C1 SW", "9000", s4.sw);
79    var r2w4 = BindGecaProc.parseGecaResponse(s4.resp, {outer: "BF33", required: ["80"]});
80    bind.checkData("S3-C2 deleteResult ok", "00", (r2w4.ok && r2w4.fields["80"] === "00") ? "00" : (r2w4.fields["80"] || "absent"));
81
82    // 步骤 5:Seq#02] MTD_STORE_DATA(tc_step;REQ: RQ24_020, RQ57_119)
83    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
84    var sdCla5 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
85    var s5 = bind.sendApdu(sdCla5, "E2", "91", "00", "BF2D0EA00C5A0A989209012143658709F5", "00", "9000");
86    bind.checkData("S4-C1 SW", "9000", s5.sw);
87    var r2p5 = BindEs10xProcProfile.walkChoiceList(s5.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
88    bind.checkData("S4-C2 profileInfoListOk empty", "1", (r2p5.branch_tag === "A0" && r2p5.elements.length === 0) ? "1" : "0");
89}
90

完整 unified diff

行级差异:新增 87 行 / 删除 46 行(以 -man 为基准,unified 上下文 3 行)。

展开 diff(139 行)
--- -man
+++ -cas
@@ -1,49 +1,90 @@
-// slice of Import\TestCase_SGP_23.js - cases: TC_eUICC_ES10c_DeleteProfile_Case4_01_Nominal_Delete_Profile_by_ISD_P_AID (extracted verbatim)
+// Author: 卡思Cas智能体
+// Date: 20261004-021956
+// Function: (purpose 原文未由 SGP.23 该 TC 提供,corpus vacuum 登记)TC_eUICC_ES10c.DeleteProfile_Case4,Test Sequence #01-#02 Nominal(本 TC 全部 2 条 Test Sequence 合并展开),适用性 M。
+// Test points: ICH-IC1-K1-C1 ATR_present;ICH-IC1-K2-C2 FCP_Template;ICH-IC1-K2-C4 SW
+//   ICH-IC1-K3-C4 SW;ICH-IC1-K4-C4 final SW;ICH-IC2-K1-C4 SW;ICH-IC2-K1-C3 CHANNEL_NUMBER extracted
+//   ICH-IC2-K2-C4 SW;S1-C1 SW;S1-C2 deleteResult ok;S2-C1 SW;S2-C2 profileInfoListOk empty;S3-C1 SW
+//   S3-C2 deleteResult ok;S4-C1 SW;S4-C2 profileInfoListOk empty
+// 本函数由 CaseIR 4.2.23.2.3 编译生成(4.2.23.2.3-TC_eUICC_ES10c.DeleteProfile_Case4-20261004_021956,SGP.23 v1.16 × SGP.22 v2.7):字节权威=CaseIR,非誊录黄金脚本。
+// Value-free template: every data byte is injected from CaseIR fields; no scaffold globals (see docs/speconly/compile-symbol-migration.md).
+// 适用性 M:编译期门,运行时由 harness 环境前置承担。
+function TC_eUICC_ES10c_DeleteProfile_Case4_01_02_Nominal_TC_2_Test_Sequence() {
+    var bind = curBind;
+    var profileAidSession = BindEs10xProcProfileDynamic.beginSession(bind, "TC_eUICC_ES10c_DeleteProfile_Case4_01_02_Nominal_TC_2_Test_Sequence");
+    // runtime-bound payload: ISD_P_AID1 stays in execution domain; context_lineage: {"context_id": "5e43d9f19c242cac", "authority_reference": "E_tc_4223/38-38/G_annexB_dynamic:L51"}
+    var cardCtxLoad1 = BindCardContext.load(bind, profileAidSession, "ISD_P_AID1", {"tag":"4F","bytes":16,"range":{"minHex":"A0000005591010FFFFFFFF8900001000","maxHex":"A0000005591010FFFFFFFF8900FFFF00","lastByte":"00"}}, {token: CARD_CONTEXT_TOKEN, domainId: CARD_CONTEXT_DOMAIN});
+    // PREFLIGHT_CONTEXT AUTHORIZED_DISCOVERY: declared unexpanded (non-PROC row or K corpus vacuum; see CaseIR open_items).
 
-function TC_eUICC_ES10c_DeleteProfile_Case4_01_Nominal_Delete_Profile_by_ISD_P_AID()
-{
-	initial_condition_PROFILE_OPERATIONAL1_is_Disabled();
-	var ISD_P_Test01 = curProfile_ISD_P_AID;
-	
-	tracenamestr = "测试目的:通过ISD-P AID删除profile";
-	curDis.TraceStart(sno++,tracenamestr);
-	
-	curLogicChannel = 0;
-	curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
-	Ini_powerOn_eUICC_LPAe_not_activate();
-	
-	curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
-	TS_MANAGE_CHANNEL_OPEN();
-	
-	curLogicChannel = 1;
-	
-	curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
-	TS_SELECT("Select ISD",ISD_R_AID,"9000");
-	
-	curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行DeleteProfileRequest,通过ISD-P AID删除profile;");
-	var deleProfileRequest = new DeleteProfileRequest();
-	deleProfileRequest.isdpAid = ISD_P_Test01;
-	deleProfileRequest.GenHexData();
-	var respData = LPAd_Transport_data_to_eUICC(deleProfileRequest.hexData,"91","00","9000");
-	
-	curStrHandle.CheckData("BF3303800100", respData, "DeleteProfileResponse");
-	
-	curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile状态;");
-	var proInfoListRequest = new ProfileInfoListRequest();
-	proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.isdpAid,ISD_P_Test01);
-	proInfoListRequest.tagList = "5A4F9F70";
-	proInfoListRequest.GenHexData();
-	var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-	
-	var proInfoListResponse = new  ProfileInfoListResponse();
-	proInfoListResponse.checkCardResDataFormat(respData);
-	try
-	{
-		curStrHandle.CheckData("00", obj.ToHex(proInfoListResponse.profileInfoListOk.arrOfElement.length),"Profile Info number");
-	}catch(e){
-		obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
-	}
-	
-	RecoverCard();
+    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 1):RESET(K 语料机械展开)
+    var s6 = bind.resetAndAtr();
+    bind.checkData("ICH-IC1-K1-C1 ATR_present", "1", s6.atr_hex !== "" ? "1" : "0");
+
+    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 2):SELECT_MF(K 语料机械展开)
+    // FCP outer tag not materialized from clause: tag-face asserted only when corpus fixes the tag byte (e.g. TS 102 221 FCP '62').
+    var s7 = bind.sendApdu("00", "A4", "00", "04", "3F00", "00", "9000");
+    bind.checkData("ICH-IC1-K2-C2 FCP_Template", "1", s7.resp.length > 0 ? "1" : "0");
+    bind.checkData("ICH-IC1-K2-C4 SW", "9000", s7.sw);
+
+    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 3):TERMINAL_CAPABILITY_LPAd(K 语料机械展开)
+    var s8 = bind.sendApdu("80", "AA", "00", "00", "A9058100830107", null, "9000");
+    bind.checkData("ICH-IC1-K3-C4 SW", "9000", s8.sw);
+
+    // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 4):TERMINAL_PROFILE(K 语料机械展开)
+    var steady9 = bind.runToSteadyState(function () {
+        return bind.sendTerminalProfile("FFFFFFFF7F9D00DFBF00001FE2000000C7EB0000000168005000000000000200", "9000");
+    });
+    bind.checkData("ICH-IC1-K4-C4 final SW", "9000", steady9.final.sw);
+
+    // IC head inline (initial_conditions → PROC_OPEN_LOGICAL_CHANNEL_AND_SELECT_ISDR, K row 1):MANAGE_CHANNEL_OPEN(K 语料机械展开)
+    // CHANNEL_NUMBER extraction and dynamic CLA rebinding are CasBind internal state (chaining rule; no generated-code re-implementation).
+    var s10 = bind.manageChannelOpen("9000");
+    bind.checkData("ICH-IC2-K1-C4 SW", "9000", s10.sw);
+    bind.checkData("ICH-IC2-K1-C3 CHANNEL_NUMBER extracted", "1", s10.chan !== null ? "1" : "0");
+
+    // IC head inline (initial_conditions → PROC_OPEN_LOGICAL_CHANNEL_AND_SELECT_ISDR, K row 2):MTD_SELECT(K 语料机械展开)
+    // CLA = bound channel (cla_rule) and <L> length binding are CasBind internal state (chaining rule; no generated-code re-implementation).
+    var s11 = bind.sendApdu(null, "A4", "04", "00", "A0000005591010FFFFFFFF8900000100", null, "9000");
+    // MTD_SELECT expected face is SW-only (K Annex C.2 open-channel procedure step 2: no FCI content assertion in corpus); no fabricated template parse.
+    bind.checkData("ICH-IC2-K2-C4 SW", "9000", s11.sw);
+
+    // 步骤 1:MTD_STORE_DATA(tc_step)
+    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
+    var s1 = bind.sendApdu("81", "E2", "91", "00", "BF2D035C014F", "00", "9000");
+
+    // 步骤 2:Seq#01] MTD_STORE_DATA(tc_step;REQ: RQ24_010, RQ24_016, RQ24_020, RQ32_049, RQ32_051, RQ32_052, RQ57_154, RQ57_158, RQ57_159, RQ57_160)
+    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
+    var sdCla2 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
+    // runtime-bound payload: ISD_P_AID1 stays in execution domain
+    var s2 = bind.sendApdu(sdCla2, "E2", "91", "00", BindEs10xProcProfileDynamic.bindProfileAidTemplate(bind, "ISD_P_AID1", "BF33124F10", "", profileAidSession), "00", "9000");
+    bind.checkData("S1-C1 SW", "9000", s2.sw);
+    BindEs10xProcProfileDynamic.assertBoundPayload(bind, "ISD_P_AID1", s2.cmd, profileAidSession);
+    var r2w2 = BindGecaProc.parseGecaResponse(s2.resp, {outer: "BF33", required: ["80"]});
+    bind.checkData("S1-C2 deleteResult ok", "00", (r2w2.ok && r2w2.fields["80"] === "00") ? "00" : (r2w2.fields["80"] || "absent"));
+
+    // 步骤 3:Seq#01] MTD_STORE_DATA(tc_step;REQ: RQ24_010, RQ24_020, RQ57_119)
+    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
+    var sdCla3 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
+    // runtime-bound payload: ISD_P_AID1 stays in execution domain
+    var s3 = bind.sendApdu(sdCla3, "E2", "91", "00", BindEs10xProcProfileDynamic.bindProfileAidTemplate(bind, "ISD_P_AID1", "BF2D14A0124F10", "", profileAidSession), "00", "9000");
+    bind.checkData("S2-C1 SW", "9000", s3.sw);
+    BindEs10xProcProfileDynamic.assertBoundPayload(bind, "ISD_P_AID1", s3.cmd, profileAidSession);
+    var r2p3 = BindEs10xProcProfile.walkChoiceList(s3.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
+    bind.checkData("S2-C2 profileInfoListOk empty", "1", (r2p3.branch_tag === "A0" && r2p3.elements.length === 0) ? "1" : "0");
+
+    // 步骤 4:Seq#02] MTD_STORE_DATA(tc_step;REQ: RQ24_016, RQ24_020, RQ32_049, RQ32_051, RQ32_052, RQ57_154, RQ57_158, RQ57_159)
+    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
+    var sdCla4 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
+    var s4 = bind.sendApdu(sdCla4, "E2", "91", "00", "BF330C5A0A989209012143658709F5", "00", "9000");
+    bind.checkData("S3-C1 SW", "9000", s4.sw);
+    var r2w4 = BindGecaProc.parseGecaResponse(s4.resp, {outer: "BF33", required: ["80"]});
+    bind.checkData("S3-C2 deleteResult ok", "00", (r2w4.ok && r2w4.fields["80"] === "00") ? "00" : (r2w4.fields["80"] || "absent"));
+
+    // 步骤 5:Seq#02] MTD_STORE_DATA(tc_step;REQ: RQ24_020, RQ57_119)
+    // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
+    var sdCla5 = s10.chan !== null ? (s10.chan <= 3 ? 128 + s10.chan : 188 + s10.chan).toString(16).toUpperCase() : null;
+    var s5 = bind.sendApdu(sdCla5, "E2", "91", "00", "BF2D0EA00C5A0A989209012143658709F5", "00", "9000");
+    bind.checkData("S4-C1 SW", "9000", s5.sw);
+    var r2p5 = BindEs10xProcProfile.walkChoiceList(s5.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
+    bind.checkData("S4-C2 profileInfoListOk empty", "1", (r2p5.branch_tag === "A0" && r2p5.elements.length === 0) ? "1" : "0");
 }