1 Nikolay Pakulin/ ISPRAS Bogdan Stanca-Kaposta/ Testing Technologies Bostjan Pintar / Sintesio Tomas Urban / Elvior TTCN-XML CONFORMANCE TEST SUITE STF.

Slides:



Advertisements
Similar presentations
XML I.
Advertisements

Service Description: WSDL COMP6017 Topics on Web Services Dr Nicholas Gibbins –
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)
Introduction to XLink Transparency No. 1 XML Information Set W3C Recommendation 24 October 2001 (1stEdition) 4 February 2004 (2ndEdition) Cheng-Chia Chen.
 2002 Prentice Hall, Inc. All rights reserved. ISQA 407 XML/WML Winter 2002 Dr. Sergio Davalos.
XML Verification Well-formed XML document  conforms to basic XML syntax  contains only built-in character entities Validated XML document  conforms.
#PhUSE Standard Scripts Project Proposal for Qualification of Standard Scripts.
ISO Standards: Status, Tools, Implementations, and Training Standards/David Danko.
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.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Chapter 4: Document Type Definitions. Chapter 4 Objectives Learn to create DTDs Validate an XML document against a DTD Use DTDs to create XML documents.
Dr. Azeddine Chikh IS446: Internet Software Development.
XML Language Family Detailed Examples Most information contained in these slide comes from: These slides are intended.
XML Syntax - Writing XML and Designing DTD's
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
XML – Tools and Trends Schematron Tim Bornholtz Session 55.
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
1. Validating Wireless Protocol Conformance Test Cases Amresh Nandan Paresh Jain June 2004.
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.
International Telecommunication Union Geneva, 9(pm)-10 February 2009 Providing testability for ITU Recommendations Ostap Monkewich, OMCI ITU-T Workshop.
 2002 Prentice Hall, Inc. All rights reserved. Chapter 6 – Document Type Definition (DTD) Outline 6.1Introduction 6.2Parsers, Well-formed and Valid XML.
Unit-1 Introduction Prepared by: Prof. Harish I Rathod
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Standard Scripts - Project 2 Proposal for Qualification July 2014 Project 2 Update.
1/11 ITApplications XML Module Session 3: Document Type Definition (DTD) Part 1.
Schematron Tim Bornholtz. Schema languages Many people turn to schema languages when they want to be sure that an XML instance follows certain rules –DTD.
Introduction to Compilers. Related Area Programming languages Machine architecture Language theory Algorithms Data structures Operating systems Software.
SNU OOPSLA Lab. Logical structure © copyright 2001 SNU OOPSLA Lab.
1 Typing XQuery WANG Zhen (Selina) Something about the Internship Group Name: PROTHEO, Inria, France Research: Rewriting and strategies, Constraints,
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.
Navigation and Ancillary Information Facility NIF SPICE Toolkit Common Problems November 2014.
Evaluation Biztalk Table of Contents Introduction to XML. Anatomy of an XML document. What is an XML Schema? What is SOAP? XML Web Services overview.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
TTCN-3 Testing and Test Control Notation Version 3.
Interop SC 02/03/2016. Agenda Jacques feedbacks Contribution process improvements proposal 2.
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
CITA 330 Section 2 DTD. Defining XML Dialects “Well-formedness” is the minimal requirement for an XML document; all XML parsers can check it Any useful.
1 TTCN CONFORMANCE TEST SUITE TTCN-3 Part 1 & Part 9 STF 487 Bogdan Stanca-Kaposta/ Testing Technologies Tomas Urban / Elvior Andras Kovacs / Broadbit.
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
z/Ware 2.0 Technical Overview
XML Schema for WIRED XML Detector Description Workshop
Java XML IS
TTCN CONFORMANCE TEST SUITE TTCN-3 Part 1 & Part 9 STF 487 MILESTONE 2
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.
Chapter 1 Introduction(1.1)
TDL: The ETSI Test Description Language
Chapter 7 –Implementation Issues
TTCN-3 CONFORMANCE TEST SUITE STF 451 STATUS REPORT
Milan Zoric Centre for Testing and Interoperability ETSI
Standard Scripts Project 2
Develop a Reliability Test in TTCN-3
ETSI TTCN-3 Test Suites QUALITY IMPROVEMENT
TDL: The ETSI Test Description Language
Standard Scripts Project 2
SPL – PS1 Introduction to C++.
Presentation transcript:

