1. 11th TTCN-3 User Conference An Introduction to TTCN-3 Bangalore, June 2012.
Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C....
Transcript of Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C....
![Page 1: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/1.jpg)
1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Introduction to TTCNIntroduction to TTCN--33
Colin Willcock
Nokia Research Center
![Page 2: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/2.jpg)
2 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Overview
• Introduction• TTCN Testing Background• Future Testing Challenges
• The TTCN-3 Language• Background• Example
• TTCN-3 in Practice• Current Status• Future Outlook
![Page 3: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/3.jpg)
3 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Overview
• Introduction• TTCN Testing Background• Future Testing Challenges
• The TTCN-3 Language• Background• Example
• TTCN-3 in Practice• Current Status• Future Outlook
![Page 4: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/4.jpg)
4 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Test Language
Why use a standardized test language ?
To know what we are testing !Only if you can unambigously specify a test
case, you can know what you are testing.
![Page 5: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/5.jpg)
5 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TTCN-2
• designed purely for testing
• internationally standardized language
• well-established and widely used (TTCN-2)
• uses conformance testing methodology (ISO 9646)
• tool independent
• supports ASN.1
![Page 6: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/6.jpg)
6 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Testing Challenges
• Increasing complexity of products• Number of GSM Specifications 1306• Number of 3G Specifications 2290
# of CRs
0
1000
2000
3000
4000
5000
6000
7000
1994 1995 1996 1997 1998 1999 2000 2001
2G total
3G total
2G+3G total
![Page 7: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/7.jpg)
7 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Future Testing Challenges
• Pressure to shorten time to market• New systems and services must be available quicker• How can we reduce testing time?
• Pressure to improve quality• SW outage average time for Network elements measured in
seconds per year• How can we improve testing quality (and quantify it)
• New types of testing• IP based protocols• Text based protocols• Unified testing approach for software and protocol testing
• Not unique to Telecomm industry
• Maybe proposed solutions are also general
![Page 8: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/8.jpg)
8 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Overview
• Introduction• TTCN Testing Background• Future Testing Challenges
• The TTCN-3 Language• Background• Example
• TTCN-3 in Practice• Current Status• Future Outlook
![Page 9: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/9.jpg)
9 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
What is TTCN-3
• Test and Testing Control Notation
• New Internationally standardized testing language for formally defining test scenarios. Designed purely for testing
• Taking the best bits of TTCN-2 and combining them with a new more powerful textual notation
• Tool Independenttestcase Hello_Stephan (){
port.send(“Hello Stephan“);alt{
[]port.receive(“Hello Colin“){setverdict( pass)};
[else]{setverdict( inconc)} //Stephan asleep!
}}
![Page 10: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/10.jpg)
10 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Why is TTCN-3 Important
• More Productive• Easier to learn• Easier to use
• More Powerful• Extended functionality• Support for IP protocol• Support text-based protocols
• More Flexable• Not tied to OSI model• For many types of testing
• More Extendable• Extensibility built-in
Function
Module
Layer Unit Integration
Software Testing
Protocol Testing
TTCN-2
TTCN-3
![Page 11: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/11.jpg)
11 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TTCN-3 Background
• STF 133 formed by ETSI MTS in 1997 to produce TTCN version 3
• Co-operation with ITU-T SG10
• Voluntary contributions from Nortel, Ericsson, Telelogic, Nokia etc.
• More than 200 members in STF133 discussion group.
• Language standardized in October 2000
![Page 12: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/12.jpg)
12 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TTCN-3: Standardisation
• A tough job at ETSI
![Page 13: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/13.jpg)
13 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
A Comparison of TTCN Language Versions
TTCN-2
� machine processable source file format (.mp files)
� textual source file format (like programming language)
� tabular presentation format � tabular, graphical (MSC), or any user-defined presentation format
� supports timers and message-based communication
� supports timers, message-based and procedure-based communication, and external functions
� static test configurations � dynamic test configurations and one-to-many connections
� static adaptation layer interface (PCOs)
� separate dynamic adaptation layer interface (systemcomponent)
![Page 14: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/14.jpg)
14 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TTCN-3 Advantages
• Extend usability of TTCN-2
• powerful features, e.g. different communication mechanisms
• intended for several application areas
• presentation formats independent of core language
• standardized interfaces
• Do not reinvent
• retain proven concepts of TTCN-2
• retain TTCN-2 expertise of developers
![Page 15: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/15.jpg)
15 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Application area Conformance Testing
Layer 1Layer 1
Layer 2Layer 2
Layer 3Layer 3
Layer 4Layer 4
Layer 1Layer 1
Layer 2Layer 2
System Under TestTest System
TTCNTTCN
![Page 16: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/16.jpg)
16 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Application Areas
Software Testing
Protocol (Conformance) Testing
Text based testing
IP based testing
TTCNTTCN--33 TTCNTTCN--33
TTCNTTCN--33 TTCNTTCN--33
SUTSUT
SUT SUT AA
SUTSUT
SUTSUT
SUT SUT BB
GET
http://... 404 ...
![Page 17: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/17.jpg)
17 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Separation of Content and Form
• TTCN-3 is based on textual core language
P.send(...);P.receive(...);...
P!... ...
P?... ...
presentation formatcore language
![Page 18: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/18.jpg)
18 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
proprietary presentation format
Separation of Content and Form (cont.)
• Further presentation formats supported
query(...) > P
P > answer(...)
graphical presentation format(standardized)
P.receive("123") 123
P.send("4")
![Page 19: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/19.jpg)
19 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Standardized TTCN-3 Runtime Interface (TRI)
Layer 1Layer 1
Layer 2Layer 2
Layer 3Layer 3
Layer 4Layer 4
Layer 1Layer 1
Layer 2Layer 2
System Under TestTest System
TTCNTTCN
TRI
• standardized interface between test suite and protocol layers
• allows independent development and portability
![Page 20: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/20.jpg)
20 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Standardized TTCN-3 Runtime Interface (TRI)
Test System
TTCNTTCN
Layer 1Layer 1
Layer 2Layer 2
Layer 3Layer 3
Layer 4Layer 4
System Under Test
• testing tools supporting TRI can be integrated easily
![Page 21: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/21.jpg)
21 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
System Under Test
Local Domain Name Server
Local NetworkClient
TTCN-3 Step by Step: DNS Server
Send fully qualified hostname
Return IP-address
Tester
Master Test Component
• TTCN-3 core notation is introduced by developing an exampletest case for a Domain Name Service (DNS) server
![Page 22: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/22.jpg)
22 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
DNS Server – Test Purpose
• The Internet’s Domain Name System (DNS) service offers hostname to IP Address resolution
• Communication is message based (UDP)
• We want to test the correct resolution
www.nokia.com => 193.65.100.110
(www.nokia.com,A)
(www.nokia.com,193.65.100.110,A)
Client DNSSUTTester
pass
![Page 23: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/23.jpg)
23 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TTCN-3 Modules
module DNS {
}
// module definitions
// module control (optional)
• Main building block of TTCN-3 is a module
• Unit of Compilation• Contains definitions• And an optional control part
![Page 24: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/24.jpg)
24 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Module Definitions
• Module definitions•• Type definitionsType definitions• Templates• Port definitions• Component defs• Testcase • Control part
type record DNSQuery {charstring hostname;AnswerType answer optional;QueryType qtype;
}type union AnswerType {
Byte address[4],charstring hostname;
}type integer Byte (0 .. 255);type enumeration QueryType {
A, NS, CNAME, MX}
DNSQueryanswer qtypehostnamehostname
address
![Page 25: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/25.jpg)
25 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
• Module definitions• Type definitions• TemplatesTemplates• Port definitions• Component defs• Testcase • Control part
template DNSQuery query {hostname := “www.nokia.com”;answer := omit;qtype := A;
}
template DNSQuery answer modifies query {answer.address := {193,65,100,110};
}
query
“www.nokia.com” A
answer
“www.nokia.com” A193, 65, 100, 110
Module Definitions contd.
![Page 26: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/26.jpg)
26 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Module Definitions contd.
• Module definitions• Type definitions• Templates•• Port definitionsPort definitions•• Component Component
definitionsdefinitions• Testcase • Control
type port DNSPort message {inout DNSQuery;
// a port may send/receive messages // of more than one type
}
Component definitions
DNSTesterDNSTester
PP
Port definitions
DNSQueryDNSQuery
type component DNSTester {port DNSPort P;
// a component may have more than one port}
![Page 27: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/27.jpg)
27 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
• Module definitions• Type definitions• Templates• Port definitions• Component defs•• TestcaseTestcase• Control part
testcase Testcase1() runs on DNSTester {P.send(query);P.receive(answer);setverdict(pass);stop;
}// there may be more than one in a module
(www.nokia.com,A)
(www.nokia.com,193.65.100.110,A)
Client DNS
pass
Module Definitions contd.
![Page 28: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/28.jpg)
28 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Module Definitions contd.• Module definitions
• Type definitions• Templates• Port defintions• Component defs• Testcase •• Control partControl part
• Controls the execution of test cases
control {
execute(Testcase1());
// more testcases might follow// C-like control structures available
}
![Page 29: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/29.jpg)
29 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
SUT
control {execute(Testcase1());
}
answer = (www.nokia.com, 193.65.100.110,A)
testcase Testcase1() runs on DNSTester {P.send(query);P.receive(answer);setverdict(pass);stop;
}
Tester
query = (www.nokia.com, ,A)
MTC P
Verdict = pass
Execution of a Test Case
P
![Page 30: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/30.jpg)
30 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
![Page 31: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/31.jpg)
31 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
SUTanswer = (www.nokia.com, 127.0.0.1,A)
Tester
query = (www.nokia.com, ,A)
MTC P
Verdict = ???verdict = ???
???
• P.receive(answer) blocks until it receives a message that matches answer .
• Any other message does not unblock the tester, which then blocks forever.
• If no message is received, the tester will also block forever.
Dealing with erroneous behavior
P
![Page 32: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/32.jpg)
32 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Dealing with erroneous behavior contd.
testcase Testcase2() runs on DNSTester {
timer t := 5.0; P.send(query);
t.start;
alt {[] P.receive(answer) {
setverdict(pass);}[] P.receive { // any message
setverdict(fail);}[] t.timeout {
setverdict(inconc);}
}stop;
}
SUTTester
Client DNS
passfailinconc
(www.nokia.com,A)
(www.nokia.com,193.65.100.110,A)(www.nokia.com,127.0.0.1,A)
![Page 33: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/33.jpg)
33 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Tester
Main TestComponent System Under
Test
Local Domain Name Server
The internet‘s rootname service
Local NetworkClient
Non-local DNS QuerySend fully qualified hostname
Return IP-address
Ask for remote DNS
Get remote addressParallel Test Component 2
Parallel Test Component 1
Remote DNS
Parallel Test Component 3
Ask for IP address
Return desired IP-address
![Page 34: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/34.jpg)
34 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Non-local DNS Query contd.
SUT TesterTester
Client
(“www.nokia.com”,193.65.100.110,A)
DNS root NS
(“nokia.com”,NS)
(“nokia.com”,”ns.nokia.com”,NS)
NS
(“www.nokia.com”,A)
(“www.nokia.com”,193.65.100.110,A)
(“www.nokia.com”,A)
![Page 35: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/35.jpg)
35 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
type component TSI {port DNSPort CLIENT,port DNSPort ROOT,port DNSPort NS
}
Parallel Test Components
• Test system interface
Tester
CLIENT
ROOT
NS
DNSQueryDNSQuery
DNSQueryDNSQuery
DNSQueryDNSQuery
![Page 36: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/36.jpg)
36 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
function RootBehaviour() runs on DNSTester {alt { [] P.receive(rootquery) {
P.send(rootanswer); setverdict(pass);
}[] P.receive { setverdict(fail);}
}stop;
}
Parallel Test Components contd.• TTCN-3 functions define the behavior of the parallel test
components
SUT Tester
DNS root NS
(“nokia.com”,NS)
(“nokia.com”,”ns.nokia.com”,NS)
pass
*
fail
alt
![Page 37: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/37.jpg)
37 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Dynamic Configurationtestcase Testcase3() runs on MTC
system TSI {
var DNSTester RootComp, NSComp, ClientComp;
RootComp := DNSTester.create;NSComp := DNSTester.create;ClientComp := DNSTester.create;
map(RootComp:P, system:ROOT);map(NSComp:P, system:NS);map(ClientComp:P, system:CLIENT);
RootComp.start (RootBehaviour());NSComp.start (NSBehaviour());ClientComp.start(ClientBehaviour());
ClientComp.done; // block until ClientComp is done
stop;} Tester
MTC
CLIENT
ROOT
NS
• Re-configuration during run time is possible
PTCClient
PTCNS
PTCroot NS
P
P
P
PTCClient
PTCNS
PTCroot NS
P
P
P
![Page 38: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/38.jpg)
38 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Overview
• Introduction• TTCN Testing Background• Future Testing Challenges
• The TTCN-3 Language• Background• Example
• TTCN-3 in Practice• Current Status• Future Outlook
![Page 39: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/39.jpg)
39 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
Current Status
• A number of commercial TTCN-3 toolsets are available
• ETSI is already using TTCN-3 for the TIPHON SIP and IPv6
• TTCN-3 is already being used in SIP and IPV6 bake-off events
• Major telecoms companies are developing migration plans for moving from TTCN-2 to TTCN-3.
• European Projects to disseminate technology
![Page 40: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/40.jpg)
40 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TT-Medal Project
Project Goals:Project Goals:•• To develop the methodologies, To develop the methodologies,
tools and industrial experience to tools and industrial experience to enable European industry to test enable European industry to test more effectively and more more effectively and more efficientlyefficiently
•• To drive the deployment of TTCNTo drive the deployment of TTCN--3 3 testing technology into European testing technology into European industryindustry
![Page 41: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/41.jpg)
41 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TT-Medal Partners
![Page 42: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/42.jpg)
42 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TT-Medal Results
• TTCN-3 Asset Box will provide all the tools for:
• generic testing processes,• systematic test development and testing methodology,• reuse,• architecture,• new application domains,• tool prototypes,• UML 2.0 testing profile,• test validation, and• lightweight testing process & tools
![Page 43: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/43.jpg)
43 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TT-Medal Results
• Training package: to show how the new technologies should be used, help project partners and others in European industry with effective testing in their business processes.
• Experience package: to show where these new technologies should be applied and why, will provide the means for sharing data on adequate tools, testing methods, applicability of processes, available test cases, and conformance specification, how to obtain sufficient testing resources (from management) and how to leverage these.
![Page 44: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/44.jpg)
44 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TT-Medal Structure
![Page 45: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/45.jpg)
45 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TT-Medal Application Areas
![Page 46: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/46.jpg)
46 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
TTCN-3 Outlook
• Short term:• Replacing TTCN-2 in functional and conformance testing
as standard language.• Increasing use within the IP world especially for text based
protocols• Possible key technology in the IP/telecom convergence.
• Medium term:• Expanding from pure protocol testing to software testing
and interworking testing.• Possible key technology for unifying testing technology
across whole product development.
• Long term:• Real time and performance testing? (European INTERVAL
project)• Integration with UML (UML testing profile)
![Page 47: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/47.jpg)
47 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
More Information?
![Page 48: Introduction to TTCN-3 Introduction version... · 1 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock Introduction to TTCN-3 Colin Willcock Nokia Research Center](https://reader035.fdocuments.in/reader035/viewer/2022062311/5ab069377f8b9a190d8e91b8/html5/thumbnails/48.jpg)
48 © NOKIA TTCN-3 Intro.ppt/ 07.11.2002 /C. Willcock
The Truth About TTCN-3….
AND THEN I AND THEN I
USED TTCNUSED TTCN--33