软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc

软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc

ID:53046003

大小:138.50 KB

页数:4页

时间:2020-03-31

软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc_第1页
软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc_第2页
软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc_第3页
软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc_第4页
资源描述:

《软件测试实验报告-使用Parasoft-C++-Test软件进行静态测试.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、软件测试实验报告学号:学生姓名:班级:实验6使用ParasoftC++Test软件进行静态测试学号**********   姓名***    班级*****    时间2************一.实验题目在三角形问题中,要求输入三角型的三个边长:A、B和C。当三边不可能构成三角形时提示错误,可构成三角形时计算三角形周长。若是等腰三角形打印“等腰三角形”,若是等边三角形,则打印“等边三角形”。使用ParasoftC++Test软件对三角形问题进行静态测试(代码走查)。二.实验内容1.安装并运行ParasoftC++Test软件,了解其基本特点和功能。2.编写代码完成题目的功能要求,已有代码

2、最好转成C++(或测试同学的代码),包含类的定义和使用。3.使用C++Test软件对程序源代码进行静态测试1,生成测试报表。静态测试1报表:CodingStandardsFile:tri.cpp[I=0PV=0V=12PSV=3SV=0/total=15][12]Violations(V)[1]Anexplicitlogicalcomparisonshouldbeusedinconditionalexpression(coding-24)[2]If,else,whileanddostatementsshallbefollowedbyablock,evenifitisempty(coding-3

3、4)[6]Logicalpartsofaconditionalexpressionshallbegroupedwithparenthesisevenifnotlogicallyrequired(format-06)[2]Parenthesisshallbeusedwiththe"return"and"sizeof"statements(format-17)[1]ThereshallbeasingleASCIIspacecharacterfollowingallcommas(format-13)[3]PossibleSevereViolations(PSV)[1]Allconditionstat

4、ementsshalluse'{'and'}'toidentifythebodyofcodeassociatedwiththecondition(coding-12)[1]Avoidusescanfandfscanffunctionswithoutdescribingsizeofvariablesinformat(sec-16)[1]Avoidusingdatainfileoutsidenamespaces(sec-05)CodingStandardsDetailsC:DocumentsandSettingsAdministrator桌面tri.cpp3:[PSV]Avoidusing

5、datainfileoutsidenamespacessec-055:[PSV]Conditionstatementifshoulduse'{'and'}'toidentifythebodyofcodeassociatedwiththecondition.coding-125:[V]If,else,whileanddostatementsshallbefollowedbyablock,evenifitisempty.InfunctionIsTriangle.coding-345:[V]Logicalpartsofaconditionalexpressionshouldbegroupedwith

6、parenthesisformat-065:[V]Logicalpartsofaconditionalexpressionshouldbegroupedwithparenthesisformat-066:[V]returnstatementshouldbeusedwithparenthesisformat-178:[V]returnstatementshouldbeusedwithparenthesisformat-1714:[PSV]After'%'onpositionnumber:1sholudbenumberdescribingsizeofvariablesec-1614:[V]Nosi

7、ngleASCIIspacecharacterfollowingcommaformat-1316:[V]Logicaltestsshouldbeexplicitinconditionexpressioncoding-2419:[V]Logicalpartsofaconditionalexpressionshouldbegroupedwithparenthesisformat-0619:[V]Log

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。