07-30-2010, 08:41 PM
Hi,
I am working with a test that someone wrote a month or two ago using QTP 10. The test used to run just fine on her pc until recently. It now consistently fails (still running on her pc) on the following line:
The Run Error is:
Cannot identify the object "WindowsForms10.SysListView32.a" (of class WinObject).
I re-recorded the "Click" action to check the properties of the newly recorded object against the object that had been working until recently and found the only difference to be the regexpwndclass property. The alphanumeric at the end of the property's value is different now.
Can someone please explain why this is the case? Also, other than re-recording a test when this situation arises, what can I do differently so that the test consistently functions from here forward?
One last related question. I have seen this issue happen in other tests when a test developed on one pc is run on a different pc. Why is this happening and how can I prevent it from doing so?
Thank you very much for your help.
amm
I am working with a test that someone wrote a month or two ago using QTP 10. The test used to run just fine on her pc until recently. It now consistently fails (still running on her pc) on the following line:
Code:
Window("AppName").Window("Tool").WinObject("WindowsForms10.SysListView32.a").Click 44,28
Cannot identify the object "WindowsForms10.SysListView32.a" (of class WinObject).
I re-recorded the "Click" action to check the properties of the newly recorded object against the object that had been working until recently and found the only difference to be the regexpwndclass property. The alphanumeric at the end of the property's value is different now.
Can someone please explain why this is the case? Also, other than re-recording a test when this situation arises, what can I do differently so that the test consistently functions from here forward?
One last related question. I have seen this issue happen in other tests when a test developed on one pc is run on a different pc. Why is this happening and how can I prevent it from doing so?
Thank you very much for your help.
amm