skip to main content
10.1145/2002931.2002935acmconferencesArticle/Chapter ViewAbstractPublication PagesisstaConference Proceedingsconference-collections
research-article

WATER: Web Application TEst Repair

Published: 17 July 2011 Publication History
  • Get Citation Alerts
  • Abstract

    Web applications tend to evolve quickly, resulting in errors and failures in test automation scripts that exercise them. Repairing such scripts to work on the updated application is essential for maintaining the quality of the test suite. Updating such scripts manually is a time consuming task, which is often difficult and is prone to errors if not performed carefully. In this paper, we propose a technique to automatically suggest repairs for such web application test scripts. Our technique is based on differential testing and compares the behavior of the test case on two successive versions of the web application: first version in which the test script runs successfully and the second version in which the script results in an error or failure. By analyzing the difference between these two executions, our technique suggests repairs that can be applied to repair the scripts. To evaluate our technique, we implemented it in a tool called WATER and exercised it on real web applications with test cases. Our experiments show that WATER can suggest meaningful repairs for practical test cases, many of which correspond to those made later by developers themselves.

    References

    [1]
    N. Alshahwan and M. Harman. Automated session data repair for web application regression testing. In Proceedings of the 2008 International Conference on Software Testing, Verification, and Validation, pages 298--307, Washington, DC, USA, 2008. IEEE Computer Society.
    [2]
    Apache Foundation. The apache open for business project. http://ofbiz.apache.org/, Apr 2011.
    [3]
    B. Daniel, T. Gvero, and D. Marinov. On test repair using symbolic execution. In Proceedings of the 19th international symposium on Software testing and analysis, ISSTA '10, pages 207--218, New York, NY, USA, 2010. ACM.
    [4]
    B. Daniel, V. Jagannath, D. Dig, and D. Marinov. Reassert: Suggesting repairs for broken unit tests. In Proceedings of the 2009 IEEE/ACM International Conference on Automated Software Engineering, ASE '09, pages 433--444, Washington, DC, USA, 2009. IEEE Computer Society.
    [5]
    K. Dobolyi and W. Weimer. Harnessing web-based application similarities to aid in regression testing. In Proceedings of the 20th IEEE international conference on software reliability engineering, ISSRE'09, pages 71--80, Piscataway, NJ, USA, 2009. IEEE Press.
    [6]
    M. Grechanik, Q. Xie, and C. Fu. Maintaining and evolving gui-directed test scripts. In Proceedings of the 31st International Conference on Software Engineering, ICSE '09, pages 408--418, Washington, DC, USA, 2009. IEEE Computer Society.
    [7]
    IBM Research. Coscripter. http://coscripter.researchlabs.ibm.com/coscripter/, Apr 2011.
    [8]
    G. Leshed, E. M. Haber, T. Matthews, and T. Lau. Coscripter: automating & sharing how-to knowledge in the enterprise. In Proceeding of the twenty-sixth annual SIGCHI conference on Human factors in computing systems, CHI '08, pages 1719--1728, New York, NY, USA, 2008. ACM.
    [9]
    A. M. Memon and M. L. Soffa. Regression testing of guis. In Proceedings of the 9th European software engineering conference held jointly with 11th ACM SIGSOFT international symposium on Foundations of software engineering, ESEC/FSE-11, pages 118--127, New York, NY, USA, 2003. ACM.
    [10]
    Open Source Matters, Inc. Joomla! http://joomla.org/, Apr 2011.
    [11]
    OpenQA. Selenium web application testing system. http://seleniumhq.org/, May 2010.
    [12]
    D. Roest, A. Mesbah, and A. v. Deursen. Regression testing ajax applications: Coping with dynamism. In Software Testing, Verification and Validation (ICST), 2010 Third International Conference on, pages 127--136, 6--10 2010.

    Cited By

    View all
    • (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)Comprehensive Semantic Repair of Obsolete GUI Test Scripts for Mobile ApplicationsProceedings of the IEEE/ACM 46th International Conference on Software Engineering10.1145/3597503.3639108(1-13)Online publication date: 20-May-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
    • Show More Cited By

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    ETSE '11: Proceedings of the First International Workshop on End-to-End Test Script Engineering
    July 2011
    46 pages
    ISBN:9781450308083
    DOI:10.1145/2002931
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 17 July 2011

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. test repair
    2. web testing

    Qualifiers

    • Research-article

    Conference

    ISSTA '11
    Sponsor:

    Upcoming Conference

    ISSTA '24

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)54
    • Downloads (Last 6 weeks)1
    Reflects downloads up to 14 Aug 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (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)Comprehensive Semantic Repair of Obsolete GUI Test Scripts for Mobile ApplicationsProceedings of the IEEE/ACM 46th International Conference on Software Engineering10.1145/3597503.3639108(1-13)Online publication date: 20-May-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)Semantic matching in GUI test reuseEmpirical Software Engineering10.1007/s10664-023-10406-829:3Online publication date: 9-May-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: 14-Jul-2024
    • (2024)Improving Web Element Localization by Using a Large Language ModelSoftware Testing, Verification and Reliability10.1002/stvr.1893Online publication date: 15-Aug-2024
    • (2023) StubCoder: Automated Generation and Repair of Stub Code for Mock ObjectsACM Transactions on Software Engineering and Methodology10.1145/361717133:1(1-31)Online publication date: 21-Aug-2023
    • (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)Robust web element identification for evolving applications by considering visual overlaps2023 IEEE Conference on Software Testing, Verification and Validation (ICST)10.1109/ICST57152.2023.00032(258-268)Online publication date: Apr-2023
    • (2023)Automated Fixing of Web UI Tests via Iterative Element Matching2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)10.1109/ASE56229.2023.00048(1188-1199)Online publication date: 11-Sep-2023
    • Show More Cited By

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media