Running tests with the command-line adapter by reserving specific 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
- Ensure that the Engineering Test Management project properties are configured to enforce reservations. For more information, see Enforcing machine reservations for lab resources in Engineering Test Management.
- 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 run multiple command-line adapters on the same machine by providing different values for
the optional parameter [[-adapter <adapter>]
. However, all the adapters that run
on the same machine are mapped to a single lab resource. If all adapters are mapped to a single lab
resource, and you reserve that lab resource, all the adapters are reserved and no one else can use
any of the adapters. Similarly, if you add that lab resource to a test cell, all adapters become
part of that test cell. You cannot individually reserve the adapters and associate them with
different test cells.
You can specify an optional parameter for adapters: [-hostName <host name>]
.
When you provide a value for the -hostName
parameter, a lab resource is created
with that name and the adapter is mapped to that lab resource. If you run multiple adapters from the
same machine with different values for the -adapter parameter and different values for the
-hostName
parameter, each adapter is mapped to a different lab resource. Then, you
can reserve lab resources separately and also add them to different test cells.
-hostName
parameter, you can optionally provide parameters
for the fully qualified domain name, IP address, and MAC address:[-fullyQualifiedDomainName <fully qualified domain name>]
[ipAddress <IP address>]
[macAddress <MAC address>]
-fullyQualifiedDomainName
parameter is the same as the host name. The -ipAddress
and
-macAddress
parameters are the IP address and MAC address of the real machine on
which the adapter is running.