CN111176984A - A Signal-Oriented Automatic Test Implementation Method - Google Patents

A Signal-Oriented Automatic Test Implementation Method Download PDF

Info

Publication number
CN111176984A
CN111176984A CN201911277185.XA CN201911277185A CN111176984A CN 111176984 A CN111176984 A CN 111176984A CN 201911277185 A CN201911277185 A CN 201911277185A CN 111176984 A CN111176984 A CN 111176984A
Authority
CN
China
Prior art keywords
test
signal
uut
xml
mapping
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.)
Pending
Application number
CN201911277185.XA
Other languages
Chinese (zh)
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.)
Luoyang Institute of Electro Optical Equipment AVIC
Original Assignee
Luoyang Institute of Electro Optical Equipment AVIC
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 Luoyang Institute of Electro Optical Equipment AVIC filed Critical Luoyang Institute of Electro Optical Equipment AVIC
Priority to CN201911277185.XA priority Critical patent/CN111176984A/en
Publication of CN111176984A publication Critical patent/CN111176984A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test 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

本发明提出一种面向信号的自动测试实现方法,首先对自动测试系统的信号和测试要素进行建模,然后对被测对象(UUT)的测试需求进行描述,生成测试用例,并将测试仪器的驱动封装成统一的中间件,最后将测试用例翻译成可执行的测试程序,调用仪器的驱动完成测试。本发明应用XML语言对UUT的测试需求进行描述,生成测试用例,将测试用例和具体的仪器硬件分离,有效提高了测试程序的可移植性和测试仪器的互换性,降低自动测试系统开发和维护成本。

Figure 201911277185

The present invention proposes a signal-oriented automatic test implementation method. First, the signals and test elements of the automatic test system are modeled, and then the test requirements of the object under test (UUT) are described, test cases are generated, and the test instrument's test requirements are described. The driver is encapsulated into a unified middleware, and finally the test case is translated into an executable test program, and the driver of the instrument is called to complete the test. The invention uses XML language to describe the test requirements of UUT, generates test cases, separates test cases from specific instrument hardware, effectively improves the portability of test programs and the interchangeability of test instruments, and reduces the development and cost of automatic test systems. maintenance costs.

Figure 201911277185

Description

Signal-oriented automatic test implementation method
Technical Field
The invention relates to a signal-oriented automatic test implementation method, and belongs to the technical field of test measurement.
Background
With the increasing complexity of modern equipment, automatic test systems play an increasingly important role in the development, production and maintenance security processes of the equipment. The Test Program Set (TPS) of the automatic test system is instrument-oriented for a long time in the past, test software is compiled aiming at the drive of the instrument, so that the test software is tightly coupled with the specific instrument and only can run on a specific hardware platform and is difficult to transplant, the development cost of the software is increased, the software architecture does not support the instrument exchange, the types and the number of spare parts are greatly increased, and the running and maintenance cost of the automatic test system cannot be effectively reduced.
In order to solve the problems of poor universality, low portability and poor instrument interchangeability of an instrument-oriented test program set, a signal-oriented test idea is provided in the industry, a signal is used for describing test requirements and test resources, the signal is the key of the whole test system, developers only need to consider the type of signal measurement and compile test cases by taking the signal as an object, and the test cases are not changed due to the change of a hardware platform. Therefore, the signal-oriented automatic test method is designed, the software development efficiency of the automatic test system can be obviously improved, and the operation and maintenance cost is reduced.
Disclosure of Invention
The invention aims to provide a signal-oriented automatic test implementation method, which is used for realizing the transportability and good universality of a test program set and reducing the development, operation and maintenance costs of an automatic test system.
The technical scheme of the invention is as follows:
the signal-oriented automatic test implementation method is characterized in that: the method comprises the following steps:
step 1: modeling a signal of an automatic test system, extracting a signal attribute, storing by applying an XML element, and generating a signal library in an XML format;
step 2: modeling elements of the automatic test system, storing modeling information by applying XML elements which accord with ATML standards, and generating a test element model library in an XML format; the elements comprise a test instrument, a test platform, an adapter and a UUT;
and step 3: describing the test requirement of the UUT based on the signal to generate a test case, and storing the test case information by using XML elements which accord with ATML standards;
and 4, step 4: packaging the drive of the test instrument into a uniform middleware;
and 5: and (3) calling corresponding signal models and test element models from the signal library established in the step (1) and the test element model library established in the step (2) according to test requirements, translating the signal models, the test element models and the test cases in the step (3) into test programs executable by an operating system, calling the middleware packaged in the step (4), executing the test, generating test results, and storing the results as XML information to realize the sharing and fault diagnosis of the test results.
Further preferably, the method for implementing signal-oriented automatic testing is characterized in that: the signals in the step 1 comprise RS232, RS422, RS485, 1553B, ARINC429, FC, AFDX, CAN, 1394B, analog quantity input and output signals and discrete quantity input and output signals.
Further preferably, the method for implementing signal-oriented automatic testing is characterized in that: in step 2, the modeling process of the test instrument is as follows:
respectively defining the signal capability, the resources and the physical ports of the test instrument, and then completing the mapping from the signal capability to the resources and from the resources to the physical ports; storing the definition and mapping relation according to an XML element applied by an ATML standard;
the modeling process of the test platform is as follows:
defining an ICA end of a test platform, and then mapping the wiring relation in the test platform, wherein the mapping comprises mapping between physical ports of various test instruments working in the test platform and mapping between the test instruments and the ICA end; storing the definition and mapping relation according to an XML element applied by an ATML standard;
the modeling process of the adapter is as follows:
port information of two ends of the adapter is defined, wherein one end is an ITA end connected with the test platform, and the other end is a cable end connected with the UUT; then mapping the physical port connection relation of the two ends of the adapter; storing the definition and mapping relation according to an XML element applied by an ATML standard;
the modeling process of the UUT is as follows:
and defining the physical port information of the UUT, and storing the definition by applying an XML element according to the ATML standard.
Further preferably, the method for implementing signal-oriented automatic testing is characterized in that: in step 3, when a certain UUT is tested, a plurality of corresponding test items are established for different functional tests of the UUT in the test case, each test item is composed of a plurality of test actions, and the test actions include establishing, connecting, changing, resetting, comparing, setting conditions, disconnecting, enabling, disabling, user inputting, displaying to a user, reading data, circulating, setting state variables or delaying.
Further preferably, the method for implementing signal-oriented automatic testing is characterized in that: in step 5, translating the test case to generate a class function, wherein the class function and the middleware form a mapping relation; and (4) carrying out serialization processing on the attributes, names, types and descriptions of the XML elements of the signals in the corresponding signal models, assigning the attributes, the names, the types and the descriptions to class functions, and automatically generating a test program.
Advantageous effects
The invention uses XML language to describe the test requirement of UUT, generates the test case, separates the test case from the concrete instrument hardware, effectively improves the portability of the test program and the interchangeability of the test instrument, and reduces the development and maintenance cost of the automatic test system.
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.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a signal-oriented test methodology implementation;
FIG. 2 is an instrument modeling map;
fig. 3 is a schematic diagram of a test link.
Detailed Description
The invention aims to provide a signal-oriented automatic test implementation method, which is used for realizing the transportability and good universality of a test program set and reducing the development, operation and maintenance costs of an automatic test system. The basic principle is that firstly, a signal and a test element of an automatic test system are modeled, then, the test requirement of a tested object (UUT) is described, a test case is generated, finally, the test case is translated into an executable test program, and the drive of an instrument is called to complete the test.
The specific method steps are given below with reference to the attached drawings:
step 1: for signals commonly used in automatic test systems: RS232, RS422, RS485, 1553B, ARINC429, FC, AFDX, CAN, 1394B, analog input and output, discrete input and output and other signals are modeled, signal attributes are extracted, XML elements are used for storage, and a signal library in an XML format is generated. For example, the properties of the RS422 bus signal include: data, baud rate, data bits, parity bits, stop bits, flow control, data repetition period, and the number of repetitions of transmitted data.
Step 2: modeling elements of the automatic test system, storing modeling information by applying XML elements which accord with ATML standards, and generating a test element model library in an XML format; the elements comprise a testing instrument, a testing platform, an adapter and a UUT, and the modeling is respectively as follows:
the modeling process of the test instrument is as follows:
respectively defining the signal capability, resources and physical ports of a test instrument, wherein the capability refers to functions of the instrument, if a DA board card is used, the capability is an analog quantity output function, the resources refer to the number of channels of the capability of the instrument, and the physical ports refer to external physical ports of the instrument and comprise ports, connectors and contacts; then, mapping from the signal capability to the resource and from the resource to the physical port is completed; storing the definition and mapping relation according to an XML element applied by an ATML standard; the instrument modeling mapping is shown in FIG. 2.
The modeling process of the test platform is as follows:
defining an ICA end of the test platform, wherein the instrument works in the test platform, and information related to the instrument directly refers to instrument modeling content; then mapping the wiring relation in the test platform, wherein the mapping comprises mapping between physical ports of all test instruments working in the test platform and mapping between the test instruments and an ICA (independent component analysis) end; and applying XML elements to store the definitions and the mapping relations according to the ATML standard.
The modeling process of the adapter is as follows:
port information of two ends of the adapter is defined, wherein one end is an ITA end connected with the test platform, and the other end is a cable end connected with the UUT; then mapping the physical port connection relation of the two ends of the adapter; and applying XML elements to store the definitions and the mapping relations according to the ATML standard.
The modeling process of the UUT is as follows:
and defining the physical port information of the UUT, and storing the definition by applying an XML element according to the ATML standard.
Through the process, the modeling of the test element stores the complete information of a test link (instrument-test station ICA end-adapter ITA end-adapter cable end-UUT end). Because the description of the test requirement is directed to the UUT, but the excitation or measurement is performed by the instrument, with the above-mentioned complete link, the excitation or measurement operation of the UUT by the instrument can be completed only when the automatic test program parses the test description information. The test link is schematically shown in fig. 3.
And step 3: describing the test requirement of the UUT based on the signal to generate a test case, and storing the test case information by using XML elements which accord with the ATML standard.
When a certain UUT is tested, a plurality of corresponding test items are established aiming at different functional tests of the UUT in a test case, each test item consists of a plurality of test actions, and the test actions comprise establishing, connecting, changing, resetting, comparing, setting conditions, disconnecting, enabling, forbidding, inputting by a user, displaying to the user, reading data, circulating, setting state variables or delaying and the like. For example, a simple test is performed by performing the operations of establishing, connecting, reading, disconnecting, and resetting, where the establishing operation assigns values to the UUT ports according to the signal attribute information defined in step 1, the connecting operation applies stimuli to the UUT ports, the reading operation measures signals at the designated UUT ports, the disconnecting operation removes signals from the UUT ports, and the resetting operation removes the definitions of the assignments to the signals. Applying these actions in combination can perform a variety of complex excitation and measurement functions.
And 4, step 4: and packaging the drive of the test instrument into a uniform middleware.
Uniformly defining a group of functions according to test instrument board cards of different manufacturers: and opening the board card function, the parameter initialization function, the data input function, the data output function, closing the board card function and the like, namely packaging the board card drive interface function into a uniform middleware. When the automatic test system is used for replacing test instrument board cards of different manufacturers, only the driver needs to be updated, the test cases are directly transplanted, and the test program does not need to be rewritten.
And 5: and (3) calling corresponding signal models and test element models from the signal library established in the step (1) and the test element model library established in the step (2) according to test requirements, translating the signal models, the test element models and the test cases in the step (3) into test programs executable by an operating system, calling the middleware packaged in the step (4), executing the test, generating test results, and storing the results as XML information to realize the sharing and fault diagnosis of the test results.
The test case is translated to generate a class function, and the class function and the middleware form a mapping relation; and (4) carrying out serialization processing on the attributes, names, types and descriptions of the XML elements of the signals in the corresponding signal models, assigning the attributes, the names, the types and the descriptions to class functions, and automatically generating a test program.
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 (5)

