Avignon is intended to give you the maximum flexability in writing your tests. Because it uses XML as its scripting language, it gives you a very simple syntax but allows you to express any semantic idea you choose. There are a few predefined tags available for you to use, but you'll want to define your own tags to describe tests in your own language. When writing test, be aware that the Avignon script processor is designed to handle tags and attributes but not body text.
The following tags are for test definition and also provide a basic subroutine calling mechanism.
This tag defines a set of acceptance tests with a common theme. It is used as the top-level element of a TestSuite file.
This tag delimits an individual acceptance test. At the start of the tag, the application state will be reset to its default status. When it ends, the application will be closed and any database state restored to its previous condition.
This tag allows you to include another script within the execution of the current script.
This tag does nothing but can be used as the top-level element for scripts included by the TestScript tag.
This tag allows you to pass parameters to a test script included by the TestScript tag. Parameters are passed with simple text replacement.
These tags allow you to perform low-level operations on a relational database. This is tolerable for relatively simple applications, but you may wish to define some high-level operations for more complex applications.
This tag should enclose any other database modification tags. It works with the AcceptanceTest tag to restore the state of the database at the end of a test.
This tag defines the name of a table on which you wish to operate.
This tag causes all of the data in the surrounding table to be removed.
This tag allows you to insert into a database table using a standard SQL "INSERT INTO ... VALUES(...)" statement.
This tag works with the UpdateField to allow you to update information in a table using a standard SQL "UPDATE ... SET ... WHERE ..." statement.
This tag defines the name of a column to be updated and the value to which it should be set.
These tags allow you to interact with and check the results of performing some basic operations on web pages. Page comparisons with the default system are quick strict. You may wish to loosen your requirements if you're testing an existing application.
This tag cliks a hyperlink on a web page. It will also, optionally, check the page that comes back from clicking the link.
This tag works with the InputValue to allow you to submit a web form. Like the PageClick tag, it will take pageDescription and preTranslation attributes to allow you to assert what the results of the submission should be.
This tag allows you to change the values submitted by the SubmitPage tag. If you do not include an InputValue tag, the value will be whatever was originally on the page.