Update namemapping during runtime
Hi,
is it possible to use * in namemapping for example and then update specific namemapping properties during runtime?
For example I have a list of languages which all have the same namemapping radio_button_cs/de/en/pl/es.... and so on now I dont want to map every item (like 100 languages) but only one item with radio_button_* and during my testrun I just want to click on radio_button_cs, radio_button_de or whatever.
So setting the value of the namemapping object before actually working with the object.
In the test I want to write something like <namemapping_object>.property.value = radio_button_de or whatever
Hope its understandable what I am trying to say.
best regards
Yup, understand... however, you can't update namemapping in runtime.
I have two suggestions:
1) Property values of mapped objects can be set to be a Project variable. So, at some point in your test, update the Project.variable value to the appropriate value for the language you want then reference the button. See https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/managing/modifying/identification-properties.html
2) Use FindChild to find the particular radio button you want rather than mapping it. See https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/findchild-method.html