Ranorex

running tests without mouse movement or keystrokes and speed

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython
View previous topic :: View next topic  
Author Message
jasong



Joined: 26 Oct 2007
Posts: 49
Location: Texas

PostPosted: Tue Oct 30, 2007 12:26 am    Post subject: running tests without mouse movement or keystrokes and speed
When I am first validating a Python script I find it helpful to see the movements and keystrokes like I would see if run manually.

However, once that is done I would like to disable the mouse movement and keystrokes. Is this possible?

note that by 'keystrokes' I am referring to the presentation of entering a character at a time that simulates actual typing. For test runs I would like to just enter all the text at once.

Furthermore there is the issue of speed. How in the script do I set the speed?
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Tue Oct 30, 2007 12:48 pm    Post subject:
SleepTime

You can tune the speed of the test application with the SetSleepTime (sleepTime) function.
sleepTime is an integer value indicating the interval (in milliseconds) the script will be inactive between commands.

MouseMoveTime

The time duration of a mouse move operation can be set in milliseconds with the MouseSetMoveTime(moveTime) function.
A moveTime of 0 will move the mouse instantly.

KeyPressTime

You can set the time duration of one key press in milliseconds in the SendKeys() function.

Jenö
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
jasong



Joined: 26 Oct 2007
Posts: 49
Location: Texas

PostPosted: Wed Oct 31, 2007 7:50 pm    Post subject: settings appear to ignore MouseMoveTime
KeyPressTime is working great but the mouse is moving slowly.
I have set the MouseMoveTime with:
Code: click into code to enlarge

    Ranorex.MouseSetMoveTime(1)


Is this the correct usage?

Jason


Last edited by jasong on Wed Nov 07, 2007 1:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Fri Nov 02, 2007 10:39 am    Post subject:
Yes, by default the mouse should now instantly move from one position to the next, unless you specify another value for 'moveTime' in the action methods (e.g. RxMouseClickControl, RxMouseClickElement, ...).

If you specify a value for moveTime in an action method, the specified moveTime will be used for that call to the method.

Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
jasong



Joined: 26 Oct 2007
Posts: 49
Location: Texas

PostPosted: Wed Nov 07, 2007 1:32 am    Post subject: hooray, no mouse movement at all
I removed all mouse movement parameters from the actions (e.g. MouseClick) and now actions are so fast, I have to insert some sleep times.

Thanks a ton, this is great!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum