Design of the subject with the black box test cases

Equivalence partitioning the subject
1, the program input condition integer greater than 10 to less than 100 x
2, x has a value in a program input fixed enumeration type {1,3,7,15}, and these four values in the program respectively, they were processed.
3, windows file naming rules, may contain in addition ',' '/' ':' '? '' <> '' \ Any character 'outside, the file name length is 1-255 characters.

1 combat urban problems telephone number
of urban phone number consists of three parts. Their names and contents are: right area: Blank or three digits; prefix: the first non '0' or '1' in three digits; Suffix: 4 digits.
I assume that the program can accept all the phone numbers meet the above requirements, reject all non-compliant telephone number. According to the program's specifications, as equivalence class division, and designed to test the program.


2 combat, consider a payroll system, employees asked to enter job number, date and month, you can search out the employee salary information in the current time frame.
Job number field must enter a positive integer, not more than three. Date range in 1999-01 - about December 2012, and the date specified by the six numeric characters, the first four is the year, after two for the month.

Boundary value analysis

1, a power of two test procedures, the software allows the user to enter a number within the range 1-1000

2, calculating a square root function test

Actual 1, two input variables x1 (a≤x1≤b) and x2 (c≤x2≤d) a program limit value F test following analysis:

{ <x1nom,x2min>, <x1nom,x2min+>, <x1nom,x2nom>, <x1nom,x2max>, <x1nom,x2max->, <x1min,x2nom>, <x1min+,x2nom>, <x1max,x2nom>, <x1max-,x2nom> }

2 combat, there are binary function f (x, y), wherein x∈ [1,12], y∈ [1,31]. Using the design boundary value analysis test

Actual 3, the function f (x, y, x), wherein x∈ [1900,2100], y∈ [1,12], z∈ [1,31] of. Please write the function using design boundary value analysis test

Cause and effect diagram

1, a processing unit price of a box-beverage vending machine unit 5 cents. If the coin 1 yuan 5 angle, press the "Coke", "Sprite" or "black" button, send out respective beverages. If the investment is a two-dollar coin, exit 50 cents coins while sending beverage

Orthogonal experiment

1, in order to improve the conversion rate of a chemical product selected three factors related to the test conditions, the reaction temperature (A), reaction time (B), the amount of alkali (C), and identified their range tested as follows:

A: 80 [deg.] C ~ 90 [deg.] C
B: 90 minutes 150 ~
C: 5% ~ 7%

Calculated:
Number * (number of horizontal -1) + 1 = number of trials factor
calculation formula for the number of tests such as orthogonal:
(factor * first number (first number of horizontal -1) + second factor * number (second number of horizontal -1)) + 1 = number of tests

2, assuming that a WEB site that has a large number of servers and operating systems, and there are many with a variety of plug-in browser to:

WEB browser: Netscape6.2, IE6.0, Opera4.0
Plugins: No, RealPlayer, MediaPlayer
application server: IIS, Apche, Netscape Enterprise
operating system: Windows2000, Windows NT, Linux

Guess you like

Origin www.cnblogs.com/jane4321/p/11028956.html