Page 1 of 1

Speed-up the Test Script Play-back or Execution

Posted: Tue Sep 21, 2010 3:18 pm
by dal
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...

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

Posted: Tue Sep 21, 2010 4:06 pm
by Ciege
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...

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

Posted: Wed Sep 22, 2010 5:21 am
by dal
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...

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

Posted: Wed Sep 22, 2010 8:59 am
by Support Team
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

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

Posted: Mon Sep 27, 2010 2:21 pm
by dal
Yes it workz .. Thanks Peter

Regards,
Dal...