10

Using XML for Test Case Definition, Storage and Presentation

Embed Size (px)

DESCRIPTION

Using XML for Test Case Definition, Storage and Presentation. Michael Ensminger ([email protected]). Motivation. Why use XML / XSL for test management? Personnel experience Tool availability Easily processed, extended, transformed As a way to explore web services - PowerPoint PPT Presentation

Citation preview

Page 1: Using XML for Test Case Definition, Storage and Presentation
Page 2: Using XML for Test Case Definition, Storage and Presentation

Using XML for Test Case Definition, Storage and Presentation

Michael Ensminger ([email protected])

Page 3: Using XML for Test Case Definition, Storage and Presentation

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

Page 4: Using XML for Test Case Definition, Storage and Presentation

XML / XSL Basics

• XML Documents example

– Well formed– Valid

• Defining the structure– Data Type Definition (DTD) example

– XML Schema example

• Extensible Stylesheet Language for Transformations (XSLT) XSL, html

Page 5: Using XML for Test Case Definition, Storage and Presentation

How to Store XML Data?

• Flat File (stylesheet extensions)

• Relational Database (simple db schema)

• XML Database– XML extensions to traditional databases– XML specific databases

Page 6: Using XML for Test Case Definition, Storage and Presentation

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

Page 7: Using XML for Test Case Definition, Storage and Presentation

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

Page 9: Using XML for Test Case Definition, Storage and Presentation

Next Steps

• Flesh out test suite definition, execution results, etc.

• Develop database backend

• Interface for inserting and updating test cases, updating execution results, etc.

Page 10: Using XML for Test Case Definition, Storage and Presentation

Questions / Contact Info

• Questions?

• Paper, slides and examples available at http://www.meesqa.com/pnsqc_2002/pnsqc_2002.html

Michael [email protected]