1 / 10

Using XML for Test Case Definition, Storage and Presentation

Using XML for Test Case Definition, Storage and Presentation. Michael Ensminger (mensming@ieee.org). Motivation. Why use XML / XSL for test management? Personnel experience Tool availability Easily processed, extended, transformed As a way to explore web services

Download Presentation

Using XML for Test Case Definition, Storage and Presentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using XML for Test Case Definition, Storage and Presentation Michael Ensminger (mensming@ieee.org)

  2. Motivation • Why use XML / XSL for test management? • Personnel experience • Tool availability • Easily processed, extended, transformed • As a way to explore web services • Separate the presentation from the underlying data

  3. XML / XSL Basics • XML Documents example • Well formed • Valid • Defining the structure • Data Type Definition (DTD) example • XML Schemaexample • Extensible Stylesheet Language for Transformations (XSLT)XSL, html

  4. How to Store XML Data? • Flat File (stylesheet extensions) • Relational Database (simple db schema) • XML Database • XML extensions to traditional databases • XML specific databases

  5. Simple Test Case XML / XSL • Minimal Test Case Contains: • Unique Identifier • Short description of purpose • Setup / pre-conditions • Expected results • Sample simple test case XML document (ex. A, B) • DTD definition of structure of simple test case • Sample transformation to HTML (ex. A, B) • Simple test case XSL • Schema definition of structure of simple test case

  6. Full Featured Test Suite XML / XSL • Expand definition of document to be a suite of test cases • Sample full featured test suite XML document • XML Schema definition of full featured test suite document • Example transformation to HTML of test suite • Full Test Suite XSL

  7. Other Uses for XML / XSL in Test Management • Test execution results Sample XMLFull Detail XSLFull Detail HTML Summary XSLSummary HTML Bugs Entered XSLBugs Entered HTML Failed Test Cases XSLFailed Test Cases HTML • Transform into SQL statements Sample XML AInsert XSLInsert SQL A, B Sample XML BUpdate XSLUpdate SQL A, B • Other test documentation • Automation

  8. Next Steps • Flesh out test suite definition, execution results, etc. • Develop database backend • Interface for inserting and updating test cases, updating execution results, etc.

  9. Questions / Contact Info • Questions? • Paper, slides and examples available at http://www.meesqa.com/pnsqc_2002/pnsqc_2002.html Michael Ensminger mensming@ieee.org

More Related