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]

  • 相关阅读:
    document cookie用法
    禁用表单元素 && 禁止选中
    tool
    居中对齐
    插件
    浮动应用
    兼容低版本 ie 的思路
    Linux无权限上传文件解决办法
    linux系统常用运维命令
    linux系统快捷键
  • 原文地址:https://www.cnblogs.com/znnby1997/p/8544936.html
Copyright © 2011-2022 走看看