The employment of TTCN3 for testing the Application

  • Slides: 28
Download presentation
The employment of TTCN-3 for testing the Application Server in the IMS network. Damian

The employment of TTCN-3 for testing the Application Server in the IMS network. Damian Zolich, Ericpol Telecom Sp. z o. o. damian. zolich@ericpol. com Tel. : +48 663 426 716 TTCN-3 User Conference 2011 7 – 9 June 2011 - Bled, Slovenia

Agenda Introduction Step 1 Without TTCN-3 Step 2 New test environment with TTCN-3 Step

Agenda Introduction Step 1 Without TTCN-3 Step 2 New test environment with TTCN-3 Step 3 Make testing easy Step 4 Our future ericpol. com

Our environment in numbers • • About 7000 test cases Up to 80 components

Our environment in numbers • • About 7000 test cases Up to 80 components in one test case About 45 users 930 files 1, 5 million code lines Support for 7 different protocols 11 interfaces ericpol. com

Step 1 Without TTCN-3 • • Only one protocol (SIP) Very basic scenarios Simple

Step 1 Without TTCN-3 • • Only one protocol (SIP) Very basic scenarios Simple environment Simple matching mechanism ericpol. com

Simple environment Caller Application Server Traffic Generator Callee ericpol. com

Simple environment Caller Application Server Traffic Generator Callee ericpol. com

New challenges • • New traffic generator (H. 248) More and more complex scenarios

New challenges • • New traffic generator (H. 248) More and more complex scenarios New protocols in the near future More and more pressure on matching mechanism ericpol. com

Second protocol Traffic Generator H. 248 MRFP Caller Application Server Traffic Generator SIP Callee

Second protocol Traffic Generator H. 248 MRFP Caller Application Server Traffic Generator SIP Callee ericpol. com

Test team problems 1. Preparation for the test execution 2. Exchanging information between traffic

Test team problems 1. Preparation for the test execution 2. Exchanging information between traffic generators 3. No flexibility 4. Poor matching mechanism 5. Code reuse 6. Message synchronisation 7. Verification of correct message sequence 8. Timers ericpol. com

ericpol. com

ericpol. com

Solution We need something completely different. So let’s try TTCN-3 ericpol. com

Solution We need something completely different. So let’s try TTCN-3 ericpol. com

Step 2 New test environment with TTCN-3 Charging SLF Di Provisioning Px Ro (online

Step 2 New test environment with TTCN-3 Charging SLF Di Provisioning Px Ro (online charging) Rf (offline charging) Dh am Px App et er /T CP Muta Diameter LDAP CAI 3 G/XCAP CM, PM IMS AS LDAP Sh Mr ete H. 248 SIP CP r/T am Di Mp ISC SIP Cx S-CSCF Dx I-CSCF MRFC CSCF SIP MGW MGCF PSTN/PLMN CSCF other SIP network SIP SBG ericpol. com Audio & Video Announcements Audio & Video Conference Voice & Video mail SIP HSS P-CSCF MRFP SIP NNI or H. 323

New challenges Test environment which enables: • Simulation of nodes around the Application Server

New challenges Test environment which enables: • Simulation of nodes around the Application Server • Support of all required interfaces • Support of all required protocols • Support of advance matching mechanism • Coordination between interfaces ericpol. com

Function Test Environment CCF ECF HSS Rf (Diameter) HSS SLF Ro (Diameter) Operator PM

Function Test Environment CCF ECF HSS Rf (Diameter) HSS SLF Ro (Diameter) Operator PM PM Sh (Diameter) Muta (LDAP) Dh (Diameter) MTAS IMS AS S-CSCF ISC (SIP) CAI 3 G/ Ut (XCAP) MP (H. 248) Provisioning TTCN-3 MRFP 1 ericpol. com Operator CM MRFP 2 PIPE Testport

Basic call setup vs. Test simulation Alice Originating CSCF Originating IMS AS Terminating CSCF

Basic call setup vs. Test simulation Alice Originating CSCF Originating IMS AS Terminating CSCF Primary CCF Terminating network SIP: INVITE SIP: 180 Ringing SIP: 200 OK SIP: ACK DIAMETER: Accounting-Request Start DIAMETER: Accounting-Answer Start SIP: ACK ericpol. com

New test team problems 1. Testing is time consuming 2. Development of test cases

New test team problems 1. Testing is time consuming 2. Development of test cases difficult to learn 3. Lots of code to write for one test case 4. Test execution quite complex ericpol. com

Solution We need a good test Framework ericpol. com and Automation

Solution We need a good test Framework ericpol. com and Automation

ericpol. com

ericpol. com

Step 3 Make testing easy TTCN-3 function library & API • Creation and initialization

Step 3 Make testing easy TTCN-3 function library & API • Creation and initialization of test components, routing of messages and verification of message content Test automation scripts • Run before and after the TC call flow. • Ensures test environment integrity and checks for problems caused by TC execution. ericpol. com

Directory Structure Test Object – Service I Test module … Test module Test Object

Directory Structure Test Object – Service I Test module … Test module Test Object – Service II Private functions Test module Private functions Framework DIAMETER Sh/Dh ericpol. com Rf DNS Ro H 248 Mp Scripts SIP Ma Isc Mr Test automation

Messages exchange on ports between the SUT and the Framework components (defaults used) Outgoing

Messages exchange on ports between the SUT and the Framework components (defaults used) Outgoing IMS AS Incoming IMS AS Port 3. Invite 7. 200 OK 6. 200 OK 2. Invite SIP_DISPATCHER_CT 5060 ISC 1 5061 ISC 2 4. Invite 1. Invite 8. 200 OK ISC_SESSION_CT ISC 1 ericpol. com 5. 200 OK ISC_SESSION_CT ISC 2

Framework component overview Non-Session Caller (ISC Session) Sh session 1 IMS AS HSS dispatcher

Framework component overview Non-Session Caller (ISC Session) Sh session 1 IMS AS HSS dispatcher Sh session X CSCF (SIP dispatcher) Rf Session 1 Callee (ISC Session) Sip caller and callee are together a SIP session Dispatchers uses list of keys to differientiate sessions CCF dispatcher Rf Session X Non-Session Non session related data ericpol. com

Framework benefits • Higher abstraction level for writing TCs • More readable/understandable test cases

Framework benefits • Higher abstraction level for writing TCs • More readable/understandable test cases written in a consistent style • Complex and extensive common verification details are handled transparently and automatically • Simplifies TC maintenance and development • New checks can be added automatically to existing TCs via the framework ericpol. com

Framework benefits • • Majority of TC’s automated Full automated regression test Flexibility in

Framework benefits • • Majority of TC’s automated Full automated regression test Flexibility in test case creation User friendly ericpol. com

Examples of automated test activities Pre execution activity: • cleaning environment • checking environment

Examples of automated test activities Pre execution activity: • cleaning environment • checking environment • run external applications (e. g. wireshark) Post execution activity • collecting all logs into one archive file • monitor for hanging processes, memory leaks & system crashes ericpol. com

ericpol. com

ericpol. com

Step 4 Our future • Environment very flexible to test new features required by

Step 4 Our future • Environment very flexible to test new features required by customers • Smart way of regression testing • More testing in shorter time ericpol. com

ericpol. com

ericpol. com

Thank you Damian Zolich, Ericpol Telecom Sp. z o. o. damian. zolich@ericpol. com Tel.

Thank you Damian Zolich, Ericpol Telecom Sp. z o. o. damian. zolich@ericpol. com Tel. : +48 663 426 716 TTCN-3 User Conference 2011 7 – 9 June 2011 - Bled, Slovenia