A simple understanding of software testing

Source: Internet
Author: User

1. What is software testing?

Definition of software Testing the teacher gave the following versions.
(1) Software testing is designed to evaluate the properties or capabilities of a program or system to determine whether it meets the required results.
(2) Software testing is to provide stakeholders with testing information about products or services through observation and experimentation.
(3) Software testing runs through the entire life cycle of a product and is designed to test the behavior and performance of software through a series of activities that use test cases. Includes requirements and documentation.
2. Where do you come from?
Where does software testing come from, and why do we have to do software testing? We're not the perfect programmers, and even the top programmers don't necessarily write the perfect program. and software testing can help us figure out what's wrong with writing. Mastering the principles and methods of software testing can also improve the reliability of software.
Even a very small program can have a lot of problems. Such as:

Char AAA, no initialization.
aaa++; the loop does not jump out of the condition, so AAA may overflow.
The IF (aaa>200) char type has a value range of 128 to 127, so the class will never be dismissed.
3. What should we do?

Learn some basic concepts about how to test software and learn through this week's course.

(1) Understanding of software Testing: Understanding user needs, to ensure that the understanding of the correct, correct design, correct expression, correct coding, input correct, and run correctly.
Understand the cause of the software error: The user needs Express is not clear, the designer does not fully understand the requirements, the design of unreasonable designers, coding errors, failure to run.
Software defect resolution steps: Defect classification, defect isolation, defect resolution and repair.
(2) Understanding Test Cases: test cases are a set of test inputs, execution conditions, and expected results for a particular goal to test a program path or verify that a specific requirement is met.
(3) Black box test: Black box test is also called functional test, it is tested to detect whether each function can be used properly. In the test, the program as a black box can not be opened, regardless of the internal structure of the program and internal characteristics of the case, in the program interface testing, it only checks whether the program function in accordance with the requirements of the specification of the normal use, the program can properly receive input data and produce the correct output information. Black box testing focuses on the external structure of the program, regardless of the internal logical structure, mainly for the software interface and software function testing.
White box test: It is tested by the source code of the program without using the user interface. This type of test requires the discovery of the internal code from the code syntax in terms of algorithms, overflows, paths, conditions, and so on shortcomings or errors, and then corrected. Black-Box testing: Also known as functional testing, data-driven testing, or specification-based testing, is rigorously tested by using the entire software or some kind of software feature, without checking the program's source code or knowing exactly how the software's source code program is designed. Testers understand how the software works by entering their data and then looking at the results of the output.

A simple understanding of software testing

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.