CN107678946B - Model-based airborne embedded software test environment construction method - Google Patents
Model-based airborne embedded software test environment construction method Download PDFInfo
- Publication number
- CN107678946B CN107678946B CN201710815160.5A CN201710815160A CN107678946B CN 107678946 B CN107678946 B CN 107678946B CN 201710815160 A CN201710815160 A CN 201710815160A CN 107678946 B CN107678946 B CN 107678946B
- Authority
- CN
- China
- Prior art keywords
- software
- model
- tested
- environment
- virtual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a model-based airborne embedded software test environment construction method, which comprises the steps of designing a system environment model of airborne embedded software, constructing a virtual communication bus according to data interface and data communication bus information in the model, constructing a virtual operating environment according to hardware operating environment information in the model, constructing each simulation node according to simulation node information, and establishing a communication network of tested software and each simulation node according to a cross-linking relation in the model, thereby constructing a dynamic test environment of the airborne embedded software. According to the method, the dynamic test environment is automatically constructed according to the system environment model, the process of manually constructing the dynamic test environment is simplified, and the method can be repeatedly used.
Description
Technical Field
The invention belongs to the field of computer software testing, and particularly relates to a model-based airborne embedded software testing environment construction method.
Background
When the onboard embedded software is dynamically tested, the construction of a dynamic test environment relates to the contents of a hardware running environment, a real physical bus, a peripheral simulation node and the like of the tested software.
At present, the manual building process mainly adopted relates to the problems of different hardware, various interfaces, complex cross-linking relation and the like, the building process is complicated and long in time consumption, the built test environment cannot be stored, the building is needed again for regression test, repeated work exists, and the dynamic test efficiency is influenced.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a model-based airborne embedded software test environment construction method.
The technical scheme of the invention is as follows:
the model-based airborne embedded software test environment construction method is characterized by comprising the following steps: the method comprises the following steps:
step 1: designing a system environment model of airborne embedded software, wherein the system environment model comprises a hardware running environment of the tested software, functions of peripheral simulation nodes, data interfaces, communication buses and cross-linking relations of the tested software and the simulation nodes, and deployment mode contents;
step 2: uploading a system environment model of the airborne embedded software to a data management server;
and step 3: instantiating a data communication bus on a data management server;
and 4, step 4: according to the deployment mode, configuration information of the tested software and the peripheral simulation nodes, corresponding data interfaces and communication bus information are issued to the corresponding simulation node running servers and the tested software running servers;
and 5: instantiating a virtual operating environment of the tested software on the tested software operating server;
step 6: instantiating the simulation nodes on the operation servers of the simulation nodes;
and 7: and establishing a real communication network according to the simulation nodes and the data interfaces, the cross-linking relation and the deployment mode among the tested software, so as to realize the normal communication between the tested software on each running server and all the simulation nodes.
Further preferred scheme, the model-based airborne embedded software test environment construction method is characterized in that: the instantiation of the data communication bus on the data management server in the step 3 refers to: and on the data management server, a virtual bus model and a virtual bus communication module are constructed according to the data interface and the data communication bus.
Further preferred scheme, the model-based airborne embedded software test environment construction method is characterized in that: the instantiation of the tested software virtual operating environment in the step 5 refers to: on the running server of the software to be tested, acquiring a corresponding hardware virtual machine and a virtual bus model from a data management server according to the hardware running environment and the communication bus information of the software to be tested, constructing a virtual running environment of the software to be tested, and deploying the software to be tested to the virtual running environment; the hardware virtual machine is composed of configuration information of the running environment of the tested software hardware in the system environment model and a virtual hardware module.
Further preferred scheme, the model-based airborne embedded software test environment construction method is characterized in that: the instantiation of the tested software virtual operating environment in the step 6 refers to: and on the operation server of each simulation node, acquiring a corresponding functional module and a corresponding virtual bus communication module from the data management server according to the functional information of the simulation node and the corresponding data interface and communication bus information, and combining to construct an operable simulation node.
Further preferred scheme, the model-based airborne embedded software test environment construction method is characterized in that: the functions of the peripheral simulation nodes in the step 1 comprise inputting required information into the tested software and receiving an output result of the tested software.
Advantageous effects
The dynamic test environment of the airborne embedded software is constructed by designing a system environment model of the airborne embedded software, constructing a virtual communication bus according to data interface and data communication bus information in the model, constructing a virtual operating environment according to hardware operating environment information in the model, constructing each simulation node according to simulation node information, and establishing a communication network of the tested software and each simulation node according to a cross-linking relation in the model.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
The following detailed description of embodiments of the invention is intended to be illustrative, and not to be construed as limiting the invention.
The invention aims to provide a model-based airborne embedded software test environment construction method, which mainly comprises the following steps:
step 1: the system environment model of the airborne embedded software is designed, and comprises the hardware running environment of the tested software, the functions of the peripheral simulation nodes, the data interfaces, the communication buses and the cross-linking relations of the tested software and the simulation nodes, and the content of a deployment mode. The function of the peripheral simulation node comprises inputting required information into the tested software and receiving an output result of the tested software.
According to the system model, the virtual data communication bus, the virtual operation environment and the simulation node are instantiated, and a communication network which is mutually cross-linked is established, so that a dynamically executable test environment is constructed. The system model can be repeatedly used, and the constructed dynamic test environment is consistent in function and performance under the condition that the system models are consistent.
Step 2: and uploading the system environment model of the airborne embedded software to a data management server.
And step 3: and instantiating the data communication bus on the data management server, namely constructing a virtual bus model and a virtual bus communication module on the data management server according to the data interface and the data communication bus.
In the embodiment, the instantiation means is to perform hardware modeling on a common data communication bus of airborne embedded software, construct a virtual data communication bus hardware model base, and set related parameters according to configuration information of the data communication bus in a system model on the basis of the hardware model to realize instantiation. The instantiation model can be integrated with a virtual operation environment to form a virtual communication bus thereof, and can interact with a real communication network to realize the receiving/sending of data.
And 4, step 4: and according to the deployment mode, issuing the configuration information of the tested software and the peripheral simulation node, the corresponding data interface and communication bus information to the corresponding simulation node running server and the tested software running server.
And 5: and instantiating the virtual operating environment of the tested software on the tested software operating server.
On the running server of the software to be tested, acquiring a corresponding hardware virtual machine and a virtual bus model from a data management server according to the hardware running environment and the communication bus information of the software to be tested, constructing a virtual running environment of the software to be tested, and deploying the software to be tested to the virtual running environment; the hardware virtual machine is composed of configuration information of the running environment of the tested software hardware in the system environment model and a virtual hardware module.
In this embodiment, hardware modeling is performed on a common hardware environment of the onboard embedded software, a model base of the virtual hardware board is constructed, and based on the hardware model, relevant parameters are set according to configuration information of an operating environment in the system model, so as to realize instantiation. The instantiation model can provide the running environment requirements required by the tested software, can deploy the tested software into the virtual environment and drive the tested software to execute.
Step 6: and instantiating the simulation nodes on the running servers of the simulation nodes.
And on the operation server of each simulation node, acquiring a corresponding functional module and a corresponding virtual bus communication module from the data management server according to the functional information of the simulation node and the corresponding data interface and communication bus information, and combining to construct an operable simulation node.
In this embodiment, each function of a common simulation node of the airborne embedded software is modeled or realized, a simulation node model base is constructed, and based on the simulation model base, relevant function modules can be combined according to function information in the system model and information such as a corresponding data interface and a communication bus, so as to realize instantiation.
And 7: and establishing a real communication network according to the simulation nodes and the data interfaces, the cross-linking relation and the deployment mode among the tested software, so as to realize the normal communication between the tested software on each running server and all the simulation nodes.
According to the method, the dynamic test environment is automatically constructed according to the system environment model, the process of manually constructing the dynamic test environment is simplified, and the method can be repeatedly used.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention.
Claims (2)
1. A model-based airborne embedded software test environment construction method is characterized by comprising the following steps: the method comprises the following steps:
step 1: designing a system environment model of airborne embedded software, wherein the system environment model comprises a hardware running environment of the tested software, functions of peripheral simulation nodes, data interfaces, communication buses and cross-linking relations of the tested software and the simulation nodes, and deployment mode contents;
step 2: uploading a system environment model of the airborne embedded software to a data management server;
and step 3: on a data management server, constructing a corresponding virtual bus model and a virtual bus communication module according to the tested software, the data interface of the simulation node and the data communication bus;
and 4, step 4: according to the deployment mode, configuration information of the tested software and the peripheral simulation nodes, corresponding data interfaces and communication bus information are issued to the corresponding simulation node running servers and the tested software running servers;
and 5: instantiating a virtual operating environment of the tested software on the tested software operating server:
on the running server of the software to be tested, acquiring a corresponding hardware virtual machine and a virtual bus model from a data management server according to the hardware running environment and the communication bus information of the software to be tested, constructing a virtual running environment of the software to be tested, and deploying the software to be tested to the virtual running environment; the hardware virtual machine consists of configuration information of the running environment of the tested software hardware in the system environment model and a virtual hardware module;
step 6: instantiating the simulation nodes on the running servers of the simulation nodes:
on the operation server of each simulation node, acquiring a corresponding functional module and a corresponding virtual bus communication module from a data management server according to the functional information of the simulation node and the corresponding data interface and communication bus information to combine, and constructing an operable simulation node;
and 7: and establishing a real communication network according to the simulation nodes and the data interfaces, the cross-linking relation and the deployment mode among the tested software, so as to realize the normal communication between the tested software on each running server and all the simulation nodes.
2. The model-based airborne embedded software testing environment construction method according to claim 1, characterized in that: the functions of the peripheral simulation nodes in the step 1 comprise inputting required information into the tested software and receiving an output result of the tested software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710815160.5A CN107678946B (en) | 2017-09-12 | 2017-09-12 | Model-based airborne embedded software test environment construction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710815160.5A CN107678946B (en) | 2017-09-12 | 2017-09-12 | Model-based airborne embedded software test environment construction method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107678946A CN107678946A (en) | 2018-02-09 |
CN107678946B true CN107678946B (en) | 2020-11-06 |
Family
ID=61135675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710815160.5A Active CN107678946B (en) | 2017-09-12 | 2017-09-12 | Model-based airborne embedded software test environment construction method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107678946B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109002391B (en) * | 2018-06-28 | 2021-07-30 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Method for automatically detecting embedded software interface test data |
CN109684148B (en) * | 2018-11-08 | 2022-03-15 | 中国航空工业集团公司洛阳电光设备研究所 | Airborne embedded software virtual bus communication construction method based on ARINC653 |
CN109614332B (en) * | 2018-12-07 | 2021-11-02 | 中国航空工业集团公司洛阳电光设备研究所 | Hardware virtualization layered modeling method |
CN110879769B (en) * | 2019-10-16 | 2024-01-26 | 中国航空工业集团公司洛阳电光设备研究所 | Method for constructing embedded system test environment based on dynamic configurable framework |
CN111190605A (en) * | 2019-12-05 | 2020-05-22 | 五邑大学 | Embedded platform deployment method, equipment and storage medium |
CN111176999B (en) * | 2019-12-25 | 2023-07-21 | 中国航空工业集团公司西安飞机设计研究所 | Test platform construction method and test method of unmanned aerial vehicle flight control management software |
CN111159913B (en) * | 2020-01-02 | 2022-01-18 | 北京航空航天大学 | Function lightweight modeling and simulation method for test equipment |
CN111797521B (en) * | 2020-06-29 | 2024-03-15 | 西安精雕精密机械工程有限公司 | Three-dimensional simulation debugging and monitoring method for automatic production line |
CN112463614B (en) * | 2020-12-01 | 2023-07-14 | 北京计算机技术及应用研究所 | Software virtualization test environment construction method based on hardware board access |
CN113760232A (en) * | 2021-07-23 | 2021-12-07 | 中国人民解放军海军航空大学青岛校区 | Integrated design method for equipment software and simulation software architecture |
CN115361298B (en) * | 2022-07-16 | 2023-06-20 | 中国航空工业集团公司洛阳电光设备研究所 | Service management method based on data subscription distribution network |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7107253B1 (en) * | 1999-04-05 | 2006-09-12 | American Board Of Family Practice, Inc. | Computer architecture and process of patient generation, evolution and simulation for computer based testing system using bayesian networks as a scripting language |
CN102650966B (en) * | 2011-02-24 | 2016-01-27 | 王轶辰 | A kind of embedded software test method of Reuse-Oriented and test macro thereof |
CN102968377A (en) * | 2012-12-13 | 2013-03-13 | 中国航空无线电电子研究所 | Virtual machine technique based airborne software system testing general platform |
CN103136101A (en) * | 2012-12-31 | 2013-06-05 | 博彦科技(上海)有限公司 | Software automated testing unified operation platform |
-
2017
- 2017-09-12 CN CN201710815160.5A patent/CN107678946B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107678946A (en) | 2018-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107678946B (en) | Model-based airborne embedded software test environment construction method | |
CN107784152A (en) | Include the simulation of multiple simulators | |
CN110632857B (en) | Control performance verification method for large-scale hierarchical control system | |
CN107749807B (en) | Network function verification method and verification system for NFV | |
KR101056682B1 (en) | A weapon simulation system and the same method based on the component | |
CN102141951B (en) | Chip simulation system and method | |
US20230153158A1 (en) | Method, apparatus, system, and storage medium for performing eda task | |
CN106154865A (en) | A kind of vehicle bus phantom self-generating method and system | |
CN100589422C (en) | A simulated single board and its simulation method | |
US20140040441A1 (en) | System and method for the configuration of a clustered simulation network | |
CN103812948A (en) | System and method for cloud interactive customization of smart phone operating systems | |
CN111859832B (en) | Chip simulation verification method and device and related equipment | |
CN109639446A (en) | FPGA device, the cloud system based on FPGA device | |
CN111859834B (en) | UVM-based verification platform development method, system, terminal and storage medium | |
CN106201657A (en) | A kind of network interface card information processing method based on virtual machine and device | |
CN108141378A (en) | Suspend mode VDU in VNFD | |
CN103813463A (en) | Resource distribution method in software communication architecture | |
CN113779913B (en) | Verification platform structure and test method for AI multi-chip system | |
CN110569154B (en) | Chip interface function testing method, system, terminal and storage medium | |
CN114610440A (en) | Method and system for constructing operating environment of simulator system | |
CN103576667B (en) | The method of testing of master control borad, Apparatus and system | |
CN108228965B (en) | Simulation verification method, device and equipment for memory cell | |
JP2012234260A (en) | Vehicle control simulation system | |
CN101969442B (en) | Process running environment perception and migration based network analog framework implementation method | |
CN102541830B (en) | Method and device for generating simulation report in simulation platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200605 Address after: 471000 No. 696, Wangcheng Avenue, Luolong District, Luoyang City, Henan Province Applicant after: AVIC Luoyang Photoelectric Technology Co., Ltd Address before: 471099 Luoyang City, Henan Province West triumph Road, No. 25 Applicant before: LUOYANG INSTITUTE OF ELECTRO-OPTICAL EQUIPMENT OF AVIC |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |