SvetaG
17 days agoOccasional Contributor
Dynamic Object
Hi All! HELP!!! How exactly can I update Dynamic Mapped Object, if after each run - numbers on the end changed for the same field? Thanks!
HI SvetaG
you can make use of an option called - Conditional Mapping technique which will solve your requirement, Please find the reference link - Name Mapping - Conditional Mapping
Please let me know if this was helpful.
Hi SvetaG
torus has a viable solution there, and I have used that one, but it is quite an intensive setup.
I suggest trying Mr_Bro 's reference to conditional mapping and using wildcards for your object that is changing names. That will give you a quicker solution.
I agree with SvetaG to go ahead and try out Mr_Bro 's suggestion. However, I don't think it's that much time savings because you will still have to delete all the extra name mappings and you will still have to go through all of your scripts and delete all the old name mappings if one of your goals was to have a cleaned up NameMap. Additionally, both my solution and Mr_Bro 's solution both take advantage of the wildcard (*) character. However, Mr_Bro 's solution is probably like Marsha said, the cleaner way to solve the problem.
I'm pretty sure that, after you use Mr_Bros solution or my solution, any time you click that UI button (UI object) in the future, it will use the alias with the asterisk (wildcard, *) and stop making new aliases. If your goal was to have only one Alias in the NameMapping for that UI object, (unless I'm missing something), then, since you already generated some aliases for that object that you didn't want to create, you will still have to delete all those extra aliases that you already created but didn't want in the name mapping and then go into the tests which use those aliases and delete the reference to those junk aliases in the tests.