Using a goal-driven approach to generate test cases for GUIs

Using a goal-driven approach to generate test cases for GUIs
复制标题

使用目标驱动的方法为 GUI 生成测试用例

DOI:
10.1145/302405.302632
复制
发表时间:
1999
期刊:
Proceedings of the 1999 International Conference on Software Engineering (IEEE Cat. No.99CB37002)
影响因子:
--
通讯作者:
M. Soffa
M. Soffa
中科院分区:
--
文献类型:
--
作者:
A. Memon;M. Pollack;M. Soffa

文献摘要

被引文献

相似文献

GUI与软件交互的广泛使用导致了越来越复杂的GUI的构建。随着复杂性的增加,测试GUI和底层软件的正确性也面临挑战。我们提出了一种新的技术来自动生成测试用例的GUI,利用规划,一个良好的开发和使用的人工智能技术。给定一组操作符,一个初始状态和一个目标状态,规划器产生一个操作符序列,将初始状态改变为目标状态。我们的测试用例生成技术首先分析GUI,并从GUI中的动作中导出层次规划操作符。测试设计者确定的先决条件和影响的层次运算符,然后输入到一个规划系统。有了GUI的知识和用户与GUI交互的方式,测试设计者创建初始和目标状态的集合。给定GUI的这些初始和最终状态,分层计划器产生计划,或者一组测试用例,使目标状态能够达到。我们的技术有额外的好处,把验证命令到测试用例自动。我们通过开发GUI分析器和扩展规划器来实现我们的技术。我们为微软的写字板生成了测试用例,以证明该方法的可行性和实用性。
The widespread use of GUIs for interacting with software is leading to the construction of more and more complex GUIs. With the growing complexity comes challenges in testing the correctness of a GUI and the underlying software. We present a new technique to automatically generate test cases for GUIs that exploits planning, a well developed and used technique in artificial intelligence. Given a set of operators, an initial state and a goal state, a planner produces a sequence of the operators that will change the initial state to the goal state. Our test case generation technique first analyzes a GUI and derives hierarchical planning operators from the actions in the GUI. The test designer determines the preconditions and effects of the hierarchical operators, which are then input into a planning system. With the knowledge of the GUI and the way in which the user will interact with the GUI, the test designer creates sets of initial and goal states. Given these initial and final states of the GUI, a hierarchical planner produces plans, or a set of test cases, that enable the goal state to be reached. Our technique has the additional benefit of putting verification commands into the test cases automatically. We implemented our technique by developing the GUI analyzer and extending a planner. We generated test cases for Microsoft's Word-Pad to demonstrate the viability and practicality of the approach.