Loading source/Annex_E_SourceCode/uicc/test/catre/cre_pcs_spco/Test_Cre_Pcs_Spco.java +28 −24 Changes for source/Annex_E_SourceCode/uicc/test/catre/cre_pcs_spco/Test_Cre_Pcs_Spco.java: 28 added lines, 24 removed lines. Original line number Original line Diff line number Diff line Loading @@ -241,8 +241,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 3 */ /** Testcase 3 */ /*********************************************************************/ /*********************************************************************/ // Lock Applet1 // Lock Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.lockApplication(APPLET_AID_1); test.lockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch the SetUpMenu with the menus // Fetch the SetUpMenu with the menus Loading @@ -257,6 +257,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_1, true); test.unlockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); // Fetch the SetUpMenu with the menus // Fetch the SetUpMenu with the menus menuList[0] = "Menu1"; menuList[0] = "Menu1"; menuIdList[0] = "01"; menuIdList[0] = "01"; Loading Loading @@ -300,8 +302,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 6 */ /** Testcase 6 */ /*********************************************************************/ /*********************************************************************/ // Lock Applet1 // Lock Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.lockApplication(APPLET_AID_1); test.lockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch SetUpEventList command // Fetch SetUpEventList command Loading @@ -318,6 +320,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_1, true); test.unlockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); // Fetch SetUpEventList command // Fetch SetUpEventList command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData("D00D8103 01050082 02818219 020003") || addResult(response.checkData("D00D8103 01050082 02818219 020003") || Loading Loading @@ -366,8 +370,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { response = test.terminalResponse("81030105 00820282 81830100"); response = test.terminalResponse("81030105 00820282 81830100"); addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); // Delete Applet1 // Delete Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.deleteApplet(APPLET_AID_1); test.deleteApplet(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch SetUpEventList command // Fetch SetUpEventList command Loading @@ -391,9 +395,9 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { "00" + // LV TAR Value(s) "00" + // LV TAR Value(s) "00", // V Maximum number of services "00", // V Maximum number of services true); true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch SetUpEventList command // Fetch SetUpEventList command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData("D00D8103 01050082 02818219 020003") || addResult(response.checkData("D00D8103 01050082 02818219 020003") || Loading Loading @@ -424,11 +428,11 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 10 */ /** Testcase 10 */ /*********************************************************************/ /*********************************************************************/ // Lock Applet1 // Lock Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.lockApplication(APPLET_AID_1); test.lockApplication(APPLET_AID_1, true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch Polling Off command // Fetch Polling Off command response = test.fetch("0B"); response = test.fetch("0B"); addResult(response.checkData("D0098103 01040082 028182")); addResult(response.checkData("D0098103 01040082 028182")); Loading @@ -440,11 +444,11 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 11 */ /** Testcase 11 */ /*********************************************************************/ /*********************************************************************/ // Make selectable Applet1 // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_1); test.unlockApplication(APPLET_AID_1, true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch Poll Interval command // Fetch Poll Interval command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData(pollInterCmd)); addResult(response.checkData(pollInterCmd)); Loading Loading @@ -472,8 +476,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { response = test.terminalResponse("81030103 00820282 81830100 84020010"); response = test.terminalResponse("81030103 00820282 81830100 84020010"); addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); // Delete Applet1 // Delete Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.deleteApplet(APPLET_AID_1); test.deleteApplet(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch Polling Off command // Fetch Polling Off command Loading @@ -496,9 +500,9 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { "00" + // LV TAR Value(s) "00" + // LV TAR Value(s) "00", // V Maximum number of services "00", // V Maximum number of services true); true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch Poll Interval command // Fetch Poll Interval command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData(pollInterCmd)); addResult(response.checkData(pollInterCmd)); Loading Loading @@ -712,9 +716,9 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); //Lock Applet3 (testcase 14-14); note that we don't want this method to consume any unnecessary 91XX -> true //Lock Applet3 (testcase 14-14); note that we don't want this method to consume any unnecessary 91XX -> true response = test.lockApplication(APPLET_AID_3, true); test.lockApplication(APPLET_AID_3, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU response = test.status("00","0C","00"); test.status("00","0C","00"); // Fetch the SetUpMenu // Fetch the SetUpMenu response = test.fetch(response.getStatusWord().substring(2)); response = test.fetch(response.getStatusWord().substring(2)); addResult(response.checkData("D01C8103 01250082 02818285 09554943" + addResult(response.checkData("D01C8103 01250082 02818285 09554943" + Loading @@ -728,8 +732,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { response = test.terminalResponse("81030125 00820282 81830100"); response = test.terminalResponse("81030125 00820282 81830100"); addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); //Make selectable Applet3 (testcase 14-15) //Make selectable Applet3 (testcase 14-15); note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_3); test.unlockApplication(APPLET_AID_3, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch the SetUpMenu // Fetch the SetUpMenu Loading Loading
source/Annex_E_SourceCode/uicc/test/catre/cre_pcs_spco/Test_Cre_Pcs_Spco.java +28 −24 Changes for source/Annex_E_SourceCode/uicc/test/catre/cre_pcs_spco/Test_Cre_Pcs_Spco.java: 28 added lines, 24 removed lines. Original line number Original line Diff line number Diff line Loading @@ -241,8 +241,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 3 */ /** Testcase 3 */ /*********************************************************************/ /*********************************************************************/ // Lock Applet1 // Lock Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.lockApplication(APPLET_AID_1); test.lockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch the SetUpMenu with the menus // Fetch the SetUpMenu with the menus Loading @@ -257,6 +257,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_1, true); test.unlockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); // Fetch the SetUpMenu with the menus // Fetch the SetUpMenu with the menus menuList[0] = "Menu1"; menuList[0] = "Menu1"; menuIdList[0] = "01"; menuIdList[0] = "01"; Loading Loading @@ -300,8 +302,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 6 */ /** Testcase 6 */ /*********************************************************************/ /*********************************************************************/ // Lock Applet1 // Lock Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.lockApplication(APPLET_AID_1); test.lockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch SetUpEventList command // Fetch SetUpEventList command Loading @@ -318,6 +320,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_1, true); test.unlockApplication(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); // Fetch SetUpEventList command // Fetch SetUpEventList command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData("D00D8103 01050082 02818219 020003") || addResult(response.checkData("D00D8103 01050082 02818219 020003") || Loading Loading @@ -366,8 +370,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { response = test.terminalResponse("81030105 00820282 81830100"); response = test.terminalResponse("81030105 00820282 81830100"); addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); // Delete Applet1 // Delete Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.deleteApplet(APPLET_AID_1); test.deleteApplet(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch SetUpEventList command // Fetch SetUpEventList command Loading @@ -391,9 +395,9 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { "00" + // LV TAR Value(s) "00" + // LV TAR Value(s) "00", // V Maximum number of services "00", // V Maximum number of services true); true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch SetUpEventList command // Fetch SetUpEventList command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData("D00D8103 01050082 02818219 020003") || addResult(response.checkData("D00D8103 01050082 02818219 020003") || Loading Loading @@ -424,11 +428,11 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 10 */ /** Testcase 10 */ /*********************************************************************/ /*********************************************************************/ // Lock Applet1 // Lock Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.lockApplication(APPLET_AID_1); test.lockApplication(APPLET_AID_1, true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch Polling Off command // Fetch Polling Off command response = test.fetch("0B"); response = test.fetch("0B"); addResult(response.checkData("D0098103 01040082 028182")); addResult(response.checkData("D0098103 01040082 028182")); Loading @@ -440,11 +444,11 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { /** Testcase 11 */ /** Testcase 11 */ /*********************************************************************/ /*********************************************************************/ // Make selectable Applet1 // Make selectable Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_1); test.unlockApplication(APPLET_AID_1, true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch Poll Interval command // Fetch Poll Interval command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData(pollInterCmd)); addResult(response.checkData(pollInterCmd)); Loading Loading @@ -472,8 +476,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { response = test.terminalResponse("81030103 00820282 81830100 84020010"); response = test.terminalResponse("81030103 00820282 81830100 84020010"); addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); // Delete Applet1 // Delete Applet1; note that we don't want this method to consume any unnecessary 91XX -> true test.deleteApplet(APPLET_AID_1); test.deleteApplet(APPLET_AID_1, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch Polling Off command // Fetch Polling Off command Loading @@ -496,9 +500,9 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { "00" + // LV TAR Value(s) "00" + // LV TAR Value(s) "00", // V Maximum number of services "00", // V Maximum number of services true); true); // Send a Select command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) // Do not send Status, because this would turn off polling (which is coded for the start of Testcase12) test.sendApdu("00 A4 00 0C 02 3F 00"); test.sendpdu("00 A4 00 0C 02 3F 00"); // Fetch Poll Interval command // Fetch Poll Interval command response = test.fetch("0F"); response = test.fetch("0F"); addResult(response.checkData(pollInterCmd)); addResult(response.checkData(pollInterCmd)); Loading Loading @@ -712,9 +716,9 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); //Lock Applet3 (testcase 14-14); note that we don't want this method to consume any unnecessary 91XX -> true //Lock Applet3 (testcase 14-14); note that we don't want this method to consume any unnecessary 91XX -> true response = test.lockApplication(APPLET_AID_3, true); test.lockApplication(APPLET_AID_3, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU response = test.status("00","0C","00"); test.status("00","0C","00"); // Fetch the SetUpMenu // Fetch the SetUpMenu response = test.fetch(response.getStatusWord().substring(2)); response = test.fetch(response.getStatusWord().substring(2)); addResult(response.checkData("D01C8103 01250082 02818285 09554943" + addResult(response.checkData("D01C8103 01250082 02818285 09554943" + Loading @@ -728,8 +732,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel { response = test.terminalResponse("81030125 00820282 81830100"); response = test.terminalResponse("81030125 00820282 81830100"); addResult(response.checkSw("9000")); addResult(response.checkSw("9000")); //Make selectable Applet3 (testcase 14-15) //Make selectable Applet3 (testcase 14-15); note that we don't want this method to consume any unnecessary 91XX -> true test.unlockApplication(APPLET_AID_3); test.unlockApplication(APPLET_AID_3, true); // Send a status command to be sure to retrieve the correct status word in the RAPDU // Send a status command to be sure to retrieve the correct status word in the RAPDU test.status("00","0C","00"); test.status("00","0C","00"); // Fetch the SetUpMenu // Fetch the SetUpMenu Loading