Running tests with the command-line adapter using local resources
With the command-line adapter, you can use a target test machine for running command-line jobs. After the adapter is registered, you can run scripts by using the command-line execution adapter on the target test machine. Use a command-line adapter if an adapter for your target tests is not available.
Before you begin
- Start the command-line adapter on the test target machine and have at least one test machine application on the target test machine.
- Make sure that the Quality Management application is running on the server.
About this task
On the tester machine, a test case with a command-line test script is created and run. The test produces a Test Execution Result, which contains the standard out and standard error of the executed command.
-redirectError true
option. You can view the output file
in the Result Details section of a test case.You can provide values for custom attributes of test case results from the command line. For example, if Voltage is a custom attribute for test case result, you can provide a value of 5 volts for that attribute by adding the following line to the command-line test script:
echo Voltage=5 V>> %qm_CustomAttributesFile%If a custom attribute with the specified name does not exist in the Quality Management application, a new custom attribute is not created.
For Date type custom attributes, supported formats are:
"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
"yyyy-MM-dd'T'HH:mm:ss.SSSZ",
"yyyy-MM-dd'T'HH:mm:ss.SSSz",
"yyyy-MM-dd'T'HH:mm:ss'Z'",
"yyyy-MM-dd'T'HH:mm:ssz",
"yyyy-MM-dd",
"yyyy-MM",
"yyyy"
The supported date format is XML dateTime. For details, see W3C recommendations.