LoadRunner and Performance Center Blog
cancel

Using LoadRunner to validate your Teradici PCoIP deployment

Using LoadRunner to validate your Teradici PCoIP deployment

Micro Focus Expert

(This post was written by Sebastian Stoica. Edited by Gaspare Marino)

Teradici PCoIP (PC over IP) is a remote display protocol for delivering remote desktops and applications. While there are several display protocols that exist in desktop virtualization such as RDP and ICA, PCoIP has become the most prevalent protocol for this purpose.

The feature that makes the PCoIP protocol really unique in a family of remote desktop protocols is hardware implementations of the protocol, including both servers and clients.

Desktop virtualization is a valuable technology platform. It solves several business problems and provides several benefits, such as:

  • Cost savings
  • Simplified management
  • Enhanced security
  • Increased productivity

But before replacing your standard desktop infrastructure with a VDI solution that implements PCoIP protocol, you should check the way it behaves under heavy load.  The schema below shows a simplified view of our Teradici test environment using Micro Focus LoadRunner:

pc1.png

 

 

We chose this deployment model based on Teradici’s recommendation for large-scale deployments:

  1. Teradici Connection Manager and Security Gateway
  2. Leostream Connection Broker (Teradici technology partner for connection brokering)
  3. Desktops with Teradici PCoIP Agent

To interact with Teradici environments, LoadRunner uses a PCoIP client that is bundled together with the product.  It was built based on Teradici software client SDK.

Load testing your deployment is easy. You just need to create a new script using Teradici PCoIP protocol (as shown in the picture below) and record user actions.

pc2.png

 

 

Once LoadRunner PCoIP Client is launched, enter the hostname or IP address of your PCoIP Connection Manager and click Next.

pc3.png

 

 

Choose one of the available desktops from the list, and click the Connect button.

pc4.png

 

 

The PCoIP client will connect to the desktop.

pc5.png

 

 

Perform the desired actions (open applications, work with them, etc.) and once you have covered all relevant activities, disconnect the client and stop recording.

VuGen will automatically generate code to map all these actions. Below is an example of generated script:

Action()
{

    pcoip_set_broker_address("MyConnectionManager", "443"); //Sets the address and port of the broker machine (Teradici Connection Manager)

    pcoip_set_auth("Username", "Domain", lr_decrypt("5b863ef0aa93ad7f81c1e859ad7f8")); //Sets credentials for connecting to the remote desktop (authentication management is performed by Leostream Connection Broker)

    pcoip_connect_desktop("10206"); //Connects to the remote desktop with id 10206

    pcoip_set_display(720, 576); //Sets the display resolution of the remote desktop to 720x576

    lr_think_time(10);

    pcoip_mouse_click(259, 234, LEFT_BUTTON, 0, "snapshot1"); //Emulates a left click at 259/234 coordinates and takes a snapshot of the screen

    pcoip_mouse_click(45, 245, LEFT_BUTTON, 0, "snapshot2");

    pcoip_mouse_click(45, 245, LEFT_BUTTON, 0, "snapshot3");

    pcoip_type("Hello PCoIP"); //Emulates typing “Hello PCoIP”

    pcoip_mouse_click(695, 5, LEFT_BUTTON, 0, "snapshot5");

    pcoip_mouse_click(405, 280, LEFT_BUTTON, 0, "snapshot6");

    pcoip_disconnect(); //Disconnects the session

    return 0;
}

Your script is ready! Now you can design your scenario, and emulate customer activity to validate your VDI environment - no surprises!

 

Visit the online LoadRunner Help Center to find more technical information about the PCoIP protocol.

If you would like to find information and submit questions about Performance Engineering best practices and methodology, visit our Performance Testing community.

For more videos, visit our YouTube channel here.

For webinars about LoadRunner, Performance Center and related technologies, visit our Performance Engineering YouTube channel.

 

Learn more at:

https://software.microfocus.com/en-us/software/performance-testing

0 Kudos
About the Author

GaspareMarino

Gaspare Marino is the WW Product Marketing Manager for LoadRunner and Performance Center. He currently works with customers to facilitate the creation and management of a Performance Engineering Center of Excellence (PCoE).