cancel
Showing results for 
Search instead for 
Did you mean: 

AngularJS framework implemented with no unique Id or name mapping for objects

SOLVED
Super Contributor

Re: AngularJS framework implemented with no unique Id or name mapping for objects

My point to replying was to give context to why people find themselves in the position of being asked to create automation and getting answers like talk to dev. They CAN'T necessarily do that. It can leave posters, particularly new ones, with little option when it comes to solving their problems.

New Contributor

Re: AngularJS framework implemented with no unique Id or name mapping for objects

Alex,

Its easier to jump onto conclusion without knowing all the facts.

As i mentioned in my first post, this was a new project and didnt exist when we picked up this tool for test automation.

And I dont agree with your comment that most of the projects blindly use most modern technologies either. I have worked with so many teams and selection of tool always goes through the feasibility test and if its not supporting the applications we are looking to test, its never implemented, no matter if its a open source tool.

 

Super Contributor

Re: AngularJS framework implemented with no unique Id or name mapping for objects

I know exactly nothing about AngularJS. I do know that I have worked on many projects that were very successful without interacting with dev to get them to uniquely identify input elements.

Community Hero

Re: AngularJS framework implemented with no unique Id or name mapping for objects

@GTayal :

 

Hi,

 

Well, I did not mean exactly your project and it is nice to hear that your team/company does pay attention to tools and technologies and their compatibility before actual development. Unfortunately, I saw too many opposite cases...

As a sum-up attempt:

-- Web elements on the page can be identified by either id, or by XPath/CSS/class name or by text;

-- Without provided id, XPath/CSS will be absolute and thus brittle;

-- Identification by class name is not very stable and unique as well (as an example: there may be a round button on the page with the btn-rnd class. I bet that if designers decide to make this button to look like a star, they will just change btn-rnd class name to btn-star one and this will break your test even if the functionality does not change);

-- Search by text is also not unique and not localizable.

 

You may try to identily any web element on the tested page with any other tool (browser's Developer Tools, Selenuim, QTP, whatever else) - without unique and stable IDs provided you will have the same identification problem for any tool.

 

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/
================================
Super Contributor

Re: AngularJS framework implemented with no unique Id or name mapping for objects

Web elements can also be identified by their neighbors, if not directly withing the NameMapping functinality, that within code. 

Community Hero

Re: AngularJS framework implemented with no unique Id or name mapping for objects

Hi,

 

> Web elements can also be identified by their neighbors

Sure. Which effectively means that those elements must be identified in a stable and reliable manner. And quickly, if possible.

Smiley Happy

 

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/
================================