- tristaanogreEsteemed Contributor
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/managing/modifying/identification-properties.html - Novari-QAFrequent Contributor
Perfect, thank you I got my answer
- TanyaYatskovskaSmartBear Alumni (Retired)Status changed:New IdeatoImplemented
TestComplete provides this feature:
- TanyaYatskovskaSmartBear Alumni (Retired)Status changed:ImplementedtoImplemented
Implemented in TestComplete 12.31
- TylerSadlerNew Contributor
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-Variable-And-Add-To-It-Like-A/m-p/184228
Thanks in advance.
- tristaanogreEsteemed Contributor
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.
- TylerSadlerNew Contributor
tristaanogre Thank you.
Related Content
- 4 years ago
- 4 years ago
- 5 years ago
- 5 years ago