Function test of the system test method

Source: Internet
Author: User

For more software testing technical articles, visit the http://www.itmarks.cn/

Function Testing, also known as Correctness testing, checks whether the software's functions meet the specifications. Correctness is the most important quality factor in software, so testing is also the most important.

The basic method is to construct some reasonable input and check whether the expected output is obtained. This is an enumeration method. The tester must try to reduce the number of enumerations, otherwise the test investment will be too large. The key is to find the equivalence zone, because in the equivalence zone, you only need to test it once with any value. The concept of equivalence zone can be expressed as follows: Note (a, B) is an equivalence zone of proposition f (x). In (a, B), take X1 for testing. If F (X1) is incorrect, f (x) fails in the entire (a, B) interval. If F (X1) is correct, f (x) is correct throughout (A, B. The above test method is called equivalent test. It comes from people's intuition and experience and can get twice the result with half the effort.

Another effective test method is boundary value testing. That is, the boundary values of the defined domain or the equivalence zone are used for testing. Because programmers are easy to neglect the boundary, the program also "likes" errors at the boundary value. For example, a program that tests the square root function. Intuitively, the input equivalence zone must be (0, 1) and (1, + ∞ ). X = 0. 5 and x = 2. 0. Take x = 0 and x = 1 for the Boundary Value test.

There are some complex programs that make it difficult to find the equivalence zone and Boundary Value Based on intuition and experience. In this case, enumeration testing is quite difficult.

 

For more software testing technical articles, visit the http://www.itmarks.cn/

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.