CN107480060A - A kind of data cover automated testing method - Google Patents

A kind of data cover automated testing method Download PDF

Info

Publication number
CN107480060A
CN107480060A CN201710656215.2A CN201710656215A CN107480060A CN 107480060 A CN107480060 A CN 107480060A CN 201710656215 A CN201710656215 A CN 201710656215A CN 107480060 A CN107480060 A CN 107480060A
Authority
CN
China
Prior art keywords
data
linear interpolation
testing method
automated testing
interpolation table
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
CN201710656215.2A
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.)
Xian Aircraft Design and Research Institute of AVIC
Original Assignee
Xian Aircraft Design and Research Institute of 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 Xian Aircraft Design and Research Institute of AVIC filed Critical Xian Aircraft Design and Research Institute of AVIC
Priority to CN201710656215.2A priority Critical patent/CN107480060A/en
Publication of CN107480060A publication Critical patent/CN107480060A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis

Abstract

The invention discloses a kind of data cover automated detection method, belong to Airborne Software technical field of measurement and test.Comprise the following steps:Step 1: the constant that array mode stores is converted into the linear interpolation table of initial data;The initial data so that in one-dimensional linear or two-dimensional linear interpolation table, initial data linear interpolation table to be changed, is converted into the constant that array mode stores respectively;Step 2: establish automatic test model and tested data are contrasted using test model;The automatic test model includes:Horizontal data traversal and longitudinal data traversal;Step 3: comparing result export simultaneously Wrong localization data;Wrong data information in the automatic tested data of display, and analyze the scope of its influence.

Description

A kind of data cover automated testing method
Technical field
The invention belongs to Airborne Software technical field of measurement and test, and in particular to a kind of data cover automated testing method.
Background technology
With the development of contemporary aircraft, to the requirements such as aircraft function, performance and security also more and more higher, in aircraft not It is also more and more with the data used under state of flight, become increasingly complex.Under " big data " epoch, flying quality is in aircraft system Particularly important in system design, the mistake of a data is likely to turn into the blasting fuse for causing to jeopardize flight life security, therefore greatly Data cover test can not be ignored.
In flight control system, the parameter value of aircraft different flight state is stored within one-dimensional or two-dimensional linear interpolation table, Such as need to calculate parameter value of the aircraft in some state of flight, then need to enter row interpolation to the linear interpolation table of correlation.Generally, consider It is before software dynamic testing is carried out, it is necessary to all in control law software to the importance of flight control system control law data One-dimensional, two-dimensional linear interpolation table and constant value carry out data examination, check the uniformity of code and design data, it is ensured that use The security of data.
However, thousands of groups " big datas " are directed to, even if under limited human resources and material resources, to extensive Data examined that, due to software test personnel self reason and transient cause, manual review mode can not be complete one by one Ensure the credibility and correctness of data.
The content of the invention
The purpose of the present invention:In order to solve the above problems, the present invention proposes a kind of data cover automated testing method, For solving the uncertainty of flight control system control law software parameter value under different flight state, improve that data use can The security of reliability and system software.
Technical scheme:A kind of data cover automated testing method, comprises the following steps:
Step 1: the constant that array mode stores is converted into the linear interpolation table of initial data;
The initial data is carried out initial data linear interpolation table respectively with one-dimensional linear or two-dimensional linear interpolation table Conversion, is converted into the constant that array mode stores;
Step 2: establish automatic test model and tested data are contrasted using test model;
The automatic test model includes:Horizontal data traversal and longitudinal data traversal;
Step 3: comparing result export simultaneously Wrong localization data;
Wrong data information in the automatic tested data of display, and analyze the scope of its influence.
Preferably, in the step 1, the linear interpolation table of initial data with text by replicating, pasting and replacing work( The Software tool of energy changes into the constant stored in a manner of array.
Preferably, in the step 1, the initial data is soft by U l traEd i t application software or text editing Part is changed.
Preferably, in the step 3, the measured data carries out horizontal data traversal and longitudinal data traversal simultaneously.
Preferably, the tested data carry out the comparison of horizontal data and longitudinal data using all standing principle.
The advantageous effects of technical solution of the present invention:
1) datamation examination is realized, reduces human and material resources, avoids the error of manual review work;
2) working time of data validation test is saved, improves operating efficiency and accuracy;
3) it is versatile, available for other big data Airborne Software systems;
4) it can be found that the mistake of software data at initial stage, it is possible to reduce the difficulty brought in later maintenance.
Brief description of the drawings
Fig. 1 is the schematic diagram of a preferred embodiment of data cover automated testing method of the present invention;
Fig. 2 is the linear interpolation table of certain parameter of a preferred embodiment of data cover automated testing method of the present invention;
Fig. 3 is that the automatic test of a preferred embodiment of data cover automated testing method of the present invention contrasts flow Figure.
Embodiment
To make the purpose, technical scheme and advantage that the present invention is implemented clearer, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is further described in more detail.In the accompanying drawings, identical from beginning to end or class As label represent same or similar element or the element with same or like function.Described embodiment is the present invention Part of the embodiment, rather than whole embodiments.The embodiments described below with reference to the accompanying drawings are exemplary, it is intended to uses It is of the invention in explaining, and be not considered as limiting the invention.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Under Embodiments of the invention are described in detail with reference to accompanying drawing for face.
In the description of the invention, it is to be understood that term " " center ", " longitudinal direction ", " transverse direction ", "front", "rear", The orientation or position relationship of the instruction such as "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer " is based on accompanying drawing institutes The orientation or position relationship shown, it is for only for ease of the description present invention and simplifies description, rather than instruction or the dress for implying meaning Put or element there must be specific orientation, with specific azimuth configuration and operation, therefore it is not intended that the present invention is protected The limitation of scope.
Embodiments of the invention are described in detail below in conjunction with the accompanying drawings, refer to Fig. 1 to Fig. 3;
A kind of data cover automated testing method, it is characterised in that comprise the following steps:
Step 1: the constant that array mode stores is converted into the linear interpolation table of initial data;
In flight control system, parameter value of the aircraft under different flight state is stored within one-dimensional or two-dimensional linear In interpolation table, and one-dimensional, two-dimensional linear interpolation table is stored in a manner of array more in tested software;Need to enter initial data Row conversion, is converted into the constant that array mode stores, initial data could be compared with measured data.
So initial data is so that in one-dimensional linear or two-dimensional linear interpolation table, initial data linear interpolation table to be turned Change, be converted into the constant that array mode stores;
Step 2: establish automatic test model and tested data are contrasted using test model;
The automatic test model includes:Horizontal data traversal and longitudinal data traversal;
Step 3: comparing result export simultaneously Wrong localization data;
Wrong data information in the automatic tested data of display, and analyze the scope of its influence.
Parameter value of the aircraft under some state of flight is being calculated, it is necessary to enter row interpolation to the linear interpolation table of correlation, such as Shown in legend 2, due to the error of Software Coding personnel, cause the mistake (data that Fig. 2 circles are lived) of two data, coverage is The multiple data of surrounding, if the problem of not finding herein in software dynamic testing, influence state of flight, may cause serious Consequence, therefore the automated testing method of data cover greatly reduces factor data mistake and causes the risk of serious consequence.
In the present embodiment, in step 1, the linear interpolation table of initial data with text by replicating, pasting and replacing work( The Software tool of energy changes into the constant stored in a manner of array.
It is appreciated that:In step 1, initial data is carried out by UltraEdit application software or text edit software Conversion, this scheme is preferred scheme, and the conversion of initial data can also be realized by other edit tools.
In the present embodiment, in the step 3, the measured data carries out horizontal data traversal and longitudinal data time simultaneously Go through, Data Detection, easy-to-look-up errors present and coverage are carried out according to file and horizontally-arranged mode.
It is appreciated that:The tested data carry out the ratio of horizontal data and longitudinal data using all standing principle It is right, it is compared using all standing principle, is to look for the most reliable method of error in data, it is possible to increase flight safety.
Data cover automated testing method of the present invention, the constant datas such as one-dimensional, two-dimensional linear interpolation are carried out comprehensively Covering, it is ensured that the data that aircraft uses under different flight state are all believable, correct.
Notebook data coverage test method has realized to thousands of groups of constant Numerical Implementations automatic test;The covering is surveyed Method for testing is versatile, can be applied to other big data Airborne Software systems;Reduce human resources, without more people and consuming The substantial amounts of time goes to examine data one by one;Ensure the correctness that data use under different flight state, add winged The security of control system.
It is last it is to be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations.To the greatest extent The present invention is described in detail with reference to the foregoing embodiments for pipe, it will be understood by those within the art that:It is still Technical scheme described in foregoing embodiments can be modified, or which part technical characteristic is equally replaced Change;And these modifications or replacement, the essence of appropriate technical solution is departed from the essence of various embodiments of the present invention technical scheme God and scope.

Claims (5)

1. a kind of data cover automated testing method, it is characterised in that comprise the following steps:
Step 1: the constant that array mode stores is converted into the linear interpolation table of initial data;
The initial data is respectively so that in one-dimensional linear or two-dimensional linear interpolation table, initial data linear interpolation table to be turned Change, be converted into the constant that array mode stores;
Step 2: establish automatic test model and tested data are contrasted using test model;
The automatic test model includes:Horizontal data traversal and longitudinal data traversal;
Step 3: comparing result export simultaneously Wrong localization data;
Wrong data information in the automatic tested data of display, and analyze the scope of its influence.
2. big data as claimed in claim 1 covers automated testing method, it is characterised in that:It is original in the step 1 The linear interpolation table of data with text by replicating, pasting and the Software tool of replacement function is changed into and stored in a manner of array Constant.
3. big data as claimed in claim 2 covers automated testing method, it is characterised in that:It is described in the step 1 Initial data is changed by UltraEdit application software or text edit software.
4. big data as claimed in claim 1 covers automated testing method, it is characterised in that:It is described in the step 3 Measured data carries out horizontal data traversal and longitudinal data traversal simultaneously.
5. big data as claimed in claim 4 covers automated testing method, it is characterised in that:The tested data use All standing principle carries out the comparison of horizontal data and longitudinal data.
CN201710656215.2A 2017-08-03 2017-08-03 A kind of data cover automated testing method Pending CN107480060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710656215.2A CN107480060A (en) 2017-08-03 2017-08-03 A kind of data cover automated testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710656215.2A CN107480060A (en) 2017-08-03 2017-08-03 A kind of data cover automated testing method

Publications (1)

Publication Number Publication Date
CN107480060A true CN107480060A (en) 2017-12-15

Family

ID=60596992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710656215.2A Pending CN107480060A (en) 2017-08-03 2017-08-03 A kind of data cover automated testing method

Country Status (1)

Country Link
CN (1) CN107480060A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961015A (en) * 2021-09-24 2022-01-21 中国航空工业集团公司西安飞机设计研究所 Flight control law one-dimensional interpolation table design method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0290750A (en) * 1988-09-27 1990-03-30 Nec Corp Automatic testing system for data line
CN101739845A (en) * 2009-12-18 2010-06-16 中国航空无线电电子研究所 Aeronautical data chain information-based civil aircraft aviation electronic verification system and method thereof
CN104636257A (en) * 2015-03-13 2015-05-20 胡兢玉 SQL coverage-based automatic testing method for application software in database based on
CN103186467B (en) * 2011-12-31 2016-04-20 北京新媒传信科技有限公司 Data correctness verification method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0290750A (en) * 1988-09-27 1990-03-30 Nec Corp Automatic testing system for data line
CN101739845A (en) * 2009-12-18 2010-06-16 中国航空无线电电子研究所 Aeronautical data chain information-based civil aircraft aviation electronic verification system and method thereof
CN103186467B (en) * 2011-12-31 2016-04-20 北京新媒传信科技有限公司 Data correctness verification method and device
CN104636257A (en) * 2015-03-13 2015-05-20 胡兢玉 SQL coverage-based automatic testing method for application software in database based on

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961015A (en) * 2021-09-24 2022-01-21 中国航空工业集团公司西安飞机设计研究所 Flight control law one-dimensional interpolation table design method
CN113961015B (en) * 2021-09-24 2024-02-02 中国航空工业集团公司西安飞机设计研究所 One-dimensional interpolation table design method for flight control law

Similar Documents

Publication Publication Date Title
CN103246602B (en) Code coverage determines method and system, code coverage detection method and system
CN106679533B (en) Detecting tool system and detection method for LNG ship cargo tank three-dimensional plate CM node
US20150161301A1 (en) Methods and apparatus to map schematic elements into a database
CN105468517B (en) A kind of mistake of statistics localization method based on Black-box testing Cases yojan
CN105138461A (en) Interface testing method and device for application program
CN105759784A (en) Fault diagnosis method based on data envelopment analysis
CN106776319A (en) Automatic test approach and device
CN104851093A (en) Vector surface data edge match detection method based on distance and angle control
CN105279092A (en) Software testing method and apparatus
CN104156311A (en) Embedded type C language target code level unit testing method based on CPU simulator
CN104133768A (en) Program code review method and program code review device
CN112824828B (en) Laser tracker station position determination method and system, electronic device and medium
CN103198016A (en) Software error positioning method based on joint dependent probability modeling
CN105468507B (en) Branch standard reaching detection method and device
CN107064454B (en) A kind of rock core of reservoir fissure development degree determines method
CN107480060A (en) A kind of data cover automated testing method
CN107145417A (en) A kind of outer plug-in card installation site method of calibration and device
CN105512372A (en) Modeled onboard data processing simulation testing method
CN102103539A (en) Z-specification-based test case generating method
CN105373473B (en) CDR accuracys method of testing and test system based on original signaling decoding
US20160063744A1 (en) Data Quality Test and Report Creation System
CN106338770B (en) A kind of mutual checking method of inspection point data and system
CN111929720B (en) Neutron detector performance detection method, device, system and computer equipment
CN104598384A (en) Code detection method and device
CN107133168A (en) A kind of sequence of events Fault Locating Method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215