As we know, the user interface (UI) is an important component of a software system. More than 30% or 50% of the whole system development work spend on the design and implementation of the user interface. This is especially obvious in spacecraft automatic test system. In the process of spacecraft automatic testing, it is necessary to provide a lot of test parameters setting interface according to the different test environment, which is a complex and repetitive work. In this paper, in order to reduce the workload of developers on the interface implementation and improve the understandability and the maintainability of software, we design a common description method for the user interface of test atoms based on ontology; establish the relationship between the test atom and the style description file though rules; build the style description tree by a grammar parser; set the layout of the interface according to the root attributes of the style description trees; traversal the style description tree by depth-first search; generate the execute code of the controller event listeners which corresponds to the leaf node of the style description tree by using reflection mechanism and scripts; form the final interface. At last, the practical applicability of the approach is evaluated through a case study.
['Rui Li', 'Shilong Ma']
The implementation of user interface autogenerate for spacecraft automatic tests based on ontology