The easiest approach to recording user actions via Citrix XenApp plug-ins (clients) that connect directly to Citrix XenApp servers and then creating a test script is to use the Silk Performer Recorder, the Silk Performer engine used for capturing and recording traffic and generating test scripts.
The Silk Performer Recorder captures and records the traffic between Citrix XenApp plug-ins and the server under test. When recording is complete, the Silk Performer Recorder automatically generates a test script based on the recorded traffic. Scripts are written in the Silk Performer scripting language, Benchmark Description Language (BDL).