Forum Discussion
Marsha_R
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?
QAStarter
2 years agoOccasional Contributor
It 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_R2 years agoChampion 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
Related Content
Recent Discussions
- 22 hours agodhundley