面向WinForm_Control的自动化测试框架的设计与实现-毕.docxVIP

  • 14
  • 0
  • 约6.84万字
  • 约 87页
  • 2022-09-11 发布于湖北
  • 举报

面向WinForm_Control的自动化测试框架的设计与实现-毕.docx

摘要 随着控件技术的不断发展,用户对WinForm Control的需求不断增加,使得WinForm Control逐渐产品化,一批以WinForm Control为产品的公司或者部门的建立更加推动了其快速发展。与此同时,也给WinForm Control的自动化测试提出了新的要求。目前,现有的用于WinForm Control自动化测试的自动化测试框架都是单元测试框架,只能用于测试WinForm Control的基本属性、方法和事件,而其他测试只能手动进行,因此,开发一套面向WinForm Control的自动化测试框架是非常有必要的。 本文深入研究了WinForm Control的特点,详细分析了WinForm Control自动化测试的原理及过程,对现有的单元测试框架做了简单的介绍,通过研究,在单元测试框架NUnit的基础上,着重处理鼠标和键盘的交互操作,并将GUI测试思想应用到WinForm Control的自动化测试中,将WinForm Control的各个组成部分抽象成一个ComponentGUI,让测试人员可以方便地定位控件并进行自动化测试,最终实现了面向WinForm Control的自动化测试框架。整个框架在设计上充分考虑了代码的可复用性、可移植性和可维护性。目前,该自动化测试框架已经在日本多家控件公司投入使用,达到实用化水平。 关键词:WinForm Control 自动化测试 GUI Input Abstract With the continuous development of control techniques and the increasing demand for WinForm Control,WinForm Control is gradually commercialized in recent years,and the establishment of a group of corporations or departments taking WinForm Control as their product further promotes its rapid development. Meanwhile, new requirements of automatic testing of WinForm Control have been arisen. At present,existing automatic testing frameworks for WinForm Control are all unit testing frameworks,which can only be used to test the basic attributes,methods and events of WinForm Control,that is to say,other tests have to be operated manually. Thus,it is very necessary to develop a automatic testing framework for WinForm Control. In this article,the features of WinForm Control are firstly introduced,then,the principles and procedures of automatic testing for WinForm Control are discussed in detail and existing unit testing frameworks are also introduced briefly. Finally,a new automatic testing framework for WinForm Control is introduced. The new framework is mainly based on the following ideas:on the basis of the unit testing framework NUnit,focusing on the handling of the interactive operations of keyboard and mouse;and the ideas of GUI based testing are introduced in the automatic testing for WinForm Control:the components of WinForm Control are abstra

文档评论(0)

1亿VIP精品文档

相关文档