The present invention belongs to the fields of
satellite remote sensing and
software, and provides an automated test method for
relay visibility prediction based on STK. First, develop Spring Cloud microservice
software based on the
JAVA language, establish connections with STK and the microservice
software to be tested respectively, create a new
scenario in STK and set
scenario parameters, create spatial vectors, spatial angles and create custom reports; secondly, randomly generate the
observation time period, the
pitch and
yaw capabilities of the observation
satellite and the orbital parameters, and the orbital parameters of the
relay satellite using the
JAVA language, and set them into the STK
scenario through commands; then use the
JAVA language command to control STK to generate and obtain custom reports, process and analyze the report data to obtain the STK
relay visibility time window; finally, call the relay
visibility function interface of the microservice software to be tested, obtain the relay visibility time window for a specified time period, and compare it with the result of STK to verify the
correctness. The present invention can achieve efficient and accurate test
verification of the relay visibility prediction function of the microservice software to be tested.