1 Nikolay Pakulin/ ISPRAS Bogdan Stanca-Kaposta/ Testing Technologies Bostjan Pintar / Sintesio Tomas Urban / Elvior TTCN-XML CONFORMANCE TEST SUITE STF 475 MILESTONE C

Contents 2 Introduction Results Technical details Proposed Method ATS

Objectives 3 TTCN-XML conformance test specification STF: Cataloguing of requirements. Adapting existing framework used by the Core Language TTCN-3 reference test specification Develop tools for the validation of XML encoding/decoding Develop the implementation conformance statement (ICS). Develop the test suite structure and test purposes (TSS & TP). Develop the abstract test suite (ATS) and IXIT

Objectives (2) Cover all XML features used by the 3GPP UE tests Cover overall 80% of all sections of the part 9 “TTCN-3: Using XML schema with TTCN-3” with conformance test cases. 4

Results The STF has defined the ATS structure, the testing method and developed ATS total 347 tests (79 negative, 268 positive) 266 XML Schema documents Coverage 97 clauses of part 9 directly 21 clauses indirectly (covered by tests from other sections) 85% of the Part 9 specification. 63 clauses are covered out of 63 clauses that were identified as priority for TF 160 (3GPP RAN): 62 are covered directly and 1 is covered indirectly. The STF has filed 27 CRs. Validation by 4 teams: Testing Tech, Elvior, IBM, Devoteam. 10 issues reported to Mantis. 6 issues were closed, 3 are open, one issue is acknowledged. Effort: 54 working days in the reporting period Total effort of the project comprised 120 working days, as contracted. 5

Coverage 97 sections covered directly Indirectly covered 20 sections: Normalized string, Token, NMTOKEN, NCName, ID, IDREF, ENTITY, Hexadecimal binary, Base 64 binary, Language, Duration, Time, Gregorian month and day, Gregorian day, Gregorian month, 6.6 Sequence types, NMTOKENS, IDREFS, ENTITIES, QName. These sections define data types included in XSD built-in module. Covered by tests for Annex A “TTCN-3 module XSD” 1 indirectly covered section for 3GPP UE: “Abstract”. Covered by tests for section 8.1 6

Validation 4 teams Team members: Testing Technologies, Elvior External: IBM, Devoteam Issues: 10 6 bugs in TCs (TTCN/XML/XSD) – 1 open 1 incorrect sample in Part 9 (CR filed) 1 question (open) 2 bugs in XmlDiff – 1 fixed and 1 acknowledged Caused by incorrect handling of xsi:type attribute in Xerces XML processor – bur report filed, not fixed yet Triggers on 2 TCs for union type Hampered 2 vendors 7

Technical details 8

Overview: using XML Schema with TTCN3 9 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” XSDTTCN-3 importsuses references ATS Test case XML produces

Proposed Method 10 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 XSDTTCN-3 importsuses references ATS Test case TTCN-3 Tool (SUT) Evaluation Execution results Execution error Invalid XSD,TTCN-3 FAILPASS _ _ _ _ _ _ _ _ _ _ _ _ XML Expected output Proposed Method

Proposed method 12 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

Test case construction 13 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 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 14 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 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 15 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 16 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 17 <schema xmlns= targetNamespace="schema:Pos_050101_namespaces_001“ xmlns:ns="schema:Pos_050101_namespaces_001">

XML Comparison 18 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.