Software testing is a very important part of the software engineering,is one kind can guarantee the software quality the effective method that its ultimate aim is to test products to achieve a perfect state.This thesis introduces the two major testing methods and design and analysis of use cases.