Highlighted
Respected Contributor.
Respected Contributor.
954 views

Load Runner 12.00 RDP Protocol

My Dear LoadRunners,

At present i am working on RDP Protocol,  i am seeing below error while executing script on VUGen. 

Scenario: User logged into Remote Desktop, launch a windows based application and submit a ticket. While submitting a ticket, user may idle for 30 to 90 minutes in between. To replicate this, i have used think time, is it suggestable?

Any recoomended settings?

 

rdp_mouse_click("StepDescription=Mouse Click 27",
"Snapshot=snapshot_62.inf",
"MouseX=1422",
"MouseY=282",
"MouseButton=LEFT_BUTTON",
"Origin=Default",
RDP_LAST);

rdp_sync_on_image("StepDescription=Image Synchronization",
"WaitFor=Appear",
"AddOffsetToInput=Default",
IMAGEDATA,
"ImageLeft=216", "ImageTop=310", "ImageWidth=313", "ImageHeight=201", "ImageName=snapshot_194.png", ENDIMAGE,
RDP_LAST);

// IDLE Time <Create Incident>

lr_think_time(1800);

lr_start_transaction("DESCRIPTION");

rdp_mouse_click("StepDescription=Mouse Click 28",
"Snapshot=snapshot_64.inf",
"MouseX=778",
"MouseY=260",
"MouseButton=LEFT_BUTTON",
"Origin=Default",
RDP_LAST);

 

 

Log:

Action.c(146): Information relevant for customer support: Entered 'LrRdpSocketTransport::IsDataPending' with 1 msec maximum timeout.
Action.c(146): Bitmap update received.
Action.c(146): Bitmap (left=1735, top=1162, width=24, height=38) processed
Action.c(146): Information relevant for customer support: Entered 'LrRdpSocketTransport::IsDataPending' with 1 msec maximum timeout.
Action.c(146): Information relevant for customer support: Entered 'LrRdpSocketTransport::IsDataPending' with 1 msec maximum timeout.
Action.c(146): Information relevant for customer support: Entered 'LrRdpSocketTransport::IsDataPending' with 1 msec maximum timeout.
Action.c(146): Step Mouse Click 27 - clicking mouse button LEFT_BUTTON at (1422, 282)
Action.c(154): Synchronizing on image started
Action.c(154): detect score is 1, image entropy is 5.53739, match at (216, 310)
Action.c(154): Step Image Synchronization - synchronizing on image (Mode=Appear, Tolerance=Medium, Timeout=300 seconds)
Action.c(163): lr_think_time: 1800.00 seconds.
Action.c(165): Notify: Transaction "DESCRIPTION" started.
Action.c(174): Clicking mouse button started
Action.c(174): Information relevant for customer support: Entered 'LrRdpSocketTransport::IsDataPending' with 1 msec maximum timeout.
Action.c(174): Error:Connection reset by the server
Action.c(174): There was an error while Clicking mouse button
Action.c(174): Notify: Transaction "DESCRIPTION" ended with "Fail" status (Duration: 0.1862).
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.

Thanks,
Krishna Reddy Seelam
0 Likes
2 Replies
Highlighted
Respected Contributor.
Respected Contributor.

Re: Load Runner 12.00 RDP Protocol

Please suggest if there is standard technique while using mouse/Key board on RDP Protocol. 

  1. How to use think time
  2. RDP_Sync (Image sync)
  3. Keyboard and Mouse events combination
  4. Transactions

 

Thanks,
Krishna Reddy Seelam
0 Likes
Highlighted
Visitor.

Re: Load Runner 12.00 RDP Protocol

Hi

I am working newly with RDP protocol (LoadRunner 12.50). I am recording with the defualt settings , but when the script gets generated I see the conents having the following functions - rdp_mouse_wheel(), rdp_mosue_button_up(). this happens when i am connecting to another windows 10 machine.  Have attached some script contents for reference

Can any one help me here. The automatic image synchronization is not happening and too many events are getting generated that the recording hangs up and stops at a point.

rdp_set_lock("StepDescription=Lock Key Set 4", 
        "LockKeyValue=VK_KANA", 
        RDP_LAST);

    rdp_type("StepDescription=Typed Text 2", 
        "Snapshot=snapshot_3.inf", 
        "TypedKeys=57", 
        RDP_LAST);

    rdp_mouse_button_up("StepDescription=Mouse Button Release 1", 
        "Snapshot=snapshot_4.inf", 
        "MouseX=8194", 
        "MouseY=2048", 
        "MouseButton=MIDDLE_BUTTON", 
        "Origin=Default", 
        RDP_LAST);

    rdp_mouse_button_up("StepDescription=Mouse Button Release 2", 
        "Snapshot=snapshot_5.inf", 
        "MouseX=8194", 
        "MouseY=2048", 
        "MouseButton=MIDDLE_BUTTON", 
        "Origin=Default", 
        RDP_LAST);

    rdp_mouse_button_up("StepDescription=Mouse Button Release 3", 
        "Snapshot=snapshot_6.inf", 
        "MouseX=8194", 
        "MouseY=2048", 
        "MouseButton=MIDDLE_BUTTON", 
        "Origin=Default", 
        RDP_LAST);

    rdp_mouse_button_up("StepDescription=Mouse Button Release 4", 
        "Snapshot=snapshot_7.inf", 
        "MouseX=8194", 
        "MouseY=2048", 
        "MouseButton=MIDDLE_BUTTON", 
        "Origin=Default", 
        RDP_LAST);

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.