Page 5 - 《软件学报》2020年第12期
P. 5

软件学报 ISSN 1000-9825, CODEN RUXUEW                                        E-mail: jos@iscas.ac.cn
         Journal of Software,2020,31(12):3671−3684 [doi: 10.13328/j.cnki.jos.005873]   http://www.jos.org.cn
         ©中国科学院软件研究所版权所有.                                                          Tel: +86-10-62562563


                                                          ∗
         一种手绘制导的移动应用界面测试方法

                                                                   1,3
               1,2
                                                  1,3
                                                           1,3
                       1,2
                                         1,2
                                1,2
         成浩亮 ,   汤恩义 ,   玉淳舟 ,   张初成 ,   陈   鑫 ,   王林章 ,   卜   磊 ,   李宣东    1,3
         1
          (计算机软件新技术国家重点实验室(南京大学),江苏  南京  210023)
         2(南京大学  软件学院,江苏  南京   210093)
         3(南京大学  计算机科学与技术系,江苏  南京  210023)
         通讯作者:  汤恩义, E-mail: eytang@nju.edu.cn

         摘   要:  软件测试在提高移动应用的安全性和可靠性方面扮演着重要角色.然而,目前主流的移动应用界面测试
         技术存在着许多不足:人工编写脚本和录制回放技术需要消耗大量的人力成本,自动化测试在移动应用界面测试的
         应用场景上受到了诸多限制.针对这些问题,提出一种基于手绘制导的移动应用界面测试方法.该方法通过设计一种
         简单直观且具有较强表达能力的手绘语言来帮助测试者轻松表达其测试意图,测试者仅需在待测应用的界面图像
         上做简单绘制,就能生成对应的测试模型,并以此为基础生成界面测试所需的测试用例.以近年来在相关文献中已经
         用作移动应用界面测试的评估用例集为基准来评估该方法的测试效果.评估结果表明:在提供很少人力成本的条件
         下,手绘图形所表达的用户测试意图在制导移动应用界面测试上能起到非常关键的作用.
         关键词:  手绘制导测试生成;模型驱动的自动化测试;移动应用;图形界面测试
         中图法分类号: TP311

         中文引用格式:  成浩亮,汤恩义,玉淳舟,张初成,陈鑫,王林章,卜磊,李宣东.一种手绘制导的移动应用界面测试方法.软件学报,
         2020,31(12):3671−3684. http://www.jos.org.cn/1000-9825/5873.htm
         英文引用格式: Cheng HL, Tang EY,  Yu  CZ, Zhang CC,  Chen X, Wang LZ, Bu L, Li  XD. Approach  of sketch-guided GUI
         testing for  mobile  app. Ruan Jian Xue Bao/Journal of  Software, 2020,31(12):3671−3684 (in Chinese).  http://www.jos.org.cn/
         1000-9825/5873.htm

         Approach of Sketch-guided GUI Testing for Mobile App

         CHENG Hao-Liang  1,2 ,   TANG En-Yi 1,2 ,   YU Chun-Zhou 1,2 ,  ZHANG Chu-Cheng 1,2 ,   CHEN Xin 1,3 ,
                       1,3
                                 1,3
         WANG Lin-Zhang ,   BU Lei ,   LI Xuan-Dong 1,3
         1
          (State Key Laboratory for Novel Software Technology at Nanjing University, Nanjing 210023, China)
         2
          (Software Institute, Nanjing University, Nanjing 210093, China)
         3
          (Department of Computer Science and Technology, Nanjing University, Nanjing 210023, China)
         Abstract:    Software testing plays an important role in improving the security and reliability of mobile applications. However, there are
         many shortcomings in the current mainstream testing technology for mobile application. For example, manual scripting and recording
         playback  techniques require  a lot of labor  costs, while  automatic testing  solutions have been limited  when they  are  applied in mobile
         applications. This article presents a sketch-guided GUI test generation approach for testing mobile applications. It provides a simple but
         expressive  sketch language  to  help  testers  specify their  testing  purposes easily. Testers just  need to  draw a few simple strokes on  the
         corresponding screenshots of the application under test, then the proposed approach recognizes these strokes automatically and converts
         them into the test model. Finally, test cases are generated based on the model. The effects of proposed sketch-guided testing technique are


            ∗  基金项目:  国家重点研发计划(2017YFB1001801);  国家自然科学基金(61772260, 61402222, 61632015, 61690204)
              Foundation item: National Key Research and Development  Program of China  (2017YFB1001801); National Natural  Science
         Foundation of China (61772260, 61402222, 61632015, 61690204)
              收稿时间: 2018-12-11;  修改时间: 2019-05-08;  采用时间: 2019-07-08
   1   2   3   4   5   6   7   8   9   10