The invention provides a test method and apparatus. The method comprises the steps of obtaining a test object; obtaining an anti-pattern test scheme, wherein the anti-pattern test scheme comprises ananti-pattern test policy; and testing the test object through the anti-pattern test policy of the anti-pattern test scheme. Through the technical scheme, an anti-pattern thought is introduced in the test field, and the test is further carried out through an anti-pattern model, so that the test quality is improved, the test scheme is perfecter and more reasonable, test logic is clearer, a test direction is more definite, and a test process can be guided more comprehensively. The anti-pattern thought is supplementation of a positive test thought, can guide test personnel to look at, analyze andsolve the problem from the opposite perspective and think the test scheme from the opposite perspective, improves thinking methods of the test personnel, well achieves a guide effect in the whole testprocess, and optimizes the quality of the test object.