Ask a Question

How do we pass multiple values for object property under NameMapping

SOLVED
jayanth7782
Visitor

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

2 REPLIES 2
Marsha_R
Community Hero

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
hkim5
Staff

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 :

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/cond...

 

Best,
Justin Kim
cancel
Showing results for 
Search instead for 
Did you mean: