摘要: 针对传统的测试自动化技术已不适用于构件的问题,提出基于脚本的构件测试自动化框架。将面向对象单元测试自动化框架xUnit与数据驱动的测试框架结合并改进,实现构件测试脚本自动生成、测试脚本自动执行、测试结果自动验证与记录。实例表明,该框架能有效对构件进行自动化测试,自动化程度较高。
关键词:
构件测试,
测试自动化,
测试脚本,
测试驱动
Abstract: Aiming at the problem that conventional test automation techniques are not suitable for component, this paper presents a script-based component test automation framework. By combining and improving object-oriented unit test automation framework xUnit and data-driven test framework, it can achieve component test script automated generation, script automated execution, results automated verification and logging. A case indicates that the framework is effective and of relatively high degree of automation.
Key words:
component test,
test automation,
test script,
test driver
中图分类号:
倪 铭;黄 萍. 基于脚本的构件测试自动化框架[J]. 计算机工程, 2010, 36(06): 94-96.
NI Ming; HUANG Ping. Script-based Component Test Automation Framework[J]. Computer Engineering, 2010, 36(06): 94-96.