TTCN-3 Test Case Generation from arbitrary traces Capture & Replay Bogdan Stanca-Kaposta & Theofanis Vassiliou-Gioles (Testing Technologies)

Slides:



Advertisements
Similar presentations
Websydian Anne-Marie Arnvig Manager, Websydian Communications & Relations.
Advertisements

Websydian products.
Designing Reusable Frameworks for Test Automation
© 2010 Wipro Ltd - Confidential SGSN Automation Testing Using TTCN3 Authors: Jyothi Gavara Nikhil Rahul Ekka.
Test Automation Success: Choosing the Right People & Process
NETW-250 Troubleshooting Last Update Copyright Kenneth M. Chipps Ph.D. 1.
HP Quality Center Overview.
Software Testing Workshop Regression Automation 11-Jul-08 COPYRIGHT NOTICE Copyright © 2008 Polaris Software Lab Limited All rights reserved. These materials.
MS CRM Integration WhosOn Service Integration Presentation MS CRM User Group.
Key-word Driven Automation Framework Shiva Kumar Soumya Dalvi May 25, 2007.
Test Automation An Approach to Automated Software Regression Testing Presented by Adnet, Inc Feb 2015.
2004 Cross-Platform Automated Regression Test Framework Ramkumar Ramalingam, Rispna Jain IBM Software Labs, India.
Software Frame Simulator (SFS) Technion CS Computer Communications Lab (236340) in cooperation with ECI telecom Uri Ferri & Ynon Cohen January 2007.
Multi Instruments Data Acquisition Software Evolution
Solving Automation Reporting Problems with Dream Report Renee Sikes Applications Engineer Dream Report Brand Manager.
An Automata-based Approach to Testing Properties in Event Traces H. Hallal, S. Boroday, A. Ulrich, A. Petrenko Sophia Antipolis, France, May 2003.
July 11 th, 2005 Software Engineering with Reusable Components RiSE’s Seminars Sametinger’s book :: Chapters 16, 17 and 18 Fred Durão.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
Maintaining and Updating Windows Server 2008
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
Introduction to Software Testing
“GENERIC SCRIPT” Everything can be automated, even automation process itself. “GENERIC SCRIPT” Everything can be automated, even automation process itself.
Session Initialization Protocol (SIP)
CrackingSiebel.com Utility Siebel Repository Extract (SRE) Tool.
MSF Testing Introduction Functional Testing Performance Testing.
ADL Slide 1 December 15, 2009 Evidence-Centered Design and Cisco’s Packet Tracer Simulation-Based Assessment Robert J. Mislevy Professor, Measurement &
TESTING STRATEGY Requires a focus because there are many possible test areas and different types of testing available for each one of those areas. Because.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Manage Engine: Q Engine. What is it?  Tool developed by Manage Engine that allows one to test web applications using a variety of different tests to.
Model Bank Testing Accelerators “Ready-to-use” test scenarios to reduce effort, time and money.
Created by the Community for the Community BizTalk & Build.
©Kwan Sai Kit, All Rights Reserved Windows Small Business Server 2003 Features.
© 2012 WIPRO LTD | 1 Version 1.0a, 23 rd April 2012 TTCN-3 Users Conference Practical integration of TTCN-3 with Robot test automation framework.
Damian Zolich, TTCN-3 User Conference 2011
Software Engineering 2003 Jyrki Nummenmaa 1 CASE Tools CASE = Computer-Aided Software Engineering A set of tools to (optimally) assist in each.
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
Objectives Configure routing in Windows Server 2008 Configure Routing and Remote Access Services in Windows Server 2008 Network Address Translation 1.
Honeypot and Intrusion Detection System
Session Initiation Protocol (SIP). What is SIP? An application-layer protocol A control (signaling) protocol.
1. Validating Wireless Protocol Conformance Test Cases Amresh Nandan Paresh Jain June 2004.
Reusability and Effective Test Automation in Telecommunication System Testing Mikael Mattas Supervisor: Professor Sven-Gustav Häggman Instructor: B.Sc.
Computer Emergency Notification System (CENS)
FlexElink Winter presentation 26 February 2002 Flexible linking (and formatting) management software Hector Sanchez Universitat Jaume I Ing. Informatica.
Software Confederations and the Maintenance of Global Software Systems Jaroslav Král, Michal Žemlička Charles University, Prague
TTCN-3 MOST Challenges Maria Teodorescu
 Data Fuzzing with TTCN-3 Stephan Pietsch, Bogdan Stanca-Kaposta, Dr. Jacob Wieland, Dirk Tepelmann, Ju ̈ rgen Großmann, Martin Schneider TTCN-3 User.
© 2007 IBM Corporation SOA on your terms and our expertise Software WebSphere Process Server and Portal Integration Overview.
Wordpress with Mina Automated Deployment Solution Jonathan Gravato DIG 4104c.
Toshiba Confidential 1 Presented by: Philipe BC Da’Silva SESSION INITIATION PROTOCOL.
Ryan Coetzee Lead Developer Synchronizing Wonderware Historian with PCS7 Michael Garnham Sidekick.
Test automation analysis in System Testing for the Intelligent Packet Core Author: Mona Saxena Supervisor: Professor Jörg Ott Nokia Networks, Helsinki.
Workforce Scheduling Release 5.0 for Windows Implementation Overview OWS Development Team.
Lecture 4 Mechanisms & Kernel for NOSs. Mechanisms for Network Operating Systems  Network operating systems provide three basic mechanisms that support.
Facilitating testing and monitoring of number entry systems in medical devices Abigail Cauchi, Christian Colombo, Mark Micallef & Gordon Pace.
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
October Test Beam DAQ. Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram.
FlowLevel Client, server & elements monitoring and controlling system Message Include End Dial Start.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
T EST T OOLS U NIT VI This unit contains the overview of the test tools. Also prerequisites for applying these tools, tools selection and implementation.
TTCN-3 Testing and Test Control Notation Version 3.
Maintaining and Updating Windows Server 2008 Lesson 8.
A Semi-Automated Digital Preservation System based on Semantic Web Services Jane Hunter Sharmin Choudhury DSTC PTY LTD, Brisbane, Australia Slides by Ananta.
Rapid fire performance testing of 250 websites
Introduction to Software Testing
Smart Integration Express
TDL: The ETSI Test Description Language
Presentation transcript:

TTCN-3 Test Case Generation from arbitrary traces Capture & Replay Bogdan Stanca-Kaposta & Theofanis Vassiliou-Gioles (Testing Technologies)

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Agenda The Motivation The Technical Challenges Capture & Replay for TTworkbench Demo Q & A 2

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Motivation(s) TTCN-3 Users We have a TTCN-3 framework, where do the test cases come from? Issues Manual test case creation tedious task Error prone Domain Knowledge required Non-TTCN-3 Users We see a scenario and we would like to replay it later Issues What means replay w.r.t. testing? What is the test system? What is the system under test? 3 The desire to capture observed communication in test scripts suitable for test automation

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The Idea 4

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © What is a Trace? 5

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © What is a Trace? The observed communication is captured (stored) in a trace (file) Trace contains Communication between two or more entities Message exchange One or more protocols 6

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © A Generic Communication Setup 7 A1 A2 B1 B

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The Setup But Who is Who? A1 B1 A1 SUT B1 IOP1 IOP2 SIM1 SIM2

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The Setup From Message to Templates A1 B1 INVITE SIP/2.0 Call-ID: Contact: Content-Disposition: session Content-Length: 150 Content-Type: application/sdp CSeq: 2 INVITE From: "TESTER1" ;tag=1169 Max-Forwards: 70 To: Via: SIP/2.0/UDP :5061;branch=z9hG4bK template INVITE_Request T1 := { requestLine := { method := “ INVITE”, requestUri := “ sipVersion := “ SIP/2.0” }, msgHeader := { callId := “ contact := …, cSeq := “ 2 INVITE”, fromField := "TESTER1 …", toField :=, via := …., maxForwards := { fieldName := MAX_FORWARDS_E, forwards := 70 },.... allow := omit,...

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The Technical Challenge It is somehow easy to generate TTCN-3 templates from each message, but the challenge is to obtain usable and maintainable test data and test scripts Variable information From run to run, perhaps unpredictable From message to message, perhaps constant perhaps dependend Variable but constant information Should be configurable before execution White noise Lot of information that is potentially irrelevant for a particular test scenario but inevitable for the test execution 10

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The Technical Challenge It is somehow easy to generate TTCN-3 templates from each message, but the challenge is to obtain usable and maintainable test data and test scripts Variable information From run to run, perhaps unpredictable From message to message, perhaps constant perhaps dependend Variable but constant information Should be configurable before execution White noise Lot of information that is potentially irrelevant for a particular test scenario but inevitable for the test execution 11 Protocol and/or domain knowledge has to be included!

The Solution Automated TTCN-3 Test Generation and Execution 12

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Example Scenario 13 SIP User A calls User B User B accept call

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Example Scenario 14 SIP Use a common Monitor Tool to capture messages e.g. Wireshark Trace File

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Example Scenario 15 Trace FileTTworkbench Execution Put the Trace File into TTworkbench …. Generate the captured Test Scenarios… Replay your previously captured Test Scenarios full automatically

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Example Scenario 16 Trace FileTTworkbench Execution Put the Trace File into TTworkbench …. Generate the captured Test Scenarios… Replay your previously captured Test Scenarios full automatically

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Know-How Integration Manual definitions in a configuration file, to Extract existing data and use the same values in the message flow (sequence numbers, call IDs, …) Define uninteresting fields for ignoring at matching time Automatically extract similar data from templates to create “better” templates and structures Reuse existing Type systems and codecs Test adapters and component definitions Test functions and Alt-Steps

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © DEMO! 18

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Key Benefits Speed up functional and interoperability testing By reducing manual task Automate testing Generate your test, instead of implementing it manually Execute them full automatically Get your detailed test reports Quality Optimization Test case analyzer reduces errors in test cases Fast reusability and easy extension of already defined tests 19

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Supported Capturing Sources & Requirements Wireshark The most popular network analysis and capturing tool Jpcap Service The remote capturing service provides capturing on remote machines Pcap Files Trace files created beforehand TTworkbench logs (TLZ) Analyze the logs without an SUT Capturing Console Input and Output Capturing of data via serial connections (RS232, USB) SSH, TELNET Local Console Windows WinPCAP Linux/Unix Libpcap at least version 1.0 Recommendation: Install Wireshark Includes the installation of WinPCAP and LibPCAP 20

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Further information Testing Technologies testingtech.com facebook.com -> Testing-Technologies Capture & Replay testingtech.com/products/ttworkbench.php testingtech.com/download/datasheets/CaptureAndReplay.pd f 21

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Contact 22 Bogdan Stanca-Kaposta Testing Technologies Theo Vassiliou Testing Technologies

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © The process 23

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Features Designed to generate test cases from existing traces Start your own capture with the Capture & Replay tool Or import trace files created beforehand with other capturing tools, e.g. Wireshark Capture from multiple sources at the same time 24

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © Benefits Fast and easy test authoring No programming skills required Support of multiple capturing sources Post-hoc analysis of real world situations via simulation mode Flexible creation of test configurations out of selected scenarios Decide which communication peers shall be tested Decide which ones shall be simulated 25

Copyright Testing Technologies Confidential Information. All Rights Reserved. More Information at © On the second thought... User: Wait! How about the variable data? The Manager: Sell consultancy $$$ Technical guy: Let‘s integrate the protocol knowledge Extract existing data and use the same values in the message flow (e.g. sequence numbers, call IDs) Ignore the uninteresting fields for matching Extract similar data from templates User: I would like to reuse my Test Structure The Manager: Reuse existing Adaptation, Codecs, Type systems, Components, Functions, Alt Steps 26