CN106874178A - A kind of flight control system BIT automated testing method abstract based on object - Google Patents
A kind of flight control system BIT automated testing method abstract based on object Download PDFInfo
- Publication number
- CN106874178A CN106874178A CN201510933292.9A CN201510933292A CN106874178A CN 106874178 A CN106874178 A CN 106874178A CN 201510933292 A CN201510933292 A CN 201510933292A CN 106874178 A CN106874178 A CN 106874178A
- Authority
- CN
- China
- Prior art keywords
- test
- abstraction
- module
- requirements
- flight control
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明属于计算机技术,涉及一种基于对象抽象的飞控系统BIT(机内自检测)自动化测试方法以及一种基于对象抽象的飞控系统BIT自动化测试的装置,包括数据抽象模块、翻译模块以及检测模块,所述抽象模块将测试对象进行数据抽象,所述翻译模块利用映射规范将规范语言的需求描述文本中的信息翻译为设备指令,所述检测模块基于翻译模块产生的设备指令集驱动设备完成测试。本方法采用抽象化的方法对需求进行描述,需求规范准确,不存在二意性;定制化的脚本翻译规则,实现需求和代码的映射,消除了人工编写代码出现错的可能性;利用脚本实现需求的扫描,自动化实现需求,不但提高了效率而且保证实现没有错误。
The invention belongs to computer technology, and relates to an object abstraction-based flight control system BIT (in-machine self-test) automatic test method and a device for object abstraction-based flight control system BIT automatic test, including a data abstraction module, a translation module and A detection module, the abstraction module performs data abstraction on the test object, the translation module uses the mapping specification to translate the information in the requirement description text of the specification language into device instructions, and the detection module drives the device based on the device instruction set generated by the translation module complete test. This method uses an abstract method to describe the requirements, the requirements are standardized and accurate, and there is no ambiguity; the customized script translation rules realize the mapping of requirements and codes, eliminating the possibility of errors in manual coding; using scripts to realize The scanning of requirements and the automatic realization of requirements not only improve the efficiency but also ensure that the realization is error-free.
Description
一、技术领域1. Technical field
本发明属于计算机技术,涉及一种基于对象抽象的飞控系统BIT(机内自检测)自动化测试方法以及一种基于对象抽象的飞控系统BIT自动化测试的装置。The invention belongs to computer technology, and relates to an object abstraction-based flight control system BIT (in-machine self-test) automatic test method and an object abstraction-based flight control system BIT automatic test device.
二、背景技术2. Background technology
随着电传飞行控制系统日趋复杂,需要定期或者不定期的对所有飞控部件进行测试,通过测试结果确定飞机是否可以起飞。目前采用软件驱动硬件的测试方法完成飞控系统的BIT测试,测试过程为按照一定的顺序对飞控系统涉及的所有部件进行逐个测试,直至所有部件测试完毕。As fly-by-wire flight control systems become increasingly complex, it is necessary to test all flight control components regularly or irregularly, and determine whether the aircraft can take off through the test results. At present, the software-driven hardware test method is used to complete the BIT test of the flight control system. The test process is to test all the components involved in the flight control system one by one in a certain order until all components are tested.
但是以上测试方法存在以下问题:But the above test method has the following problems:
随着飞行控制系统越来越复杂以及测试覆盖率的要求越来越高,测试对象类型越来越多,测试对象需要测试的步骤也越来越多,一个飞机往往包含上百个不同的测试对象,每个测试对象有数十个测试步骤,因此往往一个测试下来,需要设计上千个测试步骤,针对每个步骤编写不同的编码,导致BIT软件设计、维护和更改难度越来越大。As the flight control system becomes more and more complex and the requirements for test coverage become higher and higher, there are more and more types of test objects, and more and more steps to be tested for test objects. An aircraft often contains hundreds of different tests. Object, each test object has dozens of test steps, so it is often necessary to design thousands of test steps for one test, and write different codes for each step, which makes BIT software design, maintenance and modification more and more difficult.
三、发明内容3. Contents of the invention
1.本发明要解决的技术问题:1. The technical problem to be solved in the present invention:
本发明针对飞控系统在BIT测试过程中,测试对象众多,测试步骤繁琐,测试维护困难,测试软件设计复杂的情况,设计一种基于对象抽象的飞控系统BIT自动化测试方法。Aiming at the situation that the flight control system has numerous test objects, cumbersome test steps, difficult test maintenance and complex test software design in the BIT test process of the flight control system, the invention designs an object abstraction-based BIT automatic test method of the flight control system.
2.本发明的技术方案:2. Technical scheme of the present invention:
本发明提供一种基于对象抽象的飞控系统BIT(机内自检测)自动化测试方法,具体包括以下步骤The present invention provides a kind of flight control system BIT (built-in self-test) automatic test method based on object abstraction, specifically comprises the following steps
步骤1将测试对象进行数据抽象,每个测试对象均可抽象为模拟量和数字量的组合,从而测试方法可抽象为模拟量测试和数字量测试,因此可将复杂的多个对象检测过程抽象为模拟量和数字量的多次读写操作,形成规范语言的需求描述文本;Step 1 abstracts the data of the test object, and each test object can be abstracted into a combination of analog and digital, so that the test method can be abstracted into analog and digital tests, so the complex multiple object detection process can be abstracted For multiple read and write operations of analog and digital quantities, form a specification language requirement description text;
步骤2制定脚本扫描映射规范,实现所述规范语言的需求描述文本和设备指令间的一一映射;Step 2 formulate a script scanning mapping specification to realize the one-to-one mapping between the requirement description text of the specification language and the device instruction;
步骤3利用映射规范将规范语言的需求描述文本中的信息翻译为设备指令;Step 3 uses the mapping specification to translate the information in the requirement description text of the specification language into device instructions;
步骤4基于上述自动产生的设备指令集驱动设备完成测试。Step 4 drives the device to complete the test based on the above-mentioned automatically generated device instruction set.
其中:所述步骤1将测试对象进行数据抽象,包括将任何检测过程抽象为:“设置数字量输出地址AAA输出值BBB”或“设置模拟量输出地址AAA输出值BBB”或“读取模拟量输入地址AAA输入值应该BBB”“读取数字量输入地址AAA输入值应该BBB”的任意一条或数条的组合。Wherein: the step 1 abstracts the test object data, including abstracting any detection process as: "setting the digital output address AAA output value BBB" or "setting the analog output address AAA output value BBB" or "reading the analog Input address AAA input value should be BBB" "read digital input address AAA input value should be BBB" any one or a combination of several.
本发明还包括一种基于对象抽象的飞控系统BIT自动化测试的装置,该装置具体包括数据抽象模块、翻译模块以及检测模块,所述抽象模块将测试对象进行数据抽象,所述翻译模块利用映射规范将规范语言的需求描述文本中的信息翻译为设备指令,所述检测模块基于翻译模块产生的设备指令集驱动设备完成测试。The present invention also includes a device for BIT automated testing of the flight control system based on object abstraction. The device specifically includes a data abstraction module, a translation module, and a detection module. The specification translates the information in the requirement description text of the specification language into equipment instructions, and the detection module drives the equipment to complete the test based on the equipment instruction set generated by the translation module.
3.本发明的有益效果:3. Beneficial effects of the present invention:
1)采用抽象化的方法对需求进行描述,需求规范准确,不存在二意性;1) Use an abstract method to describe the requirements, the requirements specification is accurate, and there is no ambiguity;
2)定制化的脚本翻译规则,实现需求和代码的映射,消除了人工编写代码出现错的可能性;2) Customized script translation rules realize the mapping of requirements and codes, eliminating the possibility of errors in manual coding;
3)利用脚本实现需求的扫描,自动化实现需求,不但提高了效率而且保证实现没有错误。3) Use scripts to scan requirements and automate requirements, which not only improves efficiency but also ensures that there are no errors in implementation.
四、附图说明4. Description of drawings
图1是本发明的主程序流程图;Fig. 1 is the main program flowchart of the present invention;
图2是本发明装置示意图;Fig. 2 is a schematic diagram of the device of the present invention;
其中1为数据抽象模块,2为翻译模块,3为检测模块。Among them, 1 is the data abstraction module, 2 is the translation module, and 3 is the detection module.
五、具体实施方式5. Specific implementation
下面通过实例进行详细说明。The following is a detailed description through an example.
假设BIT某个测试对象原始需求如下:Assume that the original requirements of a test object in BIT are as follows:
需要对BIT测试激励进行测试;进行BIT测试激励测试前,需要打开测试激励允许开关并测试当测试激励为10V时,测试回绕是否正确;同时在测试回绕结束后,需要测试当测试激励允许开关关闭后,测试激励回绕是否为0V。测试激励允许开关回绕是否为0。It is necessary to test the BIT test stimulus; before performing the BIT test stimulus test, it is necessary to turn on the test stimulus permission switch and test whether the test wrap is correct when the test stimulus is 10V; at the same time, after the test wrap is over, it is necessary to test when the test stimulus permission switch is turned off After that, test whether the excitation wrap is 0V. Tests whether the stimulus allows switch wraparound to 0.
根据上述信息,对测试过程进行划分并进行规范化描述,如下表2表3示According to the above information, the test process is divided and described in a standardized manner, as shown in Table 2 and Table 3 below
根据原始需求将测试分为8个测试步骤,如下表1,这些动作需要顺序完成。According to the original requirements, the test is divided into 8 test steps, as shown in Table 1 below, and these actions need to be completed in order.
表1测试内容示例表Table 1 Example table of test content
根据上表2测试对象进行抽象。抽象结果如下表2示:Abstract according to the test object in Table 2 above. The abstract results are shown in Table 2 below:
表2需求的抽象结果Table 2 Abstract results of requirements
第二,制定脚本扫描映射规范,实现所述规范语言的需求描述文本和设备指令间的一一映射;;Second, formulate a script scanning mapping specification to realize the one-to-one mapping between the requirement description text of the specification language and the device instruction;
如下表3例,脚本翻译原理如下,扫描规范的需求描述,根据以下扫描规范对表2抽象需求进行扫描,映射调用驱动函数:As shown in Table 3, the principle of script translation is as follows, scan the description of the requirements of the specification, scan the abstract requirements of Table 2 according to the following scanning specifications, and map and call the driver function:
表3脚本扫描规范Table 3 Script scan specification
第三,利用映射将规范语言的需求描述文本信息进行翻译,生成设备指令集。Third, use the mapping to translate the requirement description text information of the specification language to generate a device instruction set.
利用表3映射关系对表2需求进行扫描,自动生成设备指令集如下表4示。Use the mapping relationship in Table 3 to scan the requirements in Table 2, and automatically generate the device instruction set shown in Table 4 below.
表4生成设备指令集的结果Table 4 The results of generating device instruction sets
第四,基于上述自动产生的设备指令集驱动设备完成测试。Fourth, the device is driven to complete the test based on the above-mentioned automatically generated device instruction set.
检测模块按顺序逐条读取生成的设备指令,形成设备指令集,基于形成的设备指令集驱动设备完成自动检测。The detection module reads the generated device instructions one by one in order to form a device instruction set, and drives the device to complete automatic detection based on the formed device instruction set.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510933292.9A CN106874178A (en) | 2015-12-14 | 2015-12-14 | A kind of flight control system BIT automated testing method abstract based on object |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510933292.9A CN106874178A (en) | 2015-12-14 | 2015-12-14 | A kind of flight control system BIT automated testing method abstract based on object |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106874178A true CN106874178A (en) | 2017-06-20 |
Family
ID=59238621
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510933292.9A Pending CN106874178A (en) | 2015-12-14 | 2015-12-14 | A kind of flight control system BIT automated testing method abstract based on object |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106874178A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109739771A (en) * | 2019-01-04 | 2019-05-10 | 北京空间技术研制试验中心 | A kind of test method for spacecraft-testing |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100318205A1 (en) * | 2009-06-12 | 2010-12-16 | Sony Corporation | Signal processing apparatus and signal processing method |
| CN103019928A (en) * | 2011-09-27 | 2013-04-03 | 北京新媒传信科技有限公司 | Automatic testing method and system |
| CN103558544A (en) * | 2013-10-25 | 2014-02-05 | 中国航空综合技术研究所 | Digital-analog hybrid circuit built-in test device based on boundary scan |
| CN104679644A (en) * | 2013-11-28 | 2015-06-03 | 比亚迪股份有限公司 | Testing method and system for application program in mobile terminal |
-
2015
- 2015-12-14 CN CN201510933292.9A patent/CN106874178A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100318205A1 (en) * | 2009-06-12 | 2010-12-16 | Sony Corporation | Signal processing apparatus and signal processing method |
| CN103019928A (en) * | 2011-09-27 | 2013-04-03 | 北京新媒传信科技有限公司 | Automatic testing method and system |
| CN103558544A (en) * | 2013-10-25 | 2014-02-05 | 中国航空综合技术研究所 | Digital-analog hybrid circuit built-in test device based on boundary scan |
| CN104679644A (en) * | 2013-11-28 | 2015-06-03 | 比亚迪股份有限公司 | Testing method and system for application program in mobile terminal |
Non-Patent Citations (1)
| Title |
|---|
| 张丹涛等: "基于系统需求数据库的BIT自动测试技术", 《系统仿真学报》 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109739771A (en) * | 2019-01-04 | 2019-05-10 | 北京空间技术研制试验中心 | A kind of test method for spacecraft-testing |
| CN109739771B (en) * | 2019-01-04 | 2022-02-15 | 北京空间技术研制试验中心 | Testing method for spacecraft testing |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8683282B2 (en) | Automatic identification of information useful for generation-based functional verification | |
| CN105446847B (en) | A kind of automatization test system and its method of ARINC659 buses | |
| CN103890595B (en) | Method and system for non-indexed serial semiconductor testing using independent controllers in a multiplexed processor test cell | |
| CN113779912B (en) | Chip verification system, method and device, electronic equipment and storage medium | |
| CN103713958A (en) | Method and equipment for synchronizing graphical user interface operation between machines with different languages | |
| US9342425B2 (en) | Test apparatus and test module | |
| CN105302573A (en) | Method for building function point matching setting automation platform for function verification platform | |
| CN105629148A (en) | Method and device of testing a plurality of modules in test circuit | |
| CN114662427A (en) | Debugging method and device for logic system design | |
| US9274933B2 (en) | Pretest setup planning | |
| US20130231885A1 (en) | Test apparatus and test module | |
| CN106095948A (en) | The querying method of form, device and equipment | |
| CN102236068A (en) | Method and device for testing chip | |
| US20140281719A1 (en) | Explaining excluding a test from a test suite | |
| CN103810107A (en) | Automatic testing method for web project | |
| US20140282327A1 (en) | Cutter in diagnosis (cid) a method to improve the throughput of the yield ramp up process | |
| CN107622017A (en) | A kind of analytic method of general automation software test | |
| CN103019944A (en) | Device and method for testing based on code injection mode | |
| CN106874178A (en) | A kind of flight control system BIT automated testing method abstract based on object | |
| CN108267683A (en) | The method and device that a kind of FPGA tests oneself | |
| CN119150768B (en) | Chip verification method and device, electronic equipment and storage medium | |
| US8739091B1 (en) | Techniques for segmenting of hardware trace and verification of individual trace segments | |
| CN103425558B (en) | A kind of method realizing the test of board I/O port based on test configurations table | |
| TWI611291B (en) | Computer program product for automatically generating software test data and method thereof | |
| CN106874179A (en) | A kind of flight control system BIT system detection methods |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170620 |
|
| RJ01 | Rejection of invention patent application after publication |