摘要
根据嵌入式软件特点,提出一种基于Tornado开发环境的嵌入式软件单元测试方法。该测试方法使用Testbed/Tbrun自动测试工具,借助Tbconfig辅助工具完成Tornado环境下的测试配置,保持测试环境和开发环境的一致性;使用黑/白盒结合的隔离单元测试技术提高测试用例设计质量,快速达到结构覆盖率要求;定制测试报告模板,使用TbrunRe-porter完成测试报告自动生成。该测试方法使测试工作的重心转移到测试用例的设计和执行上,减少代码移植和手动测试报告生成等冗余工作量,极大提高测试效率和测试规范性,已作为一种通用的嵌入式软件单元测试方法在所在测评机构加以推广使用。
According to the characteristic of embedded software, a unit test method of embedded software based on Tornado is proposed, which used Testbed/Tbrun test tool. Tbcorffig is used to complete the test configuration based on Tornado and eliminate the differences between test environment and development environment. White'black-box isolated test technique is used to make the test case design ef- fective and achieve structure coverage request soon. TbrunReporter is also used to create test report automatically by customizing the re- port template The method can make the tester emphasized on the design and execution of test cases, reduce the workload of code trans- plantation and manual report generation, improve the test efficiency and standardization. The method is used as a successful method of embedded software unit test in evaluating machanisms.
出处
《计算机工程与设计》
CSCD
北大核心
2012年第7期2683-2689,共7页
Computer Engineering and Design