The invention discloses a
spacecraft autonomous function test method based on depth-first search, which realizes effective integration of numerous information in complex autonomous functions by taking autonomous function
software requirements and processes as input, and solves the problems that a traditional autonomous function test method is single in means, tedious in process and easy to cause incomplete
branch coverage. The labor cost of engineers is greatly tested, and the
test design quality and efficiency are improved. Meanwhile, aiming at a
spacecraft test scene, optimizing a depth-first search method and the like, the defect that an existing test adopts manual design is overcome, through an intelligent, high-accuracy and high-coverage
algorithm, the problems of
branch mistakes and omissions, incomplete coverage and the like possibly occurring in the
design process are reduced, and the design accuracy and efficiency are greatly improved. By establishing the directed binary
flow chart, unified management of
test design and implementation is achieved, efficient
test design and test implementation are achieved through the
visual flow chart and the model
library, and a new thought is provided for test design and implementation.