<taskdef classname="com.ghc.ghTester.ant.GHTester" name="GHTester" classpathref="rittasklib">
<GHTester environment="MyEnvironment" haltOnFailure="true" project="${basedir}\MyProject.ghp" resultsServerLogging="absolute">
<Tests>
<filelist dir="${basedir}">
<file name="MyProject/MakeBooking/BookingStub"/>
<file name="MyProject/MakeBooking/MakeBooking"/>
<file name="MyProject/MakeBooking/Empty Test"/>
</filelist>
</Tests>
<AppProperties>
<property name="greenhat.net.defaultnetworkdevice" value="\Device\NPF_{49ACBD55-A866-47E4-AD87-ECF3A7FE49AB}"/
</AppProperties>
</GHTester>
Table 1 lists the attributes than can
you can usebe used to define an Ant task for running a test. Attribute | Description | Required |
---|---|---|
Tests | The full path (within the project) of the test resources <res_1>...<res_n> to be executed. | Yes |
AppProperties | A collection of properties to use during test execution. | No |
environment | The name of the Rational Integration Tester environment to use when the test items are executed. | Yes |
project | The full path to the Rational Integration Tester project file that contains the specified environment and test resources. | Yes |
resultsServerLogging | Specifies if and how the Results Server URL
for executed items is written to the console. The argument has the
following options: ∞ ignore: The report URL is not written to the console. ∞ absolute: The full URL is written to the console. ∞ relative: A URL relative to the project's current Results Server location is written to the console. |
No, default is absolute |
junitDir | Indicates that JUnit reports should be generated for all suites being executed and that the reports should be placed in the specified folder. For more information on the format of the output file, see JUnit style output | No, default is not to generate JUnit reports. |
securityToken | The value of the security token to use for authentication with IBM Rational Test Control Panel when domain security is enabled. For more information, see Domain level security. | No, default is to send no token. |
haltOnFailure | Set to true to fail the Ant script if GHTester fails (flag). | No, default is false. |
failureProperty | Property to set to true if GHTester fails. | No |