CN109783295A - Test macro self-test method for producing software and device based on configuration - Google Patents

Test macro self-test method for producing software and device based on configuration Download PDF

Info

Publication number
CN109783295A
CN109783295A CN201711107664.8A CN201711107664A CN109783295A CN 109783295 A CN109783295 A CN 109783295A CN 201711107664 A CN201711107664 A CN 201711107664A CN 109783295 A CN109783295 A CN 109783295A
Authority
CN
China
Prior art keywords
self
test
test item
check program
configuration
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
CN201711107664.8A
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.)
CETC 41 Institute
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201711107664.8A priority Critical patent/CN109783295A/en
Publication of CN109783295A publication Critical patent/CN109783295A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of test macro self-test method for producing software and device based on configuration, the following steps are included: receiving the editor to self-test item configuration information, self-test item configuration file is generated, the self-test item configuration information includes self-test item information, self-test item and self-check program module mapping relations;It is developed based on self-check program module of the self-check program module interface specification to each self-test item, obtains self-check program and execute software.Self-test is can be realized into to operation in self-checking system in obtained software application.Self-test software of the invention all makes moderate progress relative to current test macro self-test software, maintainability, Scalability, expandability, reusability, and improves the development efficiency of self-test software, shortens the development cycle to reduce development cost.

Description

Test macro self-test method for producing software and device based on configuration
Technical field
The invention belongs to test macro self-test field more particularly to a kind of test macro self-test Software Creates based on configuration Method and device.
Background technique
Test macro self-test refers to the availability before testing using test macro measured piece to test macro A kind of inspection carried out.Whether the content of the inspection mainly includes test macro internal tester device and switchgear can normal work Make, whether the communication between System control computer and test equipment is normal, whether signal connecting line road is intact, pumping signal is defeated It is whether correct out, whether response signal measurement accurate etc..Test macro function is normally the premise accurately tested measured piece, because This test macro self-test is one of important and indispensable component links in automatic test.
Test macro self-test can be divided into instrument self checking in system-level whole self-test and system from the point of view of test object.Wherein it is Whether irrespective of size entirety self-test refers to integrally is used as system test object verifying system mode normal;Instrument self checking refers in system It is whether normal that every instrument state is verified using every instrument in system as test object.Due to the working condition of only inspection apparatus Do not ensure that system overall work is normal, so test macro self-test at present generally uses the form of system-level whole self-test.
Test macro self-test can be divided into manual self-test and automatic self by detection method.Manual self-test passes through manually to all Detection successively detects, and generally requires and is cooperated using external instrument, and time-consuming for detection, and detection accuracy is low, and is easy Omit detection.Automatic self carries out automatic detection to all detections using self-test software, generally uses internal system instrument The mode that device mutually detects, usage mode is convenient, and detection speed is fast, and detection accuracy is high, will not omit detection.So at present Test macro self-test is generally by the way of self-test software automatic self.
Since the design and implementation of automation self-test process is all more complicated, the design of test macro self-test software is real Existing difficulty is bigger.The design implementation of the software of test macro self-test at present is usually to use application development environment (ADE) the dedicated self-test software of development goal test macro, common ADE have Microsoft Visual by way of coding The LabWindows etc. of Studio and NI company.Under this development scheme, developer both needs to be familiar with each self-test item Testing process, and it should be understood that test equipment control, it is also necessary to be familiar with the design of program interface and the structure of entire software, Therefore requirement of this mode to developer is very high, simultaneously because the close coupling in software between each component part makes Developer can not concurrent collaborative work, lead to that the development cycle is long, development efficiency is low.In the subsequent use process of self-test software In, test macro internal tester device update upgrading or it is other due to may result in self-test item need increase or delete, Or the testing process of some self-test item needs to change.Faced with this situation, software developer needs to entire self-test software It carries out recompiling design and recompilates the upgrading that could be realized to self-test software.The self-test software developed in this way Also it can not be reused in other test macro, when there is new test macro demand, can only be opened again by software developer It sends out self-test software a set of, causes maintainability, Scalability, expandability, the reusability of self-test software all very poor while split The requirement of hair personnel is relatively high, can only use serial development scheme substantially, the development cycle is long, development efficiency is low.Therefore, in order to Problem above is solved, the exploitation to self-test software is needed to advanced optimize design.
Summary of the invention
To overcome above-mentioned the deficiencies in the prior art, the present invention provides a kind of, and the test macro self-test software based on configuration is raw Lead at method and device using by the thought of the interfacial separation of the execution of the realization of self-test process and self-check program, self-check program It crosses unified software interface and the realization of each self-test item is packaged into individual self-check program module, then pass through a configuration tool Configuration is carried out to the mapping relations between self-test item, self-test item and self-check program module and generates self-test item configuration file, and is provided One unified self-check program execute software according to the content of self-test item configuration file execute the corresponding self-check program of self-test item from And realize test macro self-test.
To achieve the above object, the present invention adopts the following technical scheme:
A kind of test macro self-test method for producing software based on configuration, comprising the following steps:
The editor to self-test item configuration information is received, self-test item configuration file is generated, the self-test item configuration information includes Self-test item information, self-test item and self-check program module mapping relations;
It is developed based on self-check program module of the self-check program module interface specification to each self-test item, obtains self-test journey Sequence executes software.
Further, the self-test item configuration file access module is used for the storage and parsing of self-test item configuration file.
Further, editor's self-test item configuration information includes: addition self-test classification, adds self-test for self-test classification , self-test item information is edited, configures self-check program module for self-test item.
Second purpose according to the present invention, the present invention also provides a kind of test macro self checking method based on configuration, packet Include following steps:
The editor to self-test item configuration information is received, self-test item configuration file is generated, the self-test item configuration information includes Self-test item information, self-test item and self-check program module mapping relations;
It is developed based on self-check program module of the self-check program module interface specification to each self-test item, generates self-test journey Sequence executes software;
The self-check program is run in self-checking system executes software.
Further, the self-test item configuration file access module is used for the storage and parsing of self-test item configuration file.
Further, the self-check program software package executable is run in self-checking system to include:
It calls self-test item configuration file access module to parse self-test item configuration file, shows the self-test parsed ?;
Selection of the user for self-test item is received, the associated self-check program module of the self-test item is successively loaded and runs.
Further, run self-check program module the following steps are included:
The Setup function for successively running self-check program module completes some Initialize installations operation of self-check program module;
After the Setup function for having run all self-check program modules, each associated self-check program of self-test item is successively executed The Run function of module, and return to self-inspection data and result from Run function and show;
After the Run function for having run all self-check program modules, the associated self-check program mould of each self-test item is successively executed The Cleanup function of block completes some cleaning operations such as resource release.
Further, editor's self-test item configuration information includes: addition self-test classification, adds self-test for self-test classification , self-test item information is edited, configures self-check program module for self-test item.
Third purpose according to the present invention, the present invention also provides a kind of test macro self-test Software Create based on configuration Device including memory, processor and stores the computer program that can be run on a memory and on a processor, and feature exists In the processor realizes the test macro self-test method for producing software based on configuration when executing described program.
4th purpose according to the present invention, the present invention also provides a kind of computer readable storage mediums, are stored thereon with Computer program realizes the test macro self-test method for producing software based on configuration when the program is executed by processor. Beneficial effects of the present invention
Self-test method for producing software provided by the invention is encapsulated the realization of each self-test item by unified software interface At individual self-check program module, then by a configuration tool to reflecting between self-test item, self-test item and self-check program module The relationship of penetrating carries out configuration and generates self-test item configuration file, executes software according to the content of self-test item configuration file based on self-check program The corresponding self-check program of self-test item is executed, the development of test macro self-test software is reduced to develop for each self-test item The self-check program module of the unified software interface of one realization is different without being concerned about the execution of self-check program and the realization at interface Developer can be with the program module of concurrent development difference self-test item.
Therefore method provided by the invention can solve maintainability existing for current test macro self-test software, can cut Property, expandability, reusability difference problem, allow developer by the way of concurrent and collaborative development, it is soft to improve self-test The development efficiency of part shortens the development cycle to reduce development cost.
Detailed description of the invention
The accompanying drawings constituting a part of this application is used to provide further understanding of the present application, and the application's shows Meaning property embodiment and its explanation are not constituted an undue limitation on the present application for explaining the application.
Fig. 1 is that the present invention is based on the architecture diagrams of the test macro self-test software of configuration;
Fig. 2 is that the present invention is based on the test macro self checking method flow charts of configuration;
Fig. 3 is the product process figure of self-test item configuration file of the present invention;
Fig. 4 is that the present invention is loaded using self-check program execution software and executed the flow chart of self-check program.
Specific embodiment
It is noted that following detailed description is all illustrative, it is intended to provide further instruction to the application.Unless another It indicates, all technical and scientific terms used herein has usual with the application person of an ordinary skill in the technical field The identical meanings of understanding.
It should be noted that term used herein above is merely to describe specific embodiment, and be not intended to restricted root According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singular Also it is intended to include plural form, additionally, it should be understood that, when in the present specification using term "comprising" and/or " packet Include " when, indicate existing characteristics, step, operation, device, component and/or their combination.
In the absence of conflict, the features in the embodiments and the embodiments of the present application can be combined with each other.
Embodiment one
Present embodiment discloses a kind of test macro self-test method for producing software based on configuration, comprising the following steps:
Step 1: receiving the editor to self-test item configuration information, generate self-test item configuration file;
Self-test item configures edit tool and provides self-test classification, self-test item, self-test item and self-check program module mapping relations Editting function.Developer is as shown in Figure 3 using the process that self-test item configuration edit tool generates self-test item configuration file.First Newly-built self-test item configuration file, secondly adds self-test classification, and self-test classification can be divided into Power-On Self-Test, using certainly under normal circumstances Inspection, maintenance self-test and option self-test etc..Wherein Power-On Self-Test, as the term suggests it is the self-test that must be completed after system is powered on, packet It includes the powering state of inspection apparatus, whether can be generalized the necessary item such as machine control and ambient temperature and humidity;Using self-test, it is Test equipment required for different test items to measured piece carries out corresponding self-test;It safeguards self-test, is exactly will own in system The performance indicator of currently available test equipment all detects, and is a kind of maintenance state judgment criteria, a certain parameter index is abnormal It can be used as the judgment basis of system maintenance;Option self-test is exactly that operator can choose certain several test equipments, switchgear Or power supply carries out self-test.Developer oneself can also define the title of self-test classification.Then self-test is added for self-test classification , edit self-test item information, configure self-check program module for self-test item, and so on until self-test item and self-test classification are all added It completes, finally saves and obtain self-test item configuration file, as shown in Figure 3.
Step 2: the self-check program software module of each self-test item is developed according to self-check program module interface specification;
The form of self-check program module is dynamic link library (DLL), and interface must meet self-check program module of the invention Interface specification.Common application development environment (ADE) exploitation self-check program module can be used in developer.Self-check program Module interface is specifically defined as shown in table 1.
Self-check program module interface specification defines the interface that self-check program module should follow, and it is logical that self-check program executes software Cross the interface and execute each self-check program module, and by the interface obtain self-inspection data with as a result, finally by self-inspection data with As the result is shown on unified software interface.Self-check program module refers to the software being performed for realizing standardization program interface Module is the software realization of specific self-test item, and the control of realization and test equipment comprising self-test item testing process is realized etc..
Table 1
According to the self-test item configuration file and according to self-check program module interface specification develop self-test item it is corresponding Self-check program module has just obtained executing software for the self-check program of test macro, as shown in Figure 1.By it to self-test Self-test can be realized in operation in test system.
Embodiment two
Based on the self-test software that embodiment one generates, the purpose of the present embodiment is to provide a kind of corresponding self checking method, On the basis of embodiment one, as shown in Figure 2, further includes:
Step 3: operation self-check program executes software, calls self-test item configuration file access module to self-test item configuration file It is parsed, and the self-test item configuration information parsed is shown on software interface;
Self-test item configuration file access module defines the access interface of self-test item configuration information, provides the configuration of self-test item The parsing and preservation function of file, are the ties between self-check program execution software and self-test item configuration file.The configuration of self-test item Information Access interface provides the method for acquisition and setting for the configuration information of self-test classification and self-test item, and interface specifically describes such as Shown in table 2.
Table 2
Step 4: receiving the selection of self-test item, execute the self-check program module of self-test item mapping, obtain self-inspection data and knot Fruit is simultaneously shown on software interface.
Developer can after editting self-test item configuration file self-check program module corresponding with self-test item has been developed To use the self-check program execution software in the present invention to load and execute self-check program.Software load is executed simultaneously using self-check program The detailed process for executing self-check program is as shown in Figure 4.Operation self-check program first executes software, selects self-test item configuration file, Load self-test item configuration file, by configuration file self-test classification and self-test item show on software interface.Secondly, selection is wanted The self-test classification and self-test item of detection start to execute self-test, and self-check program executes software will successively load all selections automatically The associated self-check program module of self-test item, and the Setup function of self-check program module is successively run, complete self-check program module Some Initialize installation operations.After the Setup function for having run all self-check program modules, self-check program executes software will Successively execute the Run function of the associated self-check program module of each self-test item, and from Run function return self-inspection data and as a result, By self-inspection data and as the result is shown on software interface.After the completion of all self-test items are all performed, self-check program executes software The Cleanup function of self-check program module will be successively executed, some cleaning operations such as resource release are completed.
Embodiment three
The purpose of the present embodiment is to provide a kind of computing device.
A kind of test macro self-test apparatus for producing software based on configuration, including memory, processor and it is stored in storage On device and the computer program that can run on a processor, the processor realize following steps when executing described program, comprising:
The editor to self-test item configuration information is received, self-test item configuration file is generated, the self-test item configuration information includes Self-test item information, self-test item and self-check program module mapping relations;
The self-check program module for each self-test item developed based on self-check program module interface specification is received, self-test journey is generated Sequence executes software.
Example IV
The purpose of the present embodiment is to provide a kind of computer readable storage medium.
A kind of computer readable storage medium, is stored thereon with computer program, execution when which is executed by processor Following steps:
The editor to self-test item configuration information is received, self-test item configuration file is generated, the self-test item configuration information includes Self-test item information, self-test item and self-check program module mapping relations;
The self-check program module for each self-test item developed based on self-check program module interface specification is received, self-test journey is generated Sequence executes software.
Each step involved in the device of above embodiments three and four is corresponding with embodiment of the method one, specific embodiment It can be found in the related description part of embodiment one.Term " computer readable storage medium " is construed as including one or more The single medium or multiple media of instruction set;It should also be understood as including any medium, any medium can be stored, be compiled Code carries instruction set for being executed by processor and processor is made either to execute in the present invention method.
Method provided by the invention can solve maintainability existing for current test macro self-test software, Scalability, The problem of expandability, reusability difference allows developer by the way of concurrent and collaborative development, improves self-test software Development efficiency shortens the development cycle to reduce development cost.
It will be understood by those skilled in the art that each module or each step of aforementioned present invention can be filled with general computer It sets to realize, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, perhaps they are fabricated to modules or will be multiple in them Module or step are fabricated to individual module to realize.The present invention is not limited to the combinations of any specific hardware and software.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.

Claims (10)

1. a kind of test macro self-test method for producing software based on configuration, which comprises the following steps:
The editor to self-test item configuration information is received, generates self-test item configuration file, the self-test item configuration information includes self-test Item information, self-test item and self-check program module mapping relations;
It is developed based on self-check program module of the self-check program module interface specification to each self-test item, obtains self-check program and hold Row software.
2. the test macro self-test method for producing software based on configuration as described in claim 1, which is characterized in that the self-test Item configuration file access module is used for the storage and parsing of self-test item configuration file.
3. the test macro self-test method for producing software based on configuration as described in claim 1, which is characterized in that the editor Self-test item configuration information includes: addition self-test classification, adds self-test item for self-test classification, edits self-test item information, is self-test item Configure self-check program module.
4. a kind of test macro self checking method based on configuration, which comprises the following steps:
The editor to self-test item configuration information is received, generates self-test item configuration file, the self-test item configuration information includes self-test Item information, self-test item and self-check program module mapping relations;
It is developed based on self-check program module of the self-check program module interface specification to each self-test item, generates self-check program and hold Row software;
The self-check program is run in self-checking system executes software.
5. the test macro self checking method based on configuration as claimed in claim 4, which is characterized in that the self-test item configuration text Part access module is used for the storage and parsing of self-test item configuration file.
6. the test macro self checking method based on configuration as claimed in claim 5, which is characterized in that self-checking system The middle operation self-check program software package executable includes:
It calls self-test item configuration file access module to parse self-test item configuration file, shows the self-test item parsed;
Selection of the user for self-test item is received, the associated self-check program module of the self-test item is successively loaded and runs.
7. the test macro self checking method based on configuration as claimed in claim 6, which is characterized in that operation self-check program module The following steps are included:
The Setup function for successively running self-check program module completes some Initialize installations operation of self-check program module;
After the Setup function for having run all self-check program modules, the associated self-check program module of each self-test item is successively executed Run function, and return to self-inspection data and result from Run function and show;
After the Run function for having run all self-check program modules, the associated self-check program module of each self-test item is successively executed Cleanup function completes some cleaning operations such as resource release.
8. the test macro self checking method based on configuration as claimed in claim 4, which is characterized in that editor's self-test item is matched Confidence breath includes: addition self-test classification, adds self-test item for self-test classification, edits self-test item information, configures self-test for self-test item Program module.
9. a kind of test macro self-test apparatus for producing software based on configuration, including memory, processor and it is stored in memory Computer program that is upper and can running on a processor, which is characterized in that the processor is realized when executing described program as weighed Benefit requires the test macro self-test method for producing software described in 1-3 based on configuration.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The test macro self-test method for producing software based on configuration as described in claim 1-3 is realized when execution.
CN201711107664.8A 2017-11-10 2017-11-10 Test macro self-test method for producing software and device based on configuration Pending CN109783295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711107664.8A CN109783295A (en) 2017-11-10 2017-11-10 Test macro self-test method for producing software and device based on configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711107664.8A CN109783295A (en) 2017-11-10 2017-11-10 Test macro self-test method for producing software and device based on configuration

