1 TTCN CONFORMANCE TEST SUITE TTCN-3 Part 1 & Part 9 STF 487 Bogdan Stanca-Kaposta/ Testing Technologies Tomas Urban / Elvior Andras Kovacs / Broadbit.

Slides:



Advertisements
Similar presentations
Inside an XSLT Processor Michael Kay, ICL 19 May 2000.
Advertisements

HL7 V2 Conformance Testing Robert Snelick NIST January 20 th, 2004
Service Description: WSDL COMP6017 Topics on Web Services Dr Nicholas Gibbins –
© 2010 Wipro Ltd - Confidential SGSN Automation Testing Using TTCN3 Authors: Jyothi Gavara Nikhil Rahul Ekka.
The Use of TTCN-3 for Software Testing Ina Schieferdecker FOKUS, Berlin
Integration Framework Pennsylvania Treasury
A conformance test suite for TTCN-3 tools Benjamin Zeiss, T-Systems Andras Kovacs, Broadbit Bogdan Stanca-Kaposta, Testing Technologies.
XSLT Stylesheets Some more advanced examples (adapted from the Edinburgh LT site)
SE 450 Software Processes & Product Metrics Reliability: An Introduction.
DT228/3 Web Development JSP: Directives and Scripting elements.
Swami NatarajanJuly 14, 2015 RIT Software Engineering Reliability: Introduction.
Jason Morrill NCOAUG Training Day February, 2008
Method of Converting Resource definitions into XSD Group Name: WG3 (PRO) Source: Shingo Fujimoto, FUJITSU, Meeting Date:
Javascript and the Web Whys and Hows of Javascript.
Formal Testing of Web Content using TTCN-3 By Robert Probert, Bernard Stepien, Pulei Xiong University of Ottawa.
Testing. What is Testing? Definition: exercising a program under controlled conditions and verifying the results Purpose is to detect program defects.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
© 2012 IBM Corporation Rational Insight | Back to Basis Series Chao Zhang Unit Testing.
Overcoming the limitation of XML Documentation Type Definition XML schema generator CS689 Hae-Soon Kwon 11/16/2000.
Technical Team WITSML SIG Paris 16 May Technical Team Representatives mainly from service companies Energistics (Gary) keep a global issue list.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
National Institute of Standards and Technology Technology Administration U.S. Department of Commerce 1 Patient Care Devices Domain Test Effort Integrating.
Introduction to Java Server Pages (JSPs) Robert Thornton.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
1. Validating Wireless Protocol Conformance Test Cases Amresh Nandan Paresh Jain June 2004.
Software Development Software Testing. Testing Definitions There are many tests going under various names. The following is a general list to get a feel.
JAVA SERVER PAGES. 2 SERVLETS The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
XRules An XML Business Rules Language Introduction Copyright © Waleed Abdulla All rights reserved. August 2004.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
TTCN-3 Language Maintenance and Evolution TTCN-3 User Conference 2011, Bled Gyorgy Rethy STF 430 Leader
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
1 Typing XQuery WANG Zhen (Selina) Something about the Internship Group Name: PROTHEO, Inria, France Research: Rewriting and strategies, Constraints,
Interoperability Testing. Work done so far WSDL subgroup Generated Web Service Description with aim for maximum interoperability between various SOAP.
When we create.rtf document apart from saving the actual info the tool saves additional info like start of a paragraph, bold, size of the font.. Etc. This.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
TTCN-3 Testing and Test Control Notation Version 3.
XML Schema – XSLT Week 8 Web site:
What is a software? Computer Software, or just Software, is the collection of computer programs and related data that provide the instructions telling.
T Iteration Demo LicenseChecker I2 Iteration
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
1 Nikolay Pakulin/ ISPRAS Bogdan Stanca-Kaposta/ Testing Technologies Bostjan Pintar / Sintesio Tomas Urban / Elvior TTCN-XML CONFORMANCE TEST SUITE STF.
XML-based Representation of Test Cases for Distributed Systems Alexander Kraas 7. October 2008.
STF 454 “DESIGN OF TDL” Proposed TDL features © ETSI All rights reserved.
SWE 434 SOFTWARE TESTING AND VALIDATION LAB2 – INTRODUCTION TO JUNIT 1 SWE 434 Lab.
SOFTWARE TESTING Date: 29-Dec-2016 By: Ram Karthick.
Unit 4 Representing Web Data: XML
Project Objectives Publish to a remote server
z/Ware 2.0 Technical Overview
XML Schema for WIRED XML Detector Description Workshop
Automated Interoperability Testing
TTCN CONFORMANCE TEST SUITE TTCN-3 Part 1 & Part 9 STF 487 MILESTONE 2
Software Testing With Testopia
Extension Package: Behaviour Types
NA4 Test Team Status Test meeting, 07/09/04
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
Chapter 7 Representing Web Data: XML
This is the cover slide..
TDL: The ETSI Test Description Language
TTCN-3 Status Report.
ETSI ES Using XML schema with TTCN-3
TDL: The ETSI Test Description Language
TTCN-3 CONFORMANCE TEST SUITE STF 451 STATUS REPORT
Milan Zoric Centre for Testing and Interoperability ETSI
Develop a Reliability Test in TTCN-3
ETSI TTCN-3 Test Suites QUALITY IMPROVEMENT
TDL: The ETSI Test Description Language
SPL – PS1 Introduction to C++.
Presentation transcript:

1 TTCN CONFORMANCE TEST SUITE TTCN-3 Part 1 & Part 9 STF 487 Bogdan Stanca-Kaposta/ Testing Technologies Tomas Urban / Elvior Andras Kovacs / Broadbit

Contents Introduction Results Technical details – Proposed Method – ATS 2

Objectives Detect changes of the TTCN-3 Standard – Part – Part 9 (XSD/XML Schema) Cover new/changed Part 1 and Part 9 Features Upgrade test execution tools – pre-processing, test adaptation Validation of tests with at least two TTCN-3 Compilers – Tool vendors feedback (Elvior, Testing Technologies) – Raising of CRs Document and publish the results – ICS, TSS/TP, IXIT, ATS, Progress Reports 3

Objectives Detect changes of the TTCN-3 Standard (done) – Part – Part 9 (XSD/XML Schema) Cover new/changed Part 1 and Part 9 Features (done) Upgrade test execution tools (done) – pre-processing, test adaptation Validation of tests with at least two TTCN-3 Compilers – Tool vendors feedback (Elvior, Testing Technologies) ( done ) – Raising of CRs ( done ) Document and publish the results (draft done) – ICS, TSS/TP, IXIT, ATS, Progress Reports 4

Results Part (now 2956, 1221 new, reviewed tests in the changed sections) – 84 (25%) changed sections (done) – Enhanced converage of older sections (done) Part 9 (XML Schema) (now 426, 79 new, reviewed more than half) – 11 (8%) changed sections (done) – Enhanced converage of older sections (done) Change requests – 37 CRs filled to Evolution STF – 20 CRs Processed by STF 487 Administrative work – All open CRs fixed (10 from previous STF + 10 STF487 ) – Updated SVN structure to ETSI standards – Compacted ATS folder structure to match windows 260 chars path limitations – Execution tools updated – Documents & reporting Effort – Spent more time than the 100 days – Updating existing tests to new requirements 40% – Creating new tests for untested requirements 55% – Documentation & reporting ±5% 5

Validation 3 teams – Team members: Testing Technologies, Elvior (wip) – External: IBM, CRs Issues – While revalidating sections we usually find untested requirements, tests exists but not all details are tested – (STF475) 1 bug in XmlDiff –1 acknowledged Caused by incorrect handling of xsi:type attribute in Xerces XML processor – bug report filed, not fixed yet Triggers on 2 TCs for union type Hampered 2 vendors 6

TECHNICAL DETAILS 7

Part 1: Proposed Method ATS = ∑ test cases Test case = TTCN3 script SUT = TTCN-3 tool – SUT executes TTCN3 script and – Produces some output: verdict, log – Output is validated against expected SUT launch, execution of tests, collecting outputs is vendor specific. 8

