Forum Discussion
Are you able to provide the exact URL you are having issues with? The example you have provided "http://www.google.com/page/*" is very vague.
Also, have a look at Name Mapping - Conditional Mapping Criteria
Below is the different url of different pages and I am using https://int-apps.tuvsud.com/GCN/Pages/* in Project variable so that all the objects will map under single page.
https://int-apps.tuvsud.com/GCN/Pages/Default
https://int-apps.tuvsud.com/GCN/Pages/List
https://int-apps.tuvsud.com/GCN/Pages/Probation
- rraghvani10 hours ago
Champion Level 3
This example is based on the website https://www.w3schools.com. I've built the name mapping hierarchy structure shown below.
URL https://www.w3schools.com/css/default.asp
URL https://www.w3schools.com/html/default.asp
Though both pages contain a Title and two buttons "< Home" and "Next >". They belong to different pages of the hierarchy - you have to create individual components so that they have unique relationships between parent and child.
You can modify the hierarchy structure of Aliases, so that you can access the components like so
Aliases.pageCssTutorial.linkHome Aliases.pageCssTutorial.linkNext Aliases.pageJavascriptTutorial.textnodeTitleIf the domain name changes https://www.uat-w3schools.com or https://www.reg-w3schools.com then I can use wildcard to replace uat or reg with "*" so it becomes https://www.*-w3schools.com.
It's vital the get the name mapping structure correct, for TestComplete to identify the correct objects. Each child object, must have a parent object.
- HirendraSingh9 hours agoContributor
So, you mean to say first I will map all the pages and then I will replace its url with wildcards in name mapping, so in my case it can be as below. Also does this wildcard work in constant mode also like shown in SS.
https://*-apps.tuvsud.com/GCN/Pages/Default
https://*-apps.tuvsud.com/GCN/Pages/List
https://*-apps.tuvsud.com/GCN/Pages/Probation