cancel
Showing results for 
Search instead for 
Did you mean: 

How do we pass multiple values for object property under NameMapping

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

Re: How do we pass multiple values for object property under NameMapping

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.  

hkim5
Staff

Re: How do we pass multiple values for object property under NameMapping

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
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors