In this article, I am going to highlight some tips that can be helpful to performance test engineers to effectively work on Citrix applications. By understanding and implementing these points, script debug and test execution will be a lot easier.
Points to consider while recording
- Citrix Vuser scripts simulate the Citrix ICA protocol communication between a Citrix client and the server. VuGen records all activities during the communication and generates a Vuser script.
- A Citrix VUser’s memory footprint is two to three times a Web VUser’s memory footprint.
- In tree-like structures, while recording, expand each child item to display sub-item in order to emulate the playback effectively.
- Citix transactions, citrix windows and bitmap functions in LoadRunner take time to stabilize and hence we must not ignore think time when replaying the script.
- Use the keyboard as often as possible, avoid using mouse clicks:
When recording use keystrokes as often as possible (in preference to mouse clicks). This makes scripting more reliable and means you have less scripting and debugging issues. The LR functions recorded with key strokes and mouse clicks are –
ctrx_mouse_click(256, 46, RIGHT_BUTTON, 0, ‘Submit’);
Similarly, while selecting data entry items it is better to use keystokes e.g. The ‘up’ and ‘down’ arrow keys to select appropriate item. Less LR script debugging issues are observed.
Using same login id for multiple virtual-users in a load test –
During a load test a limited number of login ids may be available. In such cases, login ids have to be reused on the system to create required load. To make sure that this happens smoothly the following changes need to be made in Access Management Console on Citrix presentation server:
- On the left panel of AMC, right click on the application being tested and expand the ‘Citrix resources’
- Expand ‘Presentation Server’ and then Server Farm Name.
- Expand ‘Applications options’
- Select properties. This opens the ‘Application Properties’ dialog box.
At times we might have to open advanced options and select the ‘limits options’. One must ensure that following options are unchecked –
- Limit instances allowed to run in server farm
- Allow one instance of application per user
These methods are helpful for performance test consultants who are testing Citrix application. In my next article, I will highlight some more points that can help performance test engineers working on Citrix applications.