You can record a Citrix session from the Citrix Web Interface
to use the load balancing feature provided by this connection method.
You do this by recording an HTTP test that contains session information
recorded with the web interface, and then by recording a Citrix test
that uses this information. When you have finished recording the session,
the wizard generates a Citrix test.
Before you begin
An HTTP test provides the session information to connect
to a Citrix farm for a user and an application. The same HTTP test
can be reused to record different Citrix tests.
Citrix tests
recorded with this method can only be run within a schedule. After
recording, you must set up a schedule that runs the HTTP test and
then the Citrix test.
Procedure
- First, record an HTTP test: Click , and then select HTTP Recording and click Next.
- On the Select Location for Test Suite page, select a project. In Test file name, type a name for the HTTP performance test, and then click Finish. The name that you type is the base
name for the recording, test, and other required files. You see these
files in the standard Navigator or the Java™ Package Explorer with their distinguishing extensions,
but you see only the simple (test) name in the Test Navigator.
- In the web browser, type the URL of the Citrix Web Interface
server.
- On the Citrix Web Interface page, type your user name,
password, and domain to open a session. The Citrix
Web Interface displays the list of applications published on a server
and available to the user.
- Open the Connection Preferences,
and select a Window Size other than Seamless. Seamless mode is incompatible with
test schedules.
- Select the application that you want to test.
- Close the application and the web browser. This stops the recording and generates a new HTTP test that ends
with a custom code test element named StoreICA.
- Now, record the Citrix test: Click , and then select Citrix Recording, and click Next.
- On the Select Location for Test Suite page, select a project.
- In Test file name, type a name for
the Citrix test, and then click Next.
- On the Citrix Connection Settings page,
select Through a Web interface, and in Connection scenario, click Browse; then select the HTTP test that contains the Citrix Web Interface
session.
- To start the recording, click Finish. The Citrix Recording window
opens, displaying the Citrix XenApp session and a set of recorder
controls.
- In the Citrix Recording window, perform
the tasks that you want to test. You can use the recorder
controls in the toolbar to add comments, record synchronizations,
or take screen captures during the recording.
- To add a user comment to the recorded test, click the Insert user comment (
) push button. Because
Citrix tests can be long and difficult to read, meaningful comments
can help you locate important elements.
- To add an image synchronization to the recorded test,
click the Insert image synchronization (
) push button, select an area
of the screen that will be used for synchronization, and then click
the Insert image synchronization button again. Image synchronizations enable the test to keep track of the
contents of a screen area during the replay instead of focusing only
on window events. You can use them to maintain synchronization of
a test in applications that do not create or modify many windows,
but update the contents of a window regularly. The contents of an
image can be evaluated either as a bitmap hashcode or as a text value
obtained by optical character recognition. You can also add verification
points to image synchronizations in the test editor.
- To add a screen capture to the recorded test, click
the Capture screen (
) push button. Screen
captures make your tests easier to read and help you visualize the
recorded test.
- To change the settings for screen captures, click Screen capture preferences
, and then
select one of these options: - No automatic screen capture
- Select this option if you do not want the test recorder to record
screen captures automatically. When this option is selected, you can
still record screen captures manually. This option is selected by
default.
- Capture screen every
- Select this option to automatically record a periodic screen capture
and specify the time between captures.
- Capture screen on window creation
- Select this option to record a screen capture each time a window
object is created in Citrix.
- Exclude tooltips
- When Capture screen on window creation is
selected, enable this option to prevent creating a screen capture
each time a tooltip event is displayed during the recording. If this
option is disabled, screen captures are recorded when tooltips are
displayed.
- When you have completed the sequence of actions to be tested,
close the session and stop the recorder by clicking the Stop recording (
). A progress window opens while the test is generated. On
completion, the Recorder Control view displays
the message Test generation completed, the Test Navigator lists your test, and the test opens in the test
editor.
What to do next
To run the Citrix Web Interface test, you must create a new
schedule, add the HTTP test, and then add the Citrix test.