Wednesday, July 17, 2019

Case Study for White Box Testing

clean Box Case Study 1. foundation In white-box interrogation, the mathematical function is to ensure that the either the code has been block outed and covered. There atomic number 18 different reportage measures depending on the train of detail of the white-box try. The reportage measures may as well as be applied to integration bear witnessing and system testing. 2. Learning Objectives The work up aims at giving an understanding of white-box. The specific breeding finishing is to gain a minute insight into the concept of white-box testing apply coverage measures.Assignment 1 tactual sensation at the program below. How many operable paths are there for this program? fructify a set of test cases that gives you ascorbic acid% coverage of all the feasible paths. foreplay ( strike off) If score 45 then stigma (fail) else print ( turn over) If score 80 then print ( with bank note) End Assignment 2 In this weeks lab academic term you will test the NextDate progr am with white-box proficiencys. generate an understanding of how the program works, the code is easy here Assignment 4 harbor flowgraphs of the methods in the NextDate class.Assignment 5 educate test cases based on the flowgraph. judge the minimum number of test cases if the goal is carbon% Statement coverage 100% Decision/branch covergae 100% check coverage 4. Exercise (on computer) Assignment 6 Now we would like you to thoroughly test the NextDate program apply white-box testing. You should implement the testcases you ware prepared on paper development statement, decision,and condition coverage. Preferably implement them using JUnit. Implement more test cases if you take a shit that you missed any during the preparation.Remember to finalize test case ID, what is tested, description, input, expected production and other useful information mend executing your test cases. You may in any case want to make room for pass and fail notes and perhaps for comments. Record your test results carefully for your test report. Report The purpose of the report is to discuss the result of the exercise and related topics. Following parts should be included, 1) conclusions from the lab posing, 2. Describe the outcome of your tests. treat the assignments and include the following The flowgraphs from the preparation assignment. The test cases. Remember to specify the associated test technique to separately test case. Also, specify the coverage measure of each method used. Defects detected. Which coverage criteria works best and why? When is each coverage criteria most applicable? equal black-box test techniques (used in lab session 1) and white-box test techniques. Discuss advantages and disadvantages with each and when they are appropriate to use.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.