图 4.2.1 Black-box test Also called structured,data-driven,functional,or input/output-driven testing. Seeks to verify that the module conforms to the specified input and output while ignoring the actual code. It is rarely possible to test all modules for all possible input cases,which may be a huge number of modules. Usually time constraints permit only about 1000 test cases per module,so tests should be chosen carefully. Exhaustive testing is feasible only when input combinations are small. >校长办公室 >Office of the President
¾校长办公室 ¾Office of the President 4.2.1 Black-box test Also called structured, data-driven, functional, or input/output-driven testing. Seeks to verify that the module conforms to the specified input and output while ignoring the actual code. It is rarely possible to test all modules for all possible input cases, which may be a huge number of modules. Usually time constraints permit only about 1000 test cases per module, so tests should be chosen carefully. Exhaustive testing is feasible only when input combinations are small
© Equivalence testing is a technique based on the idea that the input specifications give ranges of values for which the software product should work the same way. Boundary value analysis seeks to test the product with input values that lie on and just to the side of boundaries between equivalence classes. >校长办公室 >Office of the President
¾校长办公室 ¾Office of the President Equivalence testing is a technique based on the idea that the input specifications give ranges of values for which the software product should work the same way. Boundary value analysis seeks to test the product with input values that lie on and just to the side of boundaries between equivalence classes
For example the input is (a,b),there are at least 5 equivalence classes: the numbers less than a; 国 a, the numbers between a and b; e b; the numbers greater than b; functional testing,the tester identifies each item of functionality or each function implemented in the module and uses data to test each function. >校长办公室 >Office of the President
¾校长办公室 ¾Office of the President For example the input is (a,b), there are at least 5 equivalence classes: the numbers less than a; a; the numbers between a and b; b; the numbers greater than b; functional testing, the tester identifies each item of functionality or each function implemented in the module and uses data to test each function
图 4.2.2 White-box test Also called behavioral,logic-driven,or path-oriented testing. It ignores the specification in favor of exercising each path through the code.Unfortunately,testing each path through the code is generally not feasible,even for simple flowcharts. Moreover,it is possible to test every path without finding existing faults,because,for example,the fault lies in the decision criterion for selecting between paths. Moreover,it is possible to exercise successfully all paths with data that would not show the fault. >校长办公室 >Office of the President
¾校长办公室 ¾Office of the President 4.2.2 White-box test Also called behavioral, logic-driven, or path-oriented testing. It ignores the specification in favor of exercising each path through the code. Unfortunately, testing each path through the code is generally not feasible, even for simple flowcharts. Moreover, it is possible to test every path without finding existing faults, because, for example, the fault lies in the decision criterion for selecting between paths. Moreover, it is possible to exercise successfully all paths with data that would not show the fault