源码对照:4.2.20.2.1
ES10c 查询 Profile 列表 / TC_eUICC_ES10c.GetProfilesInfo
左侧为人工切片入口(-man,来自 原料/切片 的最小可执行脚本),右侧为 Cas 盲生成入口(-cas,仅依据规范生成)。文件按原始编码(多为 GBK)解码为 UTF-8 显示,行号自 1 起;字节级原文与 sha256 见两侧脚本包。完整 unified diff 见本页底部折叠区,以及 报告原文 §4。
-man 入口
Import/TestCase_SGP_23.js
1796 行 / 67747 字符 / gb18030
-cas 入口
TC_eUICC_ES10c_GetProfilesInfo/Import/TC_eUICC_ES10c_GetProfilesInfo.js
156 行 / 18913 字符 / gb18030
默认折行显示长行;取消勾选可横向滚动查看原始行宽
-man 人工切片Import/TestCase_SGP_23.js1796 行 / 67747 字符 / gb18030入口函数 @L3
1// slice of Import\TestCase_SGP_23.js - cases: TC_eUICC_ES10c_GetProfilesInfo_01_Nominal_Get_All_Profiles + TC_eUICC_ES10c_GetProfilesInfo_02_Nominal_Get_Profile_by_ICCID + TC_eUICC_ES10c_GetProfilesInfo_03_Nominal_Get_Profile_by_AID + TC_eUICC_ES10c_GetProfilesInfo_04_Nominal_Get_All_Operational_Profiles + TC_eUICC_ES10c_GetProfilesInfo_05_Nominal_Get_Profile_ICCID_list + TC_eUICC_ES10c_GetProfilesInfo_06_Nominal_Get_Profile_AID_list + TC_eUICC_ES10c_GetProfilesInfo_07_Nominal_Get_Profile_Nickname_list + TC_eUICC_ES10c_GetProfilesInfo_08_Nominal_Get_Profile_SP_Name_list + TC_eUICC_ES10c_GetProfilesInfo_09_Nominal_Get_Profile_Name_list + TC_eUICC_ES10c_GetProfilesInfo_10_Nominal_Get_Profile_Icon_list + TC_eUICC_ES10c_GetProfilesInfo_11_Nominal_Get_Profile_Owner_list + TC_eUICC_ES10c_GetProfilesInfo_12_Nominal_Get_Profile_SM_DP_proprietary_data_list + TC_eUICC_ES10c_GetProfilesInfo_13_Nominal_Get_Profile_ICCID_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_14_Nominal_Get_Profile_Nickname_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_15_Nominal_Get_Profile_Icon_and_Icon_Type_list + TC_eUICC_ES10c_GetProfilesInfo_16_Nominal_Get_Profile_Icon_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_17_Nominal_Get_Operational_Profile_ICCID_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_18_Nominal_Get_Operational_Profile_Nickname_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_19_Nominal_Get_Operational_Profile_Icon_and_Icon_type_list + TC_eUICC_ES10c_GetProfilesInfo_20_Nominal_Get_Operational_Profile_Icon_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_21_Nominal_Get_Profile_State_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_22_Nominal_Get_Profile_Icon_Type_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_23_Nominal_Get_Profile_Class_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_24_Nominal_Get_Notification_Configuration_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_25_Nominal_Get_Profile_Policy_Rules_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_26_Nominal_Get_empty_Profile_list_No_Profile_installed (extracted verbatim)
2
3function TC_eUICC_ES10c_GetProfilesInfo_01_Nominal_Get_All_Profiles()
4{
5
6 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
7
8 var ISD_P_Test01 = curProfile_ISD_P_AID;
9
10 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
11
12 var ISD_P_Test02 = curProfile_ISD_P_AID;
13
14 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
15
16 var ISD_P_Test03 = curProfile_ISD_P_AID;
17
18
19 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
20 var setNicknameRequest = new SetNicknameRequest();
21 setNicknameRequest.iccid = ICCID_OP_PROF3;
22 setNicknameRequest.profileNickname = NICKNAME3;
23 setNicknameRequest.GenHexData();
24 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
25 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
26
27
28 tracenamestr = "测试目的:获取所有profile信息";
29 curDis.TraceStart(sno++,tracenamestr);
30
31 curLogicChannel = 0;
32 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
33 Ini_powerOn_eUICC_LPAe_not_activate();
34
35 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
36 TS_MANAGE_CHANNEL_OPEN();
37
38 curLogicChannel = 1;
39
40 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
41 TS_SELECT("Select ISD",ISD_R_AID,"9000");
42
43 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取所有profile信息;");
44 var proInfoListRequest = new ProfileInfoListRequest();
45 proInfoListRequest.GenHexData();
46 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
47
48 var proInfoListResponse = new ProfileInfoListResponse();
49 proInfoListResponse.checkCardResDataFormat(respData);
50
51 try
52 {
53 curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
54 curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
55 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
56 curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
57 curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
58 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
59 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
60
61 curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
62 curStrHandle.CheckData(ISD_P_Test02, proInfoListResponse.profileInfoListOk.arrOfElement[1].isdpAid, "ISD-P AID");
63 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
64 curStrHandle.CheckData(SP_NAME2, proInfoListResponse.profileInfoListOk.arrOfElement[1].serviceProviderName, "serviceProviderName");
65 curStrHandle.CheckData(NAME_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileName, "profileName");
66 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[1].iconType, "iconType");
67 curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
68
69
70 curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
71 curStrHandle.CheckData(ISD_P_Test03, proInfoListResponse.profileInfoListOk.arrOfElement[2].isdpAid, "ISD-P AID");
72 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
73 curStrHandle.CheckData(SP_NAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].serviceProviderName, "serviceProviderName");
74 curStrHandle.CheckData(NAME_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileName, "profileName");
75 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
76 curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
77 curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
78
79
80 }catch(e){
81 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
82 }
83
84
85 RecoverCard();
86
87}
88
89function TC_eUICC_ES10c_GetProfilesInfo_02_Nominal_Get_Profile_by_ICCID()
90{
91
92 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
93
94 var ISD_P_Test01 = curProfile_ISD_P_AID;
95
96 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
97
98 var ISD_P_Test02 = curProfile_ISD_P_AID;
99
100 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
101
102 var ISD_P_Test03 = curProfile_ISD_P_AID;
103
104
105 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
106 var setNicknameRequest = new SetNicknameRequest();
107 setNicknameRequest.iccid = ICCID_OP_PROF3;
108 setNicknameRequest.profileNickname = NICKNAME3;
109 setNicknameRequest.GenHexData();
110 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
111 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
112
113
114 tracenamestr = "测试目的:根据ICCID获取单个Profile1的信息";
115 curDis.TraceStart(sno++,tracenamestr);
116
117 curLogicChannel = 0;
118 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
119 Ini_powerOn_eUICC_LPAe_not_activate();
120
121 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
122 TS_MANAGE_CHANNEL_OPEN();
123
124 curLogicChannel = 1;
125
126 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
127 TS_SELECT("Select ISD",ISD_R_AID,"9000");
128
129
130 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,根据iccid获取profile1的信息;");
131 var proInfoListRequest = new ProfileInfoListRequest();
132 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
133 proInfoListRequest.GenHexData();
134 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
135
136 var proInfoListResponse = new ProfileInfoListResponse();
137 proInfoListResponse.checkCardResDataFormat(respData);
138
139
140 try
141 {
142
143 curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
144 curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
145 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
146 curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
147 curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
148 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
149 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
150
151
152 }catch(e){
153 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
154 }
155
156
157 RecoverCard();
158
159}
160
161function TC_eUICC_ES10c_GetProfilesInfo_03_Nominal_Get_Profile_by_AID()
162{
163
164 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
165
166 var ISD_P_Test01 = curProfile_ISD_P_AID;
167
168 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
169
170 var ISD_P_Test02 = curProfile_ISD_P_AID;
171
172 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
173
174 var ISD_P_Test03 = curProfile_ISD_P_AID;
175
176
177 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
178 var setNicknameRequest = new SetNicknameRequest();
179 setNicknameRequest.iccid = ICCID_OP_PROF3;
180 setNicknameRequest.profileNickname = NICKNAME3;
181 setNicknameRequest.GenHexData();
182 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
183 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
184
185
186 tracenamestr = "测试目的:根据AID获取单个Profile1的信息";
187 curDis.TraceStart(sno++,tracenamestr);
188
189 curLogicChannel = 0;
190 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
191 Ini_powerOn_eUICC_LPAe_not_activate();
192
193 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
194 TS_MANAGE_CHANNEL_OPEN();
195
196 curLogicChannel = 1;
197
198 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
199 TS_SELECT("Select ISD",ISD_R_AID,"9000");
200
201
202 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,根据AID获取profile1的信息;");
203 var proInfoListRequest = new ProfileInfoListRequest();
204 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.isdpAid,ISD_P_Test01);
205 proInfoListRequest.GenHexData();
206 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
207
208 var proInfoListResponse = new ProfileInfoListResponse();
209 proInfoListResponse.checkCardResDataFormat(respData);
210
211
212 try
213 {
214
215 curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
216 curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
217 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
218 curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
219 curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
220 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
221 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
222 curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[0].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
223
224 }catch(e){
225 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
226 }
227
228 RecoverCard();
229
230}
231
232function TC_eUICC_ES10c_GetProfilesInfo_04_Nominal_Get_All_Operational_Profiles()
233{
234
235 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
236
237 var ISD_P_Test01 = curProfile_ISD_P_AID;
238
239 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
240
241 var ISD_P_Test02 = curProfile_ISD_P_AID;
242
243 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
244
245 var ISD_P_Test03 = curProfile_ISD_P_AID;
246
247
248 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
249 var setNicknameRequest = new SetNicknameRequest();
250 setNicknameRequest.iccid = ICCID_OP_PROF3;
251 setNicknameRequest.profileNickname = NICKNAME3;
252 setNicknameRequest.GenHexData();
253 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
254 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
255
256
257 tracenamestr = "测试目的:Get All Operational Profiles";
258 curDis.TraceStart(sno++,tracenamestr);
259
260 curLogicChannel = 0;
261 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
262 Ini_powerOn_eUICC_LPAe_not_activate();
263
264 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
265 TS_MANAGE_CHANNEL_OPEN();
266
267 curLogicChannel = 1;
268
269 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
270 TS_SELECT("Select ISD",ISD_R_AID,"9000");
271
272
273 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取所有operational的profile的信息;");
274 var proInfoListRequest = new ProfileInfoListRequest();
275 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
276 proInfoListRequest.GenHexData();
277 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
278
279 var proInfoListResponse = new ProfileInfoListResponse();
280 proInfoListResponse.checkCardResDataFormat(respData);
281
282
283 try
284 {
285
286 curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
287 curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
288 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
289 curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
290 curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
291 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
292 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
293 curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[0].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
294
295 curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
296 curStrHandle.CheckData(ISD_P_Test02, proInfoListResponse.profileInfoListOk.arrOfElement[1].isdpAid, "ISD-P AID");
297 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
298 curStrHandle.CheckData(SP_NAME2, proInfoListResponse.profileInfoListOk.arrOfElement[1].serviceProviderName, "serviceProviderName");
299 curStrHandle.CheckData(NAME_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileName, "profileName");
300 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[1].iconType, "iconType");
301 curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
302 curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[1].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
303
304
305 curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
306 curStrHandle.CheckData(ISD_P_Test03, proInfoListResponse.profileInfoListOk.arrOfElement[2].isdpAid, "ISD-P AID");
307 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
308 curStrHandle.CheckData(SP_NAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].serviceProviderName, "serviceProviderName");
309 curStrHandle.CheckData(NAME_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileName, "profileName");
310 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
311 curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
312 curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
313 curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[2].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
314
315
316
317 }catch(e){
318 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
319 }
320
321 RecoverCard();
322
323}
324
325function TC_eUICC_ES10c_GetProfilesInfo_05_Nominal_Get_Profile_ICCID_list()
326{
327
328 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
329
330 var ISD_P_Test01 = curProfile_ISD_P_AID;
331
332 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
333
334 var ISD_P_Test02 = curProfile_ISD_P_AID;
335
336 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
337
338 var ISD_P_Test03 = curProfile_ISD_P_AID;
339
340
341 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
342 var setNicknameRequest = new SetNicknameRequest();
343 setNicknameRequest.iccid = ICCID_OP_PROF3;
344 setNicknameRequest.profileNickname = NICKNAME3;
345 setNicknameRequest.GenHexData();
346 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
347 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
348
349
350 tracenamestr = "测试目的:获取profile的ICCID列表";
351 curDis.TraceStart(sno++,tracenamestr);
352
353 curLogicChannel = 0;
354 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
355 Ini_powerOn_eUICC_LPAe_not_activate();
356
357 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
358 TS_MANAGE_CHANNEL_OPEN();
359
360 curLogicChannel = 1;
361
362 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
363 TS_SELECT("Select ISD",ISD_R_AID,"9000");
364
365
366 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的ICCID列表;");
367 var proInfoListRequest = new ProfileInfoListRequest();
368 proInfoListRequest.tagList = "5A";
369 proInfoListRequest.GenHexData();
370 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
371
372 var proInfoListResponse = new ProfileInfoListResponse();
373 proInfoListResponse.checkCardResDataFormat(respData);
374
375
376 try
377 {
378 curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
379
380 curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
381
382 curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
383
384 }catch(e){
385 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
386 }
387
388 RecoverCard();
389
390}
391
392function TC_eUICC_ES10c_GetProfilesInfo_06_Nominal_Get_Profile_AID_list()
393{
394
395 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
396
397 var ISD_P_Test01 = curProfile_ISD_P_AID;
398
399 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
400
401 var ISD_P_Test02 = curProfile_ISD_P_AID;
402
403 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
404
405 var ISD_P_Test03 = curProfile_ISD_P_AID;
406
407
408 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
409 var setNicknameRequest = new SetNicknameRequest();
410 setNicknameRequest.iccid = ICCID_OP_PROF3;
411 setNicknameRequest.profileNickname = NICKNAME3;
412 setNicknameRequest.GenHexData();
413 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
414 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
415
416
417 tracenamestr = "测试目的:获取profile的AID列表";
418 curDis.TraceStart(sno++,tracenamestr);
419
420 curLogicChannel = 0;
421 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
422 Ini_powerOn_eUICC_LPAe_not_activate();
423
424 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
425 TS_MANAGE_CHANNEL_OPEN();
426
427 curLogicChannel = 1;
428
429 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
430 TS_SELECT("Select ISD",ISD_R_AID,"9000");
431
432
433 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的AID列表;");
434 var proInfoListRequest = new ProfileInfoListRequest();
435 proInfoListRequest.tagList = "4F";
436 proInfoListRequest.GenHexData();
437 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
438
439 var proInfoListResponse = new ProfileInfoListResponse();
440 proInfoListResponse.checkCardResDataFormat(respData);
441
442
443 try
444 {
445 curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
446
447 curStrHandle.CheckData(ISD_P_Test02, proInfoListResponse.profileInfoListOk.arrOfElement[1].isdpAid, "ISD-P AID");
448
449 curStrHandle.CheckData(ISD_P_Test03, proInfoListResponse.profileInfoListOk.arrOfElement[2].isdpAid, "ISD-P AID");
450
451
452 }catch(e){
453 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
454 }
455
456 RecoverCard();
457
458}
459
460function TC_eUICC_ES10c_GetProfilesInfo_07_Nominal_Get_Profile_Nickname_list()
461{
462
463 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
464
465 var ISD_P_Test01 = curProfile_ISD_P_AID;
466
467 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
468
469 var ISD_P_Test02 = curProfile_ISD_P_AID;
470
471 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
472
473 var ISD_P_Test03 = curProfile_ISD_P_AID;
474
475
476 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
477 var setNicknameRequest = new SetNicknameRequest();
478 setNicknameRequest.iccid = ICCID_OP_PROF3;
479 setNicknameRequest.profileNickname = NICKNAME3;
480 setNicknameRequest.GenHexData();
481 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
482 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
483
484
485 tracenamestr = "测试目的:获取profile的Nickname列表";
486 curDis.TraceStart(sno++,tracenamestr);
487
488 curLogicChannel = 0;
489 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
490 Ini_powerOn_eUICC_LPAe_not_activate();
491
492 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
493 TS_MANAGE_CHANNEL_OPEN();
494
495 curLogicChannel = 1;
496
497 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
498 TS_SELECT("Select ISD",ISD_R_AID,"9000");
499
500
501 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的Nickname列表;");
502 var proInfoListRequest = new ProfileInfoListRequest();
503 proInfoListRequest.tagList = "90";
504 proInfoListRequest.GenHexData();
505 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
506
507 var proInfoListResponse = new ProfileInfoListResponse();
508 proInfoListResponse.checkCardResDataFormat(respData);
509
510
511 try
512 {
513 curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileNickname, "profileNickname");
514
515 }catch(e){
516 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
517 }
518
519 RecoverCard();
520
521}
522
523function TC_eUICC_ES10c_GetProfilesInfo_08_Nominal_Get_Profile_SP_Name_list ()
524{
525
526 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
527
528 var ISD_P_Test01 = curProfile_ISD_P_AID;
529
530 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
531
532 var ISD_P_Test02 = curProfile_ISD_P_AID;
533
534 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
535
536 var ISD_P_Test03 = curProfile_ISD_P_AID;
537
538
539 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
540 var setNicknameRequest = new SetNicknameRequest();
541 setNicknameRequest.iccid = ICCID_OP_PROF3;
542 setNicknameRequest.profileNickname = NICKNAME3;
543 setNicknameRequest.GenHexData();
544 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
545 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
546
547
548 tracenamestr = "测试目的:获取profile的SP_Name列表";
549 curDis.TraceStart(sno++,tracenamestr);
550
551 curLogicChannel = 0;
552 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
553 Ini_powerOn_eUICC_LPAe_not_activate();
554
555 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
556 TS_MANAGE_CHANNEL_OPEN();
557
558 curLogicChannel = 1;
559
560 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
561 TS_SELECT("Select ISD",ISD_R_AID,"9000");
562
563
564 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的SP_Name列表;");
565 var proInfoListRequest = new ProfileInfoListRequest();
566 proInfoListRequest.tagList = "91";
567 proInfoListRequest.GenHexData();
568 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
569
570 var proInfoListResponse = new ProfileInfoListResponse();
571 proInfoListResponse.checkCardResDataFormat(respData);
572
573
574 try
575 {
576 curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
577
578 curStrHandle.CheckData(SP_NAME2, proInfoListResponse.profileInfoListOk.arrOfElement[1].serviceProviderName, "serviceProviderName");
579
580 curStrHandle.CheckData(SP_NAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].serviceProviderName, "serviceProviderName");
581
582 }catch(e){
583 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
584 }
585
586 RecoverCard();
587
588}
589
590function TC_eUICC_ES10c_GetProfilesInfo_09_Nominal_Get_Profile_Name_list ()
591{
592
593 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
594
595 var ISD_P_Test01 = curProfile_ISD_P_AID;
596
597 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
598
599 var ISD_P_Test02 = curProfile_ISD_P_AID;
600
601 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
602
603 var ISD_P_Test03 = curProfile_ISD_P_AID;
604
605
606 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
607 var setNicknameRequest = new SetNicknameRequest();
608 setNicknameRequest.iccid = ICCID_OP_PROF3;
609 setNicknameRequest.profileNickname = NICKNAME3;
610 setNicknameRequest.GenHexData();
611 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
612 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
613
614
615 tracenamestr = "测试目的:获取profile的Name列表";
616 curDis.TraceStart(sno++,tracenamestr);
617
618 curLogicChannel = 0;
619 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
620 Ini_powerOn_eUICC_LPAe_not_activate();
621
622 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
623 TS_MANAGE_CHANNEL_OPEN();
624
625 curLogicChannel = 1;
626
627 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
628 TS_SELECT("Select ISD",ISD_R_AID,"9000");
629
630
631 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的Name列表;");
632 var proInfoListRequest = new ProfileInfoListRequest();
633 proInfoListRequest.tagList = "92";
634 proInfoListRequest.GenHexData();
635 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
636
637 var proInfoListResponse = new ProfileInfoListResponse();
638 proInfoListResponse.checkCardResDataFormat(respData);
639
640
641 try
642 {
643 curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
644
645 curStrHandle.CheckData(NAME_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileName, "profileName");
646
647 curStrHandle.CheckData(NAME_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileName, "profileName");
648
649 }catch(e){
650 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
651 }
652
653 RecoverCard();
654
655}
656
657function TC_eUICC_ES10c_GetProfilesInfo_10_Nominal_Get_Profile_Icon_list ()
658{
659
660 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
661
662 var ISD_P_Test01 = curProfile_ISD_P_AID;
663
664 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
665
666 var ISD_P_Test02 = curProfile_ISD_P_AID;
667
668 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
669
670 var ISD_P_Test03 = curProfile_ISD_P_AID;
671
672
673 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
674 var setNicknameRequest = new SetNicknameRequest();
675 setNicknameRequest.iccid = ICCID_OP_PROF3;
676 setNicknameRequest.profileNickname = NICKNAME3;
677 setNicknameRequest.GenHexData();
678 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
679 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
680
681
682 tracenamestr = "测试目的:获取profile的Icon列表";
683 curDis.TraceStart(sno++,tracenamestr);
684
685 curLogicChannel = 0;
686 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
687 Ini_powerOn_eUICC_LPAe_not_activate();
688
689 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
690 TS_MANAGE_CHANNEL_OPEN();
691
692 curLogicChannel = 1;
693
694 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
695 TS_SELECT("Select ISD",ISD_R_AID,"9000");
696
697
698 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的Icon列表;");
699 var proInfoListRequest = new ProfileInfoListRequest();
700 proInfoListRequest.tagList = "94";
701 proInfoListRequest.GenHexData();
702 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
703
704 var proInfoListResponse = new ProfileInfoListResponse();
705 proInfoListResponse.checkCardResDataFormat(respData);
706
707
708 try
709 {
710 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
711
712 curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
713
714 curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
715
716 }catch(e){
717 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
718 }
719
720 RecoverCard();
721
722}
723
724function TC_eUICC_ES10c_GetProfilesInfo_11_Nominal_Get_Profile_Owner_list()
725{
726
727 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
728
729 var ISD_P_Test01 = curProfile_ISD_P_AID;
730
731 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
732
733 var ISD_P_Test02 = curProfile_ISD_P_AID;
734
735 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
736
737 var ISD_P_Test03 = curProfile_ISD_P_AID;
738
739
740 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
741 var setNicknameRequest = new SetNicknameRequest();
742 setNicknameRequest.iccid = ICCID_OP_PROF3;
743 setNicknameRequest.profileNickname = NICKNAME3;
744 setNicknameRequest.GenHexData();
745 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
746 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
747
748
749 tracenamestr = "测试目的:获取profile的Owner列表";
750 curDis.TraceStart(sno++,tracenamestr);
751
752 curLogicChannel = 0;
753 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
754 Ini_powerOn_eUICC_LPAe_not_activate();
755
756 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
757 TS_MANAGE_CHANNEL_OPEN();
758
759 curLogicChannel = 1;
760
761 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
762 TS_SELECT("Select ISD",ISD_R_AID,"9000");
763
764
765 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的Owner列表;");
766 var proInfoListRequest = new ProfileInfoListRequest();
767 proInfoListRequest.tagList = "B7";
768 proInfoListRequest.GenHexData();
769 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
770
771 var proInfoListResponse = new ProfileInfoListResponse();
772 proInfoListResponse.checkCardResDataFormat(respData);
773
774
775 try
776 {
777 curStrHandle.CheckData(OWNER_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileOwner.hexData, "profileOwner");
778
779 curStrHandle.CheckData(OWNER_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileOwner.hexData, "profileOwner");
780
781 curStrHandle.CheckData(OWNER_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileOwner.hexData, "profileOwner");
782
783
784 }catch(e){
785 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
786 }
787
788 RecoverCard();
789
790}
791
792function TC_eUICC_ES10c_GetProfilesInfo_12_Nominal_Get_Profile_SM_DP_proprietary_data_list()
793{
794
795 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
796
797 var ISD_P_Test01 = curProfile_ISD_P_AID;
798
799 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
800
801 var ISD_P_Test02 = curProfile_ISD_P_AID;
802
803 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
804
805 var ISD_P_Test03 = curProfile_ISD_P_AID;
806
807
808 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
809 var setNicknameRequest = new SetNicknameRequest();
810 setNicknameRequest.iccid = ICCID_OP_PROF3;
811 setNicknameRequest.profileNickname = NICKNAME3;
812 setNicknameRequest.GenHexData();
813 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
814 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
815
816
817 tracenamestr = "测试目的:获取profile的SM-DP+ proprietary data列表";
818 curDis.TraceStart(sno++,tracenamestr);
819
820 curLogicChannel = 0;
821 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
822 Ini_powerOn_eUICC_LPAe_not_activate();
823
824 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
825 TS_MANAGE_CHANNEL_OPEN();
826
827 curLogicChannel = 1;
828
829 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
830 TS_SELECT("Select ISD",ISD_R_AID,"9000");
831
832
833 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的SM-DP+ proprietary data列表;");
834 var proInfoListRequest = new ProfileInfoListRequest();
835 proInfoListRequest.tagList = "B8";
836 proInfoListRequest.GenHexData();
837
838 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
839
840 var proInfoListResponse = new ProfileInfoListResponse();
841 proInfoListResponse.checkCardResDataFormat(respData);
842
843 var dpProprietaryData = new DpProprietaryData();
844 dpProprietaryData.GenHexData();
845
846
847
848 try
849 {
850 curStrHandle.CheckData("800388370A", proInfoListResponse.profileInfoListOk.arrOfElement[0].dpProprietaryData.hexData, "dpProprietaryData");
851
852 curStrHandle.CheckData("800388370A", proInfoListResponse.profileInfoListOk.arrOfElement[1].dpProprietaryData.hexData, "dpProprietaryData");
853
854 curStrHandle.CheckData("800388370A", proInfoListResponse.profileInfoListOk.arrOfElement[2].dpProprietaryData.hexData, "dpProprietaryData");
855 }catch(e){
856 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
857 }
858
859 RecoverCard();
860
861}
862
863function TC_eUICC_ES10c_GetProfilesInfo_13_Nominal_Get_Profile_ICCID_and_State_list ()
864{
865
866 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
867
868 var ISD_P_Test01 = curProfile_ISD_P_AID;
869
870 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
871
872 var ISD_P_Test02 = curProfile_ISD_P_AID;
873
874 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
875
876 var ISD_P_Test03 = curProfile_ISD_P_AID;
877
878
879 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
880 var setNicknameRequest = new SetNicknameRequest();
881 setNicknameRequest.iccid = ICCID_OP_PROF3;
882 setNicknameRequest.profileNickname = NICKNAME3;
883 setNicknameRequest.GenHexData();
884 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
885 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
886
887
888 tracenamestr = "测试目的:获取profile的ICCID和State列表";
889 curDis.TraceStart(sno++,tracenamestr);
890
891 curLogicChannel = 0;
892 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
893 Ini_powerOn_eUICC_LPAe_not_activate();
894
895 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
896 TS_MANAGE_CHANNEL_OPEN();
897
898 curLogicChannel = 1;
899
900 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
901 TS_SELECT("Select ISD",ISD_R_AID,"9000");
902
903
904 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的ICCID和State列表;");
905 var proInfoListRequest = new ProfileInfoListRequest();
906 proInfoListRequest.tagList = "5A9F70";
907 proInfoListRequest.GenHexData();
908 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
909
910 var proInfoListResponse = new ProfileInfoListResponse();
911 proInfoListResponse.checkCardResDataFormat(respData);
912
913
914 try
915 {
916 curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
917 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
918
919 curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
920 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
921
922 curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
923 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
924
925 }catch(e){
926 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
927 }
928
929 RecoverCard();
930
931
932}
933
934function TC_eUICC_ES10c_GetProfilesInfo_14_Nominal_Get_Profile_Nickname_and_State_list ()
935{
936
937 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
938
939 var ISD_P_Test01 = curProfile_ISD_P_AID;
940
941 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
942
943 var ISD_P_Test02 = curProfile_ISD_P_AID;
944
945 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
946
947 var ISD_P_Test03 = curProfile_ISD_P_AID;
948
949
950 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
951 var setNicknameRequest = new SetNicknameRequest();
952 setNicknameRequest.iccid = ICCID_OP_PROF3;
953 setNicknameRequest.profileNickname = NICKNAME3;
954 setNicknameRequest.GenHexData();
955 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
956 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
957
958
959 tracenamestr = "测试目的:获取profile的Nickname和State列表,GET_PROFILES_INFO_TAGLIST2";
960 curDis.TraceStart(sno++,tracenamestr);
961
962 curLogicChannel = 0;
963 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
964 Ini_powerOn_eUICC_LPAe_not_activate();
965
966 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
967 TS_MANAGE_CHANNEL_OPEN();
968
969 curLogicChannel = 1;
970
971 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
972 TS_SELECT("Select ISD",ISD_R_AID,"9000");
973
974
975 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的Nickname和State列表;");
976 var proInfoListRequest = new ProfileInfoListRequest();
977 proInfoListRequest.tagList = "909F70";
978 proInfoListRequest.GenHexData();
979 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
980
981 var proInfoListResponse = new ProfileInfoListResponse();
982 proInfoListResponse.checkCardResDataFormat(respData);
983
984
985 try
986 {
987 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
988
989 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
990
991 curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
992 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
993
994 }catch(e){
995 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
996 }
997
998 RecoverCard();
999
1000
1001}
1002
1003function TC_eUICC_ES10c_GetProfilesInfo_15_Nominal_Get_Profile_Icon_and_Icon_Type_list ()
1004{
1005
1006 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1007
1008 var ISD_P_Test01 = curProfile_ISD_P_AID;
1009
1010 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1011
1012 var ISD_P_Test02 = curProfile_ISD_P_AID;
1013
1014 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1015
1016 var ISD_P_Test03 = curProfile_ISD_P_AID;
1017
1018
1019 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1020 var setNicknameRequest = new SetNicknameRequest();
1021 setNicknameRequest.iccid = ICCID_OP_PROF3;
1022 setNicknameRequest.profileNickname = NICKNAME3;
1023 setNicknameRequest.GenHexData();
1024 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1025 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1026
1027
1028 tracenamestr = "测试目的:获取profile的Icon和Icon_Type列表";
1029 curDis.TraceStart(sno++,tracenamestr);
1030
1031 curLogicChannel = 0;
1032 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1033 Ini_powerOn_eUICC_LPAe_not_activate();
1034
1035 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1036 TS_MANAGE_CHANNEL_OPEN();
1037
1038 curLogicChannel = 1;
1039
1040 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1041 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1042
1043
1044 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的Icon和Icon_Type列表;");
1045 var proInfoListRequest = new ProfileInfoListRequest();
1046 proInfoListRequest.tagList = "9493";
1047 proInfoListRequest.GenHexData();
1048 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1049
1050 var proInfoListResponse = new ProfileInfoListResponse();
1051 proInfoListResponse.checkCardResDataFormat(respData);
1052
1053
1054 try
1055 {
1056 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
1057 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
1058
1059 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[01].iconType, "iconType");
1060 curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
1061
1062 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
1063 curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
1064
1065 }catch(e){
1066 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1067 }
1068
1069 RecoverCard();
1070
1071
1072}
1073
1074function TC_eUICC_ES10c_GetProfilesInfo_16_Nominal_Get_Profile_Icon_and_State_list ()
1075{
1076
1077 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1078
1079 var ISD_P_Test01 = curProfile_ISD_P_AID;
1080
1081 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1082
1083 var ISD_P_Test02 = curProfile_ISD_P_AID;
1084
1085 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1086
1087 var ISD_P_Test03 = curProfile_ISD_P_AID;
1088
1089
1090 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1091 var setNicknameRequest = new SetNicknameRequest();
1092 setNicknameRequest.iccid = ICCID_OP_PROF3;
1093 setNicknameRequest.profileNickname = NICKNAME3;
1094 setNicknameRequest.GenHexData();
1095 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1096 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1097
1098
1099 tracenamestr = "测试目的:获取profile的Icon和State列表";
1100 curDis.TraceStart(sno++,tracenamestr);
1101
1102 curLogicChannel = 0;
1103 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1104 Ini_powerOn_eUICC_LPAe_not_activate();
1105
1106 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1107 TS_MANAGE_CHANNEL_OPEN();
1108
1109 curLogicChannel = 1;
1110
1111 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1112 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1113
1114
1115 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取profile的Icon和State列表;");
1116 var proInfoListRequest = new ProfileInfoListRequest();
1117 proInfoListRequest.tagList = "949F70";
1118 proInfoListRequest.GenHexData();
1119 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1120
1121 var proInfoListResponse = new ProfileInfoListResponse();
1122 proInfoListResponse.checkCardResDataFormat(respData);
1123
1124
1125 try
1126 {
1127 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
1128 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
1129
1130 curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
1131 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
1132
1133 curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
1134 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
1135
1136 }catch(e){
1137 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1138 }
1139
1140 RecoverCard();
1141
1142
1143}
1144
1145function TC_eUICC_ES10c_GetProfilesInfo_17_Nominal_Get_Operational_Profile_ICCID_and_State_list ()
1146{
1147
1148 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1149
1150 var ISD_P_Test01 = curProfile_ISD_P_AID;
1151
1152 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1153
1154 var ISD_P_Test02 = curProfile_ISD_P_AID;
1155
1156 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1157
1158 var ISD_P_Test03 = curProfile_ISD_P_AID;
1159
1160
1161 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1162 var setNicknameRequest = new SetNicknameRequest();
1163 setNicknameRequest.iccid = ICCID_OP_PROF3;
1164 setNicknameRequest.profileNickname = NICKNAME3;
1165 setNicknameRequest.GenHexData();
1166 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1167 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1168
1169
1170 tracenamestr = "测试目的:获取Operational Profile 的ICCID和State列表";
1171 curDis.TraceStart(sno++,tracenamestr);
1172
1173 curLogicChannel = 0;
1174 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1175 Ini_powerOn_eUICC_LPAe_not_activate();
1176
1177 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1178 TS_MANAGE_CHANNEL_OPEN();
1179
1180 curLogicChannel = 1;
1181
1182 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1183 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1184
1185
1186 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取Operational Profile 的ICCID和State列表;");
1187 var proInfoListRequest = new ProfileInfoListRequest();
1188 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
1189 proInfoListRequest.tagList = "5A9F70";
1190 proInfoListRequest.GenHexData();
1191 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1192
1193 var proInfoListResponse = new ProfileInfoListResponse();
1194 proInfoListResponse.checkCardResDataFormat(respData);
1195
1196
1197 try
1198 {
1199 curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
1200 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
1201
1202 curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
1203 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
1204
1205 curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
1206 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
1207
1208 }catch(e){
1209 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1210 }
1211
1212 RecoverCard();
1213
1214
1215}
1216
1217function TC_eUICC_ES10c_GetProfilesInfo_18_Nominal_Get_Operational_Profile_Nickname_and_State_list ()
1218{
1219
1220 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1221
1222 var ISD_P_Test01 = curProfile_ISD_P_AID;
1223
1224 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1225
1226 var ISD_P_Test02 = curProfile_ISD_P_AID;
1227
1228 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1229
1230 var ISD_P_Test03 = curProfile_ISD_P_AID;
1231
1232
1233 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1234 var setNicknameRequest = new SetNicknameRequest();
1235 setNicknameRequest.iccid = ICCID_OP_PROF3;
1236 setNicknameRequest.profileNickname = NICKNAME3;
1237 setNicknameRequest.GenHexData();
1238 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1239 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1240
1241
1242 tracenamestr = "测试目的:获取Operational Profile 的Nickname和State列表";
1243
1244 curDis.TraceStart(sno++,tracenamestr);
1245
1246 curLogicChannel = 0;
1247 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1248 Ini_powerOn_eUICC_LPAe_not_activate();
1249
1250 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1251 TS_MANAGE_CHANNEL_OPEN();
1252
1253 curLogicChannel = 1;
1254
1255 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1256 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1257
1258
1259 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取Operational Profile 的Nickname和State列表;");
1260 var proInfoListRequest = new ProfileInfoListRequest();
1261 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
1262 proInfoListRequest.tagList = "909F70";
1263 proInfoListRequest.GenHexData();
1264 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1265
1266 var proInfoListResponse = new ProfileInfoListResponse();
1267 proInfoListResponse.checkCardResDataFormat(respData);
1268
1269
1270 try
1271 {
1272 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
1273
1274 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
1275
1276 curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
1277 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
1278
1279 }catch(e){
1280 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1281 }
1282
1283 RecoverCard();
1284
1285
1286}
1287
1288function TC_eUICC_ES10c_GetProfilesInfo_19_Nominal_Get_Operational_Profile_Icon_and_Icon_type_list ()
1289{
1290
1291 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1292
1293 var ISD_P_Test01 = curProfile_ISD_P_AID;
1294
1295 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1296
1297 var ISD_P_Test02 = curProfile_ISD_P_AID;
1298
1299 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1300
1301 var ISD_P_Test03 = curProfile_ISD_P_AID;
1302
1303
1304 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1305 var setNicknameRequest = new SetNicknameRequest();
1306 setNicknameRequest.iccid = ICCID_OP_PROF3;
1307 setNicknameRequest.profileNickname = NICKNAME3;
1308 setNicknameRequest.GenHexData();
1309 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1310 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1311
1312
1313 tracenamestr = "测试目的:获取Operational Profile 的Icon和Icon_type列表";
1314 curDis.TraceStart(sno++,tracenamestr);
1315
1316 curLogicChannel = 0;
1317 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1318 Ini_powerOn_eUICC_LPAe_not_activate();
1319
1320 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1321 TS_MANAGE_CHANNEL_OPEN();
1322
1323 curLogicChannel = 1;
1324
1325 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1326 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1327
1328
1329 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取Operational Profile 的Icon和Icon_type列表;");
1330 var proInfoListRequest = new ProfileInfoListRequest();
1331 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
1332 proInfoListRequest.tagList = "9493";
1333 proInfoListRequest.GenHexData();
1334 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1335
1336 var proInfoListResponse = new ProfileInfoListResponse();
1337 proInfoListResponse.checkCardResDataFormat(respData);
1338
1339
1340 try
1341 {
1342 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
1343 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
1344
1345 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[01].iconType, "iconType");
1346 curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
1347
1348 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
1349 curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
1350
1351 }catch(e){
1352 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1353 }
1354
1355 RecoverCard();
1356
1357
1358}
1359
1360function TC_eUICC_ES10c_GetProfilesInfo_20_Nominal_Get_Operational_Profile_Icon_and_State_list()
1361{
1362
1363 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1364
1365 var ISD_P_Test01 = curProfile_ISD_P_AID;
1366
1367 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1368
1369 var ISD_P_Test02 = curProfile_ISD_P_AID;
1370
1371 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1372
1373 var ISD_P_Test03 = curProfile_ISD_P_AID;
1374
1375
1376 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1377 var setNicknameRequest = new SetNicknameRequest();
1378 setNicknameRequest.iccid = ICCID_OP_PROF3;
1379 setNicknameRequest.profileNickname = NICKNAME3;
1380 setNicknameRequest.GenHexData();
1381 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1382 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1383
1384
1385 tracenamestr = "测试目的:获取Operational Profile 的Icon和State列表";
1386
1387 curDis.TraceStart(sno++,tracenamestr);
1388
1389 curLogicChannel = 0;
1390 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1391 Ini_powerOn_eUICC_LPAe_not_activate();
1392
1393 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1394 TS_MANAGE_CHANNEL_OPEN();
1395
1396 curLogicChannel = 1;
1397
1398 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1399 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1400
1401
1402 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取Operational Profile 的Icon和State列表;");
1403 var proInfoListRequest = new ProfileInfoListRequest();
1404 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
1405 proInfoListRequest.tagList = "949F70";
1406 proInfoListRequest.GenHexData();
1407 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1408
1409 var proInfoListResponse = new ProfileInfoListResponse();
1410 proInfoListResponse.checkCardResDataFormat(respData);
1411
1412
1413 try
1414 {
1415 curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
1416 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
1417
1418
1419 curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
1420 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
1421
1422 curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
1423 curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
1424
1425 }catch(e){
1426 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1427 }
1428
1429 RecoverCard();
1430
1431
1432}
1433
1434function TC_eUICC_ES10c_GetProfilesInfo_21_Nominal_Get_Profile_State_of_the_defined_Profile ()
1435{
1436
1437 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1438
1439 var ISD_P_Test01 = curProfile_ISD_P_AID;
1440
1441 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1442
1443 var ISD_P_Test02 = curProfile_ISD_P_AID;
1444
1445 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1446
1447 var ISD_P_Test03 = curProfile_ISD_P_AID;
1448
1449
1450 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1451 var setNicknameRequest = new SetNicknameRequest();
1452 setNicknameRequest.iccid = ICCID_OP_PROF3;
1453 setNicknameRequest.profileNickname = NICKNAME3;
1454 setNicknameRequest.GenHexData();
1455 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1456 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1457
1458
1459 tracenamestr = "测试目的:获取指定Profile的状态State";
1460 curDis.TraceStart(sno++,tracenamestr);
1461
1462 curLogicChannel = 0;
1463 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1464 Ini_powerOn_eUICC_LPAe_not_activate();
1465
1466 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1467 TS_MANAGE_CHANNEL_OPEN();
1468
1469 curLogicChannel = 1;
1470
1471 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1472 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1473
1474
1475 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取获取指定Profile的状态State;");
1476 var proInfoListRequest = new ProfileInfoListRequest();
1477 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
1478 proInfoListRequest.tagList = "9F70";
1479 proInfoListRequest.GenHexData();
1480 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1481
1482 var proInfoListResponse = new ProfileInfoListResponse();
1483 proInfoListResponse.checkCardResDataFormat(respData);
1484
1485
1486 try
1487 {
1488
1489 curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
1490
1491 }catch(e){
1492 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1493 }
1494
1495 RecoverCard();
1496
1497
1498}
1499
1500function TC_eUICC_ES10c_GetProfilesInfo_22_Nominal_Get_Profile_Icon_Type_of_the_defined_Profile ()
1501{
1502
1503 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1504
1505 var ISD_P_Test01 = curProfile_ISD_P_AID;
1506
1507 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1508
1509 var ISD_P_Test02 = curProfile_ISD_P_AID;
1510
1511 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1512
1513 var ISD_P_Test03 = curProfile_ISD_P_AID;
1514
1515
1516 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1517 var setNicknameRequest = new SetNicknameRequest();
1518 setNicknameRequest.iccid = ICCID_OP_PROF3;
1519 setNicknameRequest.profileNickname = NICKNAME3;
1520 setNicknameRequest.GenHexData();
1521 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1522 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1523
1524
1525 tracenamestr = "测试目的:获取指定Profile的icon type";
1526 curDis.TraceStart(sno++,tracenamestr);
1527
1528 curLogicChannel = 0;
1529 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1530 Ini_powerOn_eUICC_LPAe_not_activate();
1531
1532 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1533 TS_MANAGE_CHANNEL_OPEN();
1534
1535 curLogicChannel = 1;
1536
1537 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1538 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1539
1540
1541 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取获取指定Profile的icon type ;");
1542 var proInfoListRequest = new ProfileInfoListRequest();
1543 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
1544 proInfoListRequest.tagList = "93";
1545 proInfoListRequest.GenHexData();
1546 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1547
1548 var proInfoListResponse = new ProfileInfoListResponse();
1549 proInfoListResponse.checkCardResDataFormat(respData);
1550
1551
1552 try
1553 {
1554
1555 curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
1556
1557 }catch(e){
1558 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1559 }
1560
1561 RecoverCard();
1562
1563
1564}
1565
1566function TC_eUICC_ES10c_GetProfilesInfo_23_Nominal_Get_Profile_Class_of_the_defined_Profile ()
1567{
1568
1569 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1570
1571 var ISD_P_Test01 = curProfile_ISD_P_AID;
1572
1573 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1574
1575 var ISD_P_Test02 = curProfile_ISD_P_AID;
1576
1577 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1578
1579 var ISD_P_Test03 = curProfile_ISD_P_AID;
1580
1581
1582 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1583 var setNicknameRequest = new SetNicknameRequest();
1584 setNicknameRequest.iccid = ICCID_OP_PROF3;
1585 setNicknameRequest.profileNickname = NICKNAME3;
1586 setNicknameRequest.GenHexData();
1587 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1588 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1589
1590
1591 tracenamestr = "测试目的:获取指定Profile的Profile_Class";
1592 curDis.TraceStart(sno++,tracenamestr);
1593
1594 curLogicChannel = 0;
1595 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1596 Ini_powerOn_eUICC_LPAe_not_activate();
1597
1598 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1599 TS_MANAGE_CHANNEL_OPEN();
1600
1601 curLogicChannel = 1;
1602
1603 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1604 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1605
1606
1607 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取获取指定Profile的Profile_Class;");
1608 var proInfoListRequest = new ProfileInfoListRequest();
1609 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
1610 proInfoListRequest.tagList = "95";
1611 proInfoListRequest.GenHexData();
1612 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1613
1614 var proInfoListResponse = new ProfileInfoListResponse();
1615 proInfoListResponse.checkCardResDataFormat(respData);
1616
1617
1618 try
1619 {
1620
1621 curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[0].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
1622
1623 }catch(e){
1624 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1625 }
1626
1627 RecoverCard();
1628
1629}
1630
1631function TC_eUICC_ES10c_GetProfilesInfo_24_Nominal_Get_Notification_Configuration_of_the_defined_Profile ()
1632{
1633
1634 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1635
1636 var ISD_P_Test01 = curProfile_ISD_P_AID;
1637
1638 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1639
1640 var ISD_P_Test02 = curProfile_ISD_P_AID;
1641
1642 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1643
1644 var ISD_P_Test03 = curProfile_ISD_P_AID;
1645
1646
1647 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1648 var setNicknameRequest = new SetNicknameRequest();
1649 setNicknameRequest.iccid = ICCID_OP_PROF3;
1650 setNicknameRequest.profileNickname = NICKNAME3;
1651 setNicknameRequest.GenHexData();
1652 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1653 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1654
1655
1656 tracenamestr = "测试目的:获取指定Profile的PNotification_Configuration";
1657 curDis.TraceStart(sno++,tracenamestr);
1658
1659 curLogicChannel = 0;
1660 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1661 Ini_powerOn_eUICC_LPAe_not_activate();
1662
1663 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1664 TS_MANAGE_CHANNEL_OPEN();
1665
1666 curLogicChannel = 1;
1667
1668 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1669 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1670
1671
1672 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取获取指定Profile的Notification_Configuration;");
1673 var proInfoListRequest = new ProfileInfoListRequest();
1674 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
1675 proInfoListRequest.tagList = "B6";
1676 proInfoListRequest.GenHexData();
1677 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1678
1679 var proInfoListResponse = new ProfileInfoListResponse();
1680 proInfoListResponse.checkCardResDataFormat(respData);
1681
1682
1683 try
1684 {
1685 curStrHandle.CheckData("301C800204F0811674657374736D6470706C7573312E67736D612E636F6D", proInfoListResponse.profileInfoListOk.arrOfElement[0].notificationConfigurationInfo.hexData, "notificationConfigurationInfo");
1686
1687 }catch(e){
1688 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1689 }
1690
1691 RecoverCard();
1692
1693}
1694
1695function TC_eUICC_ES10c_GetProfilesInfo_25_Nominal_Get_Profile_Policy_Rules_of_the_defined_Profile ()
1696{
1697
1698 initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
1699
1700 var ISD_P_Test01 = curProfile_ISD_P_AID;
1701
1702 initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
1703
1704 var ISD_P_Test02 = curProfile_ISD_P_AID;
1705
1706 initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
1707
1708 var ISD_P_Test03 = curProfile_ISD_P_AID;
1709
1710
1711 curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
1712 var setNicknameRequest = new SetNicknameRequest();
1713 setNicknameRequest.iccid = ICCID_OP_PROF3;
1714 setNicknameRequest.profileNickname = NICKNAME3;
1715 setNicknameRequest.GenHexData();
1716 var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
1717 curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
1718
1719
1720 tracenamestr = "测试目的:获取指定Profile的Profile_Policy_Rules";
1721 curDis.TraceStart(sno++,tracenamestr);
1722
1723 curLogicChannel = 0;
1724 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1725 Ini_powerOn_eUICC_LPAe_not_activate();
1726
1727 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1728 TS_MANAGE_CHANNEL_OPEN();
1729
1730 curLogicChannel = 1;
1731
1732 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1733 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1734
1735
1736 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取获取指定Profile的Profile_Policy_Rules;");
1737 var proInfoListRequest = new ProfileInfoListRequest();
1738 proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF3);
1739 proInfoListRequest.tagList = "99";
1740 proInfoListRequest.GenHexData();
1741 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1742
1743 var proInfoListResponse = new ProfileInfoListResponse();
1744 proInfoListResponse.checkCardResDataFormat(respData);
1745
1746
1747 try
1748 {
1749
1750 curStrHandle.CheckData("0520", proInfoListResponse.profileInfoListOk.arrOfElement[0].profilePolicyRules, "profilePolicyRules");
1751
1752 }catch(e){
1753 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1754 }
1755
1756 RecoverCard();
1757
1758}
1759
1760function TC_eUICC_ES10c_GetProfilesInfo_26_Nominal_Get_empty_Profile_list_No_Profile_installed ()
1761{
1762 tracenamestr = "获取空的Profile列表,#GET_PROFILES_INFO_ALL";
1763 curDis.TraceStart(sno++,tracenamestr);
1764
1765 curLogicChannel = 0;
1766 curDis.TestStepStart2(stno++,"eUICC卡片初始化;");
1767 Ini_powerOn_eUICC_LPAe_not_activate();
1768
1769 curDis.TestStepStart2(stno++,"读卡器向卡片发送MANAGE_CHANNEL命令,打开辅助逻辑通道;");
1770 TS_MANAGE_CHANNEL_OPEN();
1771
1772 curLogicChannel = 1;
1773
1774 curDis.TestStepStart2(stno++,"读卡器向卡片发送SELECT命令,选择ISD-R;");
1775 TS_SELECT("Select ISD",ISD_R_AID,"9000");
1776
1777
1778 curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,获取空profile列表;");
1779 var proInfoListRequest = new ProfileInfoListRequest();
1780 proInfoListRequest.GenHexData();
1781 var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
1782
1783 var proInfoListResponse = new ProfileInfoListResponse();
1784 proInfoListResponse.checkCardResDataFormat(respData);
1785
1786 try
1787 {
1788 curStrHandle.CheckData("00", obj.ToHex(proInfoListResponse.profileInfoListOk.arrOfElement.length),"Profile Info number");
1789 }catch(e){
1790 obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
1791 }
1792
1793 RecoverCard();
1794
1795}
1796
-cas 盲生成TC_eUICC_ES10c_GetProfilesInfo/Import/TC_eUICC_ES10c_GetProfilesInfo.js156 行 / 18913 字符 / gb18030入口函数 @L54
1// Author: 卡思Cas智能体
2// Date: 20260929-122321
3// Function: (purpose 原文未由 SGP.23 该 TC 提供,corpus vacuum 登记)TC_eUICC_ES10c.GetProfilesInfo,Test Sequence #01 Nominal: Get All Profiles / #02 Nominal: Get Profile by ICCID(W0 覆盖 #01+#02),适用性 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;S3-C1 SW
7// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag
8// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 3
9// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A
10// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70
11// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 5A
12// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 9F70
13// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 5A
14// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 9F70
15// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A
16// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70
17// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91
18// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92
19// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93
20// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94
21// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95
22// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 5A
23// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 9F70
24// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 91
25// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 92
26// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 93
27// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 94
28// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 95
29// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 5A
30// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 9F70
31// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 90
32// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 91
33// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 92
34// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 93
35// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 94
36// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 95
37// S3-C6 条目1/条目2 中 profileNickname 不出现 profile[0] tag 90
38// S3-C6 条目1/条目2 中 profileNickname 不出现 profile[1] tag 90;S3-C8 无搜索判据 profileInfo count 3;S2-C1 SW
39// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag
40// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 1
41// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A
42// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70
43// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A
44// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70
45// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91
46// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92
47// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93
48// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94
49// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95
50// S2-C4 条目中 profileNickname 不出现 profile[0] tag 90
51// 本函数由 CaseIR 4.2.20.2.1 编译生成(R2,SGP.23 v1.16 × SGP.22 v2.7):字节权威=CaseIR,非誊录黄金脚本。
52// Value-free template: every data byte is injected from CaseIR fields; no scaffold globals (see docs/speconly/compile-symbol-migration.md).
53// 适用性 M:编译期门,运行时由 harness 环境前置承担。
54function TC_eUICC_ES10c_GetProfilesInfo_01_02_01_02_merged() {
55 var bind = curBind;
56
57 // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 1):RESET(K 语料机械展开)
58 var s3 = bind.resetAndAtr();
59 bind.checkData("ICH-IC1-K1-C1 ATR_present", "1", s3.atr_hex !== "" ? "1" : "0");
60
61 // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 2):SELECT_MF(K 语料机械展开)
62 // FCP outer tag not materialized from clause: tag-face asserted only when corpus fixes the tag byte (e.g. TS 102 221 FCP '62').
63 var s4 = bind.sendApdu("00", "A4", "00", "04", "3F00", "00", "9000");
64 bind.checkData("ICH-IC1-K2-C2 FCP_Template", "1", s4.resp.length > 0 ? "1" : "0");
65 bind.checkData("ICH-IC1-K2-C4 SW", "9000", s4.sw);
66
67 // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 3):TERMINAL_CAPABILITY_LPAd(K 语料机械展开)
68 var s5 = bind.sendApdu("80", "AA", "00", "00", "A9058100830107", null, "9000");
69 bind.checkData("ICH-IC1-K3-C4 SW", "9000", s5.sw);
70
71 // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 4):TERMINAL_PROFILE(K 语料机械展开)
72 var steady6 = bind.runToSteadyState(function () {
73 return bind.sendTerminalProfile("FFFFFFFF7F9D00DFBF00001FE2000000C7EB0000000168005000000000000200", "9000");
74 });
75 bind.checkData("ICH-IC1-K4-C4 final SW", "9000", steady6.final.sw);
76
77 // IC head inline (initial_conditions → PROC_OPEN_LOGICAL_CHANNEL_AND_SELECT_ISDR, K row 1):MANAGE_CHANNEL_OPEN(K 语料机械展开)
78 // CHANNEL_NUMBER extraction and dynamic CLA rebinding are CasBind internal state (chaining rule; no generated-code re-implementation).
79 var s7 = bind.manageChannelOpen("9000");
80 bind.checkData("ICH-IC2-K1-C4 SW", "9000", s7.sw);
81 bind.checkData("ICH-IC2-K1-C3 CHANNEL_NUMBER extracted", "1", s7.chan !== null ? "1" : "0");
82
83 // IC head inline (initial_conditions → PROC_OPEN_LOGICAL_CHANNEL_AND_SELECT_ISDR, K row 2):MTD_SELECT(K 语料机械展开)
84 // CLA = bound channel (cla_rule) and <L> length binding are CasBind internal state (chaining rule; no generated-code re-implementation).
85 var s8 = bind.sendApdu(null, "A4", "04", "00", "A0000005591010FFFFFFFF8900000100", null, "9000");
86 // 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.
87 bind.checkData("ICH-IC2-K2-C4 SW", "9000", s8.sw);
88
89 // 步骤 1:MTD_STORE_DATA(tc_step;REQ: RQ32_057, RQ57_117, RQ57_118, RQ57_119, RQ57_123, RQ24_029, RQ31_183)
90 // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
91 var sdCla1 = s7.chan !== null ? (s7.chan <= 3 ? 128 + s7.chan : 188 + s7.chan).toString(16).toUpperCase() : null;
92 var s1 = bind.sendApdu(sdCla1, "E2", "91", "00", "BF2D00", "00", "9000");
93 bind.checkData("S3-C1 SW", "9000", s1.sw);
94 // es10x-proc-profile 响应面(TC_eUICC_ES10c.GetProfilesInfo,SGP.22 §5.7.15 结构 + vendor ABI 分支锚;断言参数经 spec_pattern 子句注入):
95 var pw1 = BindEs10xProcProfile.walkChoiceList(s1.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
96 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag", "BF2D", (pw1.outer_tag === null ? "absent" : pw1.outer_tag));
97 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 3", "1", (pw1.branch_tag === "A0" && pw1.elements.length === 3) ? "1" : "0");
98 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A", "989209012143658709F5", (pw1.elements.length > 0 && pw1.elements[0].fields["5A"] !== undefined) ? pw1.elements[0].fields["5A"] : "absent");
99 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70", "01", (pw1.elements.length > 0 && pw1.elements[0].fields["9F70"] !== undefined) ? pw1.elements[0].fields["9F70"] : "absent");
100 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 5A", "989209013254769810F9", (pw1.elements.length > 1 && pw1.elements[1].fields["5A"] !== undefined) ? pw1.elements[1].fields["5A"] : "absent");
101 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 9F70", "00", (pw1.elements.length > 1 && pw1.elements[1].fields["9F70"] !== undefined) ? pw1.elements[1].fields["9F70"] : "absent");
102 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 5A", "989209014365870921F5", (pw1.elements.length > 2 && pw1.elements[2].fields["5A"] !== undefined) ? pw1.elements[2].fields["5A"] : "absent");
103 bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 9F70", "00", (pw1.elements.length > 2 && pw1.elements[2].fields["9F70"] !== undefined) ? pw1.elements[2].fields["9F70"] : "absent");
104 bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A", "989209012143658709F5", (pw1.elements.length > 0 && pw1.elements[0].fields["5A"] !== undefined) ? pw1.elements[0].fields["5A"] : "absent");
105 bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70", "01", (pw1.elements.length > 0 && pw1.elements[0].fields["9F70"] !== undefined) ? pw1.elements[0].fields["9F70"] : "absent");
106 bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91", "53504E414D4531", (pw1.elements.length > 0 && pw1.elements[0].fields["91"] !== undefined) ? pw1.elements[0].fields["91"] : "absent");
107 bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4531", (pw1.elements.length > 0 && pw1.elements[0].fields["92"] !== undefined) ? pw1.elements[0].fields["92"] : "absent");
108 bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93", "01", (pw1.elements.length > 0 && pw1.elements[0].fields["93"] !== undefined) ? pw1.elements[0].fields["93"] : "absent");
109 bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94", "FE1ADEFEDAE", (pw1.elements.length > 0 && pw1.elements[0].fields["94"] !== undefined) ? pw1.elements[0].fields["94"] : "absent");
110 bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95", "02", (pw1.elements.length > 0 && pw1.elements[0].fields["95"] !== undefined) ? pw1.elements[0].fields["95"] : "absent");
111 bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 5A", "989209013254769810F9", (pw1.elements.length > 1 && pw1.elements[1].fields["5A"] !== undefined) ? pw1.elements[1].fields["5A"] : "absent");
112 bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 9F70", "00", (pw1.elements.length > 1 && pw1.elements[1].fields["9F70"] !== undefined) ? pw1.elements[1].fields["9F70"] : "absent");
113 bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 91", "53504E414D4532", (pw1.elements.length > 1 && pw1.elements[1].fields["91"] !== undefined) ? pw1.elements[1].fields["91"] : "absent");
114 bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4532", (pw1.elements.length > 1 && pw1.elements[1].fields["92"] !== undefined) ? pw1.elements[1].fields["92"] : "absent");
115 bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 93", "01", (pw1.elements.length > 1 && pw1.elements[1].fields["93"] !== undefined) ? pw1.elements[1].fields["93"] : "absent");
116 bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 94", "FE2ADEFEDAE", (pw1.elements.length > 1 && pw1.elements[1].fields["94"] !== undefined) ? pw1.elements[1].fields["94"] : "absent");
117 bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 95", "02", (pw1.elements.length > 1 && pw1.elements[1].fields["95"] !== undefined) ? pw1.elements[1].fields["95"] : "absent");
118 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 5A", "989209014365870921F5", (pw1.elements.length > 2 && pw1.elements[2].fields["5A"] !== undefined) ? pw1.elements[2].fields["5A"] : "absent");
119 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 9F70", "00", (pw1.elements.length > 2 && pw1.elements[2].fields["9F70"] !== undefined) ? pw1.elements[2].fields["9F70"] : "absent");
120 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 90", "4E49434B4E414D4533", (pw1.elements.length > 2 && pw1.elements[2].fields["90"] !== undefined) ? pw1.elements[2].fields["90"] : "absent");
121 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 91", "53504E414D4533", (pw1.elements.length > 2 && pw1.elements[2].fields["91"] !== undefined) ? pw1.elements[2].fields["91"] : "absent");
122 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4533", (pw1.elements.length > 2 && pw1.elements[2].fields["92"] !== undefined) ? pw1.elements[2].fields["92"] : "absent");
123 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 93", "01", (pw1.elements.length > 2 && pw1.elements[2].fields["93"] !== undefined) ? pw1.elements[2].fields["93"] : "absent");
124 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 94", "FE3ADEFEDAE", (pw1.elements.length > 2 && pw1.elements[2].fields["94"] !== undefined) ? pw1.elements[2].fields["94"] : "absent");
125 bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 95", "02", (pw1.elements.length > 2 && pw1.elements[2].fields["95"] !== undefined) ? pw1.elements[2].fields["95"] : "absent");
126 bind.checkData("S3-C6 条目1/条目2 中 profileNickname 不出现 profile[0] tag 90", "absent", (pw1.elements.length > 0 && pw1.elements[0].fields["90"] !== undefined) ? pw1.elements[0].fields["90"] : "absent");
127 bind.checkData("S3-C6 条目1/条目2 中 profileNickname 不出现 profile[1] tag 90", "absent", (pw1.elements.length > 1 && pw1.elements[1].fields["90"] !== undefined) ? pw1.elements[1].fields["90"] : "absent");
128 bind.checkData("S3-C8 无搜索判据 profileInfo count 3", "1", (pw1.branch_tag === "A0" && pw1.elements.length === 3) ? "1" : "0");
129 // S3-C7: kind 'requirement' pattern '' has no static generation face (corpus vacuum; see CaseIR unresolved).
130 // S3-C7: binding:bf2d_query_structure_satisfies_requirement(S22-prof_info) (check_attestation)
131
132 // 步骤 2:MTD_STORE_DATA(tc_step;REQ: RQ57_117, RQ57_119, RQ57_121, RQ57_123)
133 // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
134 var sdCla2 = s7.chan !== null ? (s7.chan <= 3 ? 128 + s7.chan : 188 + s7.chan).toString(16).toUpperCase() : null;
135 var s2 = bind.sendApdu(sdCla2, "E2", "91", "00", "BF2D0EA00C5A0A989209012143658709F5", "00", "9000");
136 bind.checkData("S2-C1 SW", "9000", s2.sw);
137 // es10x-proc-profile 响应面(TC_eUICC_ES10c.GetProfilesInfo,SGP.22 §5.7.15 结构 + vendor ABI 分支锚;断言参数经 spec_pattern 子句注入):
138 var pw2 = BindEs10xProcProfile.walkChoiceList(s2.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
139 bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag", "BF2D", (pw2.outer_tag === null ? "absent" : pw2.outer_tag));
140 bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 1", "1", (pw2.branch_tag === "A0" && pw2.elements.length === 1) ? "1" : "0");
141 bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A", "989209012143658709F5", (pw2.elements.length > 0 && pw2.elements[0].fields["5A"] !== undefined) ? pw2.elements[0].fields["5A"] : "absent");
142 bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70", "01", (pw2.elements.length > 0 && pw2.elements[0].fields["9F70"] !== undefined) ? pw2.elements[0].fields["9F70"] : "absent");
143 bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A", "989209012143658709F5", (pw2.elements.length > 0 && pw2.elements[0].fields["5A"] !== undefined) ? pw2.elements[0].fields["5A"] : "absent");
144 bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70", "01", (pw2.elements.length > 0 && pw2.elements[0].fields["9F70"] !== undefined) ? pw2.elements[0].fields["9F70"] : "absent");
145 bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91", "53504E414D4531", (pw2.elements.length > 0 && pw2.elements[0].fields["91"] !== undefined) ? pw2.elements[0].fields["91"] : "absent");
146 bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4531", (pw2.elements.length > 0 && pw2.elements[0].fields["92"] !== undefined) ? pw2.elements[0].fields["92"] : "absent");
147 bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93", "01", (pw2.elements.length > 0 && pw2.elements[0].fields["93"] !== undefined) ? pw2.elements[0].fields["93"] : "absent");
148 bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94", "FE1ADEFEDAE", (pw2.elements.length > 0 && pw2.elements[0].fields["94"] !== undefined) ? pw2.elements[0].fields["94"] : "absent");
149 bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95", "02", (pw2.elements.length > 0 && pw2.elements[0].fields["95"] !== undefined) ? pw2.elements[0].fields["95"] : "absent");
150 bind.checkData("S2-C4 条目中 profileNickname 不出现 profile[0] tag 90", "absent", (pw2.elements.length > 0 && pw2.elements[0].fields["90"] !== undefined) ? pw2.elements[0].fields["90"] : "absent");
151 // S2-C5: kind 'requirement' pattern '' has no static generation face (corpus vacuum; see CaseIR unresolved).
152 // S2-C6: kind 'requirement' pattern '' has no static generation face (corpus vacuum; see CaseIR unresolved).
153 // S2-C5: binding:bf2d_query_structure_satisfies_requirement(S22-prof_info) (check_attestation)
154 // S2-C6: binding:bf2d_query_structure_satisfies_requirement(S22-prof_info) (check_attestation)
155}
156
完整 unified diff
行级差异:新增 146 行 / 删除 1786 行(以 -man 为基准,unified 上下文 3 行)。
展开 diff(1945 行)
--- -man
+++ -cas
@@ -1,1796 +1,156 @@
-// slice of Import\TestCase_SGP_23.js - cases: TC_eUICC_ES10c_GetProfilesInfo_01_Nominal_Get_All_Profiles + TC_eUICC_ES10c_GetProfilesInfo_02_Nominal_Get_Profile_by_ICCID + TC_eUICC_ES10c_GetProfilesInfo_03_Nominal_Get_Profile_by_AID + TC_eUICC_ES10c_GetProfilesInfo_04_Nominal_Get_All_Operational_Profiles + TC_eUICC_ES10c_GetProfilesInfo_05_Nominal_Get_Profile_ICCID_list + TC_eUICC_ES10c_GetProfilesInfo_06_Nominal_Get_Profile_AID_list + TC_eUICC_ES10c_GetProfilesInfo_07_Nominal_Get_Profile_Nickname_list + TC_eUICC_ES10c_GetProfilesInfo_08_Nominal_Get_Profile_SP_Name_list + TC_eUICC_ES10c_GetProfilesInfo_09_Nominal_Get_Profile_Name_list + TC_eUICC_ES10c_GetProfilesInfo_10_Nominal_Get_Profile_Icon_list + TC_eUICC_ES10c_GetProfilesInfo_11_Nominal_Get_Profile_Owner_list + TC_eUICC_ES10c_GetProfilesInfo_12_Nominal_Get_Profile_SM_DP_proprietary_data_list + TC_eUICC_ES10c_GetProfilesInfo_13_Nominal_Get_Profile_ICCID_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_14_Nominal_Get_Profile_Nickname_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_15_Nominal_Get_Profile_Icon_and_Icon_Type_list + TC_eUICC_ES10c_GetProfilesInfo_16_Nominal_Get_Profile_Icon_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_17_Nominal_Get_Operational_Profile_ICCID_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_18_Nominal_Get_Operational_Profile_Nickname_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_19_Nominal_Get_Operational_Profile_Icon_and_Icon_type_list + TC_eUICC_ES10c_GetProfilesInfo_20_Nominal_Get_Operational_Profile_Icon_and_State_list + TC_eUICC_ES10c_GetProfilesInfo_21_Nominal_Get_Profile_State_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_22_Nominal_Get_Profile_Icon_Type_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_23_Nominal_Get_Profile_Class_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_24_Nominal_Get_Notification_Configuration_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_25_Nominal_Get_Profile_Policy_Rules_of_the_defined_Profile + TC_eUICC_ES10c_GetProfilesInfo_26_Nominal_Get_empty_Profile_list_No_Profile_installed (extracted verbatim)
+// Author: 卡思Cas智能体
+// Date: 20260929-122321
+// Function: (purpose 原文未由 SGP.23 该 TC 提供,corpus vacuum 登记)TC_eUICC_ES10c.GetProfilesInfo,Test Sequence #01 Nominal: Get All Profiles / #02 Nominal: Get Profile by ICCID(W0 覆盖 #01+#02),适用性 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;S3-C1 SW
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 3
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 5A
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 9F70
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 5A
+// S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 9F70
+// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A
+// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70
+// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91
+// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92
+// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93
+// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94
+// S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95
+// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 5A
+// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 9F70
+// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 91
+// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 92
+// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 93
+// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 94
+// S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 95
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 5A
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 9F70
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 90
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 91
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 92
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 93
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 94
+// S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 95
+// S3-C6 条目1/条目2 中 profileNickname 不出现 profile[0] tag 90
+// S3-C6 条目1/条目2 中 profileNickname 不出现 profile[1] tag 90;S3-C8 无搜索判据 profileInfo count 3;S2-C1 SW
+// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag
+// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 1
+// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A
+// S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70
+// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A
+// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70
+// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91
+// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92
+// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93
+// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94
+// S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95
+// S2-C4 条目中 profileNickname 不出现 profile[0] tag 90
+// 本函数由 CaseIR 4.2.20.2.1 编译生成(R2,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_GetProfilesInfo_01_02_01_02_merged() {
+ var bind = curBind;
-function TC_eUICC_ES10c_GetProfilesInfo_01_Nominal_Get_All_Profiles()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
+ // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 1):RESET(K 语料机械展开)
+ var s3 = bind.resetAndAtr();
+ bind.checkData("ICH-IC1-K1-C1 ATR_present", "1", s3.atr_hex !== "" ? "1" : "0");
-
- tracenamestr = "测试目的:获取所有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命令,执行ProfileInfoListRequest,获取所有profile信息;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
- try
- {
- curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
-
- curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test02, proInfoListResponse.profileInfoListOk.arrOfElement[1].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME2, proInfoListResponse.profileInfoListOk.arrOfElement[1].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[1].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
-
-
- curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test03, proInfoListResponse.profileInfoListOk.arrOfElement[2].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
- curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
-
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
-
- RecoverCard();
-
-}
+ // 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 s4 = bind.sendApdu("00", "A4", "00", "04", "3F00", "00", "9000");
+ bind.checkData("ICH-IC1-K2-C2 FCP_Template", "1", s4.resp.length > 0 ? "1" : "0");
+ bind.checkData("ICH-IC1-K2-C4 SW", "9000", s4.sw);
-function TC_eUICC_ES10c_GetProfilesInfo_02_Nominal_Get_Profile_by_ICCID()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
+ // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 3):TERMINAL_CAPABILITY_LPAd(K 语料机械展开)
+ var s5 = bind.sendApdu("80", "AA", "00", "00", "A9058100830107", null, "9000");
+ bind.checkData("ICH-IC1-K3-C4 SW", "9000", s5.sw);
-
- tracenamestr = "测试目的:根据ICCID获取单个Profile1的信息";
- 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");
-
+ // IC head inline (initial_conditions → PROC_EUICC_INITIALIZATION_SEQUENCE, K row 4):TERMINAL_PROFILE(K 语料机械展开)
+ var steady6 = bind.runToSteadyState(function () {
+ return bind.sendTerminalProfile("FFFFFFFF7F9D00DFBF00001FE2000000C7EB0000000168005000000000000200", "9000");
+ });
+ bind.checkData("ICH-IC1-K4-C4 final SW", "9000", steady6.final.sw);
- curDis.TestStepStart2(stno++,"读卡器向卡片发送 StoreData命令,执行ProfileInfoListRequest,根据iccid获取profile1的信息;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
+ // 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 s7 = bind.manageChannelOpen("9000");
+ bind.checkData("ICH-IC2-K1-C4 SW", "9000", s7.sw);
+ bind.checkData("ICH-IC2-K1-C3 CHANNEL_NUMBER extracted", "1", s7.chan !== null ? "1" : "0");
- try
- {
-
- curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
+ // 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 s8 = 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", s8.sw);
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
-
- RecoverCard();
-
-}
+ // 步骤 1:MTD_STORE_DATA(tc_step;REQ: RQ32_057, RQ57_117, RQ57_118, RQ57_119, RQ57_123, RQ24_029, RQ31_183)
+ // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
+ var sdCla1 = s7.chan !== null ? (s7.chan <= 3 ? 128 + s7.chan : 188 + s7.chan).toString(16).toUpperCase() : null;
+ var s1 = bind.sendApdu(sdCla1, "E2", "91", "00", "BF2D00", "00", "9000");
+ bind.checkData("S3-C1 SW", "9000", s1.sw);
+ // es10x-proc-profile 响应面(TC_eUICC_ES10c.GetProfilesInfo,SGP.22 §5.7.15 结构 + vendor ABI 分支锚;断言参数经 spec_pattern 子句注入):
+ var pw1 = BindEs10xProcProfile.walkChoiceList(s1.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag", "BF2D", (pw1.outer_tag === null ? "absent" : pw1.outer_tag));
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 3", "1", (pw1.branch_tag === "A0" && pw1.elements.length === 3) ? "1" : "0");
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A", "989209012143658709F5", (pw1.elements.length > 0 && pw1.elements[0].fields["5A"] !== undefined) ? pw1.elements[0].fields["5A"] : "absent");
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70", "01", (pw1.elements.length > 0 && pw1.elements[0].fields["9F70"] !== undefined) ? pw1.elements[0].fields["9F70"] : "absent");
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 5A", "989209013254769810F9", (pw1.elements.length > 1 && pw1.elements[1].fields["5A"] !== undefined) ? pw1.elements[1].fields["5A"] : "absent");
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[1] tag 9F70", "00", (pw1.elements.length > 1 && pw1.elements[1].fields["9F70"] !== undefined) ? pw1.elements[1].fields["9F70"] : "absent");
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 5A", "989209014365870921F5", (pw1.elements.length > 2 && pw1.elements[2].fields["5A"] !== undefined) ? pw1.elements[2].fields["5A"] : "absent");
+ bind.checkData("S3-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[2] tag 9F70", "00", (pw1.elements.length > 2 && pw1.elements[2].fields["9F70"] !== undefined) ? pw1.elements[2].fields["9F70"] : "absent");
+ bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A", "989209012143658709F5", (pw1.elements.length > 0 && pw1.elements[0].fields["5A"] !== undefined) ? pw1.elements[0].fields["5A"] : "absent");
+ bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70", "01", (pw1.elements.length > 0 && pw1.elements[0].fields["9F70"] !== undefined) ? pw1.elements[0].fields["9F70"] : "absent");
+ bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91", "53504E414D4531", (pw1.elements.length > 0 && pw1.elements[0].fields["91"] !== undefined) ? pw1.elements[0].fields["91"] : "absent");
+ bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4531", (pw1.elements.length > 0 && pw1.elements[0].fields["92"] !== undefined) ? pw1.elements[0].fields["92"] : "absent");
+ bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93", "01", (pw1.elements.length > 0 && pw1.elements[0].fields["93"] !== undefined) ? pw1.elements[0].fields["93"] : "absent");
+ bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94", "FE1ADEFEDAE", (pw1.elements.length > 0 && pw1.elements[0].fields["94"] !== undefined) ? pw1.elements[0].fields["94"] : "absent");
+ bind.checkData("S3-C3 条目1 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95", "02", (pw1.elements.length > 0 && pw1.elements[0].fields["95"] !== undefined) ? pw1.elements[0].fields["95"] : "absent");
+ bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 5A", "989209013254769810F9", (pw1.elements.length > 1 && pw1.elements[1].fields["5A"] !== undefined) ? pw1.elements[1].fields["5A"] : "absent");
+ bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 9F70", "00", (pw1.elements.length > 1 && pw1.elements[1].fields["9F70"] !== undefined) ? pw1.elements[1].fields["9F70"] : "absent");
+ bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 91", "53504E414D4532", (pw1.elements.length > 1 && pw1.elements[1].fields["91"] !== undefined) ? pw1.elements[1].fields["91"] : "absent");
+ bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4532", (pw1.elements.length > 1 && pw1.elements[1].fields["92"] !== undefined) ? pw1.elements[1].fields["92"] : "absent");
+ bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 93", "01", (pw1.elements.length > 1 && pw1.elements[1].fields["93"] !== undefined) ? pw1.elements[1].fields["93"] : "absent");
+ bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 94", "FE2ADEFEDAE", (pw1.elements.length > 1 && pw1.elements[1].fields["94"] !== undefined) ? pw1.elements[1].fields["94"] : "absent");
+ bind.checkData("S3-C4 条目2 == #PROFILE_INFO2:iccid=989209013254769810F9 profile[1] tag 95", "02", (pw1.elements.length > 1 && pw1.elements[1].fields["95"] !== undefined) ? pw1.elements[1].fields["95"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 5A", "989209014365870921F5", (pw1.elements.length > 2 && pw1.elements[2].fields["5A"] !== undefined) ? pw1.elements[2].fields["5A"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 9F70", "00", (pw1.elements.length > 2 && pw1.elements[2].fields["9F70"] !== undefined) ? pw1.elements[2].fields["9F70"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 90", "4E49434B4E414D4533", (pw1.elements.length > 2 && pw1.elements[2].fields["90"] !== undefined) ? pw1.elements[2].fields["90"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 91", "53504E414D4533", (pw1.elements.length > 2 && pw1.elements[2].fields["91"] !== undefined) ? pw1.elements[2].fields["91"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4533", (pw1.elements.length > 2 && pw1.elements[2].fields["92"] !== undefined) ? pw1.elements[2].fields["92"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 93", "01", (pw1.elements.length > 2 && pw1.elements[2].fields["93"] !== undefined) ? pw1.elements[2].fields["93"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 94", "FE3ADEFEDAE", (pw1.elements.length > 2 && pw1.elements[2].fields["94"] !== undefined) ? pw1.elements[2].fields["94"] : "absent");
+ bind.checkData("S3-C5 条目3 == #PROFILE_INFO3:iccid=989209014365870921F5 profile[2] tag 95", "02", (pw1.elements.length > 2 && pw1.elements[2].fields["95"] !== undefined) ? pw1.elements[2].fields["95"] : "absent");
+ bind.checkData("S3-C6 条目1/条目2 中 profileNickname 不出现 profile[0] tag 90", "absent", (pw1.elements.length > 0 && pw1.elements[0].fields["90"] !== undefined) ? pw1.elements[0].fields["90"] : "absent");
+ bind.checkData("S3-C6 条目1/条目2 中 profileNickname 不出现 profile[1] tag 90", "absent", (pw1.elements.length > 1 && pw1.elements[1].fields["90"] !== undefined) ? pw1.elements[1].fields["90"] : "absent");
+ bind.checkData("S3-C8 无搜索判据 profileInfo count 3", "1", (pw1.branch_tag === "A0" && pw1.elements.length === 3) ? "1" : "0");
+ // S3-C7: kind 'requirement' pattern '' has no static generation face (corpus vacuum; see CaseIR unresolved).
+ // S3-C7: binding:bf2d_query_structure_satisfies_requirement(S22-prof_info) (check_attestation)
-function TC_eUICC_ES10c_GetProfilesInfo_03_Nominal_Get_Profile_by_AID()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:根据AID获取单个Profile1的信息";
- 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命令,执行ProfileInfoListRequest,根据AID获取profile1的信息;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.isdpAid,ISD_P_Test01);
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
-
- curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
- curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[0].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_04_Nominal_Get_All_Operational_Profiles()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:Get All Operational Profiles";
- 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命令,执行ProfileInfoListRequest,获取所有operational的profile的信息;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
-
- curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
- curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[0].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
-
- curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test02, proInfoListResponse.profileInfoListOk.arrOfElement[1].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME2, proInfoListResponse.profileInfoListOk.arrOfElement[1].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[1].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
- curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[1].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
-
-
- curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
- curStrHandle.CheckData(ISD_P_Test03, proInfoListResponse.profileInfoListOk.arrOfElement[2].isdpAid, "ISD-P AID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
- curStrHandle.CheckData(SP_NAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].serviceProviderName, "serviceProviderName");
- curStrHandle.CheckData(NAME_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileName, "profileName");
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
- curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
- curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[2].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
-
-
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_05_Nominal_Get_Profile_ICCID_list()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的ICCID列表";
- 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命令,执行ProfileInfoListRequest,获取profile的ICCID列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "5A";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
-
- curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
-
- curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_06_Nominal_Get_Profile_AID_list()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的AID列表";
- 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命令,执行ProfileInfoListRequest,获取profile的AID列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "4F";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(ISD_P_Test01, proInfoListResponse.profileInfoListOk.arrOfElement[0].isdpAid, "ISD-P AID");
-
- curStrHandle.CheckData(ISD_P_Test02, proInfoListResponse.profileInfoListOk.arrOfElement[1].isdpAid, "ISD-P AID");
-
- curStrHandle.CheckData(ISD_P_Test03, proInfoListResponse.profileInfoListOk.arrOfElement[2].isdpAid, "ISD-P AID");
-
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_07_Nominal_Get_Profile_Nickname_list()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的Nickname列表";
- 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命令,执行ProfileInfoListRequest,获取profile的Nickname列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "90";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileNickname, "profileNickname");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_08_Nominal_Get_Profile_SP_Name_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的SP_Name列表";
- 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命令,执行ProfileInfoListRequest,获取profile的SP_Name列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "91";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(SP_NAME1, proInfoListResponse.profileInfoListOk.arrOfElement[0].serviceProviderName, "serviceProviderName");
-
- curStrHandle.CheckData(SP_NAME2, proInfoListResponse.profileInfoListOk.arrOfElement[1].serviceProviderName, "serviceProviderName");
-
- curStrHandle.CheckData(SP_NAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].serviceProviderName, "serviceProviderName");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_09_Nominal_Get_Profile_Name_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的Name列表";
- 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命令,执行ProfileInfoListRequest,获取profile的Name列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "92";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(NAME_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileName, "profileName");
-
- curStrHandle.CheckData(NAME_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileName, "profileName");
-
- curStrHandle.CheckData(NAME_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileName, "profileName");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_10_Nominal_Get_Profile_Icon_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的Icon列表";
- 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命令,执行ProfileInfoListRequest,获取profile的Icon列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "94";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
-
- curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
-
- curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_11_Nominal_Get_Profile_Owner_list()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的Owner列表";
- 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命令,执行ProfileInfoListRequest,获取profile的Owner列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "B7";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(OWNER_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileOwner.hexData, "profileOwner");
-
- curStrHandle.CheckData(OWNER_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileOwner.hexData, "profileOwner");
-
- curStrHandle.CheckData(OWNER_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileOwner.hexData, "profileOwner");
-
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_12_Nominal_Get_Profile_SM_DP_proprietary_data_list()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的SM-DP+ proprietary data列表";
- 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命令,执行ProfileInfoListRequest,获取profile的SM-DP+ proprietary data列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "B8";
- proInfoListRequest.GenHexData();
-
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
- var dpProprietaryData = new DpProprietaryData();
- dpProprietaryData.GenHexData();
-
-
-
- try
- {
- curStrHandle.CheckData("800388370A", proInfoListResponse.profileInfoListOk.arrOfElement[0].dpProprietaryData.hexData, "dpProprietaryData");
-
- curStrHandle.CheckData("800388370A", proInfoListResponse.profileInfoListOk.arrOfElement[1].dpProprietaryData.hexData, "dpProprietaryData");
-
- curStrHandle.CheckData("800388370A", proInfoListResponse.profileInfoListOk.arrOfElement[2].dpProprietaryData.hexData, "dpProprietaryData");
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_13_Nominal_Get_Profile_ICCID_and_State_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的ICCID和State列表";
- 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命令,执行ProfileInfoListRequest,获取profile的ICCID和State列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "5A9F70";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
-
- curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
-
- curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_14_Nominal_Get_Profile_Nickname_and_State_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的Nickname和State列表,GET_PROFILES_INFO_TAGLIST2";
- 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命令,执行ProfileInfoListRequest,获取profile的Nickname和State列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "909F70";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
-
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
-
- curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_15_Nominal_Get_Profile_Icon_and_Icon_Type_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的Icon和Icon_Type列表";
- 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命令,执行ProfileInfoListRequest,获取profile的Icon和Icon_Type列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "9493";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
-
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[01].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
-
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_16_Nominal_Get_Profile_Icon_and_State_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取profile的Icon和State列表";
- 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命令,执行ProfileInfoListRequest,获取profile的Icon和State列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.tagList = "949F70";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
-
- curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
-
- curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_17_Nominal_Get_Operational_Profile_ICCID_and_State_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取Operational Profile 的ICCID和State列表";
- 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命令,执行ProfileInfoListRequest,获取Operational Profile 的ICCID和State列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
- proInfoListRequest.tagList = "5A9F70";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(ICCID_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].iccid, "ICCID");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
-
- curStrHandle.CheckData(ICCID_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].iccid, "ICCID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
-
- curStrHandle.CheckData(ICCID_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].iccid, "ICCID");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_18_Nominal_Get_Operational_Profile_Nickname_and_State_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取Operational Profile 的Nickname和State列表";
-
- 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命令,执行ProfileInfoListRequest,获取Operational Profile 的Nickname和State列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
- proInfoListRequest.tagList = "909F70";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
-
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
-
- curStrHandle.CheckData(NICKNAME3, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileNickname, "profileNickname");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_19_Nominal_Get_Operational_Profile_Icon_and_Icon_type_list ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取Operational Profile 的Icon和Icon_type列表";
- 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命令,执行ProfileInfoListRequest,获取Operational Profile 的Icon和Icon_type列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
- proInfoListRequest.tagList = "9493";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
-
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[01].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
-
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[2].iconType, "iconType");
- curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_20_Nominal_Get_Operational_Profile_Icon_and_State_list()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取Operational Profile 的Icon和State列表";
-
- 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命令,执行ProfileInfoListRequest,获取Operational Profile 的Icon和State列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.profileClass,"02");
- proInfoListRequest.tagList = "949F70";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData(ICON_OP_PROF1, proInfoListResponse.profileInfoListOk.arrOfElement[0].icon, "icon");
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
-
-
- curStrHandle.CheckData(ICON_OP_PROF2, proInfoListResponse.profileInfoListOk.arrOfElement[1].icon, "icon");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[1].profileState, "profile State");
-
- curStrHandle.CheckData(ICON_OP_PROF3, proInfoListResponse.profileInfoListOk.arrOfElement[2].icon, "icon");
- curStrHandle.CheckData(Profile_DISABLED, proInfoListResponse.profileInfoListOk.arrOfElement[2].profileState, "profile State");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_21_Nominal_Get_Profile_State_of_the_defined_Profile ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取指定Profile的状态State";
- 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命令,执行ProfileInfoListRequest,获取获取指定Profile的状态State;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
- proInfoListRequest.tagList = "9F70";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
-
- curStrHandle.CheckData(Profile_ENABLED, proInfoListResponse.profileInfoListOk.arrOfElement[0].profileState, "profile State");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_22_Nominal_Get_Profile_Icon_Type_of_the_defined_Profile ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取指定Profile的icon type";
- 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命令,执行ProfileInfoListRequest,获取获取指定Profile的icon type ;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
- proInfoListRequest.tagList = "93";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
-
- curStrHandle.CheckData("01", proInfoListResponse.profileInfoListOk.arrOfElement[0].iconType, "iconType");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_23_Nominal_Get_Profile_Class_of_the_defined_Profile ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取指定Profile的Profile_Class";
- 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命令,执行ProfileInfoListRequest,获取获取指定Profile的Profile_Class;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
- proInfoListRequest.tagList = "95";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
-
- curStrHandle.CheckData("02", proInfoListResponse.profileInfoListOk.arrOfElement[0].profileClass, "profileClass");//ProfileClass ::= INTEGER {test(0), provisioning(1), operational(2)}
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_24_Nominal_Get_Notification_Configuration_of_the_defined_Profile ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取指定Profile的PNotification_Configuration";
- 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命令,执行ProfileInfoListRequest,获取获取指定Profile的Notification_Configuration;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF1);
- proInfoListRequest.tagList = "B6";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
- curStrHandle.CheckData("301C800204F0811674657374736D6470706C7573312E67736D612E636F6D", proInfoListResponse.profileInfoListOk.arrOfElement[0].notificationConfigurationInfo.hexData, "notificationConfigurationInfo");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_25_Nominal_Get_Profile_Policy_Rules_of_the_defined_Profile ()
-{
-
- initial_condition_PROFILE_OPERATIONAL1_is_Enabled();
-
- var ISD_P_Test01 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL2_is_Disabled();
-
- var ISD_P_Test02 = curProfile_ISD_P_AID;
-
- initial_condition_PROFILE_OPERATIONAL3_is_Disabled();
-
- var ISD_P_Test03 = curProfile_ISD_P_AID;
-
-
- curDis.TestStepStart("读卡器向卡片发送 StoreData命令,执行SetNickname,profileNickname为NICKNAME3;");
- var setNicknameRequest = new SetNicknameRequest();
- setNicknameRequest.iccid = ICCID_OP_PROF3;
- setNicknameRequest.profileNickname = NICKNAME3;
- setNicknameRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(setNicknameRequest.hexData);
- curStrHandle.CheckData("BF2903800100", respData,"SetNickname Response");
-
-
- tracenamestr = "测试目的:获取指定Profile的Profile_Policy_Rules";
- 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命令,执行ProfileInfoListRequest,获取获取指定Profile的Profile_Policy_Rules;");
- var proInfoListRequest = new ProfileInfoListRequest();
- proInfoListRequest.searchCriteria = new ChoiceObj(tagOfsearchCriteria_ProfileInfo.iccid,ICCID_OP_PROF3);
- proInfoListRequest.tagList = "99";
- proInfoListRequest.GenHexData();
- var respData = LPAd_Transport_data_to_eUICC(proInfoListRequest.hexData);
-
- var proInfoListResponse = new ProfileInfoListResponse();
- proInfoListResponse.checkCardResDataFormat(respData);
-
-
- try
- {
-
- curStrHandle.CheckData("0520", proInfoListResponse.profileInfoListOk.arrOfElement[0].profilePolicyRules, "profilePolicyRules");
-
- }catch(e){
- obj.SubLevel(ProfileInfoListResponse_Data_Error, level_of_SubLevel.error);
- }
-
- RecoverCard();
-
-}
-
-function TC_eUICC_ES10c_GetProfilesInfo_26_Nominal_Get_empty_Profile_list_No_Profile_installed ()
-{
- tracenamestr = "获取空的Profile列表,#GET_PROFILES_INFO_ALL";
- 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命令,执行ProfileInfoListRequest,获取空profile列表;");
- var proInfoListRequest = new ProfileInfoListRequest();
- 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();
-
+ // 步骤 2:MTD_STORE_DATA(tc_step;REQ: RQ57_117, RQ57_119, RQ57_121, RQ57_123)
+ // <L> length binding and the conditional 61XX + GET RESPONSE chain (D.4.2) are CasBind internal state (chaining rule).
+ var sdCla2 = s7.chan !== null ? (s7.chan <= 3 ? 128 + s7.chan : 188 + s7.chan).toString(16).toUpperCase() : null;
+ var s2 = bind.sendApdu(sdCla2, "E2", "91", "00", "BF2D0EA00C5A0A989209012143658709F5", "00", "9000");
+ bind.checkData("S2-C1 SW", "9000", s2.sw);
+ // es10x-proc-profile 响应面(TC_eUICC_ES10c.GetProfilesInfo,SGP.22 §5.7.15 结构 + vendor ABI 分支锚;断言参数经 spec_pattern 子句注入):
+ var pw2 = BindEs10xProcProfile.walkChoiceList(s2.resp, {respTag: "BF2D", okTag: "A0", errTag: "81"});
+ bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI outer tag", "BF2D", (pw2.outer_tag === null ? "absent" : pw2.outer_tag));
+ bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profileInfo count 1", "1", (pw2.branch_tag === "A0" && pw2.elements.length === 1) ? "1" : "0");
+ bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 5A", "989209012143658709F5", (pw2.elements.length > 0 && pw2.elements[0].fields["5A"] !== undefined) ? pw2.elements[0].fields["5A"] : "absent");
+ bind.checkData("S2-C2 响应为 ProfileInfoListResponse ::= profileInfoListOk : { #PROFI profile[0] tag 9F70", "01", (pw2.elements.length > 0 && pw2.elements[0].fields["9F70"] !== undefined) ? pw2.elements[0].fields["9F70"] : "absent");
+ bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 5A", "989209012143658709F5", (pw2.elements.length > 0 && pw2.elements[0].fields["5A"] !== undefined) ? pw2.elements[0].fields["5A"] : "absent");
+ bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 9F70", "01", (pw2.elements.length > 0 && pw2.elements[0].fields["9F70"] !== undefined) ? pw2.elements[0].fields["9F70"] : "absent");
+ bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 91", "53504E414D4531", (pw2.elements.length > 0 && pw2.elements[0].fields["91"] !== undefined) ? pw2.elements[0].fields["91"] : "absent");
+ bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 92", "4F5045524154494F4E414C50524F46494C454E414D4531", (pw2.elements.length > 0 && pw2.elements[0].fields["92"] !== undefined) ? pw2.elements[0].fields["92"] : "absent");
+ bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 93", "01", (pw2.elements.length > 0 && pw2.elements[0].fields["93"] !== undefined) ? pw2.elements[0].fields["93"] : "absent");
+ bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 94", "FE1ADEFEDAE", (pw2.elements.length > 0 && pw2.elements[0].fields["94"] !== undefined) ? pw2.elements[0].fields["94"] : "absent");
+ bind.checkData("S2-C3 条目 == #PROFILE_INFO1:iccid=989209012143658709F5 profile[0] tag 95", "02", (pw2.elements.length > 0 && pw2.elements[0].fields["95"] !== undefined) ? pw2.elements[0].fields["95"] : "absent");
+ bind.checkData("S2-C4 条目中 profileNickname 不出现 profile[0] tag 90", "absent", (pw2.elements.length > 0 && pw2.elements[0].fields["90"] !== undefined) ? pw2.elements[0].fields["90"] : "absent");
+ // S2-C5: kind 'requirement' pattern '' has no static generation face (corpus vacuum; see CaseIR unresolved).
+ // S2-C6: kind 'requirement' pattern '' has no static generation face (corpus vacuum; see CaseIR unresolved).
+ // S2-C5: binding:bf2d_query_structure_satisfies_requirement(S22-prof_info) (check_attestation)
+ // S2-C6: binding:bf2d_query_structure_satisfies_requirement(S22-prof_info) (check_attestation)
}