ETSI ES 201 873-11-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 11 Using JSON with TTCN-3 (V4 7 1).pdf
《ETSI ES 201 873-11-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 11 Using JSON with TTCN-3 (V4 7 1).pdf》由会员分享,可在线阅读,更多相关《ETSI ES 201 873-11-2017 Methods for Testing and Specification (MTS) The Testing and Test Control Notation version 3 Part 11 Using JSON with TTCN-3 (V4 7 1).pdf(35页珍藏版)》请在麦多课文档分享上搜索。
1、 ETSI ES 201 873-11 V4.7.1 (2017-06) Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 11: Using JSON with TTCN-3 ETSI STANDARD ETSI ETSI ES 201 873-11 V4.7.1 (2017-06)2 Reference DES/MTS-00201873-11ed471JSON Keywords JSON, language, testing, TTCN-3 E
2、TSI 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 The present document can be downloaded from: htt
3、p:/www.etsi.org/standards-search The present document may be made available in electronic versions and/or in print. The content of any electronic and/or print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any existing or perceived
4、difference in contents between such versions and/or in print, the only prevailing document is the print of the Portable Document Format (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 o
5、r change of status. Information on the current status of this and other ETSI documents is available at https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx If you find errors in the present document, please send your comment to one of the following services: https:/portal.etsi.org/People/CommiteeSup
6、portStaff.aspx Copyright Notification No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm except as authorized by written permission of ETSI. The content of the PDF version shall not be modified without the written authori
7、zation of ETSI. The copyright and the foregoing restriction extend to reproduction in all media. ETSI 2017. 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 of ETSI registered for the b
8、enefit of its Members and of the 3GPP Organizational Partners. oneM2M logo is protected for the benefit of its Members GSM and the GSM logo are Trade Marks registered and owned by the GSM Association. ETSI ETSI ES 201 873-11 V4.7.1 (2017-06)3 Contents Intellectual Property Rights 5g3Foreword . 5g3Mo
9、dal verbs terminology 5g31 Scope 6g32 References 6g32.1 Normative references 6g32.2 Informative references . 6g33 Definitions and abbreviations . 7g33.1 Definitions . 7g33.2 Abbreviations 7g34 Introduction 8g35 Conformance and compatibility . 8g36 Using TTCN-3 as JSON Schema . 9g36.1 Approach . 9g36
10、.2 Validation of JSON Values . 9g36.3 Name conversion rules 9g36.4 Mapping of JSON Values 10g36.4.1 JSON Numbers 10g36.4.2 JSON Strings . 11g36.4.3 JSON Arrays 12g36.4.4 JSON Objects. 14g36.4.5 JSON Literals. 15g37 Using JSON to exchange data between TTCN-3 and other systems . 16g37.1 General rules
11、. 16g37.2 JSON representations of TTCN-3 values 17g37.2.1 Character strings 17g37.2.2 Binary Strings 17g37.2.3 Integer 17g37.2.4 Float . 18g37.2.5 Boolean 18g37.2.6 Enumerated 18g37.2.7 Verdicttype 19g37.2.8 Record and set 19g37.2.9 Record of, set of and arrays . 20g37.2.10 Union and anytype . 21g37
12、.2.11 Object Identifiers . 22g38 JSON representations of TTCN-3 values based on ASN.1 types . 22g38.1 General rules . 22g38.2 Character strings 23g38.3 Binary strings 23g38.4 BOOLEAN 23g38.5 ENUMERATED . 23g38.6 REAL 23g38.7 INTEGER 23g38.8 OBJID . 23g38.9 NULL 23g38.10 SEQUENCE and SET . 24g38.11 S
13、EQUENCE OF and SET OF . 24g38.12 CHOICE and Open Types . 24g3Annex A (normative): TTCN-3 module JSON 25g3ETSI ETSI ES 201 873-11 V4.7.1 (2017-06)4 Annex B (normative): Encoding instructions 27g3B.1 General . 27g3B.2 The JSON encode attribute . 27g3B.3 Encoding instructions . 27g3B.3.1 General rules
14、. 27g3B.3.2 JSON type identification . 28g3B.3.3 Normalizing JSON Values 28g3B.3.4 Name as . 28g3B.3.5 Number of fraction digits 29g3B.3.6 Use the Minus sign 30g3B.3.7 Escape as . 30g3B.3.8 Omit as null . 31g3B.3.9 Default . 31g3B.3.10 As value . 32g3B.3.11 No Type . 32g3B.3.12 Use order . 32g3B.3.1
15、3 Error behaviour . 33g3Annex C (informative): Bibliography . 34g3History 35g3ETSI ETSI ES 201 873-11 V4.7.1 (2017-06)5 Intellectual Property Rights IPRs essential or potentially essential to the present document may have been declared to ETSI. The information pertaining to these essential IPRs, if
16、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 ETSI in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available
17、 on the ETSI Web server (https:/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 existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or
18、 may be, or may become, essential to the present document. Foreword This ETSI Standard (ES) has been produced by ETSI Technical Committee Methods for Testing and Specification (MTS). The present document is part 11 of a multi-part deliverable. Full details of the entire series can be found in part 1
19、 1. Modal verbs terminology In the present document “shall“, “shall not“, “should“, “should not“, “may“, “need not“, “will“, “will not“, “can“ and “cannot“ are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of provisions). “must“ and “must no
20、t“ are NOT allowed in ETSI deliverables except when used in direct citation. ETSI ETSI ES 201 873-11 V4.7.1 (2017-06)6 1 Scope The present document specifies the rules to define schemas for JSON data structures in TTCN-3, to enable testing of JSON-based systems, interfaces and protocols, and the con
21、version rules between TTCN-3 1 and JSON 2 to enable exchanging TTCN-3 data in JSON format between different systems. 2 References 2.1 Normative references References are either specific (identified by date of publication and/or edition number or version number) or non-specific. For specific referenc
22、es, only the cited version applies. For non-specific references, the latest version of the referenced document (including any amendments) applies. Referenced documents which are not found to be publicly available in the expected location might be found at https:/docbox.etsi.org/Reference/. NOTE: Whi
23、le any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee their long term validity. The following referenced documents are necessary for the application of the present document. 1 ETSI ES 201 873-1: “Methods for Testing and Specification (MTS); The Testin
24、g and Test Control Notation version 3; Part 1: TTCN-3 Core Language“. 2 IETFRFC 7159: “The JavaScript Object Notation (JSON) Data Interchange Format“. NOTE: Available at http:/www.rfc-editor.org/rfc/rfc7159.txt. 3 ISO/IEC 10646:2014: “Information technology - Universal Coded Character Set (UCS)“. NO
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ETSIES201873112017METHODSFORTESTINGANDSPECIFICATIONMTSTHETESTINGANDTESTCONTROLNOTATIONVERSION3PART11USINGJSONWITHTTCN3V471PDF

链接地址:http://www.mydoc123.com/p-730776.html