The short answer is yes, the longer answer though depends on several factors. First if your version of HP testing software supports your Citrix server in your environment. Second is all of the following needs to be installed on the client, the HP testing software, the Application Under Test, and IGTestAutomation dll's.
Below is a chart and additional information provided by HP that goes into more detail on the subject.
Supported versions
Citrix MetaFrame Presentation Server
QTP 11.0
UFT 11.5x GUI
UFT 12.00 GUI
UFT 12.01 GUI
UFT 12.02 GUI
Version 4.0
Yes
No
No
No
No
Version 4.5
Yes
Yes
No
No
No
Version 5
Yes
Yes
Yes
No
No
Version 6 (Xenapp)
Yes
Yes
Yes
Yes
Yes
Version 6.5
No
Yes
Yes
Yes
Yes
Version 7 (XenDesktop)
No
No
No
Yes (TPL)
Yes
Version 7.6 (XenDesktop)
No
No
No
No
Yes (TPL)
Notes:
- "XenApp" is the new name for newer versions of Citrix (6 and higher). For more information see http://en.wikipedia.org/wiki/Citrix_XenApp
- "Citrix XenDesktop" isn't supported by UFT 12.00 and prior versions. UFT 12.01 offers "Technology Preview" (TPL) support.
- If QTP 11 isn't viewing run results on Citrix XenApp 6, check with HP Support about testing Hot-Fix QTP_00857 (This is a private patch only provided by HP Support, so if needed, please submit a case)
Scope of support (What Citrix implementation is supported)
(IMPORTANT) Requirements: To record and replay against application(s) hosted on a Citrix environment, both QTP / UFT and application under testing (AUT) must be:
- Installed on the same machine (usually the server).
- Running within the same Citrix session.
Example Scenario 1:
- Application Under Testing (AUT) Location: Installed and hosted on Citrix server
- QTP / UFT Location: Installed on client
- Status: Not Supported.
- Notes: If try to record and replay against the application, QTP / UFT will not recognize individual objects. In fact, QTP / UFT will view the entire session Window as one object.
Example Scenario 2:
- Application Under Testing (AUT) Location: Installed and hosted on Citrix server
QTP / UFT Location: Installed and hosted on Citrix server- Status: Supported.
- Requirement:Both QTP and AUT must be under same Citrix Session (this may require special configuration). See illustration below to check recommended scenario where support works appropriately
- Notes: Citrix hosting a virtual version of a Windows operating system and within such, both QTP / UFT and the AUT are installed; QTP / UFT will be able to interact virtually with any item/element/program installed on such operating system as if it were a physical operating system. This is normally seeing as "using the same session"
Tip: One way to determine if the recognition works fine on against Citrix session
When using the Object Spy, the pointy hand cursor (when actually spying) remains the same (stays as pointy-hand-cursor, instead of the default icon/cursor, such as the pointing-arrow). If it changes back while still actually spying (while hovering mouse on top of desired application to spy), AUT and QTP / UFT are not using the type of same session required.
License Requirements
It is required to use a concurrent (floating) license to operate QTP / UFT in a Citrix environment.
More feedback
From documentation:
When running QTP/UFT on a remote machine using a Remote Desktop Connection session (RDC) or using Citrix, if the remote session is minimized during the run session, or if the computer on which the application is being tested is logged off or locked, the following problems may occur:Workaround: If using Citrix or a Remote Desktop Connection session to run a test or component, do not minimize the session window, and make sure that the computer on which the application is being tested is not logged off or locked.
- the test or component run session may fail
- steps that contain keyboard or focus operations may fail
- the Test Results still image capture and/or the Mercury Screen Recorder may display a black screen
- steps for which the device level replay is configured to use the mouse (instead of browser events) to run mouse operations may fail. (Set the device level replay using a Setting.WebPackage("ReplayType") statement or by setting the Replay type option in the Advanced Web Options dialog box.)