Forum Discussion
How can I do this "correct NameMapping so that values do not contain localized text"?
https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/basic-mapping-criteria.html and related help topics.
- thaidy3 years agoOccasional Contributor
Sorry, but I did not figure out how to do this.
In this image below I have my object in pageHmi2.ionItem2.button. It is mapping the button "Reinicio por Software" in Portuguese.
In this one I have my object in pageHmi2.ionItem.button. It is mapping the button "Software Reboot" in English.
But when I test in Portuguese, the ionItem does not exist, and gives me error, and in English the ionItem2 does not exist. What I want to do is, whichever the language is, when I execute the test, he knows exactly which button to use or map the same place for every language. Is that possible??
Thank you very much.
Thaidy Deguchi.
- AlexKaras3 years agoChampion Level 3
Hi,
ionItem2 is mapped using contentText property with localized value in Portuguese. With English localization, property's value is in English. It does not match to the required Portuguese value and thus object cannot be found.
As I already wrote, there are two ways to solve this:
-- Either do not use contentText property to map this object (you will need to find some other property which does not change its value from run to run and also does not change its value when switching the language); or
-- Consider NameMapping Configurations - create one configuration for Portuguese localization and another one for English localization and select the needed one during test run.
- thaidy3 years agoOccasional Contributor
I am in the NameMapping window and I already created the english and the portuguese configuration, but how do I link my configuration with my objects?
Related Content
- 5 months ago
Recent Discussions
- 21 hours ago
- 21 hours ago
- 5 days ago