随笔分类 - 软件测试(software testing)
摘要:转:软件测试中条件覆盖,路径覆盖,语句覆盖,分支覆盖的区别 举个例子吧 if A and B then Action1 if C or D then Action2 语句覆盖最弱,只需要让程序中的语句都执行一遍即可 。上例中只需设计测试用例使得A=true B=true C=true 即可。 分支覆
阅读全文
摘要:一、实验主要内容: 1、 2、EclEmma安装 见: http://www.cnblogs.com/1995hxt/p/5291465.html 二、对与 Junit 安装,使用 maven管理项目,方便jar包的版本管理,冲突管理等等。 三、实验demo 1、方法主类: 2、测试类: 3、测试结
阅读全文
摘要:一、EclEmma 简介: EclEmma是一个开源的软件测试工具(for eclipse),可以在编码过程中查看代码调用情况、也可以检测单覆盖率。 详见: http://eclemma.org/ 二、Eclipse下安装: 1. 选择Help->Eclipse Marketplace->搜索Ecl
阅读全文
摘要:Questions: 1)Identify the fault. If possible, identify a test case that does not execute the fault. (Reachability) 2)If possible, identify a test case
阅读全文
摘要:1、Java String 的 == 用 equals() 函数,而并非 ‘==’。 这个错误,导致分支语句老是不能正常进行,导致结果错误。 我一般找错,都是跟踪数据的变化,用 console.log(),或者System.out.println(),或者用第三方的库 log4j等等跟踪变化,找到错
阅读全文

浙公网安备 33010602011771号