--- test case design Boundary value analysis method

Boundary value analysis method of learning objectives
to master the boundary value analysis test cases
to master to determine the range of boundary value analysis method
to master the method from the point of division

1, Why study boundary value analysis Example: double-digit addition Calculator
requirements: integer between input and two 1-100
--- test case design Boundary value analysis method
Guess why the program problems mentioned above?
Input parameter values is less than both an integer greater than 0, setting the boundary conditions Error 100: the> written> = the <written <=
--- test case design Boundary value analysis method
[Note]
valid data and invalid data breakpoint, often as a programmer to write programs decision point, the programmer is easy to make mistakes, and is the focus of the test content test personnel.
--- test case design Boundary value analysis method
--- test case design Boundary value analysis method
2, what is the border
boundary refers to the input and output equivalence class equivalence class, the boundary values slightly above and some specific cases the lower limit value thereof.
Boundary value analysis
boundary value analysis is one of the most common black-box test design method embodiment.

3, boundaries
determine the boundaries of the case (input or output boundary equivalence class)
to select exactly equal to, preferably greater than or just less than the boundary value just good as the test data

4, test case design analysis Procedure boundary value
1, a clear demand
2, determining valid and invalid equivalence class
1, the title conditions effective equivalence class is (limit (limit value) is determined to be at both ends, the middle of a random value should judge)
2, invalidity equivalence class division and contrary to the conditions, to find special circumstances (Chinese, English, symbols, spaces, empty)

3, find the value of the boundary conditions in the title of
the boundary value, in the finish, we have to write a separate test cases for testing

4, write test cases

Method 1 Exercise boundary value
method designed to add a title boundary value test case requirements: the header length> 0 header length <= 30
--- test case design Boundary value analysis method
Boundary Value Exercise 2
QQ account: 6 --- 10 number of natural
--- test case design Boundary value analysis method
boundary value method Exercise 3
modified mobile banking password: alphanumeric password must be combined with
the password length between 8 and 24 (8 and 24 comprising a)

Job title
seeking between [1,100], and any two integers

Scope boundary value analysis

1. The input parameters, and the input range when the boundary length or type
used with the equivalence class 2 and

Guess you like

Origin blog.51cto.com/14473726/2450744