...
首页> 外文期刊>Software Quality Journal >SENTINEL: generating GUI tests for sensor leaks in Android and Android wear apps
【24h】

SENTINEL: generating GUI tests for sensor leaks in Android and Android wear apps

机译:Sentinel:在Android和Android Wear应用程序中生成传感器泄漏的GUI测试

获取原文
获取原文并翻译 | 示例
           

摘要

Due to the widespread use of Android devices and apps, it is important to develop tools and techniques to improve app quality and performance. Our work focuses on a problem related to hardware sensors on Android devices: the failure to disable unneeded sensors, which leads to sensor leaks and thus battery drain. We propose the Sentinel testing tool to uncover such leaks. The tool performs static analysis of app code and produces a model which maps GUI events to callback methods that affect sensor behavior. Edges in the model are labeled with symbols representing the acquiring/releasing of sensors and the opening/closing of UI windows. The model is traversed to identify paths that are likely to exhibit sensor leaks during run-time execution based on two context-free languages over the symbol alphabet. The reported paths are then used to generate test cases. The execution of each test case tracks the run-time behavior of sensors and reports observed leaks. This approach has been applied to both open-sourced and closed-sourced regular Android applications as well as watch faces for Android Wear smartwatches. Our experimental results indicate that Sentinel effectively detects sensor leaks, while focusing the testing efforts on a very small subset of possible GUI event sequences.
机译:由于Android设备和应用程序广泛使用,开发工具和技术非常重要,以提高应用质量和​​性能。我们的工作重点介绍了Android设备上的硬件传感器的问题:未能禁用不需要的传感器,从而导致传感器泄漏,从而漏极漏极。我们提出了Sentinel测试工具来揭示这种泄漏。该工具对应用程序代码进行静态分析,并生成一个模型,将GUI事件映射到影响传感器行为的回调方法。模型中的边缘标有表示获取/释放传感器的符号和UI窗口的打开/关闭。该模型被遍历以识别可能在运行时执行期间在符号字母上的两种无背景语言期间展示在运行时执行期间传感器泄漏的路径。然后使用报告的路径来生成测试用例。执行每个测试用例的执行跟踪传感器的运行时间行为,并观察到泄漏的报告。这种方法已应用于开放式和封闭式的常规Android应用程序以及用于Android佩戴Smartwatches的手表面。我们的实验结果表明,Sentinel有效地检测了传感器泄漏,同时将测试工作集中在可能的GUI事件序列的非常小的子集上。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号