作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (15): 89-91. doi: 10.3969/j.issn.1000-3428.2010.15.031

• 软件技术与数据库 • 上一篇    下一篇

基于场景模式的嵌入式软件测试用例设计

杨广华,齐 璇,施寅生   

  1. (北京系统工程研究所,北京 100101)
  • 出版日期:2010-08-05 发布日期:2010-08-25
  • 作者简介:杨广华(1981-),男,硕士,主研方向:程序分析,软件测试;齐 璇,博士;施寅生,硕士

Design of Embedded Software Test Cases Based on Scenario Pattern

YANG Guang-hua, QI Xuan, SHI Yin-sheng   

  1. (Beijing Institution of System Engineering, Beijing 100101)
  • Online:2010-08-05 Published:2010-08-25

摘要: 将场景和模式方法用于嵌入式软件测试用例的设计与生成,通过对被测软件系统需求进行分析建模,将建立的场景模型划分到不同的场景模式中,依据场景模式构建测试场景的状态图,遍历场景状态图以获取测试执行路径,确定相关的测试数据,设计并生成测试用例。实验结果证明,该方法可以较快地设计和生成测试用例,提高测试用例的可重用性,实现对嵌入式软件的有效测试。

关键词: 嵌入式软件, 试用例, 景模式

Abstract: This paper applies scenario patterns to design and generate embedded software test cases. By analyzing and modeling the requirements of the system under test, the scenario models constructed are classified into different patterns. The state diagrams of test scenarios are created according to scenario patterns. Test executing paths are derived by traversing the state diagrams, and test cases are designed and generated from test executing paths and test data. Experimental result proves that the method can design and generate test cases rapidly, enhance the reusability of test cases, and realize efficient test for embedded software.

Key words: embedded software, test case, cenario pattern

中图分类号: