The invention discloses a method for dynamically allocating software testing resources based on a multi-objective differential evolution algorithm, which can be applied to modular testing of serial-parallel software systems. It is aimed at the situation that the current test resource allocation method does not consider the resource waste caused by the change of the test process. The method includes steps: S1, coding for feasible decoding; S2, division of testing phases; S3, setting control parameters; S4, initializing population; S5, mutation operation; S6, crossover operation; S7, selection operation based on non-dominated sorting; S8 , to judge whether the maximum number of iterations has been reached, if not, then skip to S5; if so, then skip to S9; S9, to decode the pareto; S10, to judge whether there is still an unfinished test stage, if not, then end the solution process; If it exists, skip to S11; S11, update the test resources of the next test stage, skip to S4, and enter the next test stage.