CN108073516A - One kind is towards airborne embedded software data-driven testing engine design method - Google Patents
One kind is towards airborne embedded software data-driven testing engine design method Download PDFInfo
- Publication number
- CN108073516A CN108073516A CN201711361394.3A CN201711361394A CN108073516A CN 108073516 A CN108073516 A CN 108073516A CN 201711361394 A CN201711361394 A CN 201711361394A CN 108073516 A CN108073516 A CN 108073516A
- Authority
- CN
- China
- Prior art keywords
- test
- data
- driving
- testing
- embedded software
- 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
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
The present invention proposes a kind of towards airborne embedded software data-driven testing engine design method, belong to software automated testing technical field, during airborne embedded software test, due to lacking unified measuring technology and test environment, many bottlenecks that tester runs into dynamic testing process is performed.Automated test frame mainly includes script resolver and testing engine, wherein data-driven testing engine is the core of automated test frame, testing engine calls corresponding bottom layer driving function according to the output of script resolver, injection parameter passage, scheduling respective service performs test, completes result and is acted than equity.The present invention realizes the Real-Time Scheduling and efficiently execution, while also meet the flexible expansion and configuration needs of protocol layer of the interface in automated test frame to designator and test data.
Description
Technical field
The invention belongs to software automated testing technical fields, are related to a kind of towards the survey of airborne embedded software data-driven
Try engine design method.
Background technology
Data-driven measuring technology is the relatively advanced measuring technology in current automatic test field, is tested in desktop system
Field is widely used.In domestic airborne embedded software test work at present, tester is in dynamic testing process is performed
Test system and system under test (SUT) can be run into and adhere to different operating systems and deployed environment separately, interface communication protocol it is complicated various and
The problem of not unique, it is necessary to which design one kind tests data-driven towards airborne embedded software data-driven testing engine
Technology introduces airborne embedded software test field, to solve the above problems.
The content of the invention
On the basis of the classical data-droved engine design philosophy of further investigation, for the spy of airborne embedded software test
Determine domain requirement and isomery characteristic, the present invention proposes a kind of towards airborne embedded software data-driven testing engine design side
Method devises data-droved engine, and comprising key modules such as engine kernel, command execution module, interface driver layers, data are driven
Dynamic measuring technology is applied in airborne embedded software automatic test, and it is " different to solve airborne embedded software test neighborhood system
Structure " and the skimble-scamble problem of communication interface.
The technical scheme is that:
It is described a kind of towards airborne embedded software data-driven testing engine design method, it is characterised in that:Including with
Lower step:
Step 1:Interface driver from different platform is packaged, forms the unified driving file of interface format;Institute
Stating different platform includes the platform under true environment and virtual environment;
Step 2:It establishes system testing order and drives the mapping relations of the driving function encapsulated in file, form driving letter
Number mapping table, is dynamically loaded onto memory by mapping table, realizes and different platform driving layer is called using unified order;
Step 3:Test command in the test case write in advance and test data are loaded onto memory, form test
Step queue;
Step 4:According to the test command in testing procedure queue, corresponding bottom is searched in driving function mapping table
Layer driving function, and test data is injected, test data conversion into required form and is sent to driving layer by driving file;
Step 5:The test data that driving layer returns is received, is converted into the unified form that can be shown, and and test case
In expected results compared, finally provide test result.
Advantageous effect
Advantages of the present invention:Data-driven measuring technology is applied to the automation of airborne embedded software for the first time and surveyed by the present invention
Examination field devises data-droved engine for airborne embedded software test feature demand and isomery characteristic, and airborne embedding
Enter successful implementation application in formula software test, start the beginning that data driven technique is applied in airborne built-in field.Simultaneously
The testing engine possesses the adaptation ability of interface driver, passes through the encapsulation to different platform interface driver and driving function mapping table
Foundation, to adapt in kind, the half Various Complexes test environment such as in kind, virtual, solve test case under different test environments
And its multiplying question of script, testing efficiency is promoted, saves test resource, reduces the workload that environment transplanting is brought.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description
It obtains substantially or is recognized by the practice of the present invention.
Description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment
Substantially and it is readily appreciated that, wherein:
Fig. 1 is data-droved engine design process of the present invention;
Fig. 2 driving function mapping tables.
Specific embodiment
The embodiment of the present invention is described below in detail, the embodiment is exemplary, it is intended to for explaining the present invention, and
It is not considered as limiting the invention.
Data-droved engine design process is shown in Fig. 1, is below detailed operation principle:
Step 1:Interface driver from different platform is packaged, forms the unified driving file of interface format;Institute
Stating different platform includes the platform under true environment and virtual environment.
The encapsulation of Avionics data bus is realized in the present embodiment.Bottom bus can be real bus or virtual bus.
For real bus, it is necessary to which the api function provided according to board carries out the conversion of data type and return value, realize and test
The matching of script data form;For virtual bus, using TCP/IP communication agreement, first different type bus is virtualized, then
The interface function of virtual bus API test frames is packaged so that when actually calling bottom bus, completely without knowledge
The authenticity of other bus ultimately forms the unified driving file of interface format.
The Avionics data bus interface protocol that testing engine has been supported at present in the present embodiment is shown in Table 1.
The aviation interface protocol table that table 1 has been supported
Sequence number | Interface type | Physical bus drives | Virtual bus drives |
1 | FC fiber buss | It has supported | It has supported |
2 | CAN bus | It has supported | It has supported |
3 | 1553B buses | It has supported | It has supported |
4 | ARINC429 buses | It has supported | It has supported |
5 | RS422 buses | It has supported | It has supported |
6 | Discrete magnitude interface | It has supported | It has supported |
7 | Analog interface | It has supported | It has supported |
8 | Resistance card interface | It has supported | It has supported |
9 | Relay card interface | It has supported | It has supported |
9 | 2831 card interfaces | It has supported | It has supported |
10 | 7141st, 7145,7173 card interface | It has supported | It has supported |
Step 2:It establishes system testing order and drives the mapping relations of the driving function encapsulated in file, form driving letter
Number mapping table, is dynamically loaded onto memory by mapping table, realizes and different platform driving layer is called using unified order.
Step 3:Test command in the test case write in advance and test data are loaded onto memory, form test
Step queue.
In order to solve the coupling of test case and bottom layer driving, test case is isolated with bottom layer driving, it is necessary to establish survey
Examination order and the mapping relations of bottom layer driving function so that when calling different bottom documents, realize and use a set of unified life
Make the flexible calling to different platform driving layer.The actual mapping table is an XML configuration file, and this document is added in advance
Installed System Memory is loaded onto, is searched when being driven for subsequent calls, which not only establishes mapping relations, also controls driving file
The export of middle driving function, mapping table is by multiple<fun>Element forms, each<fun>Bmap property controls the driving letter
Whether number exports,<fun>Daughter element<name>To drive the driving function name in file,<string>The value of element is system
Predefined test command.Detailed Mapping Examples such as Fig. 2.
Step 4:According to the test command in testing procedure queue, corresponding bottom is searched in driving function mapping table
Layer driving function, and test data is injected, test data conversion into required form and is sent to driving layer by driving file.
Step 5:The test data that driving layer returns is received, is converted into the unified form that can be shown, and and test case
In expected results compared, finally provide test result.
The test case write in advance is read, test case is generally made of multiple test scripts, a test script
It is made of again multiple test actions, a complete test action includes test command and test data, by test command with surveying
Examination data are loaded onto memory, ultimately form a series of pending testing procedure queues.Complete testing procedure queue example is such as
Shown in table 2.
Table 2
Test command | Test data |
FCsend | 1,0xffff 0000 0000 0000 ffff 0000 0000 0000 |
FCrecv | 5,0x1234 0000 0000 0000 0000 0000 0000 0000 |
1553sendrt | 9,30,7,0x2b40 0000 0000 0000 |
1553recvrt | 9,30,7,0x2b40 0000 0000 0000 |
dely | 100 |
A testing procedure is first read from testing procedure queue, is looked into further according to test command into driving function mapping table
Corresponding driving function is looked for, test command is divided into transmission order, receives order and other miscellaneous function orders, ordered for sending
, it is necessary to which test data is injected driving file, driving file will carry out format conversion to test data first, and recall reality for order
Driving function, test data is sent.It is ordered for receiving, when there is test result data arrival, driving file will
Initial data is returned to, engine carries out format conversion to initial data first, then is compared with expected results, so as to draw test
Use-case whether by conclusion.
Although the embodiment of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, those of ordinary skill in the art are not departing from the principle of the present invention and objective
In the case of above-described embodiment can be changed within the scope of the invention, change, replace and modification.
Claims (1)
- It is 1. a kind of towards airborne embedded software data-driven testing engine design method, it is characterised in that:Comprise the following steps:Step 1:Interface driver from different platform is packaged, forms the unified driving file of interface format;It is described not Include the platform under true environment and virtual environment with platform;Step 2:It establishes system testing order and drives the mapping relations of the driving function encapsulated in file, form driving function and reflect Mapping table is dynamically loaded onto memory by firing table, realizes and different platform driving layer is called using unified order;Step 3:Test command in the test case write in advance and test data are loaded onto memory, form testing procedure Queue;Step 4:According to the test command in testing procedure queue, corresponding bottom is searched in driving function mapping table and is driven Dynamic function, and test data is injected, test data conversion into required form and is sent to driving layer by driving file;Step 5:Receive the test data that driving layer returns, be converted into the unified form that can be shown, and in test case Expected results are compared, and finally provide test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711361394.3A CN108073516A (en) | 2017-12-18 | 2017-12-18 | One kind is towards airborne embedded software data-driven testing engine design method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711361394.3A CN108073516A (en) | 2017-12-18 | 2017-12-18 | One kind is towards airborne embedded software data-driven testing engine design method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108073516A true CN108073516A (en) | 2018-05-25 |
Family
ID=62158861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711361394.3A Pending CN108073516A (en) | 2017-12-18 | 2017-12-18 | One kind is towards airborne embedded software data-driven testing engine design method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108073516A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109932588A (en) * | 2019-02-01 | 2019-06-25 | 上海数易信息科技有限公司 | A kind of Aerial Electronic Equipment validation test engine |
CN112214391A (en) * | 2019-07-09 | 2021-01-12 | 广州慧睿思通信息科技有限公司 | Internet of things platform interface testing method and system and computer storage medium |
CN113238936A (en) * | 2021-05-11 | 2021-08-10 | 中国船舶重工集团公司第七0九研究所 | Extensible universal embedded software communication interface testing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719096A (en) * | 2009-12-29 | 2010-06-02 | 北京航空航天大学 | Method for improving executing speed of test script of real-time embedded system |
CN102256293A (en) * | 2011-04-18 | 2011-11-23 | 电子科技大学 | Demand routing gateway of Ad hoc fusion network and driver design method thereof |
CN105068927A (en) * | 2015-08-04 | 2015-11-18 | 株洲南车时代电气股份有限公司 | Keyword drive-based automatic test method of urban rail drive control units |
CN105955239A (en) * | 2016-05-26 | 2016-09-21 | 上海添测智能科技有限公司 | General test platform rapid construction method based on shared memory |
CN107229584A (en) * | 2017-06-01 | 2017-10-03 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Aviation electronics simulation test platform I/O management systems |
-
2017
- 2017-12-18 CN CN201711361394.3A patent/CN108073516A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719096A (en) * | 2009-12-29 | 2010-06-02 | 北京航空航天大学 | Method for improving executing speed of test script of real-time embedded system |
CN102256293A (en) * | 2011-04-18 | 2011-11-23 | 电子科技大学 | Demand routing gateway of Ad hoc fusion network and driver design method thereof |
CN105068927A (en) * | 2015-08-04 | 2015-11-18 | 株洲南车时代电气股份有限公司 | Keyword drive-based automatic test method of urban rail drive control units |
CN105955239A (en) * | 2016-05-26 | 2016-09-21 | 上海添测智能科技有限公司 | General test platform rapid construction method based on shared memory |
CN107229584A (en) * | 2017-06-01 | 2017-10-03 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Aviation electronics simulation test platform I/O management systems |
Non-Patent Citations (1)
Title |
---|
李波波: "Robot Framework自动化框架在集散控制系", 《工业控制计算机》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109932588A (en) * | 2019-02-01 | 2019-06-25 | 上海数易信息科技有限公司 | A kind of Aerial Electronic Equipment validation test engine |
CN109932588B (en) * | 2019-02-01 | 2021-01-29 | 上海数易信息科技有限公司 | Avionics equipment verification test engine |
CN112214391A (en) * | 2019-07-09 | 2021-01-12 | 广州慧睿思通信息科技有限公司 | Internet of things platform interface testing method and system and computer storage medium |
CN113238936A (en) * | 2021-05-11 | 2021-08-10 | 中国船舶重工集团公司第七0九研究所 | Extensible universal embedded software communication interface testing method and device |
CN113238936B (en) * | 2021-05-11 | 2022-08-12 | 中国船舶重工集团公司第七0九研究所 | Extensible universal embedded software communication interface testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108768730B (en) | Method and device for operating intelligent network card | |
CN109361562B (en) | Automatic testing method based on associated network equipment access | |
CN101241467B (en) | Automatized white box test system and method facing to WEB application | |
US8935573B2 (en) | Reliable unit testing through cached mocking | |
CN103744784B (en) | Mobile phone application automated testing method and system | |
CN108073516A (en) | One kind is towards airborne embedded software data-driven testing engine design method | |
CN103793326A (en) | Assembly test method and device | |
CN105528290A (en) | Construction method of script-based embedded software simulation and test integrated platform | |
US8855961B2 (en) | Binary definition files | |
CN106682036A (en) | Data exchange system and exchange method thereof | |
CN102096410B (en) | Dynamic function test method of high-speed train operation control system | |
CN110232014A (en) | Operation flow automated testing method, device, controller and medium | |
CN103902458A (en) | Universal storage software test design method | |
US20100257407A1 (en) | Electronic card able to execute a command originating from a simulation system and a command originating from a diagnostic module and associated simulation method | |
CN110405759A (en) | A kind of chip control system | |
CN105095077B (en) | User interface automated testing method and device | |
CN112579446A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN107357721B (en) | Method and device for testing system | |
CN102291274A (en) | System and method for realizing automatic adaptation of network testing instrument | |
CN104657262A (en) | High-real-time automatic testing system and testing method | |
CN105550103B (en) | A kind of automated testing method based on self-defined test script | |
CN113672502A (en) | Program multi-system testing method and corresponding device, equipment and medium | |
CN114116487B (en) | Pressure testing method and device, electronic equipment and storage medium | |
CN109684138A (en) | A kind of visualization hard disk automatic test approach, device, terminal and storage medium | |
CN113434281A (en) | Equipment scheduling method and cloud platform |
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 |
Application publication date: 20180525 |
|
WD01 | Invention patent application deemed withdrawn after publication |