Monday, 4 January 2016

Loadrunner RDP scripts Best Practices

Load runner RDP Protocol:

Loadrunner RDP scripts will not always replay smoothly.In my experience, I have collected some tips, which might save your time and effort.
I have created rdp scripts  for WPF(Windows Presentation Framework) applications. We couldn't find any other Load testing tool,which supports WPF applications.

Here are few tips I would like to share.

  1. Make sure we have installed LR RDP agent on the machine , for which we are connecting through RDP.
  2. Use RDP agent, while recording the application in RDP Protocol,so that we can use all synchronization functions in RDP Protocol
  3. Minimize your scripting with keyboard short cuts, instead of using mouse clicks.
  4. Minimize the number of times you login and logout of RDP.
  5. Make sure you have sufficient licencing to cover the number of RDP sessions
  6. While navigating to the application use tabs instead of using mouse clicks
  7. Make sure to add a sync_on_image  function before sync_on_agent function.
  8. Don't add many sync_on_window functions, which will consume more time while executing



8 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Good one!! It is very useful

    ReplyDelete
  3. Hi

    I am trying to record a thick client application installed in remote machine, But Vugen is unable to record any events

    I am using Virtual user Generator 12.02.0.0 installed in Windows 7 Enterprise - Service pack 1

    Thick client application is installed in Windows Server 2012 R2, This machine is access through RDS Gateway

    In both RDP client version was

    Shell Version 6.3.9600
    Control Version 6.3.9600
    Remote Desktop Protocol 8.1 supported

    CASE 1 : In RDP protocol recording option, we used RDP client Startup (Use Custom Connection file) and gave the .RDP file for recording, We were able to connect to the remote machine but no events got recorded in script

    CASE 2 : when tried with option 'run RDP client application', and Give Rds gateway in advanced options of mstsc we were not able to connect to remote machine
    Output :
    New event: wplus_gethostbyname
    New event: wplus_gethostbyname
    New event: wplus_gethostbyname
    New event: wplus_gethostbyname
    New event: wplus_gethostbyname
    New event: wplus_gethostbyname_ipng
    New event: wplus_gethostbyname_ipng
    New event: wplus_gethostbyname_ipng
    New event: wplus_gethostbyname_ipng
    New event: wplus_gethostbyname
    New event: wplus_connect
    wplus_connect
    Host name: proxy.corp.com:80
    New event: wplus_close
    Close connection


    CASE 3 : when we tried to connect to other local machine in same LAN, we were able to connect and record the events

    Has anyone faced RDP recording issue as above ? Please help

    ReplyDelete
    Replies
    1. Hi Mani,

      1. Is RDP agent installed on the remote server, where you are recording the application.
      2. If not install RDP agent and make sure, version of loadrunner and RDP agent are same.
      3. We might run into issues, if version is different
      Check if there are any network related issues, like firewall settings etc.
      4. You can give a try,just by recording notepad,or word document, like opening a file write some thing and then save.
      5. If recording of these windows, applications are successfull, then there might be issue with your application.
      6. while recording your application using RDP protocal, see lrrdpagent.exe process is up and running on the remote machine

      let me know,if you still face any issues.

      Thanks,
      Suma

      Delete
  4. Hello Suma

    Could you please temme how we can download rdp agent to install on the remote server.

    ReplyDelete
  5. You are really great... saved my lot of effort

    ReplyDelete