Error input judgment and instance design of "Software Test" black box test

Source: Internet
Author: User

This study contains error input analysis for black box testing:

In a black box test, the range type of the input data can cause errors that cannot be parsed by the program, so it is important to consider a variety of input methods in the design of the test case.

The common input data are:

1 Number: 1234567 ...

2 Letters: ABCdef ... ABCDEF ....

3 Symbols:! @#¥% ...

4 characters: Ah, the amount of ...

These as well as their mixed input test instances.

If we enter an error, then there are possible scenarios:

1 The value of the input number is too large, out of range (such as 2 of 16 times)

2 input illegal, limited to the number of input letters, etc.

Therefore, in the design of the test case, to have a range of valid equivalence classes and out-of-range instances to determine

Example

The telephone number of the city is made up of two parts. The names and contents of these two parts are:

1) Area code: three-digit or four-digit number starting with 0 (including 0);

2) Telephone Number: seven-bit or eight-digit number starting with non-0, non-1.

It is assumed that the program being debugged will accept all telephone numbers that meet the above requirements and reject all non-conforming numbers.

The test case analysis here can be used to design test cases in the appropriate way

Legal Use Cases

012 1234567

0123 1234567

012 12345678

0123 12345678

Illegal use cases

01234 12345678

01 123456

And

ABC ABCDEFG

Or! @#¥%......&* ()

Analysis of input range through illegal test case design

Error input judgment and instance design of "Software Test" black box test

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.