Canoo WebTest Community Site
[ start | index | login ]
start > PropertyTable

PropertyTable

PropertyTable

Introduction

PropertyTable is an ANT task that calls its nested elements multiple times. With each call the nested elements have access to a set of properties. Here is an example:

Assume you have a table like

a    b    c
11   12   13
21   22   23
and an ANT echo task like
<echo message="${a} ${b} ${c}"/>
then you can use PropertyTable like
<propertytable ...>
     <echo message="${a} ${b} ${c}"/>
</propertytable>
to produce an output like
echo
 11 12 13
echo
 21 22 23

Much of the benefit comes from the numerous ways to create the above table.

Tables can be of different formats. Currently the Excel format and the Directory format (a directory containing *.properties files) are implemented. Other formats are easy to add (DataBase, CSV, TSL, Fit/Fitness, HTML, XML, ...).

Tables can be filtered. Currently implemented Filters are FirstEquals, AllEquals, All, Empty, and Group. More Filters are easy to add (Regex, LowerThan, Expression, ...).

Tables can be "stretched" in width and length by combination with other tables. The JOIN describes how the values in one table column connect to the values in some other table/column fairly much like the primarykeys/foreignkeys in a relational table - but easier.

Usage Scenarios

The PropertyTable was developed for the use with Canoo WebTest but does not depend on it in any respect. You can use it with any ANT task, e.g. with >>dbUnit to populate your database with test data.

PropertyTable allows to eliminate a lot of duplication from your test data, thus making your test data base smaller and easier to keep up to date.

PropertyTable allows easy definition of your current TestSuite. You can easily switch between running all (or selected) combinations of test data or just a small subset. This used to be achieved by generating the suites as files. You don't need these generators and their files anymore.

If this introduction caught your attention you may want to read

happy testing Mittie

7 comments (by jikim, nimeshmuley, vikramshitole, Mittie) | post comment
labels
attachments
Created by Mittie. Last edited by rolex9, 2 years and 48 days ago. Viewed 10,805 times. #4
[diff] [history] [edit] [rdf]

Registration
Want to contribute? You can register here.

Help
For hints about formatting text see snipsnap-help.

Entry Points:

Editor's Pick:
Logged in Users: (0)
… and 14 Guests.

Recently Changed
more Recent Changes...

RSS News Feed:
RSS Feed

Powered by SnipSnap 1.0b1-uttoxeter

snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt