Effective, Platform-Independent GUI Testing via Image Embedding and Reinforcement Learning
dc.contributor.author
Yu, Shengcheng
dc.contributor.author
Fang, Chunrong
dc.contributor.author
Li, Xin
dc.contributor.author
Ling, Yuchen
dc.contributor.author
Chen, Zhenyu
dc.contributor.author
Su, Zhendong
dc.date.accessioned
2024-10-17T08:09:41Z
dc.date.available
2024-10-17T06:00:47Z
dc.date.available
2024-10-17T08:09:41Z
dc.date.issued
2024-09
dc.identifier.issn
1049-331X
dc.identifier.other
10.1145/3674728
en_US
dc.identifier.uri
http://hdl.handle.net/20.500.11850/700155
dc.description.abstract
Software applications (apps) have been playing an increasingly important role in various aspects of society. In particular, mobile apps and web apps are the most prevalent among all applications and are widely used in various industries as well as in people's daily lives. To help ensure mobile and web app quality, many approaches have been introduced to improve app GUI testing via automated exploration, including random testing, model-based testing, learning-based testing, and so on. Despite the extensive effort, existing approaches are still limited in reaching high code coverage, constructing high-quality models, and being generally applicable. Reinforcement learning-based approaches, as a group of representative and advanced approaches for automated GUI exploration testing, are faced with difficult challenges, including effective app state abstraction, reward function design, and so on. Moreover, they heavily depend on the specific execution platforms (i.e., Android or Web), thus leading to poor generalizability and being unable to adapt to different platforms. This work specifically tackles these challenges based on the high-level observation that apps from distinct platforms share commonalities in GUI design. Indeed, we propose PIRLTEST, an effective platform-independent approach for app testing. Specifically, PIRLTEST utilizes computer vision and reinforcement learning techniques in a novel, synergistic manner for automated testing. It extracts the GUI widgets from GUI pages and characterizes the corresponding GUI layouts, embedding the GUI pages as states. The app GUI state combines the macroscopic perspective (app GUI layout) and the microscopic perspective (app GUI widget) and attaches the critical semantic information from GUI images. This enables PIRLTEST to be platform-independent and makes the testing approach generally applicable on different platforms. PIRLTEST explores apps with the guidance of a curiosity-driven strategy, which uses a Q-network to estimate the values of specific state-action pairs to encourage more exploration in uncovered pages without platform dependency. The exploration will be assigned with rewards for all actions, which are designed considering both the app GUI states and the concrete widgets, to help the framework explore more uncovered pages. We conduct an empirical study on 20 mobile apps and 5 web apps, and the results show that PIRLTEST is zero-cost when being adapted to different platforms, and can perform better than the baselines, covering 6.3-41.4% more code on mobile apps and 1.5-51.1% more code on web apps. PIRLTestis capable of detecting 128 unique bugs on mobile and web apps, including 100 bugs that cannot be detected by the baselines.
en_US
dc.language.iso
en
en_US
dc.publisher
Association for Computing Machinery
en_US
dc.subject
Software testing
en_US
dc.subject
platform-independent testing
en_US
dc.subject
reinforcement learning
en_US
dc.subject
GUI image understanding
en_US
dc.title
Effective, Platform-Independent GUI Testing via Image Embedding and Reinforcement Learning
en_US
dc.type
Journal Article
dc.date.published
2024-09-27
ethz.journal.title
ACM Transactions on Software Engineering and Methodology
ethz.journal.volume
33
en_US
ethz.journal.issue
7
en_US
ethz.journal.abbreviated
ACM trans. softw. eng. methodol.
ethz.pages.start
1750
en_US
ethz.size
27 p.
en_US
ethz.identifier.wos
ethz.identifier.scopus
ethz.publication.status
published
en_US
ethz.leitzahl
ETH Zürich::00002 - ETH Zürich::00012 - Lehre und Forschung::00007 - Departemente::02150 - Dep. Informatik / Dep. of Computer Science::02664 - Inst. f. Programmiersprachen u. -systeme / Inst. Programming Languages and Systems::09628 - Su, Zhendong / Su, Zhendong
ethz.leitzahl.certified
ETH Zürich::00002 - ETH Zürich::00012 - Lehre und Forschung::00007 - Departemente::02150 - Dep. Informatik / Dep. of Computer Science::02664 - Inst. f. Programmiersprachen u. -systeme / Inst. Programming Languages and Systems::09628 - Su, Zhendong / Su, Zhendong
ethz.date.deposited
2024-10-17T06:01:02Z
ethz.source
WOS
ethz.eth
yes
en_US
ethz.availability
Metadata only
en_US
ethz.rosetta.installDate
2024-10-17T08:09:42Z
ethz.rosetta.lastUpdated
2024-10-17T08:09:42Z
ethz.rosetta.exportRequired
true
ethz.rosetta.versionExported
true
ethz.COinS
ctx_ver=Z39.88-2004&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.atitle=Effective,%20Platform-Independent%20GUI%20Testing%20via%20Image%20Embedding%20and%20Reinforcement%20Learning&rft.jtitle=ACM%20Transactions%20on%20Software%20Engineering%20and%20Methodology&rft.date=2024-09&rft.volume=33&rft.issue=7&rft.spage=1750&rft.issn=1049-331X&rft.au=Yu,%20Shengcheng&Fang,%20Chunrong&Li,%20Xin&Ling,%20Yuchen&Chen,%20Zhenyu&rft.genre=article&rft_id=info:doi/10.1145/3674728&
Files in this item
Files | Size | Format | Open in viewer |
---|---|---|---|
There are no files associated with this item. |
Publication type
-
Journal Article [133214]