Part 1: Proposed Method 9 TTCN-3 ATS Test case TTCN-3 Tool (SUT) Evaluation Execution results Execution error Invalid TTCN-3 FAILPASS _ _ _ _ _ _ _ _ _ _ _ _ Expected output

Overview: using XML Schema with TTCN3 Direct import of definitions of types, elements, attributes as TTCN3 types from XML Schema Definition (XSD) file Automagic transformation – Inbound XML message -> TTCN3 template – Sending TTCN3 template -> Outbound XML message ES “TTCN-3: Using XML schema with TTCN-3” 10 XSDTTCN-3 importsuses references ATS Test case XML produces

Part 9: Proposed Method ATS = ∑ test cases Test case = TTCN3 script + XSD to import + reference XML – Reference XML to validate encoding result SUT = TTCN-3 tool + XSD import facility + XML codec – SUT executes TTCN3 script and – Produces some output: verdict, log – Output is validated against expected SUT launch, execution of tests, collecting outputs is vendor specific. 11

Part 9: Proposed Method 12 XSDTTCN-3 importsuses references ATS Test case TTCN-3 Tool (SUT) Evaluation Execution results Execution error Invalid XSD,TTCN-3 FAILPASS _ _ _ _ _ _ _ _ _ _ _ _ XML Expected output

Part 1 & 9: Proposed method Expected SUT output is encoded in the header comment of TTCN-3 script: – E. pass accept, ttcn3verdict:pass – Same as TTCN-3 Conformance Test Suite Reused tools to execute SUT & validate outputs – validation framework from TTCN-3 Conformance TS 13

Test case construction Positive test: valid TTCN-3, valid XSD, must compile & execute with verdict PASS – Import definitions from XSD – Construct a template; encode template into string – Compare string with the reference XML document – Decode string – Check whether decoded value matches original template 14 referencesencode Types TTCN-3 Template XSD XML Data Decoded Value decode If matches test case PASS, otherwise FAIL XML references XML Compare

Test case construction Negative test: valid TTCN-3, valid XSD, must compile & execute with verdict ERROR – Import definitions from XSD – Construct a template; – encode template into string – Encoding must fail -> TTCN-3 verdict error – If encoding succeeds, it is an SUT error 15 referencesencode Invalid XSD and TTCN-3 Template not compatible Test Case is PASS Test Case FAIL Types TTCN-3 Template XSD

Sample TTCN-3 Script module Pos_060101_length_001 { import from schema_Pos_060101_length_001 language "XSD" all; /* target NS: “schema:Pos_060101_length_001” */ template E1 m_msg := "length_010"; /* Aux. definitions */ testcase TC_Pos_060101_length_001() runs on C system C { /* loopback: sends back string with encoded XML*/ map(self:p, system:p); p.send(m_msg); /* encode */ alt { /* The actual matching happens here */ } 16

Sample TTCN-3 Script: alt alt { // compare the encoded message with the XML file []p.check(receive(universal charstring:?) -> value v_rcv) { if (matchFile(v_rcv, "Pos_060101_length_001.xml", { "Pos_060101_length_001.xsd" }, v_matchError) { alt { // match decoded value to pass test [] p.receive(m_msg) { setverdict(pass, "Decoded value matches"); } [] p.receive { setverdict(fail, "XML decoding failure"); } } else { setverdict(fail, v_matchError); } } [] p.receive { setverdict(fail, “Failed to decode XML"); } } 17

Sample XSD <schema xmlns= targetNamespace="schema:Pos_050101_namespaces_001“ xmlns:ns="schema:Pos_050101_namespaces_001"> 18

XML Comparison Two XML files are considered equal if: – Tree of element nodes are equal, and qualified names of elements are the same for corresponding nodes. NOTE: take care about for unordered subtrees corresponding to choice – Set of attributes for each element node are equal. Qualified names of attributes must match. – Literal values of attributes must match. float type are compared by their numerical values. – Textual contents of elements must match, whitespaces are ignored. CDATA is considered equal to plain text with equal contents. float type are compared by their numerical values. – Comments and processing instructions are ignored. Invoked as external function Reference implementation is based on XmlUnit toolkit, written in Java. 19