CN106682249B - Model-independent universal publish/subscribe interface test system and method - Google Patents

Model-independent universal publish/subscribe interface test system and method Download PDF

Info

Publication number
CN106682249B
CN106682249B CN201510755408.4A CN201510755408A CN106682249B CN 106682249 B CN106682249 B CN 106682249B CN 201510755408 A CN201510755408 A CN 201510755408A CN 106682249 B CN106682249 B CN 106682249B
Authority
CN
China
Prior art keywords
model
simulation
test
module
interface
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
Application number
CN201510755408.4A
Other languages
Chinese (zh)
Other versions
CN106682249A (en
Inventor
谢宝娣
蔡继红
陈秋瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Simulation Center
Original Assignee
Beijing Simulation Center
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Simulation Center filed Critical Beijing Simulation Center
Priority to CN201510755408.4A priority Critical patent/CN106682249B/en
Publication of CN106682249A publication Critical patent/CN106682249A/en
Application granted granted Critical
Publication of CN106682249B publication Critical patent/CN106682249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • G06F30/367Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/02CAD in a network environment, e.g. collaborative CAD or distributed simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a model independent universal publish/subscribe interface test system and method, the system includes: the universal main frame module is used for creating and unloading the model test module and managing the release/subscription interface test of the model test module on the corresponding simulation model; and the model testing module executes the publishing/subscribing interface test of the corresponding simulation model. According to the technical scheme, the interface test of the simulation model is completed by a plurality of model test processes, the model test processes are loosely coupled, and the special test of a certain type of simulation model cannot influence other simulation models; the model testing process is established automatically and accurately without manually adjusting codes, and the reliability and stability are improved remarkably.

Description

Model-independent universal publish/subscribe interface test system and method
Technical Field
The invention relates to the technical field of digital simulation. And more particularly, to a model independent generic publish/subscribe interface test system and method.
Background
There are various standards and architectures for interaction in distributed digital simulation experiments, such as the HLA Standard (IEEEStd 1516, IEEE Standard for Modeling), the TENA system (Test and Training Enabling architecture). Most of the interaction of the distributed simulation application programs is based on the relationship of publishing and subscribing to establish data contact to jointly complete the simulation experiment, namely, some application programs publish data and other application programs subscribe data.
The distributed digital simulation experiment is completed by simulating different model elements by different application programs, correlating the different model elements and jointly finishing the simulation experiment. A successful distributed digital simulation experiment typically requires the elimination of network problems, publish-subscribe binding problems, and model computation problems. Due to the particularity of the distributed digital simulation experiment, the independently developed simulation application program is difficult to eliminate problems associated with other applications, such as network problems and publish-subscribe binding problems.
Therefore, it is desirable to provide a model independent generic publish/subscribe interface test system and method.
Disclosure of Invention
The invention aims to provide a model-independent universal publish/subscribe interface test system and method, which solve the problems that in a distributed digital simulation test, due to distributed particularity, independently developed simulation applications are difficult to check network errors and publish and subscribe related errors.
In order to achieve the purpose, the invention adopts the following technical scheme:
a model independent generic publish/subscribe interface test system comprising:
a general main frame module and at least one model test module corresponding to the simulation model,
the universal main frame module is used for creating and unloading the model test module and managing the release/subscription interface test of the model test module on the simulation model corresponding to the model test module;
and the model testing module executes the publishing/subscribing interface test of the corresponding simulation model.
Preferably, the universal main frame module manages the publishing/subscribing interface test of the model test module on the simulation model corresponding to the model test module, and the publishing/subscribing interface test of the model test module on the simulation model corresponding to the model test module is scheduled, loaded, displayed, started and stopped.
Preferably, the process of creating a model test module by the general main frame module comprises:
the simulation model analysis part is used for completing the analysis of the simulation model, reading the name and the attribute characteristics of the corresponding simulation model and storing the mark;
inputting a model-related attribute list into a setting interface part, displaying attribute characteristics of the simulation model in a list mode, and selectively setting attribute parameters of the simulation model according to requirements;
the model data output display interface part is used for setting and outputting simulation data according to the attribute parameters of the simulation model;
and the simulation application operation support part is used for adding the affiliated model test module into a simulation process as an application role, realizing support for transmitting simulation model attribute parameters transmitted from the attribute list input setting interface module related to the model and realizing support for receiving the simulation data by the affiliated model test module and displaying the simulation data on the model data output display interface module.
A model independent generic publish/subscribe interface test method, the method comprising the steps of:
when digital simulation starts, a model test process of a simulation model is established;
starting the model test process, and carrying out release/subscription interface test on the simulation model;
and when the digital simulation is finished, closing the model testing process and finishing the publishing/subscribing interface test of the simulation model.
Preferably, the model test process for creating a simulation model further comprises the sub-steps of:
completing the analysis of the simulation model, reading the name and attribute characteristics of the corresponding simulation model, and storing the mark;
displaying the attribute characteristics of the simulation model in a list mode, and selectively setting the attribute parameters of the simulation model according to requirements;
setting and outputting simulation data according to the attribute parameters of the simulation model;
and the affiliated model test module is used as an application role to be added into the simulation process, and supports for transmitting simulation model attribute parameters transmitted from the attribute list input setting interface module related to the model are realized, and supports for receiving the simulation data by the affiliated model test module and displaying the simulation data by the model data output display interface module are realized.
Preferably, the performing of the publish/subscribe interface test of the simulation model further comprises the sub-steps of:
starting issuing operation, selecting and setting simulation model attribute parameters according to requirements, and sending the simulation data model containing the simulation model attribute parameters;
and starting subscription operation, and checking simulation model data of the simulation model in the digital simulation.
Preferably, the method further comprises the steps of:
and if the digital simulation does not need to test the simulation model any more, unloading the model test process of the simulation model.
The invention has the following beneficial effects:
according to the technical scheme, the interface test of the simulation model is completed by a plurality of model test processes, the model test processes are loosely coupled, and the special test of a certain type of simulation model cannot influence other simulation models; the model testing process is established automatically and accurately without manually adjusting codes, and the reliability and stability are improved remarkably.
At present, the scale and the range of digital simulation are increasingly expanded, for complex distributed application programs, a method capable of quickly eliminating the problems of network, publishing, subscribing, binding and the like is needed, and the technical scheme of the invention is a solution for the requirement and has wide application prospects.
Drawings
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
FIG. 1 shows a schematic diagram of a model-independent generic publish/subscribe interface test system.
FIG. 2 is a schematic diagram illustrating a model test process created in a model-independent generic publish/subscribe interface test method
Detailed Description
In order to more clearly illustrate the invention, the invention is further described below with reference to preferred embodiments and the accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not to be taken as limiting the scope of the invention.
Example 1
As shown in fig. 1, the model-independent generic publish/subscribe interface test system provided in this embodiment includes:
a general main frame module and at least one model test module corresponding to the simulation model,
the universal main frame module is used for creating and unloading the model test module and managing the release/subscription interface test of the model test module on the simulation model corresponding to the model test module;
and the model testing module executes the publishing/subscribing interface test of the corresponding simulation model.
One universal main frame module in the model-independent universal publish/subscribe interface test system can control and manage a plurality of model test modules.
The general functional description of the generic main frame module and the model test module is as follows:
and the universal main frame module provides a main interface of the model-independent universal publish/subscribe interface test system and is responsible for creating, scheduling, loading, displaying, starting, stopping and unloading the model test module. The general main frame module is a manager of the model test module, and a user can select the model test module corresponding to the simulation model through the general main frame module.
The model test module is logically an independent model-based test module and physically an independent dynamic link library, and is created, scheduled, loaded, displayed, started, stopped and unloaded by the general main frame module. One model test module completes one type of model interface test, and the multiple model test of the digital simulation network is realized by loading and starting a plurality of model test modules through the universal main frame module.
The detailed function description of the generic main frame module and the model test module is as follows:
general main frame module:
if the simulation model to be tested has a corresponding model test module, the general main frame module selects to start the model test module; if the simulation model to be tested does not have the corresponding model test module, the universal main frame module needs to select the simulation model, create the model test module related to the simulation model, and then start the model test module;
wherein
The process of the general main frame module for establishing the model test module consists of four parts, namely a simulation model analysis part, a model-related attribute list input setting interface part, a model data output display interface part and a simulation application operation support part:
and the simulation model analysis part is an entrance module for creating a model test module, completes the analysis of the simulation model, reads the name and simulation attribute characteristics of the object model, including type, name and the like, and stores the mark. And the simulation model analysis part is used for supporting the attribute list input setting interface part and the model data output display interface part related to the model.
The attribute list related to the model is input into a setting interface part, the attribute list is based on a simulation model analysis part, the attribute characteristics of the simulation model are displayed in a list mode, a user selects and sets the attribute parameters of the simulation model according to the requirement, and the parameters are set and transmitted to a simulation application operation supporting part by the setting interface part to test the related interface.
And the model data output display interface part is based on a simulation model analysis part and outputs and displays the simulation data according to the attribute setting of the model. The portion of data is provided by the simulation application execution support portion and is displayed to the user via the portion.
And the simulation application operation support part is a through part for the model test module to execute the corresponding release/subscription interface test of the simulation model, and comprises operations of simulation operation environment, simulation model release, simulation model subscription and the like. The simulation operation environment enables the model test module to be used as an application role to be added into the simulation process; the simulation model issuing operation enables parameter configuration data which are input from the attribute list input setting interface part relevant to the model to be sent; the simulation model subscription operation enables the model test process to receive the simulation model data and display the simulation model data on the model data output display interface part.
And according to the selection of the user simulation model, the universal main frame module automatically generates the four parts and generates an engineering file, and the dynamic link library is generated by compiling and linking.
The universal main frame module starts the model test module, and then the interface test of the corresponding simulation model can be carried out.
When the digital simulation is finished, the general main frame module closes the related model test module, and the interface test of the corresponding simulation model is finished.
And if the network simulation does not need to test some simulation model any more, unloading the relevant model test module.
The model test module is created, scheduled, loaded, displayed, started, stopped, and unloaded by the generic main frame module.
The process of the model testing module executing the publishing/subscribing interface test of the corresponding simulation model is as follows:
starting the release operation, enabling a user to input a setting interface for configuring parameters according to requirements in an attribute list related to the model, and sending the simulation data model containing the custom parameter setting;
starting subscription operation, and allowing a user to check the relevant model data of the simulation model in the simulation network in a model data output display interface;
after the model test module receives the stop command of the general main frame module, the model test module does not receive the parameters transmitted by the attribute list input setting interface related to the model and stops transmitting the simulation data, and meanwhile, the model test module stops subscribing and does not output and display the update data of the interface of the model data.
Example 2
The model-independent universal publish/subscribe interface testing method provided by the embodiment comprises the following steps:
when digital simulation starts, a model test process of a simulation model is established;
starting the model test process, and carrying out release/subscription interface test on the simulation model;
and when the digital simulation is finished, closing the model testing process and finishing the publishing/subscribing interface test of the simulation model.
Wherein,
the method provides a main interface for creating, scheduling, loading, displaying, starting, stopping and unloading the model test process. A user can select a model test process corresponding to the simulation model through the main interface.
The model test process is logically an independent model-based test process and physically an independent dynamic link library, and is created, scheduled, loaded, displayed, started, stopped and unloaded by a main interface. One model test process realizes one type of model interface test, and the multi-model test of the simulation network is realized by loading and starting a plurality of model test processes in a universal way.
As shown in fig. 2, the specific process of the step "model test process for creating simulation model at the beginning of digital simulation" is:
if the simulation model to be tested has a corresponding model test process, selecting to start the model test process; if the simulation model to be tested does not have a corresponding model test process, selecting the simulation model, creating a model test process related to the simulation model, and then starting the model test process;
the process of creating the model test process consists of four parts, namely creating: the simulation system comprises a simulation model analysis part, a model-related attribute list input setting interface part, a model data output display interface part and a simulation application operation support part:
and the simulation model analysis part is an entrance module for creating a model test module, completes the analysis of the simulation model, reads the name and simulation attribute characteristics of the object model, including type, name and the like, and stores the mark. And the simulation model analysis part is used for supporting the attribute list input setting interface part and the model data output display interface part related to the model.
The attribute list related to the model is input into a setting interface part, the attribute list is based on a simulation model analysis part, the attribute characteristics of the simulation model are displayed in a list mode, a user selects and sets the attribute parameters of the simulation model according to the requirement, and the parameters are set and transmitted to a simulation application operation supporting part by the setting interface part to test the related interface.
And the model data output display interface part is based on a simulation model analysis part and outputs and displays the simulation data according to the attribute setting of the model. The portion of data is provided by the simulation application execution support portion and is displayed to the user via the portion.
And the simulation application operation support part is a through part for the model test module to execute the corresponding release/subscription interface test of the simulation model, and comprises operations of simulation operation environment, simulation model release, simulation model subscription and the like. Simulating the operating environment so that the model test process is added to the simulation process as an application role; the simulation model issuing operation enables parameter configuration data which are input from the attribute list input setting interface part relevant to the model to be sent; the simulation model subscription operation enables the model test process to receive the simulation model data and display the simulation model data on the model data output display interface part.
And according to the selection of the user simulation model, automatically generating the four parts through a main interface, generating an engineering file, and compiling and linking to generate a dynamic link library.
After "model test procedure for creating simulation model at the start of digital simulation",
and starting a model test process, namely performing interface test of the corresponding simulation model.
And when the digital simulation is finished, closing the related model test process and finishing the interface test of the corresponding simulation model.
And if the network simulation does not need to test some simulation model any more, unloading the test process of the relevant model.
The specific process of starting the model test process and carrying out the release/subscription interface test of the simulation model comprises the following steps:
starting the release operation, enabling a user to input a setting interface for configuring parameters according to requirements in an attribute list related to the model, and sending the simulation data model containing the custom parameter setting;
starting subscription operation, and allowing a user to check the relevant model data of the simulation model in the simulation network in a model data output display interface;
after the model test process receives the stop command of the main interface, the model test process does not receive the parameters transmitted by the attribute list input setting interface related to the model and stops transmitting the simulation data, and meanwhile, the model test process stops subscribing and does not output the update data of the display interface according to the model data.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.

Claims (5)

1. A model independent generic publish/subscribe interface test system, comprising:
a general main frame module and at least one model test module corresponding to the simulation model,
the universal main frame module is used for creating and unloading the model test module and managing the release/subscription interface test of the model test module on the simulation model corresponding to the model test module;
the model test module executes the release/subscription interface test of the corresponding simulation model;
wherein the process of the universal main frame module creating the model test module comprises:
the simulation model analysis part is used for completing the analysis of the simulation model, reading the name and the attribute characteristics of the corresponding simulation model and storing the mark;
inputting a model-related attribute list into a setting interface part, displaying attribute characteristics of the simulation model in a list mode, and selectively setting attribute parameters of the simulation model according to requirements;
the model data output display interface part is used for setting and outputting simulation data according to the attribute parameters of the simulation model;
and the simulation application operation support part is used for adding the affiliated model test module into a simulation process as an application role, realizing support for transmitting simulation model attribute parameters transmitted from the attribute list input setting interface module related to the model and realizing support for receiving the simulation data by the affiliated model test module and displaying the simulation data on the model data output display interface module.
2. The model independent universal publish/subscribe interface test system according to claim 1, wherein said universal main frame module manages publish/subscribe interface tests of the model test module on the simulation model corresponding to the model test module including scheduling, loading, displaying, starting and stopping publish/subscribe interface tests of the model test module on the simulation model corresponding to the model test module.
3. A model-independent universal publish/subscribe interface test method, comprising the steps of:
when digital simulation starts, a model test process of a simulation model is established;
starting the model test process, and carrying out release/subscription interface test on the simulation model;
when the digital simulation is finished, closing the model testing process and finishing the release/subscription interface test of the simulation model;
wherein the model test process for creating a simulation model further comprises the sub-steps of:
completing the analysis of the simulation model, reading the name and attribute characteristics of the corresponding simulation model, and storing the mark;
displaying the attribute characteristics of the simulation model in a list mode, and selectively setting the attribute parameters of the simulation model according to requirements;
setting and outputting simulation data according to the attribute parameters of the simulation model;
and the affiliated model test module is used as an application role to be added into the simulation process, and supports for transmitting simulation model attribute parameters transmitted from the attribute list input setting interface module related to the model are realized, and supports for receiving the simulation data by the affiliated model test module and displaying the simulation data by the model data output display interface module are realized.
4. The model-independent generic publish/subscribe interface test method according to claim 3, wherein said performing a publish/subscribe interface test of a simulation model further comprises the sub-steps of:
starting issuing operation, selecting and setting simulation model attribute parameters according to requirements, and sending a simulation data model containing the simulation model attribute parameters;
and starting subscription operation, and checking simulation model data of the simulation model in the digital simulation.
5. The model-independent generic publish/subscribe interface test method according to claim 3, further comprising the steps of:
and if the digital simulation does not need to test the simulation model any more, unloading the model test process of the simulation model.
CN201510755408.4A 2015-11-09 2015-11-09 Model-independent universal publish/subscribe interface test system and method Active CN106682249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510755408.4A CN106682249B (en) 2015-11-09 2015-11-09 Model-independent universal publish/subscribe interface test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510755408.4A CN106682249B (en) 2015-11-09 2015-11-09 Model-independent universal publish/subscribe interface test system and method

Publications (2)

Publication Number Publication Date
CN106682249A CN106682249A (en) 2017-05-17
CN106682249B true CN106682249B (en) 2020-08-25

Family

ID=58864700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510755408.4A Active CN106682249B (en) 2015-11-09 2015-11-09 Model-independent universal publish/subscribe interface test system and method

Country Status (1)

Country Link
CN (1) CN106682249B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348698A (en) * 2020-10-30 2021-02-09 中核核电运行管理有限公司 Nuclear power plant group pile management method, device and system
CN113010441B (en) * 2021-04-29 2024-05-07 成都新希望金融信息有限公司 Model issuing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601581A (en) * 2015-01-20 2015-05-06 北京仿真中心 Reliable protocol interest agent based distributed publishing/subscription system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8023498B2 (en) * 2008-05-20 2011-09-20 International Business Machines Corporation Controlling access to a destination in a data processing network
US9009683B2 (en) * 2012-03-28 2015-04-14 Software Ag Systems and/or methods for testing client reactions to simulated disruptions
CN105138339A (en) * 2015-09-10 2015-12-09 中国航空无线电电子研究所 Distributed communication midware developing method based on DDS standard

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601581A (en) * 2015-01-20 2015-05-06 北京仿真中心 Reliable protocol interest agent based distributed publishing/subscription system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《基于ICE中间件的分布式卫星地面测试系统研究》;陶雪莲 等;《信息通信》;20140215(第2期);23-25 *
《支持LVC互操作的分布式联合仿真技术研究》;蔡继红 等;《系统仿真学报》;20150108(第1期);93-97 *

Also Published As

Publication number Publication date
CN106682249A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN109840206B (en) Data testing method, device, terminal and storage medium
US9021438B2 (en) Automatic framework for parallel testing on multiple testing environments
CN111159049A (en) Automatic interface testing method and system
CN107562038B (en) Automatic test system for vehicle-mounted controller
US8533531B2 (en) Multimedia hardware emulation for application testing
CN105209925B (en) For debugging the computer implemented method and system of the program of automation devices test
US10235477B2 (en) Prototyping an image processing algorithm and emulating or simulating execution on a hardware accelerator to estimate resource usage or performance
CN112783793B (en) Automatic interface test system and method
KR100808257B1 (en) Apparatus and Method for prototype development of embedded system
CN109977012B (en) Joint debugging test method, device, equipment and computer readable storage medium of system
WO2012026881A1 (en) A method of compliance testing
CN105404574B (en) Smart card and mobile terminal consistency test method and device
CN112882941A (en) Integrated test system and method based on micro-service architecture
CN106682249B (en) Model-independent universal publish/subscribe interface test system and method
US20190361801A1 (en) Method and system for cloud-based automated software testing
US20180203973A1 (en) System and simulator for the disengageable simulation of installations or machines within programmable logic controllers
CN108228965B (en) Simulation verification method, device and equipment for memory cell
US20160300000A1 (en) System construction support apparatus
US10678681B2 (en) Method and device for automatic testing
CN102043628A (en) Method and system for developing on screen display (OSD) application software and multimedia terminal
CN109901999B (en) Simulation method and system of programmable logic based on UVM
CN105868104A (en) Cross-platform graphic user interface automatic test method
US20180059649A1 (en) Simulator linkage device, control method of simulator linkage device, information processing program and recording medium
JP5327019B2 (en) Software automatic test method
KR20180032033A (en) Apparatus and method for controlling simulation of satellite operation

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
GR01 Patent grant
GR01 Patent grant