Name mapping
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Map the login screen, then create scripts for interacting with it.
- Map the next screen, then create scripts for interacting with it.
- 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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks useful food for thought.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And, as usual 😉
https://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/
and other relevant recordings from the
https://support.smartbear.com/screencasts/testcomplete/
page.
/Alex [Community Champion]
____
[Community Champions] 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. Posts made by [Community Champions]
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.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
