NameMapping: Property values of objects getting modified at runtime
Hi
I am
using TestComplete 7.5 to automate a dot net WinForms application. I am facing
an issue with NameMapping functionality of TestComplete. Please find below the
description of the problem
Problem: Name-Mapping properties of certain object gets updated
automatically at runtime by TestComplete.
Details: When an object is mapped, TestComplete stores some properties
of the object and their values to identify that object uniquely. We are facing
a weird issue with some of the objects which is explained below with the help
of an example.
Consider an object
"object1" is mapped which has property value pair as "NativeClrobject.Name
= value1" and after that if another object say "object2" is
mapped which has property value pair as " NativeClrobject.Name =
value2" (Note that same property is being used to identify both the
objects and the objects will be distinguished on the basis of the values of
this property), when we execute the script, it was observed that TestComplete always
fails to recognize either Object1 or Object2. When observed these objects in
the NameMapping, we see that the property of object1 is automatically updated
to " NativeClrobject.Name =Value2" by the TestComplete causing
failure in recognizing "object1" and hence the test cases that are
using "object1" fails saying that the object is not found.
“NativeClrobject.Name” is taken
just as an example, if we use any other property such as Name or WndCaption,
these properties also change at the runtime.
Please let me know what best can
be done in this case.
Thanks in advance.
Regards,
Harshad Kashikar