03 2016 档案

软件测试作业(四)
摘要:题目所给出的代码为 (a):控制流图如下 (b):将MAXPRIMES设为4,这样t2=(n=5)就会出现数组越界的错误,但t1=(n=3)无影响。 (c):n=1的时候不满足numPrimes < n,故不经过while循环 (d):点覆盖:{1,2,3,4,5,6,7,8,9,10,11,12, 阅读全文

posted @ 2016-03-29 23:34 Tiny丶 阅读(322) 评论(0) 推荐(0)

软件测试作业(三)
摘要:Junit、Hamcrest、Eclemma的安装和使用 一、Junit, hamcrest 及eclemma的安装 通过导入jar包安装Junit及hamcrest,步骤如下: 选中建好的项目,右击,选择Build Path->Configure Build Path,转到下图界面: 点击 Add 阅读全文

posted @ 2016-03-19 20:41 Tiny丶 阅读(130) 评论(0) 推荐(0)

软件测试作业(二)
摘要:Below are two faulty programs. Each includes a test case that results in failure. Answer the following questions (in the next slide) about each progra 阅读全文

posted @ 2016-03-08 22:12 Tiny丶 阅读(330) 评论(0) 推荐(0)

软件测试作业(一)
摘要:说起程序中的bug,真是一个令所有程序员深恶痛绝的东西,然而大部分都是源于接触少,缺乏经验。 在上学期javaWeb大作业中,在写一个jsp的时候,由于一个button的功能是提交,于是把这个button的name赋值为submit,然而这个值和jsp中form(表单)的提交函数重名了。 部分代码如 阅读全文

posted @ 2016-03-06 23:00 Tiny丶 阅读(498) 评论(0) 推荐(0)

导航