The source code: a) Control flow b) The simple fault that t2(n=5) would be more likely to discover than t1(n=3) would is the index of the array out of ...
分类:
其他好文 时间:
2017-03-14 21:09:55
阅读次数:
278
Use the following method printPrimes() for questions a–d. 原书:《Introduction to Software Testing》BY Paul Ammann and Jeff Offutt 题目为书中2.3小节第7题。 题目代码如下: ( ...
分类:
其他好文 时间:
2017-03-14 19:33:41
阅读次数:
181
1.回答书上63-64页printPrimes()问题a-d: a:本题控制流图如下图1所示 为查看方便,利用图2进行答题 图1 图2 b: 我们注意到代码第十行有int [] primes = new int [MAXPRIMES] 若在程序中设置MAXPRIMES = 4,那么当运行t1时不会出 ...
分类:
其他好文 时间:
2017-03-14 10:44:12
阅读次数:
300
Using the following method printPrimes() for questions a-f below Prime.java PrimeTest.java Answer: ■ (a) Draw the control flow graph for the printPrim ...
分类:
其他好文 时间:
2017-03-12 23:48:33
阅读次数:
228
JUnit以及hamcrest-core-1.3 安装步骤 首先,新建一个java项目,名字叫triangle,然后右键,选择Properties,点击Java Build Path, 选择Libraries选项,点击右边的 Add library 选项,选择JUnit4, 于是JUnit软件包就被 ...
分类:
其他好文 时间:
2017-03-12 23:38:53
阅读次数:
218
Software Testing, Lab 1 1. Install Junit(4.12), Hamcrest(1.3) with Eclipse 1.在github上下载两个jar包junit-4.12.jar和hamcrest-all-1.3.jar地址为https://github.com/ ...
分类:
其他好文 时间:
2017-03-12 22:57:57
阅读次数:
242
Software Testing, Lab 1 March 10. 2016, by 赵国佺(3014218108) 一、 environment setup Firstly, I download the eclemma Zip from our ST’s course web. Because ...
分类:
其他好文 时间:
2017-03-12 20:10:06
阅读次数:
140
在KRPano开发过程中,初学者打开项目经常遇到如下的问题: FATAL ERROR:tour.xml – loading failed! (0) 或者是: ERROR:Local usage with file:// urls is limited due browser security 截屏如 ...
分类:
其他好文 时间:
2017-03-12 17:59:02
阅读次数:
2984
Tasks: a) Description of triangle problem: Function triangle takes three integers a,b,c which are length of triangle sides; calculates whether the tri ...
分类:
其他好文 时间:
2017-03-12 15:05:01
阅读次数:
128
1.下载junit和hamcrest的jar包并引入项目 2.在eclipse商店中下载安装eclemma插件 3.编写判断三角形形状的代码 4.完成测试类代码 5.测试结果 ...
分类:
其他好文 时间:
2017-03-12 13:27:43
阅读次数:
135