In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to design test cases for white-box testing, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
White-box testing is to design test cases according to the "internal logic" of the program. White-box testing is to test the logic path in the software by checking the internal logic structure of the software, and to set up checkpoints in different parts of the program to check the state of the program to determine whether the actual running state is consistent with the expected state.
White-box testing designs test cases according to the "internal logic" of the program, while black-box testing designs test cases according to the "specification" of the software.
White-box testing is also known as structural testing, transparent box testing, logic-driven testing, or code-based testing. White box testing is a test case design method. The box refers to the software being tested, and the white box refers to the visibility of the box, that is, knowing 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" method is exhaustive path testing. When using this scheme, the tester must check the internal structure of the program and get the test data from the logic of the program. The number of independent paths through the program is astronomical.
The white box test overrides the logic path in the software by checking the internal logic structure of the software. Set up checkpoints in different parts of the program to check the status of the program to determine whether the actual running state is consistent with the expected state.
The coverage standards of white-box testing are logical coverage, circular coverage and basic path testing. Logical coverage includes sentence coverage, decision coverage, conditional coverage, decision / conditional coverage, conditional combination coverage and path coverage. The ability of the six coverage standards to detect errors varies from weak to strong:
1. Statement overrides each statement at least once.
two。 The decision overrides each branch of each decision at least once.
3. Condition coverage each condition of each decision should take a variety of possible values.
4. Decision / condition coverage satisfies decision coverage condition at the same time.
5. The conditional combination covers each combination of the conditions in each decision at least once.
6. Path coverage causes every possible path in the program to be executed at least once.
Classification:
Generally speaking, the methods of white box testing can be divided into two categories: static analysis method and dynamic analysis method.
Static analysis is a technique that tests without executing the program. The key function of static analysis is to check whether the representation and description of the software are consistent and whether there is conflict or ambiguity.
Dynamic analysis is the analysis of the behavior of a software system before, during and after it is executed in a simulated or real environment. Dynamic analysis involves the formal operation of a program using specific expected results in a controlled environment. It shows whether a system is correct or incorrect in the checked state. In the dynamic analysis technology, the most important technology is path and branch testing.
Thank you for reading this article carefully. I hope the article "how to design test cases for white box testing" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.