The invention provides a structured demand-based
missile-borne
embedded software test modeling automatic generation method, which comprises the following steps of: aiming at the characteristics of
missile-borne
embedded software, describing the behaviors of a
missile-borne
embedded software system by adopting a structured mode to form a structured demand-based standard expression template, establishing a mapping rule corresponding to the structured demand and the activity graph; the method comprises the following steps: according to a test demand and a standard expression template of a missile-borne embedded
software system,
filling in a structured demand template capable of completely expressing test demand information, and storing the structured demand template as an
XML document; reading and analyzing the
XML document, and converting the structured demand template into an activity graph according to a mapping rule, namely generating a test model; according to the method, behaviors of a missile-borne embedded
software system can be described on the basis of a structured mode, meanwhile, the relation between structured demand elements and an activity graph is established, and a relevant conversion
algorithm is designed to achieve automatic generation from the structured missile-borne embedded demand to a test demand model.