You can pass arguments from IBM® Rational® Quality Manager while
running a IBM Rational Functional Tester script.
You can pass the following types of details while running
functional test scripts from
Rational Quality Manager:
- Script arguments: These arguments are available to a script
writer within the script as arguments to the testMain() method.
- Execution arguments: These arguments govern playback.
- Datapool iteration: If there is a datapool associated with
the script, you can pass the number of times the scripts must run
by accessing the records from the datapool.
Additionally, details about the
Rational Quality Manager execution
task can be passed to the functional test script so that information
about the
Rational Quality Manager test
cases can be accessed during the script execution.
To access the
execution task details within the testMain() method in a functional
test script, get the path to the XML file that describes the Rational Quality Manager execution
task.
In the functional test script, add String path
= System.getProperty("rqm.task") to get the path of the XML
file.
See the XML Representation of an adapter Task section
on the http://open-services.net/bin/view/Main/QmExecutionAdapter web
page for information about the schema of the execution task that is
represented in this file.
This file points to other resources
for other Rational Quality Manager assets
such as test cases. You can find the schemas for the other resources
on the same site. Using the data in this XML file, you can communicate
with Rational Quality Manager.
Note: The
Rational Quality Manager details
you pass using this method are specific and local to the script. If
you want to specify details from the
Rational Quality Manager test
script, test case or test suite levels, use execution variables. For
information about using execution variables, see
Rational Quality Manager execution variables.