TTCN CONFORMANCE TEST SUITE TTCN-3 Part 1 & Part 9 STF 487 MILESTONE 2

Slides:



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

Advanced XSLT. Branching in XSLT XSLT is functional programming –The program evaluates a function –The function transforms one structure into another.
Service Description: WSDL COMP6017 Topics on Web Services Dr Nicholas Gibbins –
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.
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.
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.
© 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.
CS 360 Lecture 3.  The software process is a structured set of activities required to develop a software system.  Fundamental Assumption:  Good software.
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,
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.
0 eCPIC Admin Training: OMB Submission Packages and Annual Submissions These training materials are owned by the Federal Government. They can be used or.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
TTCN-3 Language Maintenance and Evolution TTCN-3 User Conference 2011, Bled Gyorgy Rethy STF 430 Leader
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.
TTCN-3 Testing and Test Control Notation Version 3.
T Iteration Demo LicenseChecker I2 Iteration
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
1 TTCN CONFORMANCE TEST SUITE TTCN-3 Part 1 & Part 9 STF 487 Bogdan Stanca-Kaposta/ Testing Technologies Tomas Urban / Elvior Andras Kovacs / Broadbit.
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.
YANG Roque Gagliano.
Module 1 Introduction to JavaScript
SOFTWARE TESTING Date: 29-Dec-2016 By: Ram Karthick.
This is the cover slide..
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
Objectives Identify the built-in data types in C++
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
Standard Scripts Project 2
TDL: The ETSI Test Description Language
TTCN-3 Status Report.
ETSI ES Using XML schema with TTCN-3
TDL: The ETSI Test Description Language
S-127 – Marine Traffic Management Release Candidate NIPWG 6 30 January 2019 Raphael Malyankar Eivind Mong Sponsored by IHO.
SSDT and Database Project Basics
TTCN-3 CONFORMANCE TEST SUITE STF 451 STATUS REPORT
Milan Zoric Centre for Testing and Interoperability ETSI
Standard Scripts Project 2
UPDATE on SVN & MANTIS Upgrade
Develop a Reliability Test in TTCN-3
ETSI TTCN-3 Test Suites QUALITY IMPROVEMENT
TDL: The ETSI Test Description Language
UPDATE on SVN & MANTIS Upgrade
Standard Scripts Project 2
SPL – PS1 Introduction to C++.
Presentation transcript:

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

Contents Introduction Results Technical details Proposed Method ATS

Objectives Detect changes of the TTCN-3 Standard Part 1 4.7.1 Part 9 (XML Schema) 4.6.1 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

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

Results Part 1 4.7.1 (184 new tests, 15 modified) 84 (25%) changed sections (±36% done) Enhanced converage of older sections Part 9 (XML Schema) 4.6.1 11 (8%) changed sections (±10% done) Administrative work Updated SVN structure to ETSI standards Compacted ATS folder structure to match windows 260 chars path limitations Execution tools updated Documents & reporting Effort 36 days used out of 100 by end of May 2015 Updating existing tests to new requirements is the most of the work

Validation 4 teams Issues Team members: Testing Technologies, Elvior (wip) External: IBM, Devoteam Issues Revalidating sections we usually find untested requirements, tests exists but not all details are tested 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

TECHNICAL DETAILS

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.

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

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 201 873-9 “TTCN-3: Using XML schema with TTCN-3” references XSD imports TTCN-3 uses XML ATS Test case 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.

Part 9: Proposed Method XSD TTCN-3 XML ATS Test case references XSD imports TTCN-3 uses XML ATS Test case _ _ _ _ _ _ _ _ _ _ _ TTCN-3 Tool (SUT) _ _ _ _ _ _ _ _ _ _ _ _ Expected output Invalid XSD,TTCN-3 Execution results Execution error Evaluation PASS FAIL

Part 1 & 9: Proposed method Expected SUT output is encoded in the header comment of TTCN-3 script: E. g.: @verdict 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

Test case construction If matches test case PASS, otherwise FAIL Types XSD TTCN-3 Template XML Data Decoded Value references encode decode XML Compare XML references 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

Test case construction XSD TTCN-3 Template Test Case FAIL references encode Types Invalid XSD and TTCN-3 Template not compatible Test Case is PASS 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

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 */ }

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"); }

Sample XSD <?xml version="1.0" encoding="UTF-8"?> <schema xmlns=http://www.w3.org/2001/XMLSchema targetNamespace="schema:Pos_050101_namespaces_001“ xmlns:ns="schema:Pos_050101_namespaces_001"> <element name="MyType" type="integer"/> </schema>

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. Comments and processing instructions are ignored. Invoked as external function Reference implementation is based on XmlUnit toolkit, written in Java.