An Introductionto version 3.ppt
《An Introductionto version 3.ppt》由会员分享,可在线阅读,更多相关《An Introductionto version 3.ppt(59页珍藏版)》请在麦多课文档分享上搜索。
1、An Introduction to version 3,Dr. Michael Ebner University Gttingen, Germany ebnercs.uni-goettingen.de,2,12 October 2005,About the speaker,Is researcher in the telematics group of Prof. Dr. D. Hogrefe at the Institute for Informatics, University of Gttingen, GermanyIs active in the research area of t
2、est automation, model-based testing, and protocol modelingWorking with TTCN-3 since 2000 Influenced data types and synchronous communication of TTCN-3,3,12 October 2005,An Introduction to Institute for Informatics, University of Gttingen,George-August-Universitt Gttingen,Department of Mathematics,In
3、stitute for Informatics,Gau, Weber, Hilbert, ,Center for Informatics,Other 12 departments,Founded in 1737 by King George II (England), who also founded Princeton U (1746) and Columbia U (1754),01/2003,Telematics Group Prof. Hogrefe,Distributed Systems Group, Prof. Switzer,Theory Group Prof. Waack,So
4、ftw. Eng. Group Prof. Grabowski,Database Group Prof. May,2000,Practical Informatics Group Prof. Neumair (GWDG),Service Eng. Group Prof. Margaria,44 Nobel Prize-winner live(d) and work(ed) here,4,12 October 2005,Table of contents,Overall view of TTCN-3 TTCN-3 en detail Types and values Behavior speci
5、fication Implementation of TTCN-3 Presentation formats Final remarks,5,12 October 2005,Why using a standardised test language? 1(3),Developer,6,12 October 2005,Why using a standardised test language? 2(3),7,12 October 2005,Why using a standardised test language? 3(3),Standardised test language impro
6、ves communication among developers with the customer improves transparency one test language for all departments No proprietary test languages reduces costs costs of training usage of commercial test equipments (tools, test suites, etc.),8,12 October 2005,What is TTCN-3 ?,The standardised (black-box
7、) test specification and test implementation language. Developed by the European Telecommunications Standards Institute (ETSI) from 1999 to 2001. based on the experiences from previous TTCN versions. Applicable for all kinds of black-box testing for reactive and distributed systems, e.g. Telecom sys
8、tems (ISDN, ATM); Mobile (telecom) systems (GSM, UMTS); Internet (has been applied to IPv6); CORBA based systems.,9,12 October 2005,TTCN stands for ?,Tree and Tabular Combined Notation For TTCN-1 and TTCN-2Testing and Test Control Notation Since TTCN-3,10,12 October 2005,The TTCN-3 series of standar
9、ds 1(3),11,12 October 2005,The TTCN-3 series of standards 2(3),: testcase myTestcase () runs on MTCType system TSIType mydefault := activate (OtherwiseFail); verdict.set(pass); :connect(PTC_ISAP1:CP_ISAP1,mtc:CP_ISAP1);:map(PTC_ISAP1:ISAP1, system:TSI_ISAP1);:PTC_ISAP1.start(func_PTC_ISAP1();PTC_MSA
10、P2.start(func_PTC_MSAP2();Synchronization(); all component.done;log(”Correct Termination”); :,12,12 October 2005,The TTCN-3 series of standards 3(3),European Standard (ES) in 6 parts ES 201 873-1: TTCN-3 Core Language ES 201 873-2: TTCN-3 Tabular Presentation Format (TFT) ES 201 873-3: TTCN-3 Graphi
11、cal Presentation Format (GFT) ES 201 873-4: TTCN-3 Operational Semantics ES 201 873-5: TTCN-3 Runtime Interface (TRI) ES 201 873-6: TTCN-3 Control Interface (TCI) ES 201 873-7: Using ASN.1 with TTCN-3 ES 201 873-8: Using IDL with TTCN-3 ES 201 873-9: Using XML with TTCN-3 ES 201 873-10: Using C/C+ w
12、ith TTCN-3 (planned),New edition 3.1.1 of TTCN-3 since June 2005,13,12 October 2005,Concepts,Black-Box Testing with TTCN-3 Test Configuration Test Components Communication Ports Test Verdicts Ingredients of TTCN-3 Structure of TTCN-3 specs Re-use of existing Code,14,12 October 2005,Black-box testing
13、 with TTCN-3,Assignment of a Test Verdict,15,12 October 2005,Test configuration 1(2),16,12 October 2005,Test configuration 2(2),Abstract Test System Interface,17,12 October 2005,Test components,There are three kinds of components Abstract Test System Interface defined as component MTC (Main Test Com
14、ponent) PTC (Parallel Test Component),18,12 October 2005,Communication ports 1(2),Test components communicate via ports A test port is modeled as an infinite FIFO queue Ports have direction (in, out, inout) There are three types of port message-based, procedure-based or mixed,19,12 October 2005,Comm
15、unication ports 2(2),Language,20,12 October 2005,Test verdicts,Test verdicts: none pass inconc fail error Each test component has its own local verdict, which can be set (setverdict) and read (getverdict). A test case returns a global verdict,21,12 October 2005,Ingredients of TTCN-3,Built-in and use
16、r-defined generic data types (e.g., to define messages, service primitives, information elements, PDUs). Actual test data transmitted/received during testing. Definition of the components and communication ports that are used to build various testing configurations. Specification of the dynamic test
17、 system behavior.,TTCN-3,22,12 October 2005,Structure of TTCN-3 specs TTCN-3 Modules,Modules are the building blocks of all TTCN-3 test specifications. A test suite is a module. A module has a definitions part and an (optional) control part. Modules can be parameterized. Modules can import definitio
18、ns from other modules.,Module,23,12 October 2005,Structure of TTCN-3 specs Module definitions part,Definitions are global to the entire module. Data Type definitions are based on TTCN-3 predefined and structured types. Templates define the test data. Ports and Components are used in Test Configurati
19、ons. Functions, Altsteps and Test Cases define behavior.,24,12 October 2005,Structure of TTCN-3 specs Module control part 1(2),Module,Module control is the dynamic part of a TTCN-3 specification where the test cases are executed. Local declarations, such as variables and timers may be made in the co
20、ntrol part. Basic programming statements may be used to select and control the execution of the test cases.,25,12 October 2005,Structure of TTCN-3 specs Module control part 2(2),module controlvar integer count;if(execute(SIP_UA_REC_V_001() = pass) / Execute test case 10 timescount := 0;while( count
21、= 10) execute(SIP_UA_REC_V_002();count := count + 1; / end while / end if / end control / end module,26,12 October 2005,Reuse of existing code The import mechanism 1(2),Main Module contains the control part, which specifies test suite execution. Modules may reuse definitions from other (library) mod
22、ules. Implicit import of definitions via chains of imports is not allowed, i.e., an explicit import has to be added. Reason: A module shall know all modules which it depends on.,27,12 October 2005,Reuse of existing code The import mechanism 2(2),Import allows to import single definitions definitions
23、 of a certain kind, and groups of definitionsfrom other modules. Definitions may be imported recursively.If several definitions are addressed, certain definitions can be excluded by using an except directive.,import form ModuleOne modulepar ModPar2;type RecordType_T2 import from ModuleTwo recursive
24、testcase T_case import from ModuleThree all except template all ,28,12 October 2005,Use of nonTTCN-3 code Language mapping,Importing non TTCN-3 definitions requires a language mapping onto TTCN-3. The language mapping defines the meaning of non TTCN-3 definitions in TTCN-3 modules. The language mapp
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANINTRODUCTIONTOVERSION3PPT
