摘要
将场景和模式方法用于嵌入式软件测试用例的设计与生成,通过对被测软件系统需求进行分析建模,将建立的场景模型划分到不同的场景模式中,依据场景模式构建测试场景的状态图,遍历场景状态图以获取测试执行路径,确定相关的测试数据,设计并生成测试用例。实验结果证明,该方法可以较快地设计和生成测试用例,提高测试用例的可重用性,实现对嵌入式软件的有效测试。
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.
出处
《计算机工程》
CAS
CSCD
北大核心
2010年第15期89-91,共3页
Computer Engineering