hunggsta
12 years agoOccasional Contributor
AWTComponent has unique name each time tested app is ran...TC cannot find component.
I have been using Test Complete for awhile and just got into name mapping. For my java application that I am testing, the AWTComponent name gets appended with a different ID number each time it is ran. This makes test complete not able to find the object.
I have something like:
Sys["Process"]["javaw"]...["GPanel-133345"]
So the 133345 in ["GPanel-133345"] is not there the next time the tested app is ran. Seems like a new identifier gets assigned and Test Complete cannot find it.
I've been stuck on this issue for a day and a half..so any help would be greatly appreciated.
I have something like:
Sys["Process"]["javaw"]...["GPanel-133345"]
So the 133345 in ["GPanel-133345"] is not there the next time the tested app is ran. Seems like a new identifier gets assigned and Test Complete cannot find it.
I've been stuck on this issue for a day and a half..so any help would be greatly appreciated.
Hi Hung,
You can try using Name Mapping's Extended Search Criteria or Required Children to map the panel with dynamic properties. All these features are described in the Creating Reliable Tests For Dynamic Objects with Name Mapping video - I suggest that you watch it.