| With the development of science and technology,the complexity of avionics system is becoming higher and higher,and the loss caused by system failure or failure is also increasing.Software testing is an important means to guarantee the quality of the system,and the generation of test data is an important part.It can be said that the quality of avionics system depends on the quality of avionics system.Therefore,how to generate small-scale and high coverage avionics system security test data is an important research content.In the field of test data generation,combinatorial test has strong fault detection ability considering the interaction between parameters,which not only meets the requirements of safety test,but also takes into account the multi-source composite risk faced by complex avionics system.In order to generate the required test data of complex avionics system,this paper divides the communication system of complex avionics system into layers to establish the testability model.Aiming at the problem of test case redundancy that complex avionics system may face in the actual test,combinatorial test is combined with meta heuristic search algorithm to generate test case set.In this paper,a particle swarm optimization(PSO)algorithm improved by the BAS(Beetle Antennae Search)algorithm is proposed,and the parameters of the BAS algorithm are optimized and improved,and the improved algorithm is compared with the basic algorithm through the test function.Then the parameters of the testability model are taken as the experimental data,and the testability model is compared.Experimental results show that this method can reduce the size of test case set while maintaining the coverage of test cases,and has strong advantages compared with other algorithms and tools.Then,on this basis,approaching to the actual complex avionics system.By analyzing the impact of flight state changes and constraints between parameters on avionics system,proposing a parameter reduction strategy,which reduces the complexity of avionics system when generating test cases,and improves the applicability of the improved algorithm for avionics system. |