Forum Discussion
rraghvani
Champion Level 3
3 years agoI don't quite understand "is it possible to have Names Mapping also pickup from the If..Then result?" ?
QAStarter
3 years agoOccasional Contributor
The URL which is in NameMapping, this is added automatically when recording
- Marsha_R3 years ago
Champion Level 3
You generally don't change the NameMapping during the test, you change the test to match the name mapping.
You said the If Then statement wasn't working for you. What happened when you tried it?
- QAStarter3 years agoOccasional ContributorIt fails if the url in name mapping is stg and I am passing in QA . It loads the page fine which means “if then” is working for passing in url but after that if I don’t match the NameMapping url to what I’m passing it fails on the first action after loading the page
- Marsha_R3 years ago
Champion Level 3
So are all your environments basically the same after the original URL? In that case, you can make use of wildcards to do the matching of the URL. Look at the section about Using Wildcards in Name Mapping.
https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html