Forum Discussion
100% agree with Marsha.
That's a pretty horrible way you're doing it. It all looks very fragile, easy to break, and unlikely to work on any other machine.
Can you please tell me what is the appropriate way i should record my test?
- Colin_McCrae9 years agoCommunity Hero
Impossible to say without a better look at the application, it's objects, and their properties.
But, in general .....
Use reliable object properties etc to identify them. Which should get rid of the co-ordinate based clicks. (We have no idea what type of control you're clicking on here so that's a guess.)
And use properties of the object to capture the text, rather than relying on image comparisons.
Both the above should only really be last resorts. And in the case of the co-ordinate based clicks, if you have to use them, you are always best to capture co-ordinates and/or sizes of an object, and possibly it's parent object(s), during the run and use those to calculate the correct co-ordinates yourself. Using recorded ones is VERY fragile and not very portable.
Plus, I'm afraid, simple record and playback does tend to be quite limited. Using a recording as a basis for a test is OK. but you generally have to tidy things up and optimise them to get the most out of it.
- varsha9 years agoOccasional Contributor
Thanks