Testing is the process of executing a program with the intent of finding errors.Given this definition of program testing,an appropriate next step is the determination of whether it is possible to test a program to find all of its errors.As will be shown,the answer is negative,even for trivial programs.In general, it is impractical,often impossible,to find all errors in a program.This fundamental problem will,in turn,be seen to have implications on the economics of testing,assumptions that the tester will have to make about the program,and the manner in which test cases are designed.
Black-Box Testing is one way to examine this issue is to explore a testing strategy called black-box,data-driven,or input/output-driven testing.That is,the tester is completely unconcerned about the internal behavior and structure of the program.Rather, the tester is only interested in finding circumstances in which the program does not behave according to its specification.Without taking advantage of knowledge of the internal strcture of the program.It is what I'm doing right now.
White-Box Testing,on the other hand,is another testing strategy which is permits one to examine the internal structure of the program.In using this strategy,the tester derives test data from an examination of the program's logic and often,unfortunately,at the neglect of the specification.We wish to do at this point is to establish the analog to exhaustive input testing in the black-box approach.To the uninitiated,causing every statement in the program to execute at least once might appear to be the answer,but it is not difficult to show that this is highly inadequate.An analog is usually considered to be exhaustive path testing.That is,if one executes,via test cases,all possible paths of control flow through the program,then possibly the program can be said to be completely tested.
After working four days,have a little achivement feeling,I think I should thanks all of person in our group.Thanks a lot!I'll perform better latter under your help and directions.