Aiming at the problem of huge demand for UAV swarm test scene samples and large test time consumption, this paper proposes an adaptive sampling method to sample scenes that make key changes in the performance of UAV swarm. The algorithm regards the UAV swarm as a black box autonomous system. The time of completing the task in different test environments of the UAV swarm is taken as the response, and the size of the test environment parameters is taken as the influence factor to fit the Gaussian process regression model. A model evaluator that can adjust the sample acceptance conditions is designed to control the sampling strategy according to different sampling purposes. Through the analysis of algorithm examples, it is found that the method proposed in this paper can fit the model faster and sample the area near the decision boundary better, which can effectively reduce the demand of UAV swarm test scene samples, reduce the test time and improve the test efficiency.