Forum Discussion

idriskhan's avatar
idriskhan
Occasional Contributor
13 years ago

Keyword recorrding and playback question

With keyword recording and playback,  during the playback, if the window size of teh application is bigger or smaller than when it was recorded, wil the test run fail, because the window size has changed or the position has changed ?



if it does fail what is the best way to stop the tests from failing for these kind of problems.
  • vajindarladdad's avatar
    vajindarladdad
    Frequent Contributor
    Hi ,

    While recording , if the operation is performed based on co-ordinates it will create problems.



    You can check the properties of each object before performing the operation ..Ex : isVisible , isVisibleOnScreen etc and then perform the operation otherwise terminate the script execution.





    The best method is to map the required objects , write a script to perform operations on these objects and you are done. Otherwise , if you have recorded the test , please try to convert it into the script and modify that script according to your need.



    But still , I would't prefer record and play method. I think writing script for mapped objects is the most secure method for automation.



    I hope this has been of some help.