Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using XML for Test Case Definition, Storage and Presentation Michael Ensminger

Similar presentations


Presentation on theme: "Using XML for Test Case Definition, Storage and Presentation Michael Ensminger"— Presentation transcript:

1

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

3 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

4 XML / XSL Basics XML Documents example example –Well formed –Valid Defining the structure –Data Type Definition (DTD) example example –XML Schema example example Extensible Stylesheet Language for Transformations (XSLT) XSL, html XSLhtml

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

6 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)AB DTD definition of structure of simple test caseDTD Sample transformation to HTML (ex. A, B)AB Simple test case XSLXSL Schema definition of structure of simple test caseSchema

7 Full Featured Test Suite XML / XSL Expand definition of document to be a suite of test cases Sample full featured test suite XML documentXML XML Schema definition of full featured test suite documentSchema Example transformation to HTML of test suiteHTML Full Test Suite XSLXSL

8 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 ASample XML AInsert XSLInsert SQL A, BB Sample XML BUpdate XSLUpdate SQL ASample XML BUpdate XSLUpdate SQL A, BB Other test documentation Automation

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

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


Download ppt "Using XML for Test Case Definition, Storage and Presentation Michael Ensminger"

Similar presentations


Ads by Google