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.
Procedure
- In the main menu, click .
- Enter a name for this script.
- Select the Command Line script
type.
- Select Use test resources that are local
to a test machine.
- Click Select adapter and select
the adapter name that was used when the adapter was started on the
target test machine (for example, myAdapter).
- Click Next.
- In the Project Path field, enter
the path to the directory that contains the application-under-test
job on the test target machine. For example, enter. c:\cmd-line-scripts.
- Click Go.
- Select the executable file or script from the list and
click Finish.
- Click Save to save this test
script.
- In the main menu, click .
- Enter a name for this test case.
- Click the Test Scripts section
of the test case.
- Click the Add existing test scripts
icon.
- Select the application-under-test job to run on the
adapter, and click OK.
- Click Save to save the test case.
- Run the test case by clicking .
- Select the test case and click the Run Test
Case icon.
- Use the default settings, and click OK.
- Run a test script.
- Click Show result.
- Review the execution results
- Repeat these steps for each test script.
Tip: The status messages that the command-line adapter
sends during test execution are displayed on the "Execution progress"
page of the Quality Management application,
in the Status section.