« RadioOGaga | Main | FAL5 - abgefertigt! »

Freitag, August 06, 2010

XML jemand?

Was macht man, wenn man aus einem XSD möglichst viele sinnvolle XML-Testdaten mit ausreichender Varianz/Kombination automatisiert erzeugen möchte? Man googlet, aber die Kunst ist eben auch, etwas zu finden.
Aber man kann auch was lernen, wenn man will: "Combinatorial test data" , "Partition testing" und "Controllable combinatorial coverage in grammar-based testing" sind Bereiche, die sich mit sinnvoller Testdaten-Generierung befassen.

Dabei bin ich auf TAXI gestoßen, welches zumindest eine Varianz von optionalen Attributen und Elementen erzeugen kann und somit Vorlagen liefert. Leider (weils auch schwierig ist) ist nur rudimentäre Unterstützung für RegEx-Pattern: "Currently TAXI can not generate Strings that conform to the pattern grammar. So If there is any element that has the restriction with "pattern", please put the values that conform to that pattern into the database. Otherwise TAXI will put "prefix:string" as the value for the element."

Forschungsarbeiten dazu kann man auch lesen:

Ralf Lämmel and Wolfram Schulte "Controllable combinatorial coverage in grammar-based testing "

Abstract. Given a grammar (or other sorts of meta-data), one can trivially de- rive combinatorially exhaustive test-data sets up to a specified depth. Without further efforts, such test-data sets would be huge at the least and explosive most of the time. Fortunately, scenarios of grammar-based testing tend to admit non- explosive approximations of naive combinatorial coverage. In this paper, we describe the notion of controllable combinatorial coverage and a corresponding algorithm for test-data generation. The approach is based on a suite of control mechanisms to be used for the characterization of test-data sets as well-defined and understandable approximations of full combinatorial coverage. The approach has been implemented in the C#-based test-data generator Geno, which has been successfully used in projects that required differential testing, stress testing and conformance testing of grammar-driven functionality

Leider ist Geno nicht freigegeben oder ich habs nur nicht gefunden...

Erstellt von tixus um 2:52 PM Kategorien: Software + Java
Powered by
Thingamablog 1.1b6