节点文献
基于UML的面向对象软件测试系统
OO Software Testing System Based on UML
【摘要】 设计和实现了一个基于UML的C++测试集成开发环境CppTestIDE。它以基于UML的分析设计规约文档作为OO软件测试的重要依据,通过对UML文档的词法语法分析,提取类状态机信息;采用手工和自动生成测试用例;并根据生成的测试用例构造驱动模块,生成测试装置。同时,对源代码插装,以便度量代码覆盖率。在此基础上,编译测试装置和源代码,生成测试装置执行文件。最后,驱动测试装置执行文件,分析测试结果,生成测试报告。
【Abstract】 The paper discusses the procedures of designing and developing an UML-based testing tool—— CppTestIDE(C++ Test Integrated Development Environment). According to UML-based OOA/D specification, the tool can pick up class state-machine, generate testing case by handcraft and automation, construct and generate a testing instruction. And the tool can insert some probe function into source code for measuring code coverage. On the basis, the tool generates an executable file through compiling testing instruction and source code. Finally, it runs the executable file by testing driver, analyzes test result and generates a test report.
【Key words】 Software testing; UML state-chart; Program instrumentor; Testing driver;
- 【文献出处】 计算机工程 ,Computer Engineering , 编辑部邮箱 ,2005年06期
- 【分类号】TP311
- 【被引频次】13
- 【下载频次】410