zoukankan      html  css  js  c++  java
  • 软件测试技术(二)——使用等价类划分的方法进行的UI测试

    测试的目标程序

     

    程序代码

     

     

    划分出的等价类

    划分方法

    编号

    有效等价类

    编号

    无效等价类

    长度

    1

    长度1-6

    5

    长度0

    6

    长度>=7

    字符

    2

    含有字符a-z

    7

    含有中文字符

    3

    含有字符A-Z

    8

    含有特殊字符

    4

    含有字符0-9



    测试用例

    编号

    输入

    覆盖的等价类

    期望输出

    实际输出

    1

    aA0

    1,2,3,4

    success

     success

    2


    5

     

    请输入1-6个英文字母或数字

    请输入1-6个英文字母或数字

    3

    aA01234

    6

    请输入1-6个英文字母或数字

    请输入1-6个英文字母或数字

    4

    7

    请输入1-6个英文字母或数字

    请输入1-6个英文字母或数字

    5

    T_T

    8

    请输入1-6个英文字母或数字

    请输入1-6个英文字母或数字

    测试截图

  • 相关阅读:
    LN : leetcode 283 Move Zeroes
    LN : Eden Polymorphic And OOP Design Pattern Abstract Factory
    LN : leetcode 242 Valid Anagram
    LN : leetcode 231 Power of Two
    LN : leetcode 191 Number of 1 Bits
    LN : leetcode 263 Ugly Number
    LN : leetcode 258 Add Digits
    LN : leetcode 292 Nim Game
    day5——Python整型、浮点型、布尔型及字符串
    day4——Python运算符
  • 原文地址:https://www.cnblogs.com/ocDx01jin/p/4356771.html
Copyright © 2011-2022 走看看