How do we pass multiple values for object property under NameMapping
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do we pass multiple values for object property under NameMapping
I have requirment to map multiple values for single property i.e. say "WPFText" with multiple values say Visa,MAsterCard and American Express.
Can we use pipeline symbol to pass values like "Visa|MasterCard|American Express" which are possible values for object identification
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would use this with the Or option for each of your values
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/if-then.html
If you are working in scripts instead of keyword tests, you can build a little keyword test with this and then use Convert to Script to get your actual code.
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you need to have the object/element you are referring to on screen, then you can right click -edit that object in name mapping - in the bottom left of the new pop up window, you will see conditional mode,
where you can add in boolean operators like OR to say WPFtext = Visa OR WPFtext = Mastercard etc etc.
details in the link below :
Justin Kim
