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 条
  • [21] A Reinforcement Learning-Based Approach for Continuous Knowledge Graph Construction
    Luo, Jiao
    Zhang, Yitao
    Wang, Ying
    Mayer, Wolfgang
    Ding, Ningpei
    Li, Xiaoxia
    Quan, Yuan
    Cheng, Debo
    Zhang, Hong-Yu
    Feng, Zaiwen
    KNOWLEDGE SCIENCE, ENGINEERING AND MANAGEMENT, PT IV, KSEM 2023, 2023, 14120 : 418 - 429
  • [22] Reinforcement learning-based approach for optimizing solvent-switch
    Elmaz, Furkan
    Di Caprio, Ulderico
    Wu, Min
    Wouters, Yentl
    Van Der Vorst, Geert
    Vandervoort, Niels
    Anwar, Ali
    Leblebici, M. Enis
    Hellinckx, Peter
    Mercelis, Siegfried
    COMPUTERS & CHEMICAL ENGINEERING, 2023, 176
  • [23] Distributed Highway Control: A Cooperative Reinforcement Learning-Based Approach
    Kovari, Balint
    Knab, Istvan Gellert
    Esztergar-Kiss, Domokos
    Aradi, Szilard
    Becsi, Tamas
    IEEE ACCESS, 2024, 12 : 104463 - 104472
  • [24] When to Invoke a Prediction Service? A Reinforcement Learning-Based Approach
    Xu, Yuchang
    Cao, Jian
    Liu, Tao
    Tan, Yudong
    Xiao, Quanwu
    2018 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES (IEEE ICWS 2018), 2018, : 315 - 318
  • [25] Adaptive Reward Computation in Reinforcement Learning-Based Continuous Integration Testing
    Yang, Yang
    Pan, Chaoyue
    Li, Zheng
    Zhao, Ruilian
    IEEE ACCESS, 2021, 9 : 36674 - 36688
  • [26] A Learning-Based Approach to Unit Testing of Numerical Software
    Meinke, Karl
    Niu, Fel
    TESTING SOFTWARE AND SYSTEMS, 2010, 6435 : 221 - 235
  • [27] Reinforcement Learning-Based Multihop Relaying: A Decentralized Q-Learning Approach
    Wang, Xiaowei
    Wang, Xin
    ENTROPY, 2021, 23 (10)
  • [28] REDQT: a method for automated mobile application GUI testing based on deep reinforcement learning algorithms
    Wang, Fengyu
    Tao, Chuanqi
    Gao, Jerry
    SERVICE ORIENTED COMPUTING AND APPLICATIONS, 2024,
  • [29] Automatic testing of GUI-based applications
    Mariani, Leonardo
    Pezze, Mauro
    Riganelli, Oliviero
    Santoro, Mauro
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2014, 24 (05): : 341 - 366
  • [30] Deep Reinforcement Learning-based Edge Caching for Industrial Control Applications
    Zhang, Lei
    Xu, Hao
    Wang Guilin
    Yan, Wang
    Wang, Xiaojun
    2023 35TH CHINESE CONTROL AND DECISION CONFERENCE, CCDC, 2023, : 5024 - 5029