Question

In: Computer Science

white box testing -- what is one effective way to do white box testing? C++

white box testing -- what is one effective way to do white box testing?

C++

Solutions

Expert Solution

If you find this answer helpful plz upvote.

White box testing - white box testing is a method of software testing. it is used to test internal structure. It evaluates all logical decisions and find whether they are true or false. It evaluates all loops to check their boundaries.white box testing checks the internal functioning of the system. In this method, testing is based on codes, statements, branches, paths and conditions. It is also known as clear testing or transparent testing. A tester is usually a developer. The main objective of white tex testing is used to check the quality of code.

One of the best effective way to do white box testing - -

-First you have to identify particular component to be tested.

-Now you must Draw a flow graph and draw paths.

- evaluate possible paths from flowgraph.

- use and write test cases.

-At last execute.

Important Techniques used in white box testing-

Statement coverage- it is used to cover 100% statement coverage of the code it means while testing every possible statement in the code is executed atleast once.

Decision coverage- it is used to cover 100% decision coverage of the code it means while testing every possible decision condition like if else, for loop and other conditional statement is executed atleast once.

Condition coverage- it is used to cover 100% condition coverage of code, it means while testing every possible conditions in code is executed at least once.

Decision/condition coverage- it is a mixed type of white box testing technique try to cover 100% decision /condition coverage of code. It means while testing every possible decision /conditions in code is executed atleast once.

Multiple condition coverage - all conditions tested at least once.


Related Solutions

What types of projects would be more suited for Black-Box testing compared to White-Box testing and...
What types of projects would be more suited for Black-Box testing compared to White-Box testing and vice versa?
Justify that black box testing is not an alternative to white box testing? Explain your answer...
Justify that black box testing is not an alternative to white box testing? Explain your answer in detail and provide examples. PLEASE HELP!!!!
Box X contains 3 red, 2 white marbles; box Y contqains red, white marbles A box...
Box X contains 3 red, 2 white marbles; box Y contqains red, white marbles A box os selected at random; a marble is drawn and put into the other box; then a marble is drawn from the second box Find the probability that both marbles drawn are of the same color
a box contains two red balls , one white ball and one blue ball. A sample...
a box contains two red balls , one white ball and one blue ball. A sample of two balls was drawn randomly, respectively (without return), If the variable X express the number of white balls and the variable Y express the number of blue balls in the sample, find : A- Fxy(0,1) B- Coefficient of correlation between the two variables and then commented on it
A cantilevered one way slab of effective span 1.5 m has an effective depth of 100...
A cantilevered one way slab of effective span 1.5 m has an effective depth of 100 mm. The slab is provided with 10 mm dia. main reinforcement at 150 mm c/c spacing. Check the slab for deflection if, Ast required is 522.02 mm2. The grade of concrete is M20 and grade of steel is Fe 415.
Why is two-way communication with a patient more effective than instruction that is one-way ( from...
Why is two-way communication with a patient more effective than instruction that is one-way ( from the HCP to the patient only )?
possibility tree One box contains two black balls (labeled B1 and B2) and one white ball....
possibility tree One box contains two black balls (labeled B1 and B2) and one white ball. A second box contains one black ball and two white balls (labeled W1 and W2). Suppose the following experiment is performed: One of the two boxes is chosen at random. Next a ball is randomly chosen from the box. Then a second ball is chosen at random from the same box without replacing the first ball. a. Construct the possibility tree showing all possible...
The One Minute Manager Meets the Monkey is a humorous and highly effective way to learn...
The One Minute Manager Meets the Monkey is a humorous and highly effective way to learn how to start delegating business tasks. When a person goes to the boss with a problem and the boss agrees to do something about it, the monkey is off his back and onto the boss's. How can managers avoid these leaping monkeys? Here is priceless advice from three famous business experts: how managers can meet their own priorities, give back other people's monkeys, and...
A box contains three white balls, two black balls, and one red ball. Three balls are...
A box contains three white balls, two black balls, and one red ball. Three balls are drawn at random without replacement. Let Y1 be the number of white balls drawn, and Y2 the number of black balls drawn. Find the distribution of Z = Y1 × Y2
14. What is most likely to get in the way of effective communication? What can be...
14. What is most likely to get in the way of effective communication? What can be done about that? 15. How and to what extent does your organization value teams? What is the key to leading teams? 16. What is the primary takeaway from your assessment of the fundamentals of leading? What is your synthesis of this component?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT