C++Test 测试工具指导书
目录
目录.....................................................................................................................................................2
一.C++Test 概述..............................................................................................................................4
二.安装说明.....................................................................................................................................5
三.界面说明.....................................................................................................................................6
1. 菜单栏:.................................................................................................................................7
File 菜单.............................................................................................................................7
Edit 菜单.............................................................................................................................8
Project 菜单........................................................................................................................9
Test 菜单..........................................................................................................................12
Coverage 菜单..................................................................................................................12
Setting 菜单......................................................................................................................12
Tool 菜单..........................................................................................................................13
Help 菜单.........................................................................................................................13
2. 工具栏...................................................................................................................................13
3. Project Tree 区.......................................................................................................................14
4. Main GUI Panel 区................................................................................................................15
5. Output / Message Panel 区....................................................................................................15
6. Test tab...................................................................................................................................16
Source Code Tab...............................................................................................................16
Static Analysis Tab............................................................................................................18
Dyanmic Analysis Tab.......................................................................................................20
Test Progress Tab...............................................................................................................24
Statistics Tab......................................................................................................................25
四.操作(demo)...............................................................................................................................25
建立测试环境...........................................................................................................................25
静态测试...................................................................................................................................27
动态测试...................................................................................................................................28
生成报表...................................................................................................................................29
五.应用举例...................................................................................................................................30
六、高级使用技巧...........................................................................................................................35
1.静态规则配置库导入/导出功能........................................................................................35
2.工程模板 (project’s template)............................................................................................36
3.定制测试用例.....................................................................................................................38
4.对象库.................................................................................................................................38
5.自动测试尽可能多的分支和边界条件.............................................................................39
【例】发现条件中的整型边界条件...............................................................................39
【例】发现条件中的字符型边界条件...........................................................................40
- 2 -