Ask a Question

Name Mapping in Android

SOLVED
StephenWoolhead
New Contributor

Name Mapping in Android

Hi all, newbie here, just getting to grips with test complete and I can't seem to get name mapping to work.

 

I'm connected to a physical device, click Map object from screen, I can pick an item from the appium tree and ist shows me something like

 

Mobile.Device().FindElementByXPath("//ancestor::*[*[@text=\"Device ID\"]]")

 

I click OK and nothing happens?

 

Any advice?

 

Thanks

 

Stephen.

1 ACCEPTED SOLUTION

Accepted Solutions
hkim5
Staff

Re: Name Mapping in Android

@StephenWoolhead 

for the appium based mobile support, namemapping hasnt been implemented yet.

this means if you record your tests, you'll see that the objects are just geting called as Mobile.Device.FindElement(X) instead of something like Aliases.device.button

 

namemapping should be included in the next release 

Best,
Justin Kim

View solution in original post

4 REPLIES 4
mattb
Staff

Re: Name Mapping in Android

Hi, 

Did the object you mapped get added to the name mapping repository? It would sit under mapped objects section. Or is that where the object is not appearing?

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/inde... 

StephenWoolhead
New Contributor

Re: Name Mapping in Android

Just not appearing, even when I try and map things directly in the 'Name Mapping' sections

mattb
Staff

Re: Name Mapping in Android

Interesting, would you mind filling out a support ticket so we can get to the bottom of this!

https://support.smartbear.com/testcomplete/message/ 

hkim5
Staff

Re: Name Mapping in Android

@StephenWoolhead 

for the appium based mobile support, namemapping hasnt been implemented yet.

this means if you record your tests, you'll see that the objects are just geting called as Mobile.Device.FindElement(X) instead of something like Aliases.device.button

 

namemapping should be included in the next release 

Best,
Justin Kim

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: