Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with...

20
Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1 By Bhaskar Rao G Srinath Y Sridhar Y Jitesh M Motorola India Pvt Ltd, Hyderabad [email protected]

Transcript of Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with...

Page 1: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Automated Target Testing with TTCN-3: Experiences from WiMAX

Call Processing Features

23 November 2009 T3UC-2009 1

ByBhaskar Rao GSrinath YSridhar Y Jitesh M

Motorola India Pvt Ltd, [email protected]

Page 2: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Agenda

• What is WiMAX• WiMAX deployment and architecture• ASNGW Decision Point feature architecture• Test set-up for DP testing• Motivation for TTCN-3 • Automation framework

23 November 2009 T3UC-2009 2

• Feature Testing Strategy • Test system details• Test Execution set-up • Challenges faced • Benefits• Take-away• Conclusions

Page 3: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

WiMAX

• Standards based technology - IEEE 802.16e

• Superior Performance – 75Mbps of throughput

• Scalable channel bandwidths - 12.5 to

23 November 2009 T3UC-2009 3

• Scalable channel bandwidths - 12.5 to 20MHz

• Mobility of subscribers in the network coverage is supported for speeds ranging between 60kmph to 120 kmph

• Audio/Video streaming during mobility

Page 4: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

ASN GW DP

EP

AP

APAP

Internet

AAA

DHCP

WiMAX: Deployment

23 November 2009 T3UC-2009 4

ASN GW DP

EP ASNGW DP

EP

AP

AP

AP

AP

Access Service Network

CPE

CPE

IP Connected

HA

Connectivity

Service Network

Page 5: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

WiMAX Reference Architecture

23 November 2009 T3UC-2009 5

Page 6: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

ASNGW: Decision Point

• Decision Point runs on ATCA chassis

• HA design

• Provides Authentication and Authorization for SS

23 November 2009 T3UC-2009 6

SS

• Mobility management for SS

• Connectivity management with Access Points, FA/Router and other neighboring ASNGWs

• Confirming to NWG standard

Page 7: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

ASNGW Decision Point: Feature Architecture

MobilityManagement

Authentication and Authorization

23 November 2009 T3UC-2009 7

Connectivity Management

Other Boxes

Page 8: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

WiMAX ASNGW Test Setup

Simulated AAA

L2 SwitchProprietary

Tool

23 November 2009 T3UC-2009 8

Simulated ASNGW

Simulated AP[ 1..n]

Simulated MSS

Simulated Internet

Router/FA

ASNGW

The proprietary tool supports test scripts

Simulates other NEs

Page 9: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Motivation for TTCN-3• Component testing and applicable beyond• Standard language for test specification• Rich Language features to meet testing needs of

WiMAX features• Tool support through –Tau G2 Tester• Good automation support and ready made

23 November 2009 T3UC-2009 9

• Good automation support and ready made framework

• Regression capabilities• Automated testing without need for re-compilation• Verdict handling• Automated logging with failure reasons• Command line execution, compilation and

generation• Dynamic logging

Page 10: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Automation framework

Reused SA and PARuntime Library

Mousetrap

tool

TTCN-3 data types

Encoder/decoder

Message

specifications External C code

Test Cases

SDs and UCDs

conversion

23 November 2009 T3UC-2009 10

Test SystemTAU

Tester

C

Compiler

TS

Executable

TTCN-3 data types

Dummy templates

Port definitions

Generated code

Page 11: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Feature Testing Strategy

TTCN-3 Base

Framework

Feasibility for a

componet

REUSE

REUSE

23 November 2009 T3UC-2009 11

NWG 1.1

Page 12: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Test system architecture

TTCN-3MTC and PTC (0..N)

TCP/IP (IPC) Code

Encoder Decoder

Log Mechanism

SUT

23 November 2009 T3UC-2009 12

Runtime Library

Test System (TS)

Hand code

Auto code

Page 13: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Test Specification

interaction SSAuthentication Sequence diagram1 {1/1}

: AAA: ASNGW: AP

AutheticationReq()AutheticationReq()

SSAuthentication

SSAuthentication

EAPTunneling

<<include>><<include>>

AP

AAA

23 November 2009 T3UC-2009 13

refref EAPTunneling

AccessReq()AccessReq()

AccessChallenge()AccessChallenge()

refref EAPTunneling

AccessReq()AccessReq()

AccessAccept()AccessAccept()

EAPSuccess()EAPSuccess()

EAPTunneling

ASNGW

Page 14: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Sample Test casetype component MTCType

{port RADIUS_INTERFACE_type mtcPort_RADIUS_INTERFACE;port ApAsngw_type mtc_ap_asngw_port ;timer T;

}type component TSI

{port RADIUS_INTERFACE_type tsiPort_RADIUS_INTERFACE ;

23 November 2009 T3UC-2009 14

testcase TC1 (integer configParams) runs on MTCType system TSI

{

//variables declaration

// mapping of ports

mtcPort_.send(AUTH_MyTemplate);

alt {

[]mtcPort_auth_.receive(EAP_REQ_MyTemplate) -> value eap_req_var {

mtcPort_auth_.send(EAP_RSP_MyTemplate_PAR(eap_req_var))

alt {

.......

}

port RADIUS_INTERFACE_type tsiPort_RADIUS_INTERFACE ;port ApAsngw_type tsi_mtc_ap_asngw_port ;

}

Page 15: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Test Execution set-up

ASNGW

(SUT)

Env Internal communication

Target

Database

23 November 2009 T3UC-2009 15

Proxy

TTCN-3 Test System (AP, AAA)

communication

Linux-box

Page 16: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Challenges faced• SUT testing

• Health-check integration

• Integration of encryption algorithm

• Supporting various test configurations

• Communication aspects– Integration with proprietary paradigm

23 November 2009 T3UC-2009 16

– Integration with proprietary paradigm

• Issues pertaining to integration of shared memory– Population of shared memory

• Issues pertaining to real-time nature of the application– When full log is enabled, reboots

– Controlling of response timers

Page 17: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Benefits• Standard language for testing

• Automation capabilities

• Reuse– Results of one feature testing have helped the usage

and extension to the other features.

23 November 2009 T3UC-2009 17

– The test architecture and reuse of the test system across various features

• Ability of TTCN-3 to handle configuration, execution and tracing of test case execution

• Better cycle time, quality and productivity

Page 18: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Take-away

• Organizations which are not using TTCN3– Technology is good for any message based testing

– For API based testing, need to investigate synchronous communication

• Organizations which are using TTCN3

23 November 2009 T3UC-2009 18

• Organizations which are using TTCN3– Development of common TTCN-3 framework

– Automation of test system components

• Research organizations and tool vendors– Automation support may be provided by the vendors

• Automatic generation of encoders/decoders, templates, communication parts

• Thoughts on …Domain specific common test framework

Page 19: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Conclusions• TTCN-3 approach is flexible to adopt to various

features and testing of components independently

• Automation of TTCN-3 test system components

• Reuse of Message specifications across SUT and TS

23 November 2009 T3UC-2009 19

and TS

• Reuse of framework across test phases

• Good cycle time reduction to market, higher quality and greater productivity

• Challenges will be there to address– Ex: Encryption algorithms etc

Page 20: Automated Target Testing with TTCN-3: Experiences from ... Nov...Automated Target Testing with TTCN-3: Experiences from WiMAX Call Processing Features 23 November 2009 T3UC-2009 1

Q&A

23 November 2009 T3UC-2009 20

Q&A