Study Progress Chart
A bit of achievement |
Study time |
Newly written lines of code |
Blog Volume (article) |
Learn the point of knowledge |
First week |
8 |
0 |
0 |
Understanding Software Engineering |
Second week |
10 |
0 |
1 |
A blog post |
Third week |
15 |
0 |
2 |
Select projects, Questionnaires |
Week Four |
20 |
80 |
0 |
Pair programming |
Week Five |
25 |
330 |
1 |
Java Learning, Software engineering |
Week Six |
25 |
210 |
0 |
Compiling principle, Software engineering |
Seventh Week |
15 |
0 |
0 |
Software system Design |
Eighth Week |
20 |
256 |
1 |
Software testing, pairing programming blog post |
1. Title Description:
The construction program is: • Cannot trigger fault. • Triggers fault, but does not trigger error. • Trigger error, but cannot produce failure
2. Pair programming Object: Lisha 2013110420
The Other Side blog address: http://www.cnblogs.com/tripoon/each other contribution than the column: 1:1 photos: 3.Fault static error, Failure external error, Error internal errors 4. Code: Program 1: The number of strings that cannot be divisible by 2
Packagetest1;ImportJava.util.Scanner; Public classTest1 {/** * @paramargs*/ Public Static voidMain (string[] args) {//TODO auto-generated Method StubScanner Input=NewScanner (system.in); System.out.print ("Please enter the number of tests to be tested: n="); intn=Input.nextint (); System.out.println ("Please enter the number to be tested:"); int[] num=New int[n]; intm; for(inti=0;i<n;i++) {System.out.print ("num[" +i+ "]="); M=Input.nextint (); Num[i]=m; //Input.next (); }//for (int i=0;i<n;i++) {//System.out.print ("num[" +i+ "]=" +num[i]+ ",");// }//System.out.print ("Number not divisible by 2:" +Iszhengchu (num)); } Public Static intIszhengchu (int[] num) { intSum=0; for(inti=0;i<num.length;i++){ if(num[i]%2==0){ Break; } Sum++; } returnsum; }}
(1) Fault: The break should be changed to continue
(2) An execution of fault produced an error, but did not cause failure
When the input value is num={1,3,2}, the expectation is: 2, the result is: 2
(3) Execute fault, but do not return the wrong value
When the input value is num={1,3,5}, the expectation is: 3, the result is: 3
(4) Do not perform fault
When input value num={};
The program will directly access invalid memory causing the program to hang out
5. Summary
Understand the difference between fault &failure &error three bugs in software testing and contact!
L
Pair programming 2-fault&error&failure