app-test
The app-test task runs automated integration tests for a given application package.
Task Structure
The structure of the app-test task element is shown below.
<app-test ... >
    <fileset dir=... >
        <include name=... />
    </fileset>
</app-test>
The fileset element is an Ant FileSet. For detailed information, see FileSet Type - Apache Ant.
Task Attributes
All attributes are optional unless otherwise indicated.
The app-test element recognises the following attributes.
| Attribute | Description | 
|---|---|
appFile | StringRequired. The application package archive ZIP file.  | 
logOnError | BooleanWhether to log output execution if a test failure occurs to the console. The default value is   | 
consoleLogging | BooleanWhether to log all test execution output to the console. The default value is   | 
The fileset element recognises the following attributes.
| Attribute | Description | 
|---|---|
dir | StringRequired. The directory containing the test suite JSON definition files.  | 
The include element recognises the following attributes.
| Attribute | Description | 
|---|---|
name | StringRequired. A file name or file mask identifying the test suite JSON definition files. The test suite files are located in the directory specified by the   | 
Example
The example Ant task below runs the application package integration tests specified in the fileset element. If any tests fail, a BuildException is thrown.
<app-test appfile="${basedir}/${app.zip.file}"
    logOnError="true"
    consoleLogging="false" >
    <fileset dir="${basedir}/src/tests/">
        <include name="*test-suite-*.json"/>
    </fileset>
</app-test>
Example Ant log output:
app-package-test:
    [app-test] Completed Test: Form Page 1
    [app-test] Completed Test: Submit Form
BUILD SUCCESSFUL
Total time: 2 seconds