[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
article

Robula+: an algorithm for generating robust XPath locators for web testing

Published: 01 March 2016 Publication History

Abstract

Automated test scripts are used with success in many web development projects, so as to automatically verify key functionalities of the web application under test, reveal possible regressions and run a large number of tests in short time. However, the adoption of automated web testing brings advantages but also novel problems, among which the test code fragility problem. During the evolution of the web application, existing test code may easily break and testers have to correct it. In the context of automated DOM-based web testing, one of the major costs for evolving the test code is the manual effort necessary to repair broken web page element locators - lines of source code identifying the web elements e.g. form fields and buttons to interact with.

References

[1]
Tonella P, Ricca F, Marchetto A. Recent advances in web testing. Advances in Computers 2014; Volume 93: pp.1-51.
[2]
Chapman P, Evans D. Automated black-box detection of side-channel vulnerabilities in web applications. Proceedings of the 18th Conference on Computer and Communications Security, CCS 2011, ACM: New York, NY, USA, 2011; pp.263-274,
[3]
Bruns A, Kornstadt A, Wichmann D. Web application tests with Selenium. IEEE Software 2009; Volume 26 Issue 5: pp.88-91.
[4]
Chang TH, Yeh T, Miller RC. GUI testing using computer vision. Proceedings of the 28th ACM Conference on Human Factors in Computing Systems, CHI 2010, ACM, 2010; pp.1535-1544,
[5]
Thummalapenta S, Devaki P, Sinha S, Chandra S, Gnanasundaram S, Nagaraj DD, Sathishkumar S. Efficient and change-resilient test automation: an industrial case study. Proceedings of the 35th International Conference on Software Engineering, ICSE 2013, IEEE Press, 2013; pp.1002-1011,
[6]
Yandrapally R, Thummalapenta S, Sinha S, Chandra S. Robust test automation using contextual clues. Proceedings of the 2014 International Symposium on Software Testing and Analysis, ISSTA 2014, ACM, 2014; pp.304-314,
[7]
Massol V, Husted T. JUnit in Action. Manning Publications Co.: Greenwich, CT, USA, 2003.
[8]
Leotta M, Clerissi D, Ricca F, Tonella P. Capture-replay vs. programmable web testing: an empirical assessment during test case evolution. Proceedings of 20th Working Conference on Reverse Engineering, WCRE 2013, IEEE, 2013; pp.272-281,
[9]
Leotta M, Stocco A, Ricca F, Tonella P. Reducing web test cases aging by means of robust XPath locators. Proceedings of 25th International Symposium on Software Reliability Engineering Workshops, ISSREW 2014, IEEE, 2014; pp.449-454,
[10]
Montoto P, Pan A, Raposo J, Bellas F, Lopez J. Automated browsing in Ajax websites. Data & Knowledge Engineering 2011; Volume 70 Issue 3: pp.269-283.
[11]
Leotta M, Clerissi D, Ricca F, Tonella P. Approaches and Tools for Automated End-to-End Web Testing. Advances in Computers. Elsevier, 2016; Volume 101: pp.193-237.
[12]
Choudhary SR, Zhao D, Versee H, Orso A. WATER: Web application TEst repair. Proceedings of the 1st International Workshop on End-to-End Test Script Engineering, ETSE 2011, ACM, 2011; pp.24-29,
[13]
Mirzaaghaei M. Automatic test suite evolution. Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engineering, ESEC/FSE 2011, ACM, 2011; pp.396-399,
[14]
Leotta M, Clerissi D, Ricca F, Spadaro C. Improving test suites maintainability with the page object pattern: an industrial case study. Proceedings of 6th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2013, IEEE, 2013; pp.108-113,
[15]
Christophe L, Stevens R, De Roover C, De Meuter W. Prevalence and maintenance of automated functional tests for web applications. Proceedings of the 30th International Conference on Software Maintenance and Evolution, ICSME 2014, IEEE, 2014; pp.141-150,
[16]
Collins E, <familyNamePrefix>de</familyNamePrefix>Lucena V. Software test automation practices in agile development environment: an industry experience report. Proceedings of the 7th International Workshop on Automation of Software Test, AST 2012, IEEE, 2012; pp.57-63,
[17]
Leotta M, Clerissi D, Ricca F, Spadaro C. Comparing the maintainability of Selenium WebDriver test suites employing different locators: a case study. Proceedings of 1st International Workshop on Joining AcadeMiA and Industry Contributions to testing Automation, JAMAICA 2013, ACM, 2013; pp.53-58,
[18]
Rao G, Pachunoori A. Optimized identification techniques using XPath. Technical Report MSU-CSE-00-2, IBM Developerworks, 2013.
[19]
Wohlin C, Runeson P, Höst M, Ohlsson M, Regnell B, Wesslén A. Experimentation in Software Engineering: An Introduction. Kluwer Academic Publishers: Norwell, MA, USA, 2000.
[20]
Kowalkiewicz M, Orlowska ME, Kaczmarek T, Abramowicz W. Robust web content extraction. Proceedings of the 15th International Conference on World Wide Web, WWW 2006, ACM, 2006; pp.887-888,
[21]
Myllymaki J, Jackson J. Robust web data extraction with XML path expressions. IBM Research Report, 2002.
[22]
Dalvi N, Bohannon P, Sha F. Robust web extraction: an approach based on a probabilistic tree-edit model. Proceedings of the 35th ACM SIGMOD International Conference on Management of Data, SIGMOD 2009, ACM, 2009; pp.335-348,
[23]
Abe M, Hori M. Robust pointing by XPath language: authoring support and empirical evaluation. Proceedings of the 3rd Symposium on Applications and the Internet, SAINT 2003, IEEE, 2003; pp.156-165,
[24]
Anton T. XPath-wrapper induction by generating tree traversal patterns. Lernen, Wissensentdeckung und Adaptivität, GI Workshops, LWA 2005, DFKI, 2005; pp.126-133.
[25]
Grechanik M, Xie Q, Fu C. Maintaining and evolving GUI-directed test scripts. Proceedings of the 31st International Conference on Software Engineering, ICSE 2009, IEEE, 2009; pp.408-418,
[26]
Thummalapenta S, Singhania N, Devaki P, Sinha S, Chandra S, Das AK, Mangipudi S. Efficiently scripting change-resilient tests. Proceedings of the ACM SIGSOFT 20th International Symposium on the Foundations of Software Engineering, FSE 2012, ACM, 2012; pp.41:1-41:2,
[27]
Thummalapenta S, Sinha S, Singhania N, Chandra S. Automating test automation. Proceedings of the 34th International Conference on Software Engineering, ICSE 2012, IEEE Press, 2012; pp.881-891,
[28]
Pirzadeh H, Shanian S. Resilient user interface level tests. Proceedings of the 29th ACM/IEEE International Conference on Automated Software Engineering, ASE 2014, ACM, 2014; pp.683-688,
[29]
Leotta M, Stocco A, Ricca F, Tonella P. Automated Generation of Visual Web Tests from DOM-based Web Tests. Proceedings of 30th ACM/SIGAPP Symposium on Applied Computing, SAC 2015. ACM: Salamanca, Spain, 2015; pp.775-782,
[30]
Leotta M, Stocco A, Ricca F, Tonella P. Meta-Heuristic Generation of Robust XPath Locators for Web Testing. Proceedings of 8th IEEE/ACM International Workshop on Search-Based Software Testing, SBST 2015. IEEE: Florence, Italy, 2015; pp.36-39,
[31]
Leotta M, Stocco A, Ricca F, Tonella P. Using Multi-Locators to Increase the Robustness of Web Test Cases. Proceedings of 8th IEEE International Conference on Software Testing, Verification and Validation, ICST 2015. IEEE: Graz, Austria, 2015; pp.1-10,

Cited By

View all
  • (2024)Towards a Robust Waiting Strategy for Web GUI Testing for an Industrial Software SystemProceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering10.1145/3691620.3695269(2065-2076)Online publication date: 27-Oct-2024
  • (2024)A Gaming Quest to Improve Web Locators RobustnessProceedings of the 3rd ACM International Workshop on Gamification in Software Development, Verification, and Validation10.1145/3678869.3685684(10-17)Online publication date: 13-Sep-2024
  • (2024)Towards Predicting Fragility in End-to-End Web TestsProceedings of the 28th International Conference on Evaluation and Assessment in Software Engineering10.1145/3661167.3661179(387-392)Online publication date: 18-Jun-2024
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Journal of Software: Evolution and Process
Journal of Software: Evolution and Process  Volume 28, Issue 3
March 2016
81 pages
ISSN:2047-7473
EISSN:2047-7481
Issue’s Table of Contents

Publisher

John Wiley & Sons, Inc.

United States

Publication History

Published: 01 March 2016

Author Tags

  1. DOM selector
  2. maintenance effort reduction
  3. robust XPath locator
  4. test cases fragility
  5. web testing

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 03 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Towards a Robust Waiting Strategy for Web GUI Testing for an Industrial Software SystemProceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering10.1145/3691620.3695269(2065-2076)Online publication date: 27-Oct-2024
  • (2024)A Gaming Quest to Improve Web Locators RobustnessProceedings of the 3rd ACM International Workshop on Gamification in Software Development, Verification, and Validation10.1145/3678869.3685684(10-17)Online publication date: 13-Sep-2024
  • (2024)Towards Predicting Fragility in End-to-End Web TestsProceedings of the 28th International Conference on Evaluation and Assessment in Software Engineering10.1145/3661167.3661179(387-392)Online publication date: 18-Jun-2024
  • (2024)Investigating the robustness of locators in template-based Web application testing using a GUI change classification modelJournal of Systems and Software10.1016/j.jss.2023.111932210:COnline publication date: 1-Apr-2024
  • (2024)Tree-Based Synthesis of Web Test Sequences from Manual ActionsTheoretical Aspects of Software Engineering10.1007/978-3-031-64626-3_14(242-260)Online publication date: 29-Jul-2024
  • (2024)An empirical study to compare three web test automation approachesJournal of Software: Evolution and Process10.1002/smr.260636:5Online publication date: 25-Apr-2024
  • (2023)Semantic Test Repair for Web ApplicationsProceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering10.1145/3611643.3616324(1190-1202)Online publication date: 30-Nov-2023
  • (2023)Enhancing Web Applications Observability through Instrumented Automated BrowsersJournal of Systems and Software10.1016/j.jss.2023.111723203:COnline publication date: 13-Jul-2023
  • (2022)Similarity-based Web Element Localization for Robust Test AutomationACM Transactions on Software Engineering and Methodology10.1145/357185532:3(1-30)Online publication date: 22-Nov-2022
  • (2022)Landmarks and regions: a robust approach to data extractionProceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation10.1145/3519939.3523705(993-1009)Online publication date: 9-Jun-2022
  • Show More Cited By

View Options

View options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media