What is white box testing? What is the method of white box testing?

What is white box testing?

White box testing is also known as structural testing or logic-driven testing. It is to know the internal working process of the product. It can be used to test whether the internal actions of the product are carried out normally according to the specifications, and to test according to the internal structure of the program. A program that verifies that each path in the program works correctly as intended, regardless of its function.

White box testing is a test case design method. The box refers to the software under test. White box means that the box is visible, that is, it is clear what is inside the box and how it works. The “white box” method fully understands the internal logical structure of the program and tests all logical paths. The “white box” approach is exhaustive path testing. When using this scheme, the tester must check the internal structure of the program, start from checking the logic of the program, and obtain the test data. The number of independent paths through the program is astronomical

What are the white box testing methods?
What are the white box testing methods?

What are the white box testing methods?

path test. When using this scheme, the tester must check the internal structure of the program, start from checking the logic of the program, and obtain the test data. The number of independent paths through the program is astronomical. But even if every path is tested there may still be bugs.

Logic coverage: Based on the internal logic structure of the program, it is divided into statement coverage, decision coverage, condition coverage, decision-condition coverage, condition combination coverage, etc.

Basic path test: Based on the program control flow, analyze the loop complexity of the control structure, derive a set of basic executable paths, and design test cases.

Logic coverage vs. path coverage:

Logic coverage: Based on the internal logical structure of the program or system, it is divided into statement coverage, decision coverage, decision-condition coverage, condition combination coverage, etc.

Basic path test: Based on the program or business control process, analyze the loop complexity of the control structure, derive a set of basic executable paths, and design test cases.

=
Like (0)
adminadmin
Previous 2023-08-23
Next 2023-09-17

相关文章