1. A signal-oriented automatic test implementation method is characterized in that: the method comprises the following steps:
step 1: modeling a signal of an automatic test system, extracting a signal attribute, storing by applying an XML element, and generating a signal library in an XML format;
step 2: modeling elements of the automatic test system, storing modeling information by applying XML elements which accord with ATML standards, and generating a test element model library in an XML format; the elements comprise a test instrument, a test platform, an adapter and a UUT;
and step 3: describing the test requirement of the UUT based on the signal to generate a test case, and storing the test case information by using XML elements which accord with ATML standards;
and 4, step 4: packaging the drive of the test instrument into a uniform middleware;
and 5: and (3) calling corresponding signal models and test element models from the signal library established in the step (1) and the test element model library established in the step (2) according to test requirements, translating the signal models, the test element models and the test cases in the step (3) into test programs executable by an operating system, calling the middleware packaged in the step (4), executing the test, generating test results, and storing the results as XML information to realize the sharing and fault diagnosis of the test results.
2. A method for implementing signal-oriented automatic testing according to claim 1, characterized in that: the signals in the step 1 comprise RS232, RS422, RS485, 1553B, ARINC429, FC, AFDX, CAN, 1394B, analog quantity input and output signals and discrete quantity input and output signals.
3. A method for implementing signal-oriented automatic testing according to claim 1, characterized in that: in step 2, the modeling process of the test instrument is as follows:
respectively defining the signal capability, the resources and the physical ports of the test instrument, and then completing the mapping from the signal capability to the resources and from the resources to the physical ports; storing the definition and mapping relation according to an XML element applied by an ATML standard;
the modeling process of the test platform is as follows:
defining an ICA end of a test platform, and then mapping the wiring relation in the test platform, wherein the mapping comprises mapping between physical ports of various test instruments working in the test platform and mapping between the test instruments and the ICA end; storing the definition and mapping relation according to an XML element applied by an ATML standard;
the modeling process of the adapter is as follows:
port information of two ends of the adapter is defined, wherein one end is an ITA end connected with the test platform, and the other end is a cable end connected with the UUT; then mapping the physical port connection relation of the two ends of the adapter; storing the definition and mapping relation according to an XML element applied by an ATML standard;
the modeling process of the UUT is as follows:
and defining the physical port information of the UUT, and storing the definition by applying an XML element according to the ATML standard.
4. A method for implementing signal-oriented automatic testing according to claim 1, characterized in that: in step 3, when a certain UUT is tested, a plurality of corresponding test items are established for different functional tests of the UUT in the test case, each test item is composed of a plurality of test actions, and the test actions include establishing, connecting, changing, resetting, comparing, setting conditions, disconnecting, enabling, disabling, user inputting, displaying to a user, reading data, circulating, setting state variables or delaying.
5. A method for implementing signal-oriented automatic testing according to claim 1, characterized in that: in step 5, translating the test case to generate a class function, wherein the class function and the middleware form a mapping relation; and (4) carrying out serialization processing on the attributes, names, types and descriptions of the XML elements of the signals in the corresponding signal models, assigning the attributes, the names, the types and the descriptions to class functions, and automatically generating a test program.
CN201911277185.XA 2019-12-12 2019-12-12 A Signal-Oriented Automatic Test Implementation Method Pending CN111176984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911277185.XA CN111176984A (en) 2019-12-12 2019-12-12 A Signal-Oriented Automatic Test Implementation Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911277185.XA CN111176984A (en) 2019-12-12 2019-12-12 A Signal-Oriented Automatic Test Implementation Method

Publications (1)

Publication Number Publication Date
CN111176984A true CN111176984A (en) 2020-05-19

Family

ID=70656360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911277185.XA Pending CN111176984A (en) 2019-12-12 2019-12-12 A Signal-Oriented Automatic Test Implementation Method

Country Status (1)

Country Link
CN (1) CN111176984A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782539A (en) * 2020-07-09 2020-10-16 中国人民解放军32181部队 Test and diagnosis integrated development platform based on domestic operating system
CN111964724A (en) * 2020-08-18 2020-11-20 中电科仪器仪表有限公司 Instrument-oriented test description model-based description method and apparatus
CN111966572A (en) * 2020-08-18 2020-11-20 中电科仪器仪表有限公司 Description method and device based on signal-oriented test description model
CN111984232A (en) * 2020-07-31 2020-11-24 中国航空工业集团公司济南特种结构研究所 Radar cover testing software design method based on signal flow
CN114441947A (en) * 2021-12-24 2022-05-06 成都天奥测控技术有限公司 Automatic test system signal routing method based on ATML
CN114510413A (en) * 2021-12-31 2022-05-17 北京航天测控技术有限公司 ATML standard-based signal-oriented test system and synchronization and triggering method
CN115145808A (en) * 2022-06-07 2022-10-04 中国航空工业集团公司沈阳飞机设计研究所 An automated testing method for airborne embedded software
CN115598608A (en) * 2022-10-27 2023-01-13 中国航空工业集团公司雷华电子技术研究所(Cn) A product testing method, system, electronic device thereof, and readable storage medium
CN116047390A (en) * 2022-12-30 2023-05-02 北京航天测控技术有限公司 Self-checking method, device, equipment and storage medium for signal testing system
CN116126395A (en) * 2022-09-30 2023-05-16 中国航空工业集团公司北京长城航空测控技术研究所 Transplantable TPS frame and use method thereof
CN117371378A (en) * 2023-09-14 2024-01-09 成都飞机工业(集团)有限责任公司 Adapter configuration design method for testing station with switch
CN117493239A (en) * 2023-10-13 2024-02-02 成都飞机工业(集团)有限责任公司 Mapping configuration method of adapter

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782539A (en) * 2020-07-09 2020-10-16 中国人民解放军32181部队 Test and diagnosis integrated development platform based on domestic operating system
CN111782539B (en) * 2020-07-09 2023-09-29 中国人民解放军32181部队 Test diagnosis integrated development platform based on domestic operating system
CN111984232A (en) * 2020-07-31 2020-11-24 中国航空工业集团公司济南特种结构研究所 Radar cover testing software design method based on signal flow
CN111966572B (en) * 2020-08-18 2024-04-26 中电科思仪科技股份有限公司 A description method and device based on a signal-oriented test description model
CN111964724A (en) * 2020-08-18 2020-11-20 中电科仪器仪表有限公司 Instrument-oriented test description model-based description method and apparatus
CN111966572A (en) * 2020-08-18 2020-11-20 中电科仪器仪表有限公司 Description method and device based on signal-oriented test description model
CN114441947A (en) * 2021-12-24 2022-05-06 成都天奥测控技术有限公司 Automatic test system signal routing method based on ATML
CN114510413A (en) * 2021-12-31 2022-05-17 北京航天测控技术有限公司 ATML standard-based signal-oriented test system and synchronization and triggering method
CN115145808A (en) * 2022-06-07 2022-10-04 中国航空工业集团公司沈阳飞机设计研究所 An automated testing method for airborne embedded software
CN116126395A (en) * 2022-09-30 2023-05-16 中国航空工业集团公司北京长城航空测控技术研究所 Transplantable TPS frame and use method thereof
CN115598608A (en) * 2022-10-27 2023-01-13 中国航空工业集团公司雷华电子技术研究所(Cn) A product testing method, system, electronic device thereof, and readable storage medium
CN115598608B (en) * 2022-10-27 2025-12-16 中国航空工业集团公司雷华电子技术研究所 Product testing method and system, electronic equipment and readable storage medium thereof
CN116047390A (en) * 2022-12-30 2023-05-02 北京航天测控技术有限公司 Self-checking method, device, equipment and storage medium for signal testing system
CN117371378A (en) * 2023-09-14 2024-01-09 成都飞机工业(集团)有限责任公司 Adapter configuration design method for testing station with switch
CN117493239A (en) * 2023-10-13 2024-02-02 成都飞机工业(集团)有限责任公司 Mapping configuration method of adapter
CN117493239B (en) * 2023-10-13 2025-08-12 成都飞机工业(集团)有限责任公司 A mapping configuration method for an adapter

