cancel
Showing results for 
Search instead for 
Did you mean: 

Name mapping

SOLVED
Occasional Contributor

Name mapping

Hi, I am looking for guidance on Name Mapping.

 

I am relatively new to TestComplete and wanted to gather ideas about what forum users consider the best approach to creating the Name Mapping.

 

  • Is it  best to allow  Alias and Name mapped objects to be automatically generated ?
  • How do I prevent incredibly long aliases from being generated? 
  • Do I populate the Name mapping area with all the objects in my application before starting to script?

All ideas around this topic will be most gratefully received

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Name mapping

Auto generated namemapping is a great starting point and to see how your application is laid out, but will never be the final step for reliable tests. You should always go back in and tweak to provide good identification properties, adjust extended find, etc...

 

Aliases are controlled by you, you can move the around, group and re-arrange however you want regardless of the length / size of the mapped objects. That's why it's there, so you can have shorter paths in your code that are relatively static in the chance you need to tweak the mapped object heirarchy. 

 

My approach is to do one section at a time. Ex:

  1. Map the login screen, then create scripts for interacting with it. 
  2. Map the next screen, then create scripts for interacting with it. 
  3. Etc...

 

If you want a good playground to testing approaches with some defined challenges check out:

 

http://uitestingplayground.com/


Thanks,
Carson

Click the Accept as Solution button if my answer has helped

View solution in original post

4 REPLIES 4
Community Hero

Re: Name mapping

Auto generated namemapping is a great starting point and to see how your application is laid out, but will never be the final step for reliable tests. You should always go back in and tweak to provide good identification properties, adjust extended find, etc...

 

Aliases are controlled by you, you can move the around, group and re-arrange however you want regardless of the length / size of the mapped objects. That's why it's there, so you can have shorter paths in your code that are relatively static in the chance you need to tweak the mapped object heirarchy. 

 

My approach is to do one section at a time. Ex:

  1. Map the login screen, then create scripts for interacting with it. 
  2. Map the next screen, then create scripts for interacting with it. 
  3. Etc...

 

If you want a good playground to testing approaches with some defined challenges check out:

 

http://uitestingplayground.com/


Thanks,
Carson

Click the Accept as Solution button if my answer has helped

View solution in original post

Occasional Contributor

Re: Name mapping

Thanks useful food for thought.

Community Hero

Re: Name mapping

Couldn't have said it better myself, Carson.

 

Just to add:

 

Don't be afraid of using wildcards.  
Learn Object Spy... use it... love it...
Don't be satisfied with just the basic properties provided... dive deep and find those properties that will help the most with identification

Get friendly with your developers.  Sometimes, especially for Web applications, they can add tags and properties and such that will allow you to be able to uniquely identify objects.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Community Hero

Re: Name mapping

And, as usual Smiley Wink

https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/

and other relevant recordings from the

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

page.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Top Kudoed Authors