CN109932588B - Avionics equipment verification test engine - Google Patents

Avionics equipment verification test engine Download PDF

Info

Publication number
CN109932588B
CN109932588B CN201910105075.9A CN201910105075A CN109932588B CN 109932588 B CN109932588 B CN 109932588B CN 201910105075 A CN201910105075 A CN 201910105075A CN 109932588 B CN109932588 B CN 109932588B
Authority
CN
China
Prior art keywords
test
task
module
frame
user
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
CN201910105075.9A
Other languages
Chinese (zh)
Other versions
CN109932588A (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.)
Shanghai Surease Information Technology Co ltd
Original Assignee
Shanghai Surease Information Technology Co ltd
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 Shanghai Surease Information Technology Co ltd filed Critical Shanghai Surease Information Technology Co ltd
Priority to CN201910105075.9A priority Critical patent/CN109932588B/en
Publication of CN109932588A publication Critical patent/CN109932588A/en
Application granted granted Critical
Publication of CN109932588B publication Critical patent/CN109932588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a verification test engine for avionic equipment, which comprises a user layer, a test engine core layer and a hardware drive adaptation layer, wherein the user layer provides a visual operation interface facing a user; the test engine core layer executes a test case of a user layer, and comprises a shared variable management module, a test statement analysis module and a test task scheduling module; the hardware driving adaptation layer integrates testing resources, the provided API defines testing signals and forms mapping with shared variables, and the testing resources integrated by the hardware driving adaptation layer comprise various testing board cards and instruments. The invention provides a development and operation universal platform for test software, provides a universal test program interface, a test program loading interface, a test execution control interface, a data display interface and a report interface, provides the development specification of the test software, shortens the test development period and has strong universality.

Description

Avionics equipment verification test engine
Technical Field
The invention relates to an equipment test engine, in particular to an avionics equipment verification test engine.
Background
The avionics equipment is required to have high safety and high reliability, and the standard requirement of the avionics equipment is extremely strict, so the development and detection tasks are relatively heavy, and matched test equipment is required to be built in the process from research and development to maintenance. Test developers compile and execute test cases according to test requirements and various test resources on test equipment, collect test data and form test reports. In general, test developers use different programming languages to develop test cases according to different resource drivers on test equipment, which results in a large difference in execution modes of test programs and is not favorable for unified management and result collection. In order to uniformly manage the development and execution flow of the test program, a common method is to perform an integrated development mode, perform test resource integration in a test case, collect test results, and analyze the test results. But this has a clear determination: 1. the universality is poor, the driving difference provided by the test board cards produced by different manufacturers is large, and a large amount of adaptive codes need to be compiled in order to adapt to different test scenes; 2. the development difficulty is high, developers need to concentrate on the development of test logic and pay attention to the problems of drive integration, test execution and data collection, and the development period is too long; 3. the expandability is poor, when the test environment and the test object change, a test developer needs to spend a lot of work to modify the business logic from the test program bottom layer drive, and even in order to complete the test of new avionics equipment, a new set of brand new test program needs to be developed. Therefore, it is necessary to develop a general avionics equipment verification test engine.
Disclosure of Invention
The invention aims to solve the technical problems of poor universality, high development difficulty and poor expandability in the development process of an avionics equipment test program by providing an avionics equipment verification test engine.
The technical scheme adopted by the invention for solving the technical problems is to provide a verification test engine for avionic equipment, which comprises a user layer, a test engine core layer and a hardware drive adaptation layer, wherein the user layer provides a visual operation interface facing a user, and comprises a user management module, a test configuration module, a test execution module, a test report generation module and a fault analysis diagnosis module; the test engine core layer executes a test case of a user layer, and comprises a shared variable management module, a test statement analysis module and a test task scheduling module; the hardware driving adaptation layer integrates testing resources, an API (application programming interface) provided by the hardware driving adaptation layer defines testing signals and forms mapping with shared variables, and the testing resources integrated by the hardware driving adaptation layer comprise various testing board cards and instruments.
Further, the user management module maintains user information and configures user permission; the test configuration module edits and configures a test case; the test execution module executes and debugs the test case through the test engine core layer and completes the test; the test report generation module sets the format of a test report, automatically collects test execution data after the test case is executed, and generates the test report according to the set format; and the fault analysis module maps and binds the fault characteristics and the steps of the test case and analyzes whether the fault occurs from the test report according to the definition information.
Furthermore, the test configuration module edits the test case based on the test flow and configures the test variables in the test case; the statements in the test flow comprise flow control statements and test action statements, wherein the flow control statements comprise IF … ELSE …, FOR loop, WHILE loop and GOTO statements; the test action statement comprises logic operation, data calculation and program calling, and the test action statement performs calculation and test resource control.
Furthermore, the test statement analysis module analyzes the statements of the test cases of the user layer, analyzes the test statements into different test tasks, and stores the test variables into a shared variable table of the shared variable management module; and the test task scheduling module schedules the test tasks and calculates the test variables in the shared variable table.
Further, the shared variable is stored in a shared variable table, and the test variable and the shared variable form a mapping in the shared variable table.
Further, the task scheduling module schedules a test task In a task Frame mode, the task Frame takes 10ms as one Frame, each Frame of the task Frame is divided into a Frame _ In stage and a Frame _ Out stage, a variable reading operation is performed at the Frame _ In stage, and a variable updating operation is performed at the Frame _ Out stage.
Further, the task scheduling module schedules the test task, and specifically includes:
before a task frame starts, a task scheduling module determines that a test task exists in the task frame for scheduling, and sends scheduling instructions to the test tasks performing IO operation in the time slice according to the sequence, and each test task starts one period of operation of the test task after receiving the instructions;
after receiving the instruction, the test task firstly reads data by GET operation, then sends a response signal of completing the read operation to the task scheduling module, and starts the logic operation of the test task; after receiving all the response completion signals, the task scheduling module sends Out an instruction to allow the test task to enter a Frame _ Out stage;
after the test task completes the operation and receives the instruction of allowing to enter the Frame _ Out, if new data is generated, the SET write operation is carried Out, and finally a write operation completion signal is sent Out; and when the task scheduling module receives the writing completion signals of all the tasks, preparing to enter the next task frame.
Furthermore, the hardware drive adaptation layer provides a universal adaptation interface for the hardware access device, the accessed hardware device types comprise ARINC429, AFDX, RS232/422/485 and 1553B, discrete quantity and analog quantity, and the communication types supported by the adaptation interface comprise RS232/422/485, Ethernet, switching value, digital I/O, power supply, AFDX and 1553B.
Compared with the prior art, the invention has the following beneficial effects: the verification test engine for the avionics equipment provided by the invention has the following advantages: 1. the universal user-oriented operation interface is provided, when the test program is developed, the influence of bottom-layer drive on the test service logic is not required to be considered, the development of the test logic is only required to be considered, and the universal functions such as test result display, report management, drive calling and the like are not repeatedly designed, so that the time cost is effectively saved, and the test development period is shortened; 2. when the test equipment changes, a tester only needs to map the communication definition to the shared variable according to the interface specification provided by the hardware adaptation layer to complete the adaptation of the hardware without changing the logic of the test case, so that the test case has strong expandability and applicability; 3. the test results are automatically collected and generated into a test report, and the intelligent degree is high; 4. the test execution modes are rich and diverse, and the modes of single execution, cyclic execution, timing execution and the like are provided, so that the requirements of different test scenes are met; 5. and fault definition management is provided, fault phenomena and test steps are bound, and fault analysis is performed after the test is executed, so that fault positioning is facilitated.
Drawings
FIG. 1 is a block diagram of a functional module of a verification test engine of an avionics device in accordance with an embodiment of the present invention;
FIG. 2 is a task frame structure diagram according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a process of scheduling test tasks according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the figures and examples.
Fig. 1 is a functional block diagram of a verification test engine of an avionics device according to an embodiment of the present invention.
Referring to fig. 1, the verification test engine for avionics equipment according to the embodiment of the present invention includes a user layer, a test engine core layer, and a hardware drive adaptation layer, where the user layer provides a visual operation interface facing a user, and the user layer includes a user management module, a test configuration module, a test execution module, a test report generation module, and a fault analysis and diagnosis module; the test engine core layer executes a test case of a user layer, and comprises a shared variable management module, a test statement analysis module and a test task scheduling module; the hardware driving adaptation layer integrates testing resources, an API (application programming interface) provided by the hardware driving adaptation layer defines testing signals and forms mapping with shared variables, and the testing resources integrated by the hardware driving adaptation layer comprise various testing board cards and instruments.
Specifically, in the verification test engine for avionic equipment in the embodiment of the invention, the user management module maintains user information and configures user permissions, so that users with different permissions log in a system and have different operable functions, and the system maintenance is facilitated; the test configuration module edits and configures a test case; the test execution module executes and debugs the test case through the test engine core layer and completes the test; the test report generation module sets the format of a test report, automatically collects test execution data after the test case is executed, and generates the test report according to the set format; and the fault analysis module maps and binds the fault characteristics and the steps of the test case and analyzes whether the fault occurs from the test report according to the definition information.
Specifically, in the avionics equipment verification test engine of the embodiment of the invention, the test configuration module edits the test case based on the test flow and configures the test variables in the test case; the statements in the test flow comprise flow control statements and test action statements, wherein the flow control statements comprise IF … ELSE …, FOR loop, WHILE loop and GOTO statements; the test action statement comprises logic operation, data calculation and program calling, and the test action statement performs calculation and test resource control.
Specifically, in the verification test engine for avionic equipment in the embodiment of the invention, the test statement analysis module analyzes statements of a test case of the user layer, analyzes the test statements into different test tasks, and stores test variables into a shared variable table of the shared variable management module; and the test task scheduling module schedules the test tasks and calculates the test variables in the shared variable table. The shared variables are stored in a shared variable table, and the test variables and the shared variables form mapping in the shared variable table. The test resources used in the test case are embodied as test variables in a test engine core layer, the memory variable tables are established in the memory based on the memory variable technology, the states of the memory variable tables are managed in a unified mode, the memory variable tables are regarded as a unified data exchange center, and the user layer and the hardware drive adaptation layer are used as producers and consumers of data.
Referring to fig. 2, In the avionics equipment verification test engine according to the embodiment of the present invention, the task scheduling module schedules a test task In the form of a task Frame, where the task Frame takes 10ms as one Frame, each Frame of the task Frame is divided into a Frame _ In stage and a Frame _ Out stage, a variable reading operation is performed at the Frame _ In stage, and a variable updating operation is performed at the Frame _ Out stage.
Referring to fig. 3, in the verification test engine for avionics equipment according to the embodiment of the present invention, the task scheduling module schedules a test task, which specifically includes: before a task frame starts, a task scheduling module determines that a test task exists in the task frame for scheduling, and sends scheduling instructions to the test tasks performing IO operation in the time slice according to the sequence, and each test task starts one period of operation of the test task after receiving the instructions; after receiving the instruction, the test task firstly reads data by GET operation, then sends a response signal of completing the read operation to the task scheduling module, and starts the logic operation of the test task; after receiving all the response completion signals, the task scheduling module sends Out an instruction to allow the test task to enter a Frame _ Out stage; after the test task completes the operation and receives the instruction of allowing to enter the Frame _ Out, if new data is generated, the SET write operation is carried Out, and finally a write operation completion signal is sent Out; and when the task scheduling module receives the writing completion signals of all the tasks, preparing to enter the next task frame.
The test mainly utilizes test resources and test logic to realize the process of test requirements, the test resources comprise different plates and instruments provided by various different manufacturers, the hardware drive adaptation layer integrates the resources together, access specifications are provided for all common communication types, a universal adaptation interface is provided for hardware access equipment, the types of the accessed hardware equipment comprise ARINC429, AFDX, RS232/422/485 and 1553B, discrete quantity and analog quantity, and the communication types supported by the adaptation interface comprise RS232/422/485, Ethernet, switching quantity, digital I/O, power supply, AFDX and 1553B.
In summary, the verification test engine for avionics equipment in the embodiment of the invention has the following advantages: 1. the universal user-oriented operation interface is provided, when the test program is developed, the influence of bottom-layer drive on the test service logic is not required to be considered, the development of the test logic is only required to be considered, and the universal functions such as test result display, report management, drive calling and the like are not repeatedly designed, so that the time cost is effectively saved, and the test development period is shortened; 2. when the test equipment changes, a tester only needs to map the communication definition to the shared variable according to the interface specification provided by the hardware adaptation layer to complete the adaptation of the hardware without changing the logic of the test case, so that the test case has strong expandability and applicability; 3. the test results are automatically collected and generated into a test report, and the intelligent degree is high; 4. the test execution modes are rich and diverse, and the modes of single execution, cyclic execution, timing execution and the like are provided, so that the requirements of different test scenes are met; 5. and fault definition management is provided, fault phenomena and test steps are bound, and fault analysis is performed after the test is executed, so that fault positioning is facilitated.
Although the present invention has been described with respect to the preferred embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (7)