Similar Documents

Publication Publication Date Title
CN111176984A (en) A Signal-Oriented Automatic Test Implementation Method
CN110046387B (en) A UVM-based SM2 module verification platform and verification method
Bringmann et al. Model-based testing of automotive systems
CN107562969B (en) Method and device for integrating aero-engine control system software
CN111581082B (en) Vehicle-mounted controller test script generation device and method
CN117597669A (en) A testing method, system and device
CN107368408A (en) A kind of software fault towards interface injects automated testing method
CN111782539A (en) Test and diagnosis integrated development platform based on domestic operating system
CN112597006B (en) Automatic execution system and method for embedded software integrated test
CN116340150B (en) Reusable register performance interactive verification system based on UVM and application thereof
CN117787155B (en) A chip testability code dynamic simulation test system and test method
CN113688039B (en) Digital twinning-based simulation verification method for automatic test system
CN120317196A (en) IP general verification platform based on UVM frame
CN118245268B (en) Error reporting and positioning method and device based on hardware accelerator platform test program
CN120492248A (en) Method, device, equipment and medium for generating and testing register model and register transmission level
CN114330223A (en) Method for rapidly positioning bug in chip verification
CN118363873B (en) Testing method, device, equipment and readable storage medium for debugging module
CN116107903B (en) Method, device, equipment and medium for testing vehicle-end service function
CN103744757B (en) DF file verification method based on ARINC661
Crouch et al. P1687. 1: Accessing Embedded 1687 Instruments using Alternate Device Interfaces other than JTAG
CN105162645A (en) Interoperability test method based on PIIF configuration
CN116663461A (en) DUT simulation verification platform, verification method thereof, medium and electronic equipment
CN116384301A (en) Novel uart verification method based on uvm
Vuli et al. Maximizing test asset re-use across MIL, SIL, and HIL development platforms
CN113986753A (en) Interface test method, device, equipment and storage medium

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200519