Write test case for selecting only multiple of 5 from 1 to 1000 using equivalence partition and boundary analysis technique
Boundary Value analysis
Based on your question the valid input space is 1 to 1,000. Boundary Value Analysis is where you test the edges of the valid space. Therefore the best four test cases are:
In the invalid test cases you are checking that the correct (user understandable) error message is provided.
Equivalence partition
With equivalence partitioning you split the input space into different partitions and have one test case per partition. Without any details on the implementation you only have three partitions:
From here you can pick an input for each of these partitions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.