Skip to main content

An Improving Approach for DOM-Based Web Test Suite Repair

  • 1029 Accesses

Part of the Lecture Notes in Computer Science book series (LNISA,volume 12706)

Abstract

Developers increasingly rely on end-to-end (E2E) testing to test the web applications they develop and check whether there are no bugs from the end user’s perspective. An E2E test simulates the actions performed by the user using a browser and checks whether the web application returns the expected output. It considers web applications as a black box and only knows what user actions are and what their expected output is. However, once some evolutions are implemented on a web application, user actions may change (a button has been added, deleted, or just moved to another location), which may break the E2E test. Rebuilding new test suites takes a lot of time, especially for large web applications. Therefore, E2E testing needs to evolve with the development of web applications. To help the developers who face this situation, we present an approach, named WebTestSuiteRepair (WTSR), that aims to generate and compare test suite graphs to identify candidates for broken actions, hence helps to automatically and efficiently repair the E2E tests for web applications.

Keywords

  • Web test repair
  • Test suite
  • Web test evolution
  • Test case
  • Automated E2E test

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-3-030-74296-6_29
  • Chapter length: 16 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   89.00
Price excludes VAT (USA)
  • ISBN: 978-3-030-74296-6
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   119.99
Price excludes VAT (USA)
Fig. 1.
Fig. 2.
Fig. 3.
Fig. 4.
Fig. 5.
Fig. 6.

Notes

  1. 1.

    https://github.com/joomla/joomla-cms.

  2. 2.

    https://github.com/moodle/moodle.

  3. 3.

    https://pptr.dev/.

  4. 4.

    https://selenium.dev/.

  5. 5.

    https://nightwatchjs.org/.

  6. 6.

    https://www.joomla.org/.

  7. 7.

    https://github.com/webautotester/scenario.

  8. 8.

    https://github.com/puppeteer/puppeteer.

  9. 9.

    https://github.com/webautotester/scenario.

  10. 10.

    https://sourceforge.net/software/product/Joomla/.

  11. 11.

    https://sourceforge.net/projects/moodle/.

  12. 12.

    https://sourceforge.net/projects/dolibarr/.

References

  1. Bajaj, K., Pattabiraman, K., Mesbah, A.: Synthesizing web element locators (t). In: 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 331–341. IEEE (2015)

    Google Scholar 

  2. Bajammal, M., Mazinanian, D., Mesbah, A.: Generating reusable web components from mockups. In: Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, pp. 601–611 (2018)

    Google Scholar 

  3. Biagiola, M., Stocco, A., Mesbah, A., Ricca, F., Tonella, P.: Web test dependency detection. In: Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp. 154–164 (2019)

    Google Scholar 

  4. Choudhary, S.R., Zhao, D., Versee, H., Orso, A.: Water: Web application test repair. In: Proceedings of the First International Workshop on End-to-End Test Script Engineering, pp. 24–29. ACM (2011)

    Google Scholar 

  5. Gao, Z., Chen, Z., Zou, Y., Memon, A.M.: SITAR: GUI test script repair. IEEE Trans. Software Eng. 42(2), 170–186 (2015)

    CrossRef  Google Scholar 

  6. Guarnieri, M., Tsankov, P., Buchs, T., Dashti, M.T., Basin, D.: Test execution checkpointing for web applications. In: Proceedings of the 26th ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 203–214. ACM (2017)

    Google Scholar 

  7. Hammoudi, M., Rothermel, G., Stocco, A.: WATERFALL: an incremental approach for repairing record-replay tests of web applications. In: Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering, pp. 751–762. ACM (2016)

    Google Scholar 

  8. Hammoudi, M., Rothermel, G., Tonella, P.: Why do record/replay tests of web applications break? In: 2016 IEEE International Conference on Software Testing, Verification and Validation (ICST), pp. 180–190. IEEE (2016)

    Google Scholar 

  9. Heil, S., Bakaev, M., Gaedke, M.: Measuring and ensuring similarity of user interfaces: The impact of web layout. In: International Conference on Web Information Systems Engineering (2016)

    Google Scholar 

  10. Imtiaz, J., Sherin, S., Khan, M.U., Iqbal, M.Z.: A systematic literature review of test breakage prevention and repair techniques. Inf. Softw. Technol. 113, 1–19 (2019)

    CrossRef  Google Scholar 

  11. Leotta, M., Clerissi, D., Ricca, F., Tonella, P.: Visual vs. DOM-based web locators: an empirical study. In: Casteleyn, S., Rossi, G., Winckler, M. (eds.) ICWE 2014. LNCS, vol. 8541, pp. 322–340. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-08245-5_19

    CrossRef  Google Scholar 

  12. Leotta, M., Clerissi, D., Ricca, F., Tonella, P.: Approaches and tools for automated end-to-end web testing. In: Advances in Computers, vol. 101, pp. 193–237. Elsevier (2016)

    Google Scholar 

  13. Leotta, M., Stocco, A., Ricca, F., Tonella, P.: Using multi-locators to increase the robustness of web test cases. In: 2015 IEEE 8th International Conference on Software Testing, Verification and Validation (ICST), pp. 1–10. IEEE (2015)

    Google Scholar 

  14. Leotta, M., Stocco, A., Ricca, F., Tonella, P.: ROBULA+: an algorithm for generating robust Xpath locators for web testing. J. Softw. Evol. Process 28(3), 177–204 (2016)

    CrossRef  Google Scholar 

  15. Stocco, A., Leotta, M., Ricca, F., Tonella, P.: APOGEN: automatic page object generator for web testing. Software Qual. J. 25(3), 1007–1039 (2017)

    CrossRef  Google Scholar 

  16. Stocco, A., Yandrapally, R., Mesbah, A.: Visual web test repair. In: Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp. 503–514. ACM (2018)

    Google Scholar 

  17. Tonella, P., Ricca, F., Marchetto, A.: Recent advances in web testing. In: Advances in Computers, vol. 93, pp. 1–51. Elsevier (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and Permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Verify currency and authenticity via CrossMark

Cite this paper

Chen, W., Cao, H., Blanc, X. (2021). An Improving Approach for DOM-Based Web Test Suite Repair. In: Brambilla, M., Chbeir, R., Frasincar, F., Manolescu, I. (eds) Web Engineering. ICWE 2021. Lecture Notes in Computer Science(), vol 12706. Springer, Cham. https://doi.org/10.1007/978-3-030-74296-6_29

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-74296-6_29

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-74295-9

  • Online ISBN: 978-3-030-74296-6

  • eBook Packages: Computer ScienceComputer Science (R0)