Traditional Culture Encyclopedia - Traditional virtues - What is the difference between object-oriented software testing and traditional software testing?

What is the difference between object-oriented software testing and traditional software testing?

⑴Traditional testing is performed after coding, and the main test object is the program code. Object-oriented testing is both testing without code and testing with code. It is an activity that is applied at different stages of the development process. It is a process that is closely related to but separated from the development process. , throughout the entire process of software development.

⑵ Object-oriented testing focuses more on objects rather than completing a single function of input and output like traditional testing, emphasizing testing of requirements or designs to verify and confirm the validity and correctness of specifications. Generally, methods such as static walkthrough and dynamic scene simulation are used to ensure the high quality of requirements and design.

⑶Due to different test objects, unit testing in traditional testing corresponds to class testing in object-oriented testing. Class testing includes: testing of class attributes, testing of class operations, and testing of objects in possible states. According to the main characteristics of object-oriented, there are differences in testing strategies and methods. Usually object-oriented testing is more difficult. For example, inheritance between classes may bring new difficulties to testing, and inheritance-level testing requires more thorough testing methods.

⑷In object-oriented testing, some commonly used traditional testing techniques, such as white box method and black box method, can still be used.