Keynote Application of TTCN-3 for 2 5 and 3G Testing v2 · PDF fileApplication of TTCN-3 for...
Transcript of Keynote Application of TTCN-3 for 2 5 and 3G Testing v2 · PDF fileApplication of TTCN-3 for...
1
testcompetence center
3-5th May 2004, Sophia Antipolis, FranceThe User Conference
Application of TTCN-3for 2.5 and 3G Testing
dr. György RéthyEricsson Test Competence Center
+36(30) [email protected]
TTCN-3 User Conference3-5th May 2004
Sophia Antipolis, France
2 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Paradigm of SW development(cliche of present times)• Complexity of SW systems rapidly increasing
– Growing resources spent on SW design&coding– Number of potential errors in the code is increasing – Consequently: resources and time spent on testing has
to be risen too
• Use of incremental SW development– massive regression testing
• The earlier SW non-quality discovered the lower the cost of its removal– Major increase of testing efforts should be concentrated
to the early phases
3 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Managers view (cliche 2 of present times)• Increase product quality
– decrease number of errors in SW products (increase testing)
• Decrease time to market– decrease time spent on test execution and result evalua-
tion (both regression and new functionality)
• Decrease costs of testing– decrease human and equipment resources used for testing– uniform processes and solutions in different testing phases
• basic testing• function testing (regression and new functionality)• integration verification• conformance testing• load and system performance testing• stability and stress testing• type acceptance testing
4 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
We all know
• the habitual answer to these requirements:
• But we also know, that the substance is in the details
5 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
The UMTS domain: network architecture
InternetIntranets
User dataControl
Connectivity Layer
MS
H.245
Service enablersServices/appli-cation layer Application
ServersApplication
Servers
GTP
MGW/GGSN
IP infrastructureservices
etc.NTPDNSOAM
IP/ATMBSC
BSS
TCP/IP
CS Domain
PS Domain
Control Layer
BICC
SGSNGTP-C
EIRHLR AuC
HSS
SCP etc.
GMSCServer
SGSN GGSNMAP
MAP INAP
H.248
GTP
UTRAN
RA
NA
P
NodeB
NodeB
NodeB
NodeB
SRNC
DRNC
NBAP
NBAP
RN
SA
P
BTS
MM,CC,SMS, etc.
GMM,SM, SS, SMS etc.RANAP
RANAP
RANAP
RANAP
BSSAP/RRISUP
MGW
MSC/VLRServer H.248
PSTN/ISDN
6 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
The UMTS domain: specifics• Very complex networking scenario(s)• Large number of different types of nodes
– differ in functionality (more than 40 types of nodes/entities defined from switching nodes to databases)
– differ in character (platform, capacity etc.)
• Huge variation of protocols– text-based (SIP, http etc.)– native bit-oriented (TCP, IP, SS7 protocols, L3 control etc.)– ASN.1-based (H.245, H.248, RANAP, NBAP, RNSAP etc.)– XML-based (SOAP-based etc.)
• Individual nodes are still complex with variety of interfaces
7 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
The UMTS domain: challenges in testing
• Normally several different test tools shall be used– expensive, difficult to purchase big quantities– support and certification (when needed) are also costly– each of them have different philosophy and/or scripting
language
• Automatic testing is practically not viable– not all tools support a form of automatic testing– development and/or execution of test cases is costly
(due to different philosophy and scripting)– difficult to synthesize a uniform test environment– automatic test co-ordination is practically not viable– IUT/SUT control is unsolved– automatic test result evaluation is unsolved
8 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Use “umbrella” tools !?
Testtool4
Testtool4
Testtool3
Testtool3
Testtool1b
Testtool1b
Testtool1a
Testtool1a
Testtool2a
Testtool2a
Testtool2b
Testtool2b
SUT
“Umbrella” tool
IF2 IF2 IF1 IF1 IF4 IF3IF5
9 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Use “umbrella” tools !? (2)
• “Too many type of tools” problem is still unsolved• Only tools supporting the idea can be integrated• Usually different interfaces between the “umbrella” tool
and separate kinds of test tools– practically impossible to uniform umbrella-TT interfaces– significant development cost– specification and development take a long time– difficult to solve test co-ordination and automatic result
evaluation
• Difficult to synchronize introduction of new functionality• The solution is SUT-specific
10 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Let look for an another answer !
What we need:• An effective solution for the test automation problem• But we shall also consider other aspects
– Usability/user friendliness– Quality, price and performance of available tools– Possible integration of already used test tools– Uniformity of the solution for different nodes/interfaces– Re-usability in different testing phases– Future proof-ness
11 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
What is TTCN-3 ?
• A program language?YES (with testing-specific features)
• A test tool/test environment ?YES
• A test philosophy ?YES
12 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
TTCN-3test solution
The TTCN-3 solution
SystemUnder Test
(SUT)
TTCN-3source code
• Describes the test behaviour• Abstract language: independent of the
SUT and the test tool• Easy-to-learn C like language• Transportable and re-usable code• ASN.1 source is directly usable
Test tool(generic part)
• SUT independent (reusable in alltest environments)
• Ready-coded testing functionality- communication procedures:
message sending, receiving etc.- timer & timeout handling- alternative events handling etc.
• Compiles TTCN-3 to an executable• Test execution support
- parameterization of test execution- test case selection & test control- logging & result evaluationAdaptations
• Handling “physical” connections between the SUT and the test environment
13 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
SUTAbstract Test System
TTCN-3 view of testing
MTCsupevision,coordination
PTCprotocol C
PTCprotocol A
PTCprotocol B
NetworkReal Test System Interface
Abstract Test System Interface
IUT
SAP SAP SAPSAP
Serviceprimitives |messages
Coordinationmessages
ASPs |messages
ASPs |messages
ASPs |messages
14 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
TTCN-3 language considerations (1)
• Up-to-date technical features– supports testing of asynchronous and synchronous inter-
faces, enriched typing features, full ASN.1 support, usable for IP protocols, CORBA etc., test execution control, lan-guage support of automated test execution!, support for IDL (& XML) etc. etc.
• User friendliness (coding efficiency)
– high-level program language with C-like syntax and testing specific features
• Living language: its evolution is ongoing-> based on your requirements and proposals !
– Usability ü/user friendliness ü(but the tool need to be too)
15 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
TTCN-3 language considerations (2)
• Application areas
(Basic &) Function testConformance test
Load &Performance testIntegration verificationStability & Stress tests
API testsType approval
TTCN-3
Function testConformance test
Type approval
TTCN-2
– Re-usability in different testing phases ü
16 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Tool considerations• “New” tools and new tool vendors appeared on the
market• TTCN-3 tools are evolving quickly
– Quality, price and performance of available tools– Possible integration of already used test tools ~
• TRI provides a standard mean to integrate other tools• Tools with known APIs can be integrated by developing
appropriate adaptations
17 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Use of TTCN-3 in MSC testing
MTC(configuration,supervision &co-ordination)
TTCN-3
MAP
H.248
H.248RANAP/DTAP
BSSAP/DTAP
RANAP/DTAP
BSSBSS
MGWMGW
BICC
Legend: BSC - (GSM) Base Station Controller MGW - Media Gateway MSC - Mobile Switching Centre RNC - (UMTS) Radio Network ControllerMTC - Main test component SUT - System under testSEA - Simulated environment for AXE Signalling connection
Co-ordination point between test component– Uniformity of the solution for different interfaces ü
O&MO&M
SE
A
SUT
UTRANUTRAN
MSMS
MTMT
MSCMSC
MSC
MGWMGW
UTRANUTRAN
MSMS
18 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Emulation of UMTS nodes
TTCN-3 languageASN.1Part of the test system
RNC
MTP-3 adaptation
Con
figu
ratio
n pa
ram
eter
s
RANAPtypedef.
to MSC
SCCPimplementation
enc/dec
enc/dec
BER
to MTC
L3-DTAP
MSC
MTP-3 adaptation
Con
figu
ratio
n pa
ram
eter
s
BICC
MAP typedef.
to MSC
SCCPimplementation
MTP3 message distribution
BER
enc/dec
TCAPimplementation
typedef.BER
enc/dec
to MTC
to MTC
Test components
19 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Use
of
TT
CN
-3 in
GS
N t
esti
ng
– Uniformity of the solution for different nodes/interfaces ü
MSCMSC
SGSNSGSNMTC
(configuration &supervision)
TTCN-3
Gb
Gb
Gn
Gn
Gn
GnGr
GsGe Gd
Iu user plane
Gn
Legend:CP between test componentsUMTS specific connectionGSM specific connectionBoth UMTS/GSM connection
Iu user plane
Iu control plane
Iu control plane
UTRANUTRANSGSN
SUT
GGSNControl PlaneUser Plane
GGSNControl PlaneUser Plane
GGSNControl PlaneUser Plane
GGSNControl PlaneUser Plane
BSSBSS
BS2BS2
BS1BS1
HLRHLRSMS-CSMS-CCAMELSCP
CAMELSCP
UTRANUTRAN
BSSBSS
Note: CP:s between almost all simulated nodes
WCDMAMS
WCDMAMS
GSM/GPRSMS
GSM/GPRSMS
WCDMAMS
WCDMAMS
GSM/GPRSMS
GSM/GPRSMS
20 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Is TTCN-3 a future-proof solution ?
• Yes.• A new and evolving language with well-established
basis– the best of TTCN-2 are preserved while its less attractive
features are stripped
• Several application areas (much more than just UMTS)
• Standard abstract test suites available and more will come in future
• New upcoming concepts: e.g. UML testing profile
– Future-proofness ü
21 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
What we should also keep in mind ?
• Using TTCN-3 differs from most of the recent test solutions
• TTCN-3 based testing signifies:testing a SW by means of another SW
– Users need proper training– To develop complex test suites similar processes shall be
used as for developing the SUT itself• version control systems, naming conventions, design rules,
source code documentation, etc.– Project planning & processes shall be adjusted:
• start test preparations in an early phase of the SW design project, test result evaluation and documentation changing(eased in most cases), etc.
22 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
When TTCN-3 may not be the best choice
• Ad-hoc tests for checking one specific item– e.g. cheching a protocol IE value, a message etc.
@ node support or troubleshooting
• Low layer tests, tests close to the physical layer– though there exist TTCN tests for the ISDN physical layer
• In cases when HW or HW-close load generation is a must (e.g. low level STM-x traffic)– but such load generators may be controlled from TTCN-3
23 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Conclusions• TTCN-3 is a mature test solution to be seriously
considered for automated testing of complex SW systems
• You will hear during this conference about– several other application ideas and experiences as well– standardization status and– future extensions of the language
24 3-5th May 2004, Sophia Antipolis, France
testcompetence center
The User Conference
Thank Youfor your attention!