cancel
Showing results for 
Search instead for 
Did you mean: 

Parameterize Name mapping attributes

0 Kudos

Parameterize Name mapping attributes

For example:  If we can paramertize the name mapping we can easily distinguish the IDs in processes.  This way it can be unique and it can be used in the test. 

7 Comments
Community Hero

Property values for mapped objects can be either a constant string or a project variable.  So, for your example, if you upon starting the application capture the ID from the process, you can assign that to the project variable.  You can then utilize that variable in the mapping. 

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

Frequent Contributor

Perfect, thank you I got my answer 

Community Manager
Status changed to: Implemented
Community Manager
Status changed to: Implemented

Implemented in TestComplete 12.31

Frequent Visitor

I am aware that you can do either or but what if you want to mix the two? For instance if my site is www.mysite.com and my test site it www.qa.mysite.com is there a way were when NameMapping I can use something like (Property, URL)/settings/account so that no matter which url I am testing it uses the same mappings?

 

I also have my own post about this: https://community.smartbear.com/t5/TestComplete-Functional-Web/NameMapping-Can-You-Use-A-Project-Var... 

 

Thanks in advance.

Community Hero

@TylerSadler There is an option called "Conditional Mapping" where you can use AND/OR logic for the property values.  That way you can have exactly what you're asking.

Frequent Visitor

@tristaanogre Thank you.