If you are using IBM® Rational® Performance Tester,
you can automate the deployment of stub servers in a performance schedule.
Before you begin
You must have created one or several service stubs.
Note: This
topic does not apply to IBM Rational Service Tester for SOA Quality.
About this task
To automate stub deployment in a schedule:
Procedure
- In the Test Navigator, browse to the schedule and double-click
it. The schedule opens.
- In the schedule, select the top-level element and click . The Service Stub Server
Location window opens.
- Select an existing remote stub server location
or create a new location. To create a remote location:
- Click . The Add Location window
opens. The first page of the wizard lets you specify general properties
for the remote location.
- In Host name, type the IP address
or the fully qualified host name of the remote computer, for example: localhost.
- In Name, type a descriptive name
for the remote computer.
- In Deployment Directory field,
type the directory on the remote computer that will store the test
assets, for example: C:\tmp. The directory,
which will be created if it does not exist, stores the temporary files
that are needed during a schedule run.
- In the Operating System field,
select the operating system of the remote computer, and then click Next. The second page of the wizard lets you specify the IP aliasing
properties for this location.
- If you want to deploy multiple stub servers on a single
computer, select Enable IP Aliasing to make
it appear as though each stub server has its own IP address.
- Select Use IP addresses from all network
interfaces to use IP addresses from all network interfaces
at the remote location or select Only use IP addresses
from the following network interfaces to use addresses
from a subset of network interfaces. Click Add to
add the name of an interface and Edit to change
the interface name. Specify network interfaces in the form eth0, eth1.
If you do not use this form, the connection attempt fails.
- Click Next. The third page of
this wizard lets you specify file locations.
- Specify a project directory and a File name to
store the information about the new remote location, and then click Finish.
- Click OK. A new
service stub server is created in the schedule.
- Select the service stub server and click .
- In the Select Stub window, select the stubs that you want
to deploy on the server and click OK. To
select multiple stubs, press and hold the Control key.
Results
When you run the schedule, the stub servers are deployed at
the beginning of the test. When the schedule finishes, stub servers
are stopped and removed from the remote locations.
Note: In the schedule,
you must ensure that the stub servers have enough time to be correctly
deployed before the user groups start running. To do this, select
a user group, and click and specify a 30 second
delay.