Forum Discussion
NameMapping is failing for me for Keyword Tests copied from one Project to another Project within the SAME Project Suite - yes, I used the "Add Existing Item" method to copy the test...
I see unresolved NameMapping issues going back over 5 years in this forum...
I understand how NameMapping might help handle system transitions - but, like most things in life, I find not calling things by their 'true' name causes more problems than it resolves...
My SOLUTION is to NOT use NameMapping - most simple editors can help make find/replace names in your code when needed :)
I understand you have an existing script that runs perfectly in project A, and in project B you used "Add Existing Item" to add project A script; however, this script fails to run under project B as it is not finding the NameMapping references.
If I correctly understood your scenario, you are missing an important fact that each project also contains it's own NameMapping database that is not shared with other projects in the suite.
You could design you projects to share scripts as well as the required NameMapping https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-to/merge.html and that requires careful consideration and planning in addition to deep understanding of NameMapping https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/index.html
💬 Found the answer helpful? Give it a Kudos by clicking Like!
✅ Got your issue resolved? Click Mark as Solution so others can find it quickly.
- JAvila123419 days agoNew Contributor
Dear Hassan, thanks for sharing this info - this is not my question thread (just lurking since I have same issue), so I leave J.Gibbs to decide if this resolves....
Reading info you shared, seems the nameMapping needs to be performed again and again, after new nameMappings are added or changed :( Also what about mapping of three (or four or five..) NameMappings? is that even possible? Is there a limit?
All considered I still don't see NameMapping value-added for my current project, and have disabled it. Thanks for sharing info all the same, perhaps may help a future project :)