JaredBill
13 years agoOccasional Contributor
Changing Objects
Hello all,
I have been facing an issue in my automated scripts using TestComplete and I'm curious if anyone else has experienced this. What will happen is that I spy on an object and record the object (see below), write my script and then at some point in the future when I run my test it fails. At this point I spy on the object again and it has changed. I know this sounds bizarre but I have had this happen to me more than 10 times now. See my example below and note that the two objects are the same, just written differently:
First Time I spy'ed:
Aliases.ws32.frm_All.lst_UnderlyingPortfolios.lst.lst
Any thoughts on configuration within Test Complete that could correct this? Please note that these two session were against the same software build so there is no chance that the object actually changed. The issue seems to be within TestComplete and how it's viewing objects. Is it possible that if you have recorded the object in your current session that Test complete will use a different version than if you did not(reaching for some logical answer). If so, how can I stabilize this so that I always see the same object?
TestComplete Program Version: 7.52.678.7
Microsoft XP Pro Service Pack 3
Thank you in advance!
-J
I have been facing an issue in my automated scripts using TestComplete and I'm curious if anyone else has experienced this. What will happen is that I spy on an object and record the object (see below), write my script and then at some point in the future when I run my test it fails. At this point I spy on the object again and it has changed. I know this sounds bizarre but I have had this happen to me more than 10 times now. See my example below and note that the two objects are the same, just written differently:
First Time I spy'ed:
Aliases.ws32.frm_All.lst_UnderlyingPortfolios.lst.lst
Second Time I spy'ed:
Aliases.ws32.VBObject("frm_All").VBObject("lst_UnderlyingPortfolios").VBObject("lst").VBObject("lst")
Any thoughts on configuration within Test Complete that could correct this? Please note that these two session were against the same software build so there is no chance that the object actually changed. The issue seems to be within TestComplete and how it's viewing objects. Is it possible that if you have recorded the object in your current session that Test complete will use a different version than if you did not(reaching for some logical answer). If so, how can I stabilize this so that I always see the same object?
TestComplete Program Version: 7.52.678.7
Microsoft XP Pro Service Pack 3
Thank you in advance!
-J