From: Jean-Francois P. <jfp...@ya...> - 2006-04-29 01:45:55
|
Hello, I am still going on further with the GUI tests of the HiveBoard application. Currently I am testing the "drawing tools", so far everything was fine, but now I am testing the "free hand drawing" tool which works a follows: 1- user presses mouse button 1 2- user moves mouse to draw (all events are listened to by the application to actually draw) 3- user releases mouse button 1 I tried to record such a sequence with Costello (I have used the "Capture all actions (incuding mouse motion)" menu). But strangely the only recorded steps in my script are: - drag - drop surrounded by mousemove events (but no mouse_move event between drag and drop steps). Question 1 => Is this normal behavior of Costello? Is there a way to have actual recording of these events? Ok, so I tried to "trick" Costello: I captured all actions (no mouse move), I clicked on several points, faking to draw some shape on the board; I saved the script and I changed it by hand, added a drag at the beginning and a drop at the end, replace all clicks by mouse_move events. Then I tried to run the script under Costello, this seems to work but... Events are played too fast by Costello! My application could only draw the first 4 mouse moves then it drew a straight line! I could eventually make this work by setting "slow display" in Costello. The next problem is that simulating a smooth draw (based on mouse motion) through mouse clicks is not as smooth as I would like (I end up with several small line segments drawing my curve). Question 2 => is there a better way to have really smooth recording of motion events in Costello? Anyway, let's go on; I keep this trick for the time being, even though the drawing is not very smooth. Nex issue: this script is part of a big sequence of test scripts (currently a few dozens, but up to one hundred when I have covered all major use cases), and I don't want all my tests to be executed at slow pace! Question 3 => would it be possible to have a "slow" attribute settable in a "sequence" tag? I have worked around that problem by putting the mouse motion events (+drag/drop) into a script that has the "slow" attribute set to true, and including this script in the other part of the script (the part that would initialize user settings before starting to draw). This is a bit heavy but it works! However, the slow mode is too slow (;-)) Question 4 => Is it possible to tune the pace of events when the "slow" attribut is set (without affecting other tests in normal mode?) Ok, that's a lot of questions! I thank you in advance for any feedback. Cheers Jean-Francois ___________________________________________________________________________ Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Rendez-vous sur http://fr.yahoo.com/set |