A reinforcement learning-based approach to testing GUI of moblie applications

被引:0
|
作者
Tao, Chuanqi [1 ,2 ,3 ,4 ]
Wang, Fengyu [1 ]
Gao, Yuemeng [1 ]
Guo, Hongjing [1 ]
Gao, Jerry [5 ]
机构
[1] Nanjing Univ Aeronaut & Astronaut, Coll Comp Sci & Technol, Nanjing, Peoples R China
[2] Nanjing Univ Aeronaut & Astronaut, Minist Key Lab Safety Crit Software Dev & Verifica, Nanjing, Peoples R China
[3] Collaborat Innovat Ctr Novel Software Technol & In, Nanjing, Peoples R China
[4] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Peoples R China
[5] San Jose State Univ, Comp Engn Dept, San Jose, CA 95192 USA
关键词
Reinforcement learning; GUI testing; Advantage actor critic; Proximal policy optimization; Finite-state machine;
D O I
10.1007/s11280-024-01252-9
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
With the popularity of mobile devices, the software market of mobile applications has been booming in recent years. Android applications occupy a vast market share. However, the applications inevitably contain defects. Defects may affect the user experience and even cause severe economic losses. This paper proposes ATAC and ATPPO, which apply reinforcement learning to Android GUI testing to mitigate the state explosion problem. The article designs a new reward function and a new state representation. It also constructs two GUI testing models (ATAC and ATPPO) based on A2C and PPO algorithms to save memory space and accelerate training speed. Empirical studies on twenty open-source applications from GitHub demonstrate that: (1) ATAC performs best in 16 of 20 apps in code coverage and defects more exceptions; (2) ATPPO can get higher code coverage in 15 of 20 apps and defects more exceptions; (3) Compared with state-of-art tools Monkey and ARES, ATAC, and ATPPO shows higher code coverage and detects more errors. ATAC and ATPPO can not only cover more code coverage but also can effectively detect more exceptions. This paper also introduces Finite-State Machine into the reinforcement learning framework to avoid falling into the local optimal state, which provides high-level guidance for further improving the test efficiency.
引用
收藏
页数:26
相关论文
共 50 条
  • [1] A reinforcement learning-based approach to testing GUI of moblie applications
    Chuanqi Tao
    Fengyu Wang
    Yuemeng Gao
    Hongjing Guo
    Jerry Gao
    [J]. World Wide Web, 2024, 27
  • [2] A Deep Reinforcement Learning-Based Approach for Android GUI Testing
    Gao, Yuemeng
    Tao, Chuanqi
    Guo, Hongjing
    Gao, Jerry
    [J]. WEB AND BIG DATA, PT III, APWEB-WAIM 2022, 2023, 13423 : 262 - 276
  • [3] Reinforcement Learning for Android GUI Testing
    Adamo, David
    Khan, Md Khorrom
    Koppula, Sreedevi
    Bryce, Renee
    [J]. PROCEEDINGS OF THE 9TH ACM SIGSOFT INTERNATIONAL WORKSHOP ON AUTOMATING TEST CASE DESIGN, SELECTION, AND EVALUATION (A-TEST '18), 2018, : 2 - 8
  • [4] A Reinforcement Learning Based Approach to Automated Testing of Android Applications
    Thi Anh Tuyet Vuong
    Takada, Shingo
    [J]. PROCEEDINGS OF THE 9TH ACM SIGSOFT INTERNATIONAL WORKSHOP ON AUTOMATING TEST CASE DESIGN, SELECTION, AND EVALUATION (A-TEST '18), 2018, : 31 - 37
  • [5] Testing the Plasticity of Reinforcement Learning-based Systems
    Biagiola, Matteo
    Tonella, Paolo
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (04)
  • [6] Automating GUI Testing with Image-Based Deep Reinforcement Learning
    Eskonen, Juha
    Kahles, Julen
    Reijonen, Joel
    [J]. 2020 IEEE INTERNATIONAL CONFERENCE ON AUTONOMIC COMPUTING AND SELF-ORGANIZING SYSTEMS (ACSOS 2020), 2020, : 160 - 167
  • [7] A reinforcement learning-based approach for online bus scheduling
    Liu, Yingzhuo
    Zuo, Xingquan
    Ai, Guanqun
    Liu, Yahong
    [J]. KNOWLEDGE-BASED SYSTEMS, 2023, 271
  • [8] A Deep Reinforcement Learning-Based Approach in Porker Game
    Kong, Yan
    Rui, Yefeng
    Hsia, Chih-Hsien
    [J]. Journal of Computers (Taiwan), 2023, 34 (02) : 41 - 51
  • [9] Reinforcement Learning-Based Computation Offloading Approach in VEC
    Lin, Kai
    Lin, Bing
    Shao, Xun
    [J]. COMPUTER SUPPORTED COOPERATIVE WORK AND SOCIAL COMPUTING, CHINESECSCW 2021, PT I, 2022, 1491 : 563 - 576
  • [10] An efficient reinforcement learning-based Botnet detection approach
    Alauthman, Mohammad
    Aslam, Nauman
    Al-kasassbeh, Mouhammd
    Khan, Suleman
    Al-Qerem, Ahmad
    Choo, Kim-Kwang Raymond
    [J]. JOURNAL OF NETWORK AND COMPUTER APPLICATIONS, 2020, 150