Reducing False Positives in Automated OpenCV-based Non-Native GUI Software Testing

Masato Yamamoto, Evgeny Pyshkin, M. Mozgovoy
{"title":"Reducing False Positives in Automated OpenCV-based Non-Native GUI Software Testing","authors":"Masato Yamamoto, Evgeny Pyshkin, M. Mozgovoy","doi":"10.1145/3274856.3274865","DOIUrl":null,"url":null,"abstract":"This paper is aimed at improving mobile game non-native GUI testing. We follow an approach to use OpenCV image recognition algorithms for detecting and accessing the hand-drawn GUI elements on the screen, in order to interact with them from within automated test scripts. In the previous work, we experienced the problem that some tests fail not due to the defects of the tested software itself, but because of the false positive results of template matching. It means that the high scores are sometimes elicited for the best match, though the requested GUI element is actually not present on the screen. In this contribution we investigate the possibilities of image filtering in order to reduce the number of such false positive cases. We describe our experiments with two algorithms supported by OpenCV library, a selection of GUI elements and mobile game scenes, and a number of image filtering methods. We demonstrate that using Canny edge detection filters can significantly improve the accuracy of recognizing false positive cases without affecting the true positive situations. Our conclusions can be helpful for improving hand-drawn GUI based mobile software testing reliability.","PeriodicalId":373840,"journal":{"name":"Proceedings of the 3rd International Conference on Applications in Information Technology","volume":"40 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 3rd International Conference on Applications in Information Technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3274856.3274865","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

This paper is aimed at improving mobile game non-native GUI testing. We follow an approach to use OpenCV image recognition algorithms for detecting and accessing the hand-drawn GUI elements on the screen, in order to interact with them from within automated test scripts. In the previous work, we experienced the problem that some tests fail not due to the defects of the tested software itself, but because of the false positive results of template matching. It means that the high scores are sometimes elicited for the best match, though the requested GUI element is actually not present on the screen. In this contribution we investigate the possibilities of image filtering in order to reduce the number of such false positive cases. We describe our experiments with two algorithms supported by OpenCV library, a selection of GUI elements and mobile game scenes, and a number of image filtering methods. We demonstrate that using Canny edge detection filters can significantly improve the accuracy of recognizing false positive cases without affecting the true positive situations. Our conclusions can be helpful for improving hand-drawn GUI based mobile software testing reliability.
在基于opencv的非本地GUI软件测试中减少误报
本文旨在改进手机游戏非原生GUI测试。我们遵循一种方法,使用OpenCV图像识别算法来检测和访问屏幕上的手绘GUI元素,以便在自动化测试脚本中与它们交互。在之前的工作中,我们遇到了一些测试失败的问题,不是因为被测试软件本身的缺陷,而是因为模板匹配的假阳性结果。这意味着有时会为最佳匹配获得高分,尽管所请求的GUI元素实际上并不出现在屏幕上。在这篇贡献中,我们研究了图像滤波的可能性,以减少这种假阳性情况的数量。我们用OpenCV库支持的两种算法,选择GUI元素和移动游戏场景,以及一些图像过滤方法来描述我们的实验。我们证明了使用Canny边缘检测滤波器可以显著提高识别假阳性情况的准确性,而不会影响真阳性情况。我们的结论可以帮助提高基于手绘GUI的移动软件测试的可靠性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信