Reply
Highlighted
Occasional Contributor
Posts: 9
Registered: ‎05-15-2017

2 Root name mapping nodes and mapped item copies created for tested website

Hi all,

 

I am having an issue with namemapped items when running TestComplete keyword tests.

Items are returned as not existing and I have to remap the items.

 

NOTE 1: I have  looked already at dynamically generated values in relation to objects and am using wildcards to filter out what I have identified as the variable portion of the dynamic ids.

 

I have noticed the following in relation to this issue for my mapped application and the namemapped items.

 

1) There are 2 Root/Parent nodes under the namemapping editor for my testsite. Anyone know why this would happen? My test site URL is not changing, at least not what is displayed in the address bar, so I don't understand why I have 2 Root nodes for the same website in the namemapping editor.

 

2) Due to issue 1 above, what I am noticing is that when I run my keyword tests they may run fine a number of times (I generally do 3 runs after creation and debugging the tests to ensure they run correctly) but when I run a test that hasn't been run for some time (maybe a week between runs) suddenly many objects can no longer be found.

When I remap the objects it tends to be the case that failed object is found under the "other" root/parent node in the namemapping editor.

NOTE 2: I have ended up re-mapping many objects due to previous "not found" issues. Therefore most objects I'm examining now have 2 mappings, 1 under each of the separate parent nodes.

 

For example

 

Parent/Root nodes: Parent1, Parent2

 

Object

Parent1_Dialog1_Textbox1_Button1

Parent2_Dialog1_panel2_Button1

 

So the same object (in my example a button)ends up being identified and mapped under 2 different Parents. The path from the parent to the final child object is also usually different in some part e.g. "....panel2..." above for Parent2

 

My main questions are:

1)Why is the namemapping creating 2 separate nodes when my website URL does not change?

2) why after multiple successful test runs can the object suddenly not be found.

3) why the apparent switch in the namemapping identification from one Parent/Root to another between test runs?

 

Apologies for the long description, trying to communicate my issue as clearly as I can.

 

Thanks.

 

Posts: 423
Kudos: 268
Solutions: 32
Registered: ‎10-21-2016

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Hi,

 

Good be in detail always Smiley Happy

 

Can you share the Parent1 and Parent2 properties which you mapped in Namemapping

____________________________________________________
Thanks
Shankar R

“You must expect great things from you, before you can do them”

Occasional Contributor
Posts: 9
Registered: ‎05-15-2017

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Hi Shankar, 

 

I don't know how to copy the whole list of properties for the namemapped items. Can I export them somehow or are there only specific properties that you need me to send?

Posts: 423
Kudos: 268
Solutions: 32
Registered: ‎10-21-2016

Re: 2 Root name mapping nodes and mapped item copies created for tested website

No, Just share the like below,

 

mapped_property.PNG

____________________________________________________
Thanks
Shankar R

“You must expect great things from you, before you can do them”

Occasional Contributor
Posts: 9
Registered: ‎05-15-2017

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Occasional Contributor
Posts: 9
Registered: ‎05-15-2017

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Occasional Contributor
Posts: 9
Registered: ‎05-15-2017

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Namemapping issue.jpg

Posts: 423
Kudos: 268
Solutions: 32
Registered: ‎10-21-2016

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Hmmm, This looks strange.

 

Can you provide the screensoht cliking Edit on both objects. Just want to make sure whether any of the property is differenct.

____________________________________________________
Thanks
Shankar R

“You must expect great things from you, before you can do them”

Occasional Contributor
Posts: 9
Registered: ‎05-15-2017

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Here you SimplifyingAssurance.jpgassurancesimplified.jpg

Posts: 423
Kudos: 268
Solutions: 32
Registered: ‎10-21-2016

Re: 2 Root name mapping nodes and mapped item copies created for tested website

Looking at your properties, I'm seeing only Id is different but i don't think that is causing this issue.

____________________________________________________
Thanks
Shankar R

“You must expect great things from you, before you can do them”

Polls
How do you create automated UI tests?
How many tests do you have?
How many tests do you run in parallel
Testing on Beta browses?
Do you currently perform or look to perform testing of websites on mobile devices?
Do you currently perform or look to perform testing of native mobile apps?
Are you driving data in your tests from external sources?
What are you using to drive external data?