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