中文版 | English
Title

ωTest: WebView-Oriented Testing for Android Applications

Author
DOI
Publication Years
2023-07-12
Conference Name
The 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis
Source Title
Pages
992-1004
Conference Date
2023-07
Conference Place
Seattle, WA, USA
Abstract

WebView is a UI widget that helps integrate web applications into the native context of Android apps. It provides powerful mechanisms for bi-directional interactions between the native-end (Java) and the web-end (JavaScript) of an Android app. However, these interaction mechanisms are complicated and have induced various types of bugs. To mitigate the problem, various techniques have been proposed to detect WebView-induced bugs via dynamic analysis, which heavily relies on executing tests to explore WebView behaviors. Unfortunately, these techniques either require manual effort or adopt random test generation approaches, which are not able to effectively explore diverse WebView behaviors. In this paper, we study the problem of test generation for WebViews in Android apps. Effective test generation for WebViews requires identifying the essential program properties to be covered by the generated tests. To this end, we propose WebView-specific properties to characterize WebView behaviors, and devise a cross-language dynamic analysis method to identify these properties. We develop ωTest, a test generation technique that searches for event sequences covering the identified WebView-specific properties. An evaluation on 74 real-world open-/closed-source Android apps shows that ωTest can cover diverse WebView behaviors and detect WebView-induced bugs effectively. ωTest detected 36 previously-unknown bugs. From the 22 bugs that we have reported to the app developers, 13 bugs were confirmed, 9 of which were fixed.

Keywords
SUSTech Authorship
Others
Language
English
URL[Source Record]
Scopus EID
2-s2.0-85167710501
Data Source
Scopus
Citation statistics
Cited Times [WOS]:0
Document TypeConference paper
Identifierhttp://kc.sustech.edu.cn/handle/2SGJ60CL/559841
DepartmentSouthern University of Science and Technology
工学院_计算机科学与工程系
Affiliation
1.The Hong Kong University of Science and Technology,Hong Kong,Hong Kong
2.McGill University,Montreal,Canada
3.Southern University of Science and Technology,Shenzhen,China
4.Department of Computer Science and Engineering,The Research Institute of Trustworthy Autonoumous Systems,Southern University of Science and Technology,China
Recommended Citation
GB/T 7714
Hu,Jiajun,Wei,Lili,Liu,Yepang,et al. ωTest: WebView-Oriented Testing for Android Applications[C],2023:992-1004.
Files in This Item:
There are no files associated with this item.
Related Services
Fulltext link
Recommend this item
Bookmark
Usage statistics
Export to Endnote
Export to Excel
Export to Csv
Altmetrics Score
Google Scholar
Similar articles in Google Scholar
[Hu,Jiajun]'s Articles
[Wei,Lili]'s Articles
[Liu,Yepang]'s Articles
Baidu Scholar
Similar articles in Baidu Scholar
[Hu,Jiajun]'s Articles
[Wei,Lili]'s Articles
[Liu,Yepang]'s Articles
Bing Scholar
Similar articles in Bing Scholar
[Hu,Jiajun]'s Articles
[Wei,Lili]'s Articles
[Liu,Yepang]'s Articles
Terms of Use
No data!
Social Bookmark/Share
No comment.

Items in the repository are protected by copyright, with all rights reserved, unless otherwise indicated.