Comparative Study on Code Complexity Metric to Guide Action Selection of Automated GUI Testing based on Q-Learning Algorithm

Poor-quality mobile applications will disappoint users, resulting in their uninstallation of the applications. Due to mobile applications' event-driven and gesture-based nature, several researchers have proposed GUI testing as an alternative to system testing. Furthermore, since GUI testing calls for mimicking user actions on the application, automation is essential for replicating how humans would interact with the GUI widgets. The observe-select-execute strategy is used in automated GUI testing tools to observe all GUI actions in their current state, select one, and execute it. In the observe-select-execute strategy, few researchers have proposed a Q-Learning algorithm to guide the exploration of GUIs. However, the exploration solely looks at the least frequent action without considering the action's potential ability to detect failures. We propose a method that compares actions by their weight to improve GUIs exploration, leading to effectively detecting crashes and achieving a higher code coverage. This paper describes a comparative study of code complexity metrics to identify the potential action. The results statistically demonstrate that the code complexity metric can improve the exploration of GUIs based on the percentage of AUT code coverage collected. The combination of RFC and CYC metrics outperforms the other four metrics under comparison

Authors

Institutions

Publication Details

Journal
Semarak Engineering Journal
Published
2025-03-15
DOI
https://doi.org/10.37934/sej.8.1.2336b
Primary Topic
Advanced Computing and Algorithms
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Study on Code Complexity Metric to Guide Action Selection of Automated GUI Testing based on Q-Learning Algorithm

Salmi Baharom, Goh Kwang Yi, Nor Hayati Abd Razak
Semarak Engineering Journal
Advanced Computing and Algorithms
article

Comparative Study on Code Complexity Metric to Guide Action Selection of Automated GUI Testing based on Q-Learning Algorithm

Salmi Baharom, Goh Kwang Yi, Nor Hayati Abd Razak
article en

Abstract

Poor-quality mobile applications will disappoint users, resulting in their uninstallation of the applications. Due to mobile applications' event-driven and gesture-based nature, several researchers have proposed GUI testing as an alternative to system testing. Furthermore, since GUI testing calls for mimicking user actions on the application, automation is essential for replicating how humans would interact with the GUI widgets. The observe-select-execute strategy is used in automated GUI testing tools to observe all GUI actions in their current state, select one, and execute it. In the observe-select-execute strategy, few researchers have proposed a Q-Learning algorithm to guide the exploration of GUIs. However, the exploration solely looks at the least frequent action without considering the action's potential ability to detect failures. We propose a method that compares actions by their weight to improve GUIs exploration, leading to effectively detecting crashes and achieving a higher code coverage. This paper describes a comparative study of code complexity metrics to identify the potential action. The results statistically demonstrate that the code complexity metric can improve the exploration of GUIs based on the percentage of AUT code coverage collected. The combination of RFC and CYC metrics outperforms the other four metrics under comparison

Semarak Engineering JournalVol. 8(1)
Tun Hussein Onn University of Malaysia (MY)
Openalex Percentile: Top 86%
Advanced Computing and Algorithms
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparative Study on Code Complexity Metric to Guide Action Selection of Automated GUI Testing based on Q-Learning Algorithm — Salmi Baharom, Goh Kwang Yi, et al. · Semarak Engineering Journal (2025) | TGRS Research Map | TGRS