Last time I talked about the factor of test case.However,for the sake of quality,we should also assure the coverage.
Theoretically,We want case should cover with the whole code and have no missing.Actually,that is hard to do.A software is impossible a simple and clear product.It includes hundreds and thousands of function. Addition the unstable hardware and picky customers,functions can generate more branches.I think if you want find a way to cover all of the branches that is almost impossible.As you know,testing is a economic concept essentially.So designning case should maintain well-proportioned coverage,but not 100 percentage coverage.The idea of well-proportioned coverage is have no important oversight.We can think of it like a football game,if we have omission that means the team have leak.Image cases,that means,maybe there are too many cases on that part and less case on this point.In other words,we omit the place where the case should place.As everyone knows,one case should correspond a function at least.So,we must know the function on every part.I claim that means we should know the requirement of customers.Then we can cover those function using cases.The recomand matrix is a good way to manage and track the function.We need mark test points base on the specification first.And then we can design cases primarily,at this time,we should ensure we consider all aspects of one point.Obviously,one point can have many possiblities.We must consider the different customer and guarantee them can use it in a portable way.The matrix can help us find the omission on test designning.But this method is trivial,may take our lots of time.We always have no enough time to do that.So we also need a mechanism to track the bigger module.I think this way is more fit for those entry tester,it will help them master the thinking of the process of desinning test case.I hold that the fundation is important.
These are some my point on coverage issue.Welcome to receive your comments.And tomorrow is Thanksgiving Day,hope everybody have a wonderful day.And for the person who help me,thanks a lot and take care!
Some points of this article use reference from the book <<xiaoao testing>>.