It's possible to start various test execution engines from ANT. If not from the command-line. Starting
is not the problem. Gathering the test result information is the issue.
With the ANT-RQM integration you can start a RQM test, from ANT. That results that any test results
are captured by RQM! This way you can use RQM Reporting options on any test.
A comprehensive overview of the testing efforts is the result.
When tests are executed in the context of IBM CLM you can generate reports, see Reporting
This is possible. Make note that summary results of pass/fail are visible in the ANT-log. Details test-run results are not stored in RTCP. Make use of a suite.
Downloading older ANT versions
Sample ANT script generated by RIT JKE Holidays-MakeFlightBooking-Suite-build.xml This example references a SUITE, which has 2 advantages:
See jenkins to view some pictures.
You need the RQM-Execution-Tool to execute ANT->RQM tasks.
Piece of rqmexec.xml file:
<property name="rqmUser" value="al" /> <property name="rqmPassword" value="al" /> <property name="rqmUri" value="https://clm.jkebanking.net:9444/qm" /> <property name="rqmProjectName" value="JKE Holidays (Quality Management)" /> <property name="testSuiteERId" value="53" /> <property name="testCaseERId" value="72" /> <property name="scriptId" value="1" /> <property name="adapterId" value="3" /> <target name="all"> <executeTestSuiteExecRecord userId="${rqmUser}" password="${rqmPassword}" rqmServerUrl="${rqmUri}" projectName="${rqmProjectName}" testSuiteExecRecordId="${testSuiteERId}" arguments="-exitOnComplete=true" /> <echo message="${rqmExec:verdict}" /> <echo message="${rqmExec:result_url}" /> </target>
Complete file: rqmexec.xml
Remark: The userid/password is the same as the userid/password of the RIT-adapter. If that's the case, the following command results in success. If the userid/password is different than the suite execution will fail.
The issued command is:
ant -file rqmexec.xml -lib <location_where_this_is>/RQMExecutionTool.jar
See RQM documentation:
Within ANT it's possible to start a CMD-line to execute other programs. This can be leveraged to start/stop stubs.
<exec executable="cmd" os="Windows XP"> <arg value="/C"/> <arg value="command to run"/> </exec>
See: RTVS Start Stub ANT
Source: Stackoverflow
Check the RTVS page.