Tasks available for this plugin:
Task | Description |
parasoft:cpptest | C++Test execution task |
parasoft:dottest | dotTest execution task |
parasoft:eclipse | Ant task to generate eclipse project files |
parasoft:jtest | Jtest execution task |
parasoft:localsettings | Ant task to generate the local settings file |
parasoft:monitor | Ant task to monitor an ant build |
parasoft:soatest | SOAtest execution task |
parasoft:verify | Verify task |
The following specifies the minimum requirements to run this Ant plugin:
JDK | 1.5 |
Ant Version | 1.6.2 |
The Ant plugin requires parasoft-ant-3.13.jar to be added in either your Ant library or Ant repository. Or its directory must be added as a command line -lib argument.
The Parasoft Ant script imports the Ant build script of a project, and integrates that build with Parasoft Test Plugin. Specifically, the classpath of the project(s) are defined in one of the following ways:
javacref Value | Description |
javacId | The ID of the javac task from the original Ant build script. |
javacId, javacId2, javacId3, ... | The ID's of the javac tasks. Multiple javac targets can be listed using commas, and will be merged as one project. |
all | All javac tasks. |
allrefs | All javac tasks with an ID attribute. |
In the example below, the Parasoft Ant script imports an existing build.xml and calls Jtest to execute a Static Analysis configuration on the build.
<!-- Project definition and call to Parasoft Ant library --> <project name="Parasoft Test Build" default="parasoft-test" xmlns:parasoft="antlib:com.parasoft.antlib"> <!-- To import the original Ant build.xml file and specify the task to integrate to --> <import file="build.xml"/> <target name="parasoft-test" depends="build"> <!-- To run Jtest on the specified project directory in projectDescription, using the configuration in config and Jtest in jtestHome --> <parasoft:jtest config="builtin://Static Analysis" jtestHome="C:\Program Files\Parasoft\Jtest\9.5"> <projectDescription basedir="."/> </parasoft:jtest> </target> </project>
In the example below, the Parasoft Ant script calls SOAtest on the tst files in the project. Unlike in the Jtest example above, there are no source files needed to compile and no build files to import.
<!-- Project definition and call to Parasoft Ant library --> <project name="SOAtest Test Build" default="soatest-test" xmlns:parasoft="antlib:com.parasoft.antlib"> <target name="soatest-test"> <!-- To generate .project file needed to run SOAtest if it does not exist --> <parasoft:eclipse/> <!-- To run SOAtest with the selected configuration --> <parasoft:soatest config="builtin://Run Web Functional Tests in Browser Specified by Test" soatestHome="C:\Program Files\Parasoft\SOAtest\9.4"/> </target> </project>