+

Search Tips   |   Advanced Search


Record a test with the Citrix Web Interface

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 containing 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.

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, set up a schedule that runs the HTTP test and then the Citrix test. To record a Citrix test from the Citrix Web Interface:

  1. First, record an HTTP test: Click File > New > Test from Recording, and then select HTTP Recording and click Next.

  2. 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.

  3. In the Web browser, type the URL of the Citrix Web Interface server.

  4. On the Citrix Web Interface page, type 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.

  5. Open the Connection Preferences, and select a Window Size other than Seamless. Seamless mode is incompatible with test schedules.

  6. Select the application to test.

  7. 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.

  8. Now, record the Citrix test: Click File > New > Test from Recording, and then select Citrix Recording, and click Next.

  9. On the Select Location for Test Suite page, select a project.

  10. In Test file name, type a name for the Citrix test, ...

  11. On the Citrix Connection Settings page, select Through a Web interface, and in Connection scenario, click Browse; then select the HTTP test containing the Citrix Web Interface session.

  12. To start the recording, click Finish. The Citrix Recording window opens, displaying the Citrix XenApp session and a set of recorder controls.

  13. In the Citrix Recording window, perform the tasks to test. You can use the recorder controls in the toolbar to add comments, record synchronizations, or take screen captures during the recording.

    1. 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.

    2. 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.

    3. To add a screen capture to the recorded test, click the Capture screen (

      ) push button. Screen captures make tests easier to read and help you visualize the recorded test.

    4. 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 each

      Automatically record a periodic screen capture and specify the time between captures.

      Capture screen on window creation

      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.

  14. 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 test, and the test opens in the test editor.


What to do next

To run the Citrix Web Interface test, create a new schedule, add the HTTP test, and then add the Citrix test.


Related

  • Citrix performance testing guidelines


    Related tasks

  • Record a Citrix test
  • Insert a new recording into a Citrix test
  • Change Citrix recording preferences
  • Change Citrix test generation preferences