软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc》由会员分享,可在线阅读,更多相关《软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc(3页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、软件测试实验报告学 号:学生姓名: 班 级: 实验6 使用Parasoft C+ Test软件进行静态测试学号 * 姓名 * 班级 * 时间 2*一实验题目在三角形问题中,要求输入三角型的三个边长:A、B 和C。当三边不可能构成三角形时提示错误,可构成三角形时计算三角形周长。若是等腰三角形打印“等腰三角形”,若是等边三角形,则打印“等边三角形”。使用Parasoft C+ Test软件对三角形问题进行静态测试(代码走查)。二实验内容1. 安装并运行Parasoft C+ Test软件,了解其基本特点和功能。2. 编写代码完成题目的功能要求,已有代码最好转成C+(或测试同学的代码),包含类的定义
2、和使用。3. 使用C+ Test软件对程序源代码进行静态测试1,生成测试报表。静态测试1报表:Coding StandardsFile: tri.cppI=0 PV=0 V=12 PSV=3 SV=0 / total=1512 Violations (V) 1 An explicit logical comparison should be used in conditional expression (coding-24) 2 If, else, while and do statements shall be followed by a block, even if it is empty
3、 (coding-34) 6 Logical parts of a conditional expression shall be grouped with parenthesis even if not logically required (format-06) 2 Parenthesis shall be used with the return and sizeof statements (format-17) 1 There shall be a single ASCII space character following all commas (format-13) 3 Possi
4、ble Severe Violations (PSV) 1 All condition statements shall use and to identify the body of code associated with the condition (coding-12) 1 Avoid use scanf and fscanf functions without describing size of variables in format (sec-16) 1 Avoid using data in namespaces (sec-05) Coding Standards Detail
5、sC:Documents and SettingsAdministrator桌面tri.cpp3: PSV Avoid using data in namespacessec-055: PSV Condition statement if should use and to identify the body of code associated with the condition.coding-125: V If, else, while and do statements shall be followed by a block, even if it is empty. In func
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 软件 测试 实验 报告 使用 Parasoft Test 进行 静态
![提示](https://www.deliwenku.com/images/bang_tan.gif)
限制150内