1、 ETSI TS 102 835 V8.1.0 (2012-03) Smart Cards; Test Specification for SCWS Application Invocation API for Java Card; Test Environment and Annexes (Release 8) floppy3Technical Specification ETSI ETSI TS 102 835 V8.1.0 (2012-03)2(Release 8) Reference RTS/SCP-00SCWSv810 Keywords API, SCWS, testing ETSI
2、 650 Route des Lucioles F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice Individual copies of the present document can be do
3、wnloaded from: http:/www.etsi.org The present document may be made available in more than one electronic version or in print. In any case of existing or perceived difference in contents between such versions, the reference version is the Portable Document Format (PDF). In case of dispute, the refere
4、nce shall be the printing on ETSI printers of the PDF version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of status. Information on the current status of this and other ETSI documents i
5、s available at http:/portal.etsi.org/tb/status/status.asp If you find errors in the present document, please send your comment to one of the following services: http:/portal.etsi.org/chaircor/ETSI_support.asp Copyright Notification No part may be reproduced except as authorized by written permission
6、. The copyright and the foregoing restriction extend to reproduction in all media. European Telecommunications Standards Institute 2012. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members. 3GPPTM and LTE are Trade Marks
7、 of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. GSM and the GSM logo are Trade Marks registered and owned by the GSM Association. ETSI ETSI TS 102 835 V8.1.0 (2012-03)3(Release 8) Contents Intellectual Property Rights 8g3Foreword . 8g31 Scope 9g32 Referenc
8、es 9g32.1 Normative references . 9g32.2 Informative references 10g33 Definitions and abbreviations . 10g33.1 Definitions 10g33.2 Abbreviations . 11g34 Applicability . 11g34.1 Applicability of the present document 11g34.2 Applicability of the individual test cases 11g34.3 Applicability to different R
9、eleases . 11g34.4 Definitions 12g34.4.1 Format of table of the table of optional features . 12g34.4.2 Format of the applicability table . 12g34.4.3 Status and Notations . 12g34.5 Table of optional features . 13g34.6 Applicability table 14g35 Test environment 15g35.1 Test environment description . 15
10、g35.2 Tests format 16g35.2.1 Test area reference 16g35.2.1.1 Conformance requirements . 16g35.2.1.2 Test area files 17g35.2.1.3 Test procedure . 17g35.2.1.4 Test coverage 17g35.3 Initial conditions . 17g35.4 Package name . 17g35.5 AID coding . 18g35.6 Test equipment . 19g35.6.1 Test tool 19g35.6.2 I
11、nterfaces and classes use . 19g35.6.3 Util package 19g35.6.4 Java Software Development Kit . 19g36 Test Cases . 19g36.1 class uicc.scws 19g36.1.1 Class ScwsExtensionRegistry . 19g36.1.1.1 Method register . 19g36.1.1.1.1 Conformance Requirement 20g36.1.1.1.2 Test area files . 20g36.1.1.1.3 Test cover
12、age. 20g36.1.1.1.4 Test procedure . 21g36.1.1.2 Method deregister . 21g36.1.1.2.1 Conformance Requirement 22g36.1.1.2.2 Test area files . 22g36.1.1.2.3 Test coverage. 22g36.1.1.2.4 Test procedure . 22g36.1.2 Interface ScwsExtension . 23g36.1.3 Class ScwsExtensionService 23g36.1.3.1 Method doDelete .
13、 23g36.1.3.1.1 Conformance Requirement 23g36.1.3.1.2 Test area files . 23g3ETSI ETSI TS 102 835 V8.1.0 (2012-03)4(Release 8) 6.1.3.1.3 Test coverage . 23g36.1.3.1.4 Test procedure . 24g36.1.3.2 Method doGet . 24g36.1.3.2.1 Conformance Requirement 24g36.1.3.2.2 Test area files . 24g36.1.3.2.3 Test co
14、verage. 24g36.1.3.2.4 Test procedure . 25g36.1.3.3 Method doHead. 25g36.1.3.3.1 Conformance Requirement 25g36.1.3.3.2 Test area files . 25g36.1.3.3.3 Test coverage. 25g36.1.3.3.4 Test procedure . 26g36.1.3.4 Method doOptions. 26g36.1.3.4.1 Conformance Requirement 26g36.1.3.4.2 Test area files . 26g3
15、6.1.3.4.3 Test coverage. 26g36.1.3.4.4 Test procedure . 27g36.1.3.5 Method doPost 27g36.1.3.5.1 Conformance Requirement 27g36.1.3.5.2 Test area files . 27g36.1.3.5.3 Test coverage. 27g36.1.3.5.4 Test procedure . 28g36.1.3.6 Method doPut 28g36.1.3.6.1 Conformance Requirement 28g36.1.3.6.2 Test area f
16、iles . 28g36.1.3.6.3 Test coverage. 28g36.1.3.6.4 Test procedure . 29g36.1.3.7 Method doTrace 29g36.1.3.7.1 Conformance Requirement 29g36.1.3.7.2 Test area files . 29g36.1.3.7.3 Test coverage. 29g36.1.3.7.4 Test procedure . 30g36.1.4 Interface HttpRequest . 30g36.1.4.1 Method findAndCopyKeywordValue
17、 . 30g36.1.4.1.1 Conformance Requirement 30g36.1.4.1.2 Test area files . 30g36.1.4.1.3 Test coverage. 31g36.1.4.1.4 Test procedure . 31g36.1.4.2 Method findAndCopyKeywordValue . 31g36.1.4.2.1 Conformance Requirement 31g36.1.4.2.2 Test area files . 32g36.1.4.2.3 Test coverage. 32g36.1.4.2.4 Test proc
18、edure . 33g36.1.4.3 Method getContentLength 34g36.1.4.3.1 Conformance Requirement 34g36.1.4.3.2 Test area files . 34g36.1.4.3.3 Test coverage. 35g36.1.4.3.4 Test procedure . 35g36.1.4.4 Method getContentType 35g36.1.4.4.1 Conformance Requirement 35g36.1.4.4.2 Test area files . 35g36.1.4.4.3 Test cov
19、erage. 35g36.1.4.4.4 Test procedure . 36g36.1.4.5 Method getRequestHttpVersion 36g36.1.4.5.1 Conformance Requirement 36g36.1.4.5.2 Test area files . 36g36.1.4.5.3 Test coverage. 36g36.1.4.5.4 Test procedure . 37g36.1.4.6 Method readContent 37g36.1.4.6.1 Conformance Requirement 37g36.1.4.6.1.1 Normal
20、 execution 37g36.1.4.6.3 Test coverage . 38g3ETSI ETSI TS 102 835 V8.1.0 (2012-03)5(Release 8) 6.1.4.6.4 Test procedure . 38g36.1.4.7 Method readContentType 39g36.1.4.7.1 Conformance Requirement 39g36.1.4.7.2 Test area files . 39g36.1.4.7.3 Test coverage. 40g36.1.4.7.4 Test procedure . 40g36.1.5 Int
21、erface HttpResponse. 41g36.1.5.1 Method appendContent . 41g36.1.5.1.1 Conformance Requirement 41g36.1.5.1.2 Test area files . 41g36.1.5.1.3 Test coverage. 42g36.1.5.1.4 Test procedure . 42g36.1.5.2 Method appendHeaderVariable(byte data, short offset, short length) 44g36.1.5.2.1 Conformance Requireme
22、nt 44g36.1.5.2.2 Test area files . 45g36.1.5.2.3 Test coverage. 45g36.1.5.2.4 Test procedure . 45g36.1.5.3 Method appendHeaderVariable (byte name, short nameOffset, short nameLength, byte value, short valueOffset, short valueLength) . 48g36.1.5.3.1 Conformance Requirement 48g36.1.5.3.2 Test area fil
23、es . 49g36.1.5.3.3 Test coverage. 49g36.1.5.3.4 Test procedure . 49g36.1.5.4 Method appendHeaderVariable (short headerKeywordNameId, byte value, short valueOffset, short valueLength) 53g36.1.5.4.1 Conformance Requirement 53g36.1.5.4.2 Test area files . 53g36.1.5.5 Method enableChunkMode . 54g36.1.5.
24、5.1 Conformance Requirement 54g36.1.5.5.2 Test area files . 54g36.1.5.5.3 Test coverage. 54g36.1.5.5.4 Test procedure . 55g36.1.5.6 Method finalizeHeader 57g36.1.5.6.1 Conformance Requirement 57g36.1.5.6.2 Test area files . 58g36.1.5.6.3 Test coverage. 58g36.1.5.6.4 Test procedure . 58g36.1.5.7 Meth
25、od flush . 59g36.1.5.7.1 Conformance Requirement 59g36.1.5.7.2 Test area files . 60g36.1.5.7.3 Test coverage. 60g36.1.5.7.4 Test procedure . 60g36.1.5.8 Method getRemainingResponseBufferSize 61g36.1.5.8.1 Conformance Requirement 61g36.1.5.8.2 Test area files . 62g36.1.5.8.3 Test coverage. 62g36.1.5.
26、8.4 Test procedure . 62g36.1.5.9 Method reset 63g36.1.5.9.1 Conformance Requirement 63g36.1.5.9.2 Test area files . 64g36.1.5.9.3 Test coverage. 64g36.1.5.9.4 Test procedure . 64g36.1.5.10 Method sendError . 65g36.1.5.10.1 Conformance Requirement 65g36.1.5.10.2 Test area files . 66g36.1.5.10.3 Test
27、coverage . 66g36.1.5.10.4 Test procedure . 67g36.1.5.11 Method setContentType 70g36.1.5.11.1 Conformance Requirement 70g36.1.5.11.2 Test area files . 70g36.1.5.11.3 Test coverage . 70g36.1.5.11.4 Test procedure . 71g3ETSI ETSI TS 102 835 V8.1.0 (2012-03)6(Release 8) 6.1.5.12 Method writeStatusCode .
28、 73g36.1.5.12.1 Conformance Requirement 73g36.1.5.12.2 Test area files . 74g36.1.5.12.3 Test coverage . 74g36.1.5.12.4 Test procedure . 74g36.2 SCWS Runtime Environment. 78g36.2.1 Applet state . 78g36.2.1.1 Invokation of applets not in state selectable 78g36.2.1.1.1 Conformance Requirement 78g36.2.1
29、.1.2 Test area files . 79g36.2.1.1.3 Test coverage. 79g36.2.1.1.4 Test procedure . 79g36.2.1.2 Registration remains valid if applet is not in selectable state 81g36.2.1.2.1 Conformance Requirement 81g36.2.1.2.2 Test area files . 82g36.2.1.2.3 Test coverage. 82g36.2.1.2.4 Test procedure . 82g36.2.2 R
30、esponse sending 82g36.2.3 Exception handling . 83g36.2.3.1 No exception shall be propagated as HTTP error to the terminal . 83g36.2.3.1.1 Conformance Requirement 83g36.2.3.1.2 Test area files . 83g36.2.3.1.3 Test coverage. 83g36.2.3.1.4 Test procedure . 84g36.2.4 Response Header Management . 85g36.2
31、.4.1 Send status code indicating success 85g36.2.4.1.1 Conformance Requirement 85g36.2.4.1.2 Test area files . 85g36.2.4.1.3 Test coverage. 85g36.2.4.1.4 Test procedure . 85g36.2.5 Availability of ProactiveHandler / ProactiveResponseHandler 86g36.2.5.1 Incoming Http request . 86g36.2.5.1.1 Conforman
32、ce Requirement 86g36.2.5.1.2 Test area files . 86g36.2.5.1.3 Test coverage. 86g36.2.5.1.4 Test procedure . 87g36.2.5.2 Available for complete Http response . 87g36.2.5.2.1 Conformance Requirement 87g36.2.5.2.2 Test area files . 88g36.2.5.2.3 Test coverage. 88g36.2.5.2.4 Test procedure . 88g36.2.5.3
33、Availability of ProactiveResponseHandler . 88g36.2.5.3.1 Conformance Requirement 88g36.2.5.3.2 Test area files . 89g36.2.5.3.3 Test coverage. 89g36.2.5.3.4 Test procedure . 89g36.2.5.4 Triggering through the ToolkitInterface 89g36.2.5.4.1 Conformance Requirement 89g36.2.5.4.2 Test area files . 89g36
34、.2.5.4.3 Test coverage. 89g36.2.5.4.4 Test procedure . 90g36.2.5.5 Presence of CAT_TP multiplexing application . 90g36.2.5.5.1 Conformance Requirement 90g36.2.5.5.2 Test area files . 90g36.2.5.5.3 Test coverage. 90g36.2.5.5.4 Test procedure . 90g3Annex A (normative): Class, methods and SCWSFramework
35、 tests acronyms 91g3A.1 Smart Card Web Server part 91g3A.1.1 Class ScwsExtensionRegistry 91g3A.1.2 Class ScwsExtensionService 91g3ETSI ETSI TS 102 835 V8.1.0 (2012-03)7(Release 8) A.1.3 HttpRequest interface . 91g3A.1.4 HttpResponse interface . 92g3A.2 Acronyms for SCWS Framework tests 92g3A.2.1 App
36、let state . 92g3A.2.3 Exception handling . 92g3A.2.4 Response Header Management 92g3A.2.5 Availability of ProactiveHandler/ProactiveResponseHandler 92g3Annex B (normative): Test file description 93g3Annex C (normative): uicc.scws.test.util package and interfaces 94g3Annex D (normative): Test Area fi
37、les . 95g3Annex E (informative): HTTP-Request and HTTP-Response handling . 96g3Annex F (informative): Bibliography . 97g3Annex G (informative): Change history . 98g3History 99g3ETSI ETSI TS 102 835 V8.1.0 (2012-03)8(Release 8) Intellectual Property Rights IPRs essential or potentially essential to t
38、he present document may have been declared to ETSI. The information pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found in ETSI SR 000 314: “Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETS
39、I in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web server (http:/ipr.etsi.org). Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee can be given as to the existe
40、nce of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or may be, or may become, essential to the present document. Foreword This Technical Specification (TS) has been produced by ETSI Technical Committee Smart Card Platform (SCP). The contents of the
41、present document are subject to continuing work within TC SCP and may change following formal TC SCP approval. If TC SCP decides to modify the contents of the present document, it will be re-released by TC SCP with an identifying change of release date and an increase in version number as follows: V
42、ersion x.y.z where: x the first digit: 1 presented to TC SCP for information; 2 presented to TC SCP for approval; 3 or greater indicates TC SCP approved document under change control. y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections, updates, e
43、tc. z the third digit is incremented when editorial only changes have been incorporated in the document. ETSI ETSI TS 102 835 V8.1.0 (2012-03)9(Release 8) 1 Scope The present document covers the minimum characteristics considered necessary in order to provide compliance to TS 102 588 2. It describes
44、 the technical characteristics and methods for testing the SCWS API for Java CardTM(TS 102 588 2) implemented in a UICC platform. It specifies the following parts: test applicability; test environment description; tests format; test area reference; conformance requirements; test suite files; test pr
45、ocedure; test coverage; and a description of the associated testing tools that shall be used. 2 References References are either specific (identified by date of publication and/or edition number or version number) or non-specific. For specific references, only the cited version applies. For non-spec
46、ific references, the latest version of the reference document (including any amendments) applies. In the case of a reference to a TC SCP document, a non specific reference implicitly refers to the latest version of that document in the same Release as the present document. Referenced documents which
47、 are not found to be publicly available in the expected location might be found at http:/docbox.etsi.org/Reference. NOTE: While any hyperlinks included in this clause were valid at the time of publication ETSI cannot guarantee their long term validity. 2.1 Normative references The following referenc
48、ed documents are necessary for the application of the present document. 1 ISO/IEC 9646-7 (1995): “Information technology - Open Systems Interconnection - Conformance testing methodology and framework - Part 7: Implementation Conformance Statements“. 2 ETSI TS 102 588: “Smart Cards; Application invoc
49、ation Application Programming Interface (API) by a UICC webserver for Java Card platform“. 3 ETSI TS 102 483: “Smart cards; UICC-Terminal interface; Internet Protocol connectivity between UICC and terminal“. 4 OMA: “Smartcard -Web Server Enable Architecture“, OMA-AD-Smartcard-Web-Server-V1-0- 20080421-A. NOTE: Available at http:/www.openmobilealliance.org/technical/release_program/SCWS_v1_0.aspx. ETSI ETSI TS 102 835 V8.1.0 (2012-03)10(Release 8) 5 OMA: “Smartcard-Web-Server“, OMA-TS-Smartcard-Web-Server-V1-0-20080421-A. NOTE: Avai
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1