jsc
12 years agoRegular Contributor
Web tests without name mapping / identifying objects through unique ids?
Hi all,
I am currently starting the automated test of a browser-based application.
In a discussion with one of the developers about mapping objects (every object gets its own application-wide hard-coded id), we thought about adapting the test to possible changes in the structure of the application.
for example some panel is mapped like this:
Aliases.browser.pageHttpXYZ.panel2.panel.panel.panel1.panel.panel.panel.panel1.
panel.panel2.table.cell2.panelSettingsRepositoryExcelSele
currently if for example there will be an extra panel in one of the top levels or one of the top level panels will be removed the whole test will fail and has got to be updated manually.
Is there any possiblity to avoid such problems by mapping objects not through the structure (and therefore not through the name mapping) but through an unique identifier and not using name mappings?
As I am at the start of the automation, I try to choose the best solutions that is as much flexible on changes and does not create to much overhead maintaining the test.
I am open to any help
- web pages related to this
- own experiences and good / bad solutions (that have to be avoided)
Thanks a lot.
Joachim
I am currently starting the automated test of a browser-based application.
In a discussion with one of the developers about mapping objects (every object gets its own application-wide hard-coded id), we thought about adapting the test to possible changes in the structure of the application.
for example some panel is mapped like this:
Aliases.browser.pageHttpXYZ.panel2.panel.panel.panel1.panel.panel.panel.panel1.
panel.panel2.table.cell2.panelSettingsRepositoryExcelSele
currently if for example there will be an extra panel in one of the top levels or one of the top level panels will be removed the whole test will fail and has got to be updated manually.
Is there any possiblity to avoid such problems by mapping objects not through the structure (and therefore not through the name mapping) but through an unique identifier and not using name mappings?
As I am at the start of the automation, I try to choose the best solutions that is as much flexible on changes and does not create to much overhead maintaining the test.
I am open to any help
- web pages related to this
- own experiences and good / bad solutions (that have to be avoided)
Thanks a lot.
Joachim