cancel
Showing results for 
Search instead for 
Did you mean: 

Mappedname is being reused by another control

SOLVED
New Contributor

Mappedname is being reused by another control

Hello,

 

I'm a newbie to the TestComplete tool.  I'm evaluating it for some automated testing.

I was recording the clicking of this link named "Documents".  You can see it being highlighted in recording mode.

img2.png

In the keyword test item, I open the On-screen action and I see that the object mapped name is NameMapping.Sys.browser.pageUnderiterPortal.linkSubmission.

img3.png

But when I clicked on "Highlight" button it shows me another control on the tested screen, where the name William is highlighted.

img4.png

Is there a way I can update the mappedname of the object that I want to click i.e. "Documents"?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Mappedname is being reused by another control

What it sounds like is that the properties of being used to map the component are not distinct enough to differentiate between the different links.  You'll need to first of all go back to where that "Submission" link is and edit the mapping of that component so that it is distinct.   Things like caption, text, label, etc., can help.   Then, when you get to the next page, you can remap the new component without issue.

 

Just as a note -> This is a standard "problem" with recording tests.  You have very little control over how the components are mapped.  99.99999999% of the time, after you record a test, you should go back and edit, adjust, insert, etc., mapping and code logic to make sure that the test is robust and will work repeatedly.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
4 REPLIES 4
Highlighted
Community Hero

Re: Mappedname is being reused by another control

What it sounds like is that the properties of being used to map the component are not distinct enough to differentiate between the different links.  You'll need to first of all go back to where that "Submission" link is and edit the mapping of that component so that it is distinct.   Things like caption, text, label, etc., can help.   Then, when you get to the next page, you can remap the new component without issue.

 

Just as a note -> This is a standard "problem" with recording tests.  You have very little control over how the components are mapped.  99.99999999% of the time, after you record a test, you should go back and edit, adjust, insert, etc., mapping and code logic to make sure that the test is robust and will work repeatedly.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Contributor

Re: Mappedname is being reused by another control

Thank you, I was able to get it working with your suggestion.  I've used UiPath as an RPA tool and I was hoping TestComplete had similar object recognition functionality.

Community Hero

Re: Mappedname is being reused by another control

TestComplete has a VERY robust object recognition technology in the Object Browser and in NameMapping.  However, it takes fine-tuning at times. A strict "record" doesn't always work well because, as you discovered, many components have very similar properties.  You need to be deliberate at times to make sure that objects are properly identified.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Super Contributor

Re: Mappedname is being reused by another control

I would go so far as to say you need to be deliberate always. Good advice.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors