Speed-up the Test Script Play-back or Execution

Ranorex Studio, Spy, Recorder, and Driver.
dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

Speed-up the Test Script Play-back or Execution

Post by dal » Tue Sep 21, 2010 3:18 pm

Hi Team,

Script execution is very slow though I have not used any Delays, is there any Run Settings can be done, to make the script execution faster?

Regards,
Dal...

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Speed-up the Test Script Play-back or Execution

Post by Ciege » Tue Sep 21, 2010 4:06 pm

What part is slow? Is it slow when finding objects in your AUT? Is it slow when reading data? Is it slow when launching? Can you elaborate what is slow and what you would consider an acceptable speed...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

Re: Speed-up the Test Script Play-back or Execution

Post by dal » Wed Sep 22, 2010 5:21 am

Let me explain how we have done the Scripting:
1. Added the required objects to Repository
2. Used those objects to perform any action onto, in the scripting (e.g. object.click / object.value = "Text" etc)

I am verifying some Static Text in the screen to make sure we are into the correct page before performing any entries/action onto the page. Here its taking more time in identifying the page & entering the values in the Text Boxes present in the page though we have not used any Delays in the scripts.

Lets say for entering the 5 different values into a page took me for 1-2 secs in other automation tools, here its taking about 30-35 secs (entering the values into a text box, that pauses between subsequent text box entries)... So asking is there any default Run Settings to be adjusted to ignore the play-back delay.

Regards,
Dal...

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Speed-up the Test Script Play-back or Execution

Post by Support Team » Wed Sep 22, 2010 8:59 am

Hi Dal,

You can set the time properties of the "Keyboard" and "Mouse" class to zero. If you set this properties to zero there will be no delay of Ranorex to move the mouse and type in some words with the keyboard.
Just place following code to your program.cs:
Keyboard.DefaultKeyPressTime = 0;
Mouse.DefaultClickTime = 0;
Mouse.DefaultMoveTime = 0;
API-Documentation for Mouse class:
http://www.ranorex.com/Documentation/Ra ... _Mouse.htm
API-Documentation for Keyboard class:
http://www.ranorex.com/Documentation/Ra ... yboard.htm

Regards,
Peter
Ranorex Team

dal
Posts: 72
Joined: Thu Jun 24, 2010 8:59 am

Re: Speed-up the Test Script Play-back or Execution

Post by dal » Mon Sep 27, 2010 2:21 pm

Yes it workz .. Thanks Peter

Regards,
Dal...