1. The verification test engine for the avionic device is characterized by comprising a user layer, a test engine core layer and a hardware drive adaptation layer, wherein the user layer provides a visual operation interface facing a user, and comprises a user management module, a test configuration module, a test execution module, a test report generation module and a fault analysis diagnosis module; the test engine core layer executes a test case of a user layer, and comprises a shared variable management module, a test statement analysis module and a test task scheduling module; the hardware driving adaptation layer integrates testing resources, an API (application programming interface) provided by the hardware driving adaptation layer defines a testing signal and forms mapping with a shared variable, and the testing resources integrated by the hardware driving adaptation layer comprise various testing board cards and instruments;
the user management module maintains user information and configures user authority; the test configuration module edits and configures a test case; the test execution module executes and debugs the test case through the test engine core layer and completes the test; the test report generation module sets the format of a test report, automatically collects test execution data after the test case is executed, and generates the test report according to the set format; and the fault analysis and diagnosis module maps and binds the fault characteristics and the steps of the test case and analyzes whether the fault occurs from the test report according to the definition information.
2. The avionics device verification test engine of claim 1, wherein the test configuration module edits test cases based on a test flow and configures test variables in the test cases; the statements in the test flow comprise flow control statements and test action statements, wherein the flow control statements comprise IF … ELSE …, FOR loop, WHILE loop and GOTO statements; the test action statement comprises logic operation, data calculation and program calling, and the test action statement performs calculation and test resource control.
3. The avionics equipment verification test engine of claim 2, wherein the test statement parsing module parses statements of test cases of the user layer, parses the test statements into different test tasks, and saves test variables to a shared variable table of a shared variable management module; and the test task scheduling module schedules the test tasks and calculates the test variables in the shared variable table.
4. The avionics device verification test engine of claim 3, wherein the shared variables are stored in a shared variable table, the test variables and shared variables forming a mapping in the shared variable table.
5. The avionics device verification test engine of claim 3, wherein the task scheduling module schedules a test task In the form of a task Frame, the task Frame takes 10ms as one Frame, each Frame of the task Frame is divided into a Frame _ In stage and a Frame _ Out stage, a variable reading operation is performed at the Frame _ In stage, and a variable updating operation is performed at the Frame _ Out stage.
6. The avionics device verification test engine of claim 5, wherein the task scheduling module schedules test tasks, specifically comprising:
before a task frame starts, a task scheduling module determines that a test task exists in the task frame for scheduling, and sends scheduling instructions to the test tasks performing IO operation in a time slice according to a sequence, and each test task starts one period of operation of the test task after receiving the instructions;
after receiving the instruction, the test task firstly reads data by GET operation, then sends a response signal of completing the read operation to the task scheduling module, and starts the logic operation of the test task; after receiving all the response completion signals, the task scheduling module sends Out an instruction to allow the test task to enter a Frame _ Out stage;
after the test task completes the operation and receives the instruction of allowing to enter the Frame _ Out, if new data is generated, the SET write operation is carried Out, and finally a write operation completion signal is sent Out; and when the task scheduling module receives the writing completion signals of all the tasks, preparing to enter the next task frame.
7. The avionics equipment validation test engine of claim 1, wherein the hardware driven adaptation layer provides a universal adaptation interface for hardware access equipment, the types of hardware access equipment include ARINC429, AFDX, RS232/422/485, 1553B, discrete quantities and analog quantities, and the types of communications supported by the adaptation interface include RS232/422/485, ethernet, switching quantities, digital I/O, power supply, AFDX and 1553B.
CN201910105075.9A 2019-02-01 2019-02-01 Avionics equipment verification test engine Active CN109932588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910105075.9A CN109932588B (en) 2019-02-01 2019-02-01 Avionics equipment verification test engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910105075.9A CN109932588B (en) 2019-02-01 2019-02-01 Avionics equipment verification test engine

Publications (2)

Publication Number Publication Date
CN109932588A CN109932588A (en) 2019-06-25
CN109932588B true CN109932588B (en) 2021-01-29

Family

ID=66985410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910105075.9A Active CN109932588B (en) 2019-02-01 2019-02-01 Avionics equipment verification test engine

Country Status (1)

Country Link
CN (1) CN109932588B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328187B (en) * 2021-12-07 2024-01-26 中国航空综合技术研究所 Automatic test method for aviation onboard equipment and engine architecture device thereof
CN115396348A (en) * 2022-08-25 2022-11-25 北京智芯微电子科技有限公司 Test system, method and computer readable storage medium for wireless sensor network
CN116298825B (en) * 2023-05-08 2023-10-20 杭州长川科技股份有限公司 Chip test system and method, device, drive access device and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014153058A (en) * 2013-02-05 2014-08-25 A & D Co Ltd Engine test device and method
CN105955239A (en) * 2016-05-26 2016-09-21 上海添测智能科技有限公司 General test platform rapid construction method based on shared memory
CN107807878A (en) * 2016-09-09 2018-03-16 北京航空航天大学 Automatic test engine based on keyword
CN108073516A (en) * 2017-12-18 2018-05-25 中国航空工业集团公司洛阳电光设备研究所 One kind is towards airborne embedded software data-driven testing engine design method
CN108983634A (en) * 2017-06-02 2018-12-11 数学工程公司 System and method for re-scaling executable artificial model
CN109254905A (en) * 2017-07-13 2019-01-22 北京航空航天大学 Distributed parallel automatization test system based on workflow

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014153058A (en) * 2013-02-05 2014-08-25 A & D Co Ltd Engine test device and method
CN105955239A (en) * 2016-05-26 2016-09-21 上海添测智能科技有限公司 General test platform rapid construction method based on shared memory
CN107807878A (en) * 2016-09-09 2018-03-16 北京航空航天大学 Automatic test engine based on keyword
CN108983634A (en) * 2017-06-02 2018-12-11 数学工程公司 System and method for re-scaling executable artificial model
CN109254905A (en) * 2017-07-13 2019-01-22 北京航空航天大学 Distributed parallel automatization test system based on workflow
CN108073516A (en) * 2017-12-18 2018-05-25 中国航空工业集团公司洛阳电光设备研究所 One kind is towards airborne embedded software data-driven testing engine design method

Also Published As

Publication number Publication date
CN109932588A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN109039824B (en) Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal
CN106940428B (en) Chip verification method, device and system
CN103235756B (en) A kind of emulation test method of embedded system subregion application software
CN109932588B (en) Avionics equipment verification test engine
US8443336B2 (en) System and method for applying model-based testing to train control systems
CN109740222B (en) Testing device and system for automobile networking scene
US20150248343A1 (en) Method and apparatus for implementing instrumentation code
CN112270149A (en) Verification platform automation integration method and system, electronic equipment and storage medium
CN104750603A (en) Multi-core DSP (Digital Signal Processor) software emulator and physical layer software testing method thereof
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN113407393B (en) Chip verification method, terminal device, verification platform and storage medium
CN111176984A (en) Signal-oriented automatic test implementation method
CN110221867A (en) Pulse I/O function cartoon letters drive system and method under a kind of XP system
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN108021495B (en) Code debugging method based on playback
CN111142861B (en) Method and device for integrating structured comprehensive control system
CN115982043A (en) Vehicle interface testing method, device, equipment and storage medium
CN101751332A (en) Method, device and system for simulating process of workflow middleware
CN111062681B (en) Course selection tour inspection method and device, server and storage medium
CN114791885A (en) Interface test method, device, equipment and medium
CN111338761B (en) 51 single-chip microcomputer virtual interrupt controller and implementation method
JPH10133914A (en) Computer system and device input/output simulator
CN103019927A (en) Performance testing method and system
CN109857638B (en) Universal framework for test system software
CN112389506A (en) Train signal system and linkage method thereof

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