zoukankan      html  css  js  c++  java
  • 软件测试第二次作业

    There are two faulty programs. Answer the following questions about each program.

    1.Identify the fault.

    程序一:索引值i取不到0,数组中遗漏最后一个元素。

    程序二:当搜索到第一个0时便返回其索引(并非最后一个0值)

    2.If possible, identify a test case that does not execute the fault.

    程序一:

                      Test: x = [], y = 2

    程序二:

                      Test: x = []

    3.If possible, identify a test case that executes the fault, but does not result in an error state.

    程序一:

                      Test: x = [2, 3, 5], y = 2

    程序二:

                      Test: x = [0, 1, 2]

    4.If possible, identify a test case that results in an error, but not a failure.

    程序一:

                      Test: x = [3, 4, 5], y = 2

    程序二:

                      Test: x = [1, 2, 3]

  • 相关阅读:
    WBS分析
    需求分析-NABCD
    电梯演讲--2048小游戏
    Git diff 算法
    2020 北京理工大学889 回忆
    抖音后台开发社招面试
    珍宝阁
    2018 北京理工大学复试上机 回忆版
    2018 北京理工大学889 回忆
    做一个博客
  • 原文地址:https://www.cnblogs.com/znnby1997/p/8544936.html
Copyright © 2011-2022 走看看