testing - Im textbox From 1 to 1000 write testcase to allow only multiple of 5 使用等效分区和边界值分析?

标签 testing analysis partition boundary equivalence

使用等价划分和边界分析技术,编写从 1 到 1000 中仅选择 5 的倍数的测试用例

最佳答案

边界值分析

根据您的问题,有效输入空间是 1 到 1,000。 Boundary Value Analysis是测试有效空间边缘的地方。因此最好的四个测试用例是:

  • 0 - 无效
  • 1 - 有效
  • 1000 - 有效
  • 1001 - 无效

在无效的测试用例中,您正在检查是否提供了正确的(用户可理解的)错误消息。

等价划分

equivalence partitioning您将输入空间分成不同的分区,每个分区有一个测试用例。如果没有关于实现的任何细节,您只有三个分区:

  • 少于1
  • 1 到 1000
  • 1000多个

从这里您可以为每个分区选择一个输入。

关于testing - Im textbox From 1 to 1000 write testcase to allow only multiple of 5 使用等效分区和边界值分析?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58962765/

相关文章:

java - 如何在不实际运行 Java 类的情况下分析它的性能?

algorithm - 我可以对这个递推关系使用大师定理吗?

algorithm - 如何计算特定函数将在递归中执行的次数?

java - 卡夫卡 : what's the best way to dynamically determine the number of partitions in a topic from the consumer side?

list - Haskell:如何从一个公共(public)列表中创建文件列表和目录列表

web-services - 测试 Web 服务/API 时的 BDD

c# - 当测试由 Nunit 驱动时从 c# 中的命令行读取数据

android - 在 Android 中使用虚假的 http 响应测试 Activity

c# - 使用 nhibernate 在 .net 中进行集成测试

hadoop - Pig:如何列出Hive分区以及如何向Hive添加新分区