Automatic web testing using curiosity-driven reinforcement learning

Web testing has long been recognized as a notoriously difficult task. Even nowadays, web testing still heavily relies on manual efforts while automated web testing is far from achieving human-level performance. Key challenges in web testing include dynamic content update and deep bugs hiding under c...

Full description

Saved in:
Bibliographic Details
Main Authors: ZHENG, Yan, LIU, Yi, XIE, Xiaofei, LIU, Yepang, MA, Lei, HAO, Jianye, LIU, Yang
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2021
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/7115
https://ink.library.smu.edu.sg/context/sis_research/article/8118/viewcontent/ICSE43902.2021.00048.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-8118
record_format dspace
spelling sg-smu-ink.sis_research-81182022-04-14T11:41:24Z Automatic web testing using curiosity-driven reinforcement learning ZHENG, Yan LIU, Yi XIE, Xiaofei LIU, Yepang MA, Lei HAO, Jianye LIU, Yang Web testing has long been recognized as a notoriously difficult task. Even nowadays, web testing still heavily relies on manual efforts while automated web testing is far from achieving human-level performance. Key challenges in web testing include dynamic content update and deep bugs hiding under complicated user interactions and specific input values, which can only be triggered by certain action sequences in the huge search space. In this paper, we propose WebExplor, an automatic end-to-end web testing framework, to achieve an adaptive exploration of web applications. WebExplor adopts curiosity-driven reinforcement learning to generate high-quality action sequences (test cases) satisfying temporal logical relations. Besides, WebExplor incrementally builds an automaton during the online testing process, which provides high-level guidance to further improve the testing efficiency. We have conducted comprehensive evaluations of WebExplor on six real-world projects, a commercial SaaS web application, and performed an in-the-wild study of the top 50 web applications in the world. The results demonstrate that in most cases WebExplor can achieve significantly higher failure detection rate, code coverage and efficiency than existing state-of-the-art web testing techniques. WebExplor also detected 12 previously unknown failures in the commercial web application, which have been confirmed and fixed by the developers. Furthermore, our in-the-wild study further uncovered 3,466 exceptions and errors. 2021-05-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/7115 info:doi/10.1109/ICSE43902.2021.00048 https://ink.library.smu.edu.sg/context/sis_research/article/8118/viewcontent/ICSE43902.2021.00048.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Software Engineering
spellingShingle Software Engineering
ZHENG, Yan
LIU, Yi
XIE, Xiaofei
LIU, Yepang
MA, Lei
HAO, Jianye
LIU, Yang
Automatic web testing using curiosity-driven reinforcement learning
description Web testing has long been recognized as a notoriously difficult task. Even nowadays, web testing still heavily relies on manual efforts while automated web testing is far from achieving human-level performance. Key challenges in web testing include dynamic content update and deep bugs hiding under complicated user interactions and specific input values, which can only be triggered by certain action sequences in the huge search space. In this paper, we propose WebExplor, an automatic end-to-end web testing framework, to achieve an adaptive exploration of web applications. WebExplor adopts curiosity-driven reinforcement learning to generate high-quality action sequences (test cases) satisfying temporal logical relations. Besides, WebExplor incrementally builds an automaton during the online testing process, which provides high-level guidance to further improve the testing efficiency. We have conducted comprehensive evaluations of WebExplor on six real-world projects, a commercial SaaS web application, and performed an in-the-wild study of the top 50 web applications in the world. The results demonstrate that in most cases WebExplor can achieve significantly higher failure detection rate, code coverage and efficiency than existing state-of-the-art web testing techniques. WebExplor also detected 12 previously unknown failures in the commercial web application, which have been confirmed and fixed by the developers. Furthermore, our in-the-wild study further uncovered 3,466 exceptions and errors.
format text
author ZHENG, Yan
LIU, Yi
XIE, Xiaofei
LIU, Yepang
MA, Lei
HAO, Jianye
LIU, Yang
author_facet ZHENG, Yan
LIU, Yi
XIE, Xiaofei
LIU, Yepang
MA, Lei
HAO, Jianye
LIU, Yang
author_sort ZHENG, Yan
title Automatic web testing using curiosity-driven reinforcement learning
title_short Automatic web testing using curiosity-driven reinforcement learning
title_full Automatic web testing using curiosity-driven reinforcement learning
title_fullStr Automatic web testing using curiosity-driven reinforcement learning
title_full_unstemmed Automatic web testing using curiosity-driven reinforcement learning
title_sort automatic web testing using curiosity-driven reinforcement learning
publisher Institutional Knowledge at Singapore Management University
publishDate 2021
url https://ink.library.smu.edu.sg/sis_research/7115
https://ink.library.smu.edu.sg/context/sis_research/article/8118/viewcontent/ICSE43902.2021.00048.pdf
_version_ 1770576215410737152