Coverage Criteria for GUI Testing Based on Directed Graph for Window Navigation
-
摘要: 为评估图形用户界面(GUI)测试用例集的充分性,提出了基于窗口导航有向图的覆盖准则.用有向图中的顶点表示GUI中的窗口,弧表示用户输入,描述用户与GUI的交互关系.基于窗口导航有向图,提出了顶层窗口覆盖、用户输入覆盖和n长度用户输入序列覆盖准则,并设计了相应的覆盖率算法.实验结果表明,符合这些覆盖准则的测试用例集能够达到90%语句覆盖率,且使故障发现率达到79%.Abstract: To evaluate the adequacy of a test suite for testing a program with graphical user interfaces(GUI),new coverage criteria based on directed graph for window navigation was proposed.The vertexes in the graph represent windows of GUI,and the directed edges represent user inputs on windows.The graph models the interaction between user and GUI.Top window coverage criterion,user input coverage criterion and length n user input sequence coverage criterion were proposed based on the graph.Algorithms were presented to compute the coverage rate on every coverage criterion.Experimental results show that the test suites satisfying the proposed criteria can reach a statement coverage rate as high as 90%,and a GUI fault detection rate as high as 79%.
-
KOSMATOV N,LEGEARD B,PEUREUX F,et al.Boundary coverage criteria for test generation from formal models[C]//Proc.of the 15th International Symposium on Software Reliability Engineering.Piscataway:IEEE Press,2004:139-150.[2] YU Y T,LAU M F.Comparing several coverage criteria for detecting faults in logical decisions[C]// Proc.of the 4th International Conf.on Quality Software.Piscataway:IEEE Press,2004:14-21.[3] GUPTA N,HEIDEPRIEM Z V.A new structural coverage criterion for dynamic detection of program invariants[C]//Proc.of the 18th IEEE International Conf.on Automated Software Engineering.Piscataway:IEEE Press,2003:49-58.[4] MENON A.A comprehensive framework for testing graphical user interfaces[D].Pittsburgh:University of Pittsburgh,2001.[5] TAO Jiang.A new approach in GUI testing[D].Minnesota:University of Minnesota,2002.[6] ZHU H,HALL P,MAY J.Software unit test coverage and adequacy[J].ACM Computing Surveys,1997,29(4):366-427.[7] BELLI F.Finite state testing and analysis of graphical user interfaces[C]// Proc.of the 12th International Symposium on Software Reliability Engineering.Piscataway:IEEE Press,2001:34-43.[8] WHITE L,ALMEZEN H,SASTRY S.Firewall regression testing of GUI sequences and their interactions[C]// Proc.of International Conf.on Software Maintenance.Piscataway:IEEE Press,2003:398-409.[9] 杜栓柱,谭建荣,陆国栋.基于界面构件关联图的软件功能测试技术[J].计算机研究与发展,2002,39(2):148-152.DU Shuanzhu,TAN Jianrong,LU Guodong.Software functional testing technology based on interface component relating chart[J].Journal of Computer Research and Development,2002,39 (2):148-152.[10] OSTRAND T,ANODIDE A,FOSTER H,et al.A visual test development environment for GUI systems[C]// Proc.of the ACM SIGSOFT International Symposium on Software Testing and Analysis[C].New York:ACM Press,1998:82-92.[11] PHAM H.Software reliability[M].Singapore:Springer-Verlag.2000:1-9.[12] HARROLD M J,OFFUTT A J,TEWARY K.An approach to fault modeling and fault seeding using the program dependence graph[J].Journal of Systems and Software,1997,36(3):273-296.[13] TAKAHASHI J,KAKUDA Y.Extended model-based testing toward high code coverage rate[C]// Proc.of the 7th International Conf.on Software Quality.London:Springer-Verlag Press,2002:310-320.
点击查看大图
计量
- 文章访问数: 1417
- HTML全文浏览量: 50
- PDF下载量: 436
- 被引次数: 0