计算机科学 ›› 2015, Vol. 42 ›› Issue (Z11): 500-503.

• 软件工程与数据库技术 • 上一篇    下一篇

基于观察-定模-执行*GUI测试模式的研究

沈毅俊,高建华   

  1. 上海师范大学计算机科学与技术系 上海200234,上海师范大学计算机科学与技术系 上海200234
  • 出版日期:2018-11-14 发布日期:2018-11-14
  • 基金资助:
    本文受国家自然科学基金项目(61073163),上海市企业自主创新专项资金项目(沪CXY-2013-88)资助

Research Based on Observe-Model-Exercise* Paradigm for GUI Testing

SHEN Yi-jun and GAO Jian-hua   

  • Online:2018-11-14 Published:2018-11-14

摘要: 测试用户图形界面时一般很难确定其输入空间,同时自动化测试工具也难以辨别出需要特殊条件才能被执行的事件。解决这些问题的有效途径之一是使用事件流图模型并配合一种观察-定模-执行*的模式实施测试。这一模式可维护一张模型元素与其到达路径的映射表,模型元素包括图中的边与点,通过它可以找出事件被执行前需要的特定条件。Memon等人提出的映射表维护算法只适用于模型中的边,因此提出了一种适用于模型中点的映射表维护算法。测试实例分析表明,该算法能有效地记录执行事件所需的特定条件。

关键词: 图形用户界面,事件流图,OME*模式

Abstract: Generally,it is hard to determine the input space when testing the graphical-user interface.It’s also a challenge for the automatic testing tools to identify those events which can only be executed after certain conditions are sa-tisfied.In order to address these problems,one of the effective solutions is to execute the test with the event-flow graph model and the observe-model-exercise* Paradigm.In this paradigm,a table is used to maintain the mapping between the model elements,which include the nodes and edges of the model,and event sequences used to reach them,so that the unique conditions are aware before the execution of the events.The algorithm to maintain the mapping presented by Memon is suitable only for the edges of the model,thus we proposed a new algorithm which is suitable for the nodes of the model.The result of the experiment indicates that the required conditions before the execution of the events are successfully recorded with our algorithm.

Key words: Graphical-user interface(GUI),Event-flow graph,Observe-model-exercise* paradigm(OME*)

[1] Shehady R K,Siewiorek D P.A method to automate user interface testing using variable finite state machines:Fault-Tolerant Computing[C]∥Twenty-Seventh Annual International Symposium on Digest of Papers,1997(FTCS-27).Seattle,WA,USA:IEEE,1997:80-88
[2] Reza,Hassan,Endapally S,et al.A model-based approach fortesting gui using hierarchical predicate transition nets:Information Technology[C]∥Fourth International Conference on Las Vegas,2007(ITNG’07).NV:IEEE,2007:366-370
[3] Memon A M,Nagarajan A,Xie Q.Automating Regression Testing for Evolving GUI Software[J].Software Maintenance,2005,7(1):27-64
[4] Vieira,Marlon,Hasling B,et al.Automation of GUI testingusing a model-driven approach[C]∥Proceedings of the 2006 International Workshop on Automation of Software Test,2006.New York:ACM,2006:9-14
[5] Memon A M,Banerjee I,Nagarajan A.GUI Ripping:Reverse Engineering of Graphical User Interfaces for Testing[C]∥Proc.10th Working Conf.Reverse Eng,2003(WCRE’ 03).Cana-da:IEEE,2003:260-269
[6] Memon A M.A Comprehensive Framework for Testing Graphi-cal User Interfaces[D].Pittsburgh:Department of Computer Science,University of Pittsburgh,2001
[7] Nguyen,Bao,Memon A M.An Observe-Model-Exercise* Paradigm to Test Event-Driven Systems with Undetermined Input Spaces[J].IEEE Transcations on Software Engineering,2014,0(3):216-234

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!