The test paper system module, to achieve automatic test paper, and requires the combination of the test paper to achieve all the indicators, such as the basic constraints of the test paper, difficulty control, question control have been met. According to the characteristics of this problem, a mathematical model is established to obtain an appropriate fitness function. This paper presents an effective method of genetic algorithm to solve the problem of paper grouping. The experimental results show that the experimental results obtained by using genetic algorithm meet the requirements and have good practicability.