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 条
  • [31] Pattern Based GUI testing for Mobile Applications
    Costa, Pedro
    Nabuco, Miguel
    Paiva, Ana C. R.
    2014 9TH INTERNATIONAL CONFERENCE ON THE QUALITY OF INFORMATION AND COMMUNICATIONS TECHNOLOGY (QUATIC), 2014, : 66 - 74
  • [32] Reinforcement learning-based knowledge graph reasoning for aluminum alloy applications
    Liu, Jian
    Qian, Quan
    COMPUTATIONAL MATERIALS SCIENCE, 2023, 221
  • [33] A Reinforcement Learning-Based Adaptive Learning System
    Shawky, Doaa
    Badawi, Ashraf
    INTERNATIONAL CONFERENCE ON ADVANCED MACHINE LEARNING TECHNOLOGIES AND APPLICATIONS (AMLTA2018), 2018, 723 : 221 - 231
  • [34] Approximate Logic Synthesis: A Reinforcement Learning-Based Technology Mapping Approach
    Pasandi, Ghasem
    Nazarian, Shahin
    Pedram, Massoud
    PROCEEDINGS OF THE 2019 20TH INTERNATIONAL SYMPOSIUM ON QUALITY ELECTRONIC DESIGN (ISQED), 2019, : 26 - 32
  • [35] Energy Trading in Smart Grid: A Deep Reinforcement Learning-based Approach
    Zhang, Feiye
    Yang, Qingyu
    PROCEEDINGS OF THE 32ND 2020 CHINESE CONTROL AND DECISION CONFERENCE (CCDC 2020), 2020, : 3677 - 3682
  • [36] Load Balancing for Ultradense Networks: A Deep Reinforcement Learning-Based Approach
    Xu, Yue
    Xu, Wenjun
    Wang, Zhi
    Lin, Jiaru
    Cui, Shuguang
    IEEE INTERNET OF THINGS JOURNAL, 2019, 6 (06): : 9399 - 9412
  • [37] A Meta Reinforcement Learning-based Approach for Self-Adaptive System
    Zhang, Mingyue
    Li, Jialong
    Zhao, Haiyan
    Tei, Kenji
    Honiden, Shinichi
    Jin, Zhi
    2021 IEEE INTERNATIONAL CONFERENCE ON AUTONOMIC COMPUTING AND SELF-ORGANIZING SYSTEMS (ACSOS 2021), 2021, : 1 - 10
  • [38] A Reinforcement Learning-based Approach to Dynamic Job-shop Scheduling
    WEI YingZi ZHAO MingYang Shenyang Institute of AutomationChinese Academy of SciencesShenyang Shenyang Ligong UniversityShenyang
    自动化学报, 2005, (05) : 113 - 119
  • [39] A Generic Spatiotemporal Scheduling for Autonomous UAVs: A Reinforcement Learning-Based Approach
    Bouhamed, Omar
    Ghazzai, Hakim
    Besbes, Hichem
    Massoud, Yehia
    IEEE OPEN JOURNAL OF VEHICULAR TECHNOLOGY, 2020, 1 : 93 - 106
  • [40] An Ontology-based Approach for GUI Testing
    Li, Han
    Chen, Feng
    Yang, Hongji
    Guo, He
    Chu, William Cheng-Chung
    Yang, Yuansheng
    2009 IEEE 33RD INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, VOLS 1 AND 2, 2009, : 626 - +