简体   繁体   中英

Im textbox From 1 to 1000 write testcase to allow only multiple of 5 Using Equivalent partition and boundaries value analysis?

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:

  • 0 - Invalid
  • 1 - Valid
  • 1000 - Valid
  • 1001 - Invalid

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:

  • less than 1
  • 1 to 1000
  • more than 1000

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM