CN108845952A - A kind of avionics FC data stimuli method based on test case script - Google Patents
A kind of avionics FC data stimuli method based on test case script Download PDFInfo
- Publication number
- CN108845952A CN108845952A CN201810939319.9A CN201810939319A CN108845952A CN 108845952 A CN108845952 A CN 108845952A CN 201810939319 A CN201810939319 A CN 201810939319A CN 108845952 A CN108845952 A CN 108845952A
- Authority
- CN
- China
- Prior art keywords
- message
- test case
- case script
- data
- avionics
- 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 relates to data stimuli technical fields, disclose a kind of avionics FC data stimuli method based on test case script.Specifically include following procedure:Firstly, importing message source and configuration file, the data content for needing to motivate is determined;Then, editor needs the data content motivated, and is stored as test case script file;Finally, driver is to carry out automated data excitation according to executing with test case script file.Technical solution of the present invention test case same or similar for some scenes, tester can run identical test case script, or less change is carried out to test case script, the duplicate test of progress can be realized, it does not need to reselect the data content for needing to motivate, improves testing efficiency.Secondly, having preset logical relation when editing test case script, realize that different equipment responses carries out the demand of different messages excitation.
Description
Technical field
The present invention relates to data stimuli technical field, especially a kind of avionics FC data stimuli based on test case script
Method.
Background technique
Avionics system experienced the development process from discrete, association type to composite type.Currently, advanced aviation electronics
System is all made of the framework of synthesization.The avionics network of synthesization can be related to the integrated, comprehensive of modules in development process
Conjunction, joint debugging, joint-trial.In China, the development process of avionics module is usually by the proposed avionics network architecture of overall study, definition
Standard agreement, each standalone module in each developed avionics network of research for matching.It is each mating after the completion of standalone module is developed
Overall carried out joint debugging, joint-trial are gone respectively.
Since the lead time of different avionics modules is different, so the time of each mating carried out combined test is logical
It is normal also not identical.But due to the integrated level of avionics network height, synthesization is strong, interrelated between each avionics module.Independent mould
The combined test of block relies on the normal work of remaining avionics main modular.Therefore the data stimuli device based on FC artificial card is used
Carrying out data stimuli is a kind of essential combined test means.
Traditional FC data stimuli device has following defect:
Traditional FC data stimuli device carries out needing that message is selected to carry out data when data stimuli every time sharp using ICD as informed source
It encourages.It when test environment is identical, still needs to import ICD again, reselects message and carry out data stimuli.Repetitive operation results in survey
Try the reduction of efficiency.
Traditional FC data stimuli device, it is too simple for the processing for receiving message, for not needing the message of equipment response,
Reception content of the tester without excessive concern driver;For needing to confirm the stimulus messages of equipment under test response, usually
The signal content that the response message of equipment under test is visually observed by tester judges the state of equipment under test.
In test process, it will usually be related to the response different according to equipment, adjust the scene of the stimulus messages of driver.
For this scene, traditional FC data stimuli device visually observing again by tester, to adjust the data of driver
Excitation.Therefore, traditional FC data stimuli device brings hard work to tester.
Summary of the invention
The technical problem to be solved by the present invention is to:In view of the above problems, it provides a kind of based on test case
The avionics FC data stimuli method of script.
The technical solution adopted by the present invention is as follows:A kind of avionics FC data stimuli method based on test case script, tool
Body includes following procedure:
Step 1, message source and configuration file are imported, determines the data content for needing to motivate;
Step 2, editor needs the data content motivated, and is stored as test case script file;
Step 3, driver is to carry out automated data excitation according to executing with test case script file.
Further, the detailed process of the step 1 is:Step 11, using Interface Control File as informed source, by interface
It controls file and configuration file imports driver software;Step 12, driver software traverse node list, passes through graphic interface
FC node is shown, and selects the node for needing to motivate.
Further, the detailed process of the step 2 is:Step 21, the node motivated for needs, driver software time
Go through the transmission message and reception message under respective nodes;Step 22, by graphic interface to send message and receive message into
Row is intuitive to be shown;Step 23, it edits the message for needing to motivate in order according to the message sent and received messages in list, and edits
The reception logical relation of message;Step 24, edited data content is stored as test case script file.
Further, the detailed process of the step 3:Step 31, driver manages message sink thread and message independently
Send thread;Step 32, message sends thread and executes message transmission processing automatically, receives message threads in driver and receives message
Afterwards, it is first determined whether meeting preset logical relation in test case script file;Step 33, if meeting corresponding logic
Relationship then judges whether to trigger to preset in test case again sends message, if it is sends message threads and is activated, execution disappears
Cease transmission processing.
Further, if being unsatisfactory for logical relation or not triggering, it is without any processing that message threads are received.
Compared with prior art, having the beneficial effect that by adopting the above technical scheme:In technical solution of the present invention, tester
The data to be motivated are integrated by way of editing test case, test case is protected in the form of Run Script
It deposits.Firstly, for the same or similar test case of some scenes, tester can run identical test case script, or
Person, which carries out less change to test case script, can be realized the duplicate test of progress, not need to reselect what needs motivated
Data content improves testing efficiency.Secondly, having preset logical relation when editing test case script, having realized different equipment
Response carries out the demand of different messages excitation.
Detailed description of the invention
Fig. 1 is the flow diagram of the avionics FC data stimuli method the present invention is based on test case script.
Fig. 2 is the present invention with the flow diagram that test case script file is according to execution data stimuli.
Fig. 3 is that logic of propositions relationship illustrates in the embodiment of the present invention.
Specific embodiment
The present invention is described further with reference to the accompanying drawing.
A kind of avionics FC data stimuli method based on test case script, as shown in Figure 1, specifically including following procedure:
Step 1, message source and configuration file are imported, determines the data content for needing to motivate;
Step 1 specific implementation process:Using Interface Control File as informed source, Interface Control File and configuration file are led
Enter driver software, Interface Control File and configuration file are xml format;Driver software traverse node list, passes through figure
Shape interface is by FC(Optical-fibre channel)Node is shown, and the selection on interface that tester can be convenient needs the section motivated
Point.
Step 2, editor needs the data content motivated, and is stored as test case script file;
The specific implementation process of the step 2:For the node that needs motivate, driver software traverses the transmission under respective nodes
Message and reception message;It is intuitively shown by graphic interface to message and reception message is sent;Disappeared according to transmitting and receiving
Message in breath list edits the message for needing to motivate in order, and edits the reception logical relation of message, and logical relation includes
But be not limited to or greater than, equal to, be less than;Edited data content is stored as test case script file.To volume
Data content after volume is stored in the form of test case script file, and script supports independent operating, when progress retest content
When, it is thus only necessary to the test case script that operation has saved does not need the file in carrying out step 1 and imports, selects excited data
The operation such as content.
Step 3, driver is to carry out automated data excitation according to executing with test case script file;
As shown in Fig. 2, the specific implementation process of the step 3:Driver manages message sink thread independently and message sends line
Journey;Message send thread execute automatically message transmission processing, receive message threads driver receive message after, first determine whether be
It is no to meet preset logical relation in test case script file;Judge whether to trigger again if meeting corresponding logical relation
It is preset in test case and sends message, if it is sent message threads and be activated, execute message transmission processing.
Logic of propositions relationship workflow is used in test for example, as shown in figure 3, before the operation of FC data stimuli device
The logic of propositions relationship of good news is edited in case script.After FC data stimuli device operates normally, No. 1 message is issued first, is swashed
It encourages after equipment receives No. 1 message and replies to No. 2 message of FC data stimuli device, after FC data stimuli device receives No. 2 message, according to pre-
If logical relation A, judge whether No. 2 message meet logic of propositions relationship A, if meeting logic of propositions relationship A, according to test
With case script, the transmission of No. 3 message is executed, if being unsatisfactory for logic of propositions relationship A, executes the transmission of No. 4 message.It is motivated
The different messages that equipment is received according to oneself make the reply of No. 5 message and No. 6 message accordingly.FC data stimuli device receives
After different message, according to logic of propositions the relationship B and C in test case script, judges again, carry out different data
Excitation operation.
It is reusable to illustrate test case script:
Scene one, FC data stimuli device serve as data stimuli source, real equipment A are tested, according to testing requirement, with ICD and configuration
File is foundation, edits test case script file.Test case script file sends according to message, receives process and pre-
If logical relation, test process can be executed automatically, exports testing journal sheet, be not necessarily to manual intervention.
Scene two, due to being in combined test process, test process finds the function of real equipment A, does not reach after executing
To expection, need to carry out software version iteration.Real equipment A after version iteration needs to carry out survey identical with scene one again
Examination.At this time, it is only necessary to FC data stimuli device execute scene one run test case script file, that is, it is automatable carry out weight
Repetition measurement examination.Without carrying out cumbersome message editing and excessive manual intervention again.
The invention is not limited to specific embodiments above-mentioned.The present invention, which expands to, any in the present specification to be disclosed
New feature or any new combination, and disclose any new method or process the step of or any new combination.If this
Field technical staff is altered or modified not departing from the unsubstantiality that spirit of the invention is done, should belong to power of the present invention
The claimed range of benefit.
Claims (5)
1. a kind of avionics FC data stimuli method based on test case script, which is characterized in that specifically include following procedure:
Step 1, message source and configuration file are imported, determines the data content for needing to motivate;
Step 2, editor needs the data content motivated, and is stored as test case script file;
Step 3, driver is to carry out automated data excitation according to executing with test case script file.
2. the avionics FC data stimuli method based on test case script as described in claim 1, which is characterized in that the step
Rapid 1 detailed process is:Step 11, using Interface Control File as informed source, Interface Control File and configuration file are imported
Driver software;Step 12, FC node is shown by graphic interface, and selected by driver software traverse node list
Select the node for needing to motivate.
3. the avionics FC data stimuli method based on test case script as claimed in claim 2, which is characterized in that the step
Rapid 2 detailed process is:Step 21, the node motivated for needs, driver software traverse the transmission message under respective nodes
With reception message;Step 22, it is intuitively shown by graphic interface to message and reception message is sent;Step 23, according to
It sends and receives messages the message in list and edits the message for needing to motivate in order, and edit the reception logical relation of message;Step
Rapid 24, edited data content is stored as test case script file.
4. the avionics FC data stimuli method based on test case script as claimed in claim 3, which is characterized in that the step
Rapid 3 detailed process:Step 31, driver manages message sink thread independently and message sends thread;Step 32, message is sent
Thread executes message transmission processing automatically, receives message threads after driver receives message, it is first determined whether meeting test
Preset logical relation in use-case script file;Step 33, judge whether that triggering is surveyed again if meeting corresponding logical relation
It is preset in example on probation and sends message, if it is sent message threads and be activated, execute message transmission processing.
5. the avionics FC data stimuli method based on test case script as claimed in claim 4, which is characterized in that if not
Meet logical relation or do not trigger, then it is without any processing to receive message threads.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810939319.9A CN108845952A (en) | 2018-08-17 | 2018-08-17 | A kind of avionics FC data stimuli method based on test case script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810939319.9A CN108845952A (en) | 2018-08-17 | 2018-08-17 | A kind of avionics FC data stimuli method based on test case script |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108845952A true CN108845952A (en) | 2018-11-20 |
Family
ID=64188532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810939319.9A Pending CN108845952A (en) | 2018-08-17 | 2018-08-17 | A kind of avionics FC data stimuli method based on test case script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845952A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688296A (en) * | 2019-02-25 | 2020-01-14 | 上海核工程研究设计院有限公司 | Automatic testing method for computerized rule configuration |
CN112015633A (en) * | 2019-05-30 | 2020-12-01 | 北京物芯科技有限责任公司 | Test excitation multi-platform multiplexing method, device, equipment and storage medium |
CN112286806A (en) * | 2020-10-28 | 2021-01-29 | 成都佰维存储科技有限公司 | Automatic testing method and device, storage medium and electronic equipment |
CN113433922A (en) * | 2021-06-01 | 2021-09-24 | 中国航空工业集团公司沈阳飞机设计研究所 | Avionics system automatic test method and device |
CN114486310A (en) * | 2021-12-31 | 2022-05-13 | 中国航空工业集团公司西安飞机设计研究所 | Dynamic simulation comprehensive test system and method for aircraft electromechanical management system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104407971A (en) * | 2014-11-18 | 2015-03-11 | 中国电子科技集团公司第十研究所 | Method for automatically testing embedded software |
CN105824001A (en) * | 2015-01-06 | 2016-08-03 | 国家电网公司 | Digital electric energy meter IEC61850 conformance testing method and system |
CN107292049A (en) * | 2017-07-06 | 2017-10-24 | 中国航空工业集团公司西安飞机设计研究所 | A kind of Design of Simulation System method based on ICD data flows |
-
2018
- 2018-08-17 CN CN201810939319.9A patent/CN108845952A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104407971A (en) * | 2014-11-18 | 2015-03-11 | 中国电子科技集团公司第十研究所 | Method for automatically testing embedded software |
CN105824001A (en) * | 2015-01-06 | 2016-08-03 | 国家电网公司 | Digital electric energy meter IEC61850 conformance testing method and system |
CN107292049A (en) * | 2017-07-06 | 2017-10-24 | 中国航空工业集团公司西安飞机设计研究所 | A kind of Design of Simulation System method based on ICD data flows |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688296A (en) * | 2019-02-25 | 2020-01-14 | 上海核工程研究设计院有限公司 | Automatic testing method for computerized rule configuration |
CN112015633A (en) * | 2019-05-30 | 2020-12-01 | 北京物芯科技有限责任公司 | Test excitation multi-platform multiplexing method, device, equipment and storage medium |
CN112015633B (en) * | 2019-05-30 | 2023-11-17 | 北京物芯科技有限责任公司 | Test excitation multi-platform multiplexing method, device, equipment and storage medium |
CN112286806A (en) * | 2020-10-28 | 2021-01-29 | 成都佰维存储科技有限公司 | Automatic testing method and device, storage medium and electronic equipment |
CN112286806B (en) * | 2020-10-28 | 2023-10-03 | 成都佰维存储科技有限公司 | Automatic test method and device, storage medium and electronic equipment |
CN113433922A (en) * | 2021-06-01 | 2021-09-24 | 中国航空工业集团公司沈阳飞机设计研究所 | Avionics system automatic test method and device |
CN114486310A (en) * | 2021-12-31 | 2022-05-13 | 中国航空工业集团公司西安飞机设计研究所 | Dynamic simulation comprehensive test system and method for aircraft electromechanical management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108845952A (en) | A kind of avionics FC data stimuli method based on test case script | |
CN106874187B (en) | Code coverage rate collection method and device | |
WO2016090929A1 (en) | Method, server and system for software system fault diagnosis | |
CN108399114A (en) | A kind of system performance testing method, apparatus and storage medium | |
CN102495802B (en) | Method and device for testing software system, and computer system | |
CN105809942A (en) | Data processing method and device for electricity information collection system | |
CN110048910A (en) | A kind of vehicle-mounted ethernet gateway test macro and method | |
JP2000196705A (en) | Automatic communication protocol test system having message/sequence compilation function and tet method | |
CN103957067B (en) | Demodulator automatic testing equipment | |
CN109298317A (en) | A kind of Intelligent test device and its test method of middle low-frequency channel | |
CN108776278B (en) | Topological-associated configuration type relay protection test system and method | |
CN109765447A (en) | A kind of intelligent substation relay protection automatic test approach | |
CN108983077B (en) | Circuit board test system and test method based on JTAG link | |
CN110568339A (en) | Instrument automatic testing system and method based on Internet of things | |
CN108595336A (en) | A kind of computer software testing system based on Ethernet | |
CN114003451B (en) | Interface testing method, device, system and medium | |
CN109218048A (en) | To the performance test methods and device of an industrial system being deployed on cloud | |
CN105243017B (en) | The test method and system of debarkation authentication are carried out based on SSH agreements | |
CN106850316A (en) | A kind of optical fiber into end graphically managing method and system | |
CN106940648A (en) | A kind of method, equipment and the test system of automatic loading test item | |
CN105573905B (en) | Software compatibility test method and system | |
CN106526460B (en) | A kind of fault localization method and device | |
CN113340613A (en) | Automatic testing system, method and device for vehicle-mounted terminal module and storage medium | |
CN108776632A (en) | Signal-oriented self-test automatic process generating method, apparatus, equipment and readable storage medium storing program for executing | |
CN106776284B (en) | A kind of method for testing software and system |
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: 20181120 |