摘要
敏捷开发模式的盛行掀起了自动化测试的一轮热潮,测试和开发合作越来越密切。本文研究的自动化测试框
架,将BDD 的敏捷开发理念与软件测试相融合,通过统一的Gherkin 语言定义验收测试标准,帮助业务人员、测试人员和开发
人员形成对需求明确统一的认识,然后通过web driver 测试代码实现可执行的验收测试,以TDD 的方式实现产品代码。该框
架使用Specflow、Selenium 和MsTest 等测试工具,真正实现了自动化测试,大大减少了手工测试的压力,促进开发测试过程中
软件开发涉众之间的沟通,及时得到用户反馈,满足快速发布产品的需求,提升产品质量。
Abstract
The popular Agile development pattern sets off an upsurge of automatic testing. It makes the cooperation of development
and testing become more and more closely. This paper creates an automated testing frameset that can combine BDD agile development
concept and software testing together. First we use Gherkin language to define acceptance criteria, which helps the business
personnel, testing engineer and development engineer to form a clear and unified understanding of the system requirement.
Then we use the web driver testing codes to realize the specific acceptance test, and write the product codes based on TDD. The
frameset adopts the Specflow, Selenium and MsTest testing tools. It truly realizes the automated testing, and greatly reduces the manual
test pressure. Meanwhile it facilitates the communication of software development stakeholders during development and testing
process, gets the feedback from users in time, meets the needs of the rapid release of the product, and also improve the quality of the
product.
关键词
自动化测试 /
BDD /
Specflow /
Selenium /
Scenario
Key words
automatic testing /
BDD /
Specflow /
Selenium /
Scenario
杨晔.
基于BDD 的自动化测试框架研究[J]. 电脑与电信. 2016, 1(6): 30-33
Yang Ye.
Research on the Automatic Testing Frameset Based on BDD[J]. Computer & Telecommunication. 2016, 1(6): 30-33
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
基金
本文是省教育厅科研项目课题:“司法行政系统软件的自动化验收测试研究与应用”,项目编号:Y201328693。