UI Test Migration Across Mobile Platforms

UI Test Migration Across Mobile Platforms
复制标题

DOI:
10.1109/ase51524.2021.9678643
复制
发表时间:
2021-11
期刊:
2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE)
影响因子:
--
通讯作者:
Saghar Talebipour;Yixue Zhao;Luka Dojcilović;Chenggang Li;N. Medvidović
Saghar Talebipour;Yixue Zhao;Luka Dojcilović;Chenggang Li;N. Medvidović
中科院分区:
其他
文献类型:
--
作者:
Saghar Talebipour;Yixue Zhao;Luka Dojcilović;Chenggang Li;N. Medvidović

文献摘要

相似文献

编写UI测试需要大量的努力。在应用程序之间。 Android。本文介绍了Mapit,该技术以三种重要的方式扩展了现有的工作:(1)它可以在“同胞” Android和iOS应用程序之间进行双向UI测试转移。源代码可用;对于每个测试,该模型包括应用程序的屏幕截图,每个屏幕截图的构造元素的可获得属性,并在屏幕截图之间标记了过渡。使用计算机视觉和NLP的方法。可行,准确且有用,可用于跨平台传输UI测试。
Writing UI tests manually requires significant effort. Several approaches have tried to address this problem in mobile apps: by exploiting the similarities of different apps within the same domain on a single platform, they have shown that it is possible to transfer tests that exercise similar functionality between the apps. A related recent technique enables transfer of UI tests uni-directionally, from an open-source iOS app to the same app implemented for Android. This paper presents MAPIT, a technique that expands existing work in three important ways: (1) it enables bi-directional UI test transfer between pairs of "sibling" Android and iOS apps; (2) it does not assume that the apps’ source code is available; (3) it is capable of transferring tests containing oracles in addition to UI events. MAPIT runs existing tests on a "source" app and builds a partial model of the app corresponding to each test. The model comprises the app’s screenshots, obtainable properties of each screenshot’s constituent elements, and labeled transitions between the screenshots. MAPIT uses this model to determine the corresponding information on the "target" app and generates an equivalent test, via a novel approach that leverages computer vision and NLP. Our evaluation on a diverse set of widely used, closed-source sibling Android and iOS apps shows that MAPIT is feasible, accurate, and useful in transferring UI tests across platforms.