suite
page-test
s. The tests within a suite are all run within a single user session context, so they can rely on having common session data. For instance, if the first page-test
logs in a user and stores the userID in the session, subsequent page-test
s can rely on the userID being present in the session.
One or more tests may be easily run using the Dovetail test suite interpreter, according to the following example:
c:\myproject> java -cp <classpath> agonism.dovetail.test.Suite c:\java\dovetail\schema\test.qjml test-suite-1.xml test-suite-1.xml ...where each test-suite-i.xml is an XML document which conforms to the Test DTD, and <classpath> includes all the JAR files in the Dovetail lib directory.
Name | Description | Required | Default Value |
---|---|---|---|
siteName |
site element of the Site XML document. | true | |
siteClass |
| true | |
schemaName |
schema element of the Schema XML document. | true | |
schemaClass |
| true |
Name | Description | MinOccurs | MaxOccurs |
---|---|---|---|
page-test |
suite consists primarily of a series of page-test s, each of which exercises the functionality of a single page in the site.
| 0 | * |
page-test
page-test
exercises the functionality of a single page
the site. The page-test
may test the values returned from query
elements in the page, or it may submit a form
.
Name | Description | Required | Default Value |
---|---|---|---|
pageName |
| true |
Name | Description | MinOccurs | MaxOccurs |
---|---|---|---|
description |
| 0 | 1 |
parameter-value |
parameter s. | 0 | * |
query-test |
query-test can execute and test the results of a query which was defined on the page.
Either query-test or form-test elements may be in a page-test , but not both. | 0 | * |
form-test |
form-test is used to submit values for the form-element in a form , and process the resulting action s.
Either query-test or form-test elements may be in a page-test , but not both. | 0 | 1 |