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 条
  • [41] Reinforcement Learning-Based Rumor Blocking Approach in Directed Social Networks
    He, Qiang
    Lv, Yingjie
    Wang, Xingwei
    Huang, Min
    Cai, Yuliang
    IEEE SYSTEMS JOURNAL, 2022, 16 (04): : 6457 - 6467
  • [42] Integrating Renewable Energy in Agriculture: A Deep Reinforcement Learning-Based Approach
    Wahid, Abdul
    Faiud, Iias
    Mason, Karl
    MACHINE LEARNING AND PRINCIPLES AND PRACTICE OF KNOWLEDGE DISCOVERY IN DATABASES, ECML PKDD 2023, PT III, 2025, 2135 : 324 - 336
  • [43] Beyond Max-weight Scheduling: A Reinforcement Learning-based Approach
    Bae, Jeongmin
    Lee, Joohyun
    Chong, Song
    17TH INTERNATIONAL SYMPOSIUM ON MODELING AND OPTIMIZATION IN MOBILE, AD HOC, AND WIRELESS NETWORKS (WIOPT 2019), 2019, : 92 - 99
  • [44] A Reinforcement Learning-Based Adaptive Path Tracking Approach for Autonomous Driving
    Shan, Yunxiao
    Zheng, Boli
    Chen, Longsheng
    Chen, Long
    Chen, De
    IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY, 2020, 69 (10) : 10581 - 10595
  • [45] A Safe Training Approach for Deep Reinforcement Learning-based Traffic Engineering
    Wang, Linghao
    Wang, Miao
    Zhang, Yujun
    IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS (ICC 2022), 2022, : 1450 - 1455
  • [46] A Reinforcement Learning-Based Generative Approach for Event Temporal Relation Extraction
    Wu, Zhonghua
    Yang, Wenzhong
    Zhang, Meng
    Wei, Fuyuan
    Liu, Xinfang
    ENTROPY, 2025, 27 (03)
  • [47] Reinforcement learning-based approach for plastic texture surface defects inspection
    Ho, Chao-Ching
    Chiao, Yuan-Cheng
    Su, Eugene
    VISUAL COMPUTER, 2024, 40 (06): : 4201 - 4220
  • [49] Data management of scientific applications in a reinforcement learning-based hierarchical storage system
    Zhang, Tianru
    Gupta, Ankit
    Rodriguez, Maria Andreina Francisco
    Spjuth, Ola
    Hellander, Andreas
    Toor, Salman
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 237
  • [50] ReCoCo: Reinforcement learning-based Congestion control for Real-time applications
    Markudova, Dena
    Meo, Michela
    2023 IEEE 24TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE SWITCHING AND ROUTING, HPSR, 2023,