1. Purpose
2. Requirements
- [ must do 1] for the triangle given in Appendix 1 to Judge Java code, the use of equivalent class partitioning method to design test cases, tabular form of the design of the test cases, written to the blog.
| Serial number |
Test input: Three edges (a,b,c) |
Test Prophecy (Oracle: Right angle, isosceles, equilateral triangle) |
| 1 |
1,2,7 |
Not a triangle. |
| 2 |
3,8,14 |
Not a triangle. |
| 3 |
2,3,4 |
It's a triangle. |
| 4 |
4,5,6 |
It's a triangle. |
| 5 |
3,4,5 |
Not equilateral triangle. |
| 6 |
6,6,6 |
It's equilateral triangle. |
| 7 |
5,6,6 |
Common triangles |
| 8 |
7,8,10 |
Common triangles |
| 9 |
10,11,11 |
Isosceles Triangle |
| 10 |
12,13,9 |
Not isosceles triangle. |
[ must do 2] imitate Appendix 2 gives the triangle judgment junit test Code, Design Unit test script, test [ must do 1] design of the test case. Note the order in which the test cases appear in the test script is consistent with the order listed in the [ required title 1] table. Run the resulting test script, truncate the result graph, write to the blog, and push the source code to your own github.
Github:https://github.com/tyshadow/tyshadow/blob/master/testtriangle.java
[ must do title 3] experience. Write down the points of knowledge you have gained from this practice.
This is a preliminary study of the JUnit framework application, to understand what is the application of equivalence class partitioning method design test cases and related methods, equivalence test situation needs to be considered comprehensively, testing is a reference
Software eighth time job