As the delivery period of software products becomes shorter,the application scope of automation test becomes wider. In order to solve the problem of low efficiency and complexity in writing and maintaining automation test cases,an automation test framework is put forward based on domain-driven on the existing traditional test framework. The new framework describes test cases in domain language, creates model to the tested domain,guides design with the idea of modularization,adopts layered architecture,and designs and develops domain test library by using ODD. At the same time, the implementation procedure of domain-driven test is raised, which includes process and method of starting,modeling,design,development,test,version management and publishing. By adopting the domain-driven test framework,the system makes organization,design and development of test cases more efficient,and thus improves efficiency in devel-opment and maintenance of test cases. In this case,test cases become easy to understand,clear and concise,and satisfy quick changes re-quirements by using restructuring. Thus,the framework is widely deployed in telecommunication system tests and has achieved good re-sults.%随着软件产品的交付周期越来越短,自动化测试的应用范围更加广泛。为解决自动化测试用例编写维护复杂、效率低下的问题,在传统测试框架的基础上提出了一种基于领域驱动的自动化测试框架。用领域语言来描述测试用例,对被测领域进行领域建模,以组件化思想为指导,采用分层架构,用面向对象方法设计、开发了领域测试库,同时提出了领域驱动测试的实施流程,包括启动、建模、设计、开发、测试、版本管理和发布的过程、方法。通过采用领域驱动测试框架可以使得测试用例的组织、设计和开发更加有效,提高了测试用例的开发和维护效率,测试用例更加易于解性、清晰简洁,能够通过重构快速应对变化,在通信系统测试中得到了应用推广,取得了很好的效果。
展开▼