Page 1 of 1

speed down the playback or actions

Posted: Wed Mar 28, 2018 8:08 am
by CGMuser
Hello ...

at first, sorry for my english ;-)

Some people want to speed-up the script and actions, BUT i want to have it slower ....
Our GUI is very complex, and i have somethimes a little trouble with mouse and keyboard actions.
So, i want to make the script slower.... generally. Mouse-actions, button-clicks and keyboard-inputs.

Could i realize it with:

Code: Select all

 Mouse.DefaultMoveTime = 800;  
 Keyboard.DefaultKeyPressTime = 500;  
 Delay.SpeedFactor = 0.4; 
in the program.cs or another user code section ???

Re: speed down the playback or actions

Posted: Wed Mar 28, 2018 11:33 am
by odklizec
Hi,

In my opinion, slowing test down is not a solution. A proper solution would be to add WaitForExists/NotExists actions wherever in your test you expect a change of GUI, e.g. after switching between pages/tabs, opening dialogs, loading lists and so on. Changing speed of test may help in some case, but it will definitely not solve all of such problems. Some of my tests runs over 5 hours and they are stable only because of extensive use of WaitFor action. When I started with them, I too thought about slowing tests down, but it was definitely a bad idea. After implementing WaitFor actions, the tests are rock solid! ;)

Re: speed down the playback or actions

Posted: Thu Mar 29, 2018 4:30 pm
by CGMuser
many thanks ....
ok, we will think about it ...
But a "slow motion" option, could be very interesting ....