Forum Discussion

Dhana's avatar
Dhana
Contributor
14 years ago

Handle Property

Hi, a small query regarding Handle property.



I have an function to test the Save and Copy function, which get copies to Paint. Now, when i play back my script, it runs fine and even the Region checkpoint shows me pass but the TestLog displays an error message, which was



" Cannot obtain the rectangle of the window with handle 4132200 ",



When I checked, the Handle property which contains interger, displays random numbers when each time Paint has been opened freshly and results in the above error. 



Would anyone say me how to avoid this Handle property to have my script to show green result.



Thanks.  

5 Replies

  • Hi,


    Could you please post here the script line that actually causes the error message?


    Thanks in advance.

    Ann

  • Hi Ann, you can refer to the attachment for the details you required and also i guess it has nothing to do with the Handle Property which i have mentioned in my first post. But still i can't guess why is that error occurring.. If u hav any idea pls share with me.  



    Thanks.




  • Hi,


    As far as I can see, you are using low-level procedures. So, I can only suppose why the issue occurs.

    The error that you obtained means that the low-level procedure refers to the window that no more exists. This error typically occurs if the tested object, window or control or its parent object was deleted or recreated during the method call or before it.


    I suggest you to check whether all the initial conditions of the test run are the same as they were when you recorded this test. You can also try to re-record these low-level procedures.


    I hope this helps.

    Ann

  • Thanks Ann, i have tried with rerecording the LLP for huge counts but results are same. Anyway will try to analysis with this still further, mean while is there anyother method to use TC other than using low level procedure for recroding and playbacking the scripts?



    Please guide me in this..
  • Hi


    Could you please specify what kind of applicaton (C++Builder, .NET, etc.) you are testing? And what is the test goal and testing steps?


    Thanks in advance.


    Ann