Previous Topic: junitlisareport Ant TaskNext Topic: JUnit Usage Examples


Ant and JUnit Usage Examples

Example: Complete Ant Build File

The build.xml file in the LISA_HOME\examples directory is a complete Ant build file.

The build file contains two targets:

The build file assumes that access control (ACL) is enabled. Therefore, the user and password attributes are included.

Example: junitlisa Task for Test Case

The following junitlisa task is configured to run a single test case on a remote registry.

<junitlisa test="MyTest.tst"
    config="dev"
    registry="tcp://testbox:2010/Registry"
    toDir="${testReportDir}"
    haltOnError="no"
    errorProperty="test.failure">
    <jvmarg value="-DmySystemProp=someValue"/>
  </junitlisa>