Publications (1)

Publication Number Publication Date
CN109783295A true CN109783295A (en) 2019-05-21

Family

ID=66484532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711107664.8A Pending CN109783295A (en) 2017-11-10 2017-11-10 Test macro self-test method for producing software and device based on configuration

Country Status (1)

Country Link
CN (1) CN109783295A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308952A (en) * 2019-06-28 2019-10-08 兆讯恒达微电子技术(北京)有限公司 A kind of method of configuration inspection during starting of embedded operation system
CN113626294A (en) * 2021-08-30 2021-11-09 山东新一代信息产业技术研究院有限公司 Self-checking method and system for robot software
CN117218762A (en) * 2023-11-09 2023-12-12 深圳友朋智能商业科技有限公司 Intelligent container interaction control method, device and system based on machine vision

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593326A (en) * 2013-11-07 2014-02-19 国家电网公司 IEC61850 software library assembly for network processing unit chip and achieving method of IEC61850 software library assembly
CN105260191A (en) * 2015-11-03 2016-01-20 中国电子科技集团公司第四十一研究所 Configuration-based test program and operator interface data interaction method
US20170255538A1 (en) * 2014-08-13 2017-09-07 International Business Machines Corporation Using principles of natural selection to optimize a cloud-computing genome

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593326A (en) * 2013-11-07 2014-02-19 国家电网公司 IEC61850 software library assembly for network processing unit chip and achieving method of IEC61850 software library assembly
US20170255538A1 (en) * 2014-08-13 2017-09-07 International Business Machines Corporation Using principles of natural selection to optimize a cloud-computing genome
CN105260191A (en) * 2015-11-03 2016-01-20 中国电子科技集团公司第四十一研究所 Configuration-based test program and operator interface data interaction method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308952A (en) * 2019-06-28 2019-10-08 兆讯恒达微电子技术(北京)有限公司 A kind of method of configuration inspection during starting of embedded operation system
CN110308952B (en) * 2019-06-28 2022-04-15 兆讯恒达科技股份有限公司 Method for checking configuration in starting process of embedded operating system
CN113626294A (en) * 2021-08-30 2021-11-09 山东新一代信息产业技术研究院有限公司 Self-checking method and system for robot software
CN117218762A (en) * 2023-11-09 2023-12-12 深圳友朋智能商业科技有限公司 Intelligent container interaction control method, device and system based on machine vision
CN117218762B (en) * 2023-11-09 2024-02-09 深圳友朋智能商业科技有限公司 Intelligent container interaction control method, device and system based on machine vision

Similar Documents

Publication Publication Date Title
CN104750603B (en) A kind of multi-core DSP software simulator and its physical layer software test method
CN101718841B (en) Automatic checking system and method of relaying protection device
CN107315679A (en) A kind of embedded software automation exact p-value method and test system
CN105491038B (en) A kind of intelligent equipment protocol analytic method
CN102662644B (en) Method for generating test case by using flow chart
CN107797919A (en) The method and computing device of a kind of automatic test
CN109783295A (en) Test macro self-test method for producing software and device based on configuration
CN112783794A (en) Aviation communication radio station software test system
CN103048984A (en) Multi-channel ARINC(aeronautical radio incorporated) 700 bus monitoring device and realizing method thereof
CN108459951A (en) test method and device
CN108829594A (en) The method and system of automatic test BMC web assets information function under a kind of Linux
CN106528425A (en) Platform plug-in automatically testing method for microprocessor
CN107506190A (en) XML file amending method and device based on Spring frameworks
CN113176881A (en) DevOps-based whole process measurement method, system, device and medium
CN105591779A (en) Method and device for inspecting network element
CN103678075A (en) Complex microprocessor test method based on automatic vector generation technology
CN109783063B (en) Signal-oriented automatic test system self-checking program development method and device
Torens et al. Remotetest: A framework for testing distributed systems
CN100407663C (en) Universal testing system and method for telecommunication intelligent service
CN109932588A (en) A kind of Aerial Electronic Equipment validation test engine
CN106291329A (en) A kind of have the automatic test system detecting and joining the distant function of a terminal three
EP2001159A1 (en) Remote support and testing of equipment
CN103441895A (en) Automatic cipher machine test system and working method thereof
CN107632910A (en) A kind of method of testing and device
CN108132881A (en) A kind of automated testing method 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

Application publication date: 20190521

RJ01 Rejection of invention patent application after publication