jimsmith_1
14 years agoContributor
Why does TC create new pages in NameMapping when the page is mapped already?
I've noticed the following when recording new keyword tests in TestComplete...
I interact with an object on a new page.
TC records the interaction in the keyword test and maps the object to a new page.
For example "PageExtranet" recognised via URL http://recruitmenttest/xyzextranet/register.htm.
Now, I know that I will be running this test in different environments, not just the "recruitmenttest" environment where I am doing my recording.
So, I modify the page URL recognition string to http://*/xyzextranet/register.htm. so that the page will be found in all environments where I run.
However, when I subsequently record an interaction with another object on the same page, TC ignores my existing mapping.
It creates an entirely new page mapping called "PageExtranet1" recognised via URL http://recruitmenttest/xyzextranet/register.htm.
So I now have the same page mapped twice. There are some pages I now have mapped six times.
Instead of seeing all of the page objects in one place in NameMapping, I have to search through multiple pages.
Does anyone know why TC does this? Is there a way of stopping it?
Thanks, Jim
I interact with an object on a new page.
TC records the interaction in the keyword test and maps the object to a new page.
For example "PageExtranet" recognised via URL http://recruitmenttest/xyzextranet/register.htm.
Now, I know that I will be running this test in different environments, not just the "recruitmenttest" environment where I am doing my recording.
So, I modify the page URL recognition string to http://*/xyzextranet/register.htm. so that the page will be found in all environments where I run.
However, when I subsequently record an interaction with another object on the same page, TC ignores my existing mapping.
It creates an entirely new page mapping called "PageExtranet1" recognised via URL http://recruitmenttest/xyzextranet/register.htm.
So I now have the same page mapped twice. There are some pages I now have mapped six times.
Instead of seeing all of the page objects in one place in NameMapping, I have to search through multiple pages.
Does anyone know why TC does this? Is there a way of stopping it?
Thanks, Jim