Minq Software AB, Stockholm, Sweden
sales@minq.se
Scenario-Runner Ant Task
A task for invoking the scenario-runner provided with PureTest to execute a scenario.
Note:
This task depends on external libraries not included
in the Ant distribution. The jar-files provided with
PureTest int the lib directory
are required.
Parameters
| Attribute | Description | Required |
| file | Scenario-file (PLC-file) to be used. | Yes |
| verbose | One of: OFF, ERROR, INFO or
DEBUG |
No; default is
INFO. |
| tasklog | One of: OFF, ERROR, INFO or
DEBUG |
No; default is
ERROR. |
| stoponerror | Stop execution of tasks in scenario(s) on errors | No; default is
false. |
| failonerror | Stop the buildprocess if execution of scenario fails. | No; default is
false. |
| classpath | The classpath to use to run scenario runner. | No |
| classpathref | the classpath to use, given as reference to a PATH defined elsewhere. | No |
Examples
Setting classpath
The best way to set the classpath is to use A PATH referense as follows
<!-- Define PureTest installation directory -->
<property name="puretest.home" location="/home/janne/PureTest_3.5"/>
<!-- Define class path based on the above -->
<path id="puretest.path">
<fileset dir="/lib">
<include name="**/*.jar"/>
</fileset>
</path>
This makes it easy to reference this class path in the definion of the task as well as in the task:
<!-- Task definition -->
<taskdef name="scenario-runner" classpathref="puretest.path"
classname="com.pureload.tools.ant.ScenarioRunnerAntTask">
</taskdef>
<!-- test target -->
<target name="test">
<scenario-runner classpathref="puretest.path"
file="minq.plc"
verbose="DEBUG" tasklog="DEBUG"/>
</target>
