CN110109655A - One kind being based on modular test development of measurement software method - Google Patents
One kind being based on modular test development of measurement software method Download PDFInfo
- Publication number
- CN110109655A CN110109655A CN201910424201.7A CN201910424201A CN110109655A CN 110109655 A CN110109655 A CN 110109655A CN 201910424201 A CN201910424201 A CN 201910424201A CN 110109655 A CN110109655 A CN 110109655A
- Authority
- CN
- China
- Prior art keywords
- test
- development
- interface
- measurement software
- software method
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 70
- 238000011161 development Methods 0.000 title claims abstract description 28
- 238000010276 construction Methods 0.000 claims abstract description 8
- 238000013461 design Methods 0.000 claims abstract description 5
- 238000000034 method Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 claims description 6
- 238000013459 approach Methods 0.000 claims description 4
- 241001269238 Data Species 0.000 claims description 3
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 230000018109 developmental process Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 235000006508 Nelumbo nucifera Nutrition 0.000 description 1
- 240000002853 Nelumbo nucifera Species 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to one kind to be based on modular test development of measurement software method, comprising the following steps: 1) operator's frame Actor Framework design pattern based on software development creates test object, realizes the modularization of each function;2) calling of different function module is realized by edit script file, carries out fast construction test platform;3) by selecting different test items, different tests is carried out.Compared with prior art, the advantages that present invention has the somatotonia for improving test software, saves time and human cost, improves testing efficiency, reduces the development cycle.
Description
Technical field
The present invention relates to test measurement industry test platforms to build software development methodology, is based on module more particularly, to one kind
The test development of measurement software method of change.
Background technique
In automatic test course, I/O equipment and peripheral hardware are needed to configure, defines the process of test, layout is suitable
Software interactive interface, the mode etc. for specifying data to save.Due to the diversity of automatic test object, hardware in different tests
There is biggish difference in environment, test request, software interface etc..If for the corresponding test of each testing requirement exploitation
Then there is the problems such as development cycle is long, and reusability is poor, maintainable difference in software.It is therefore desirable to have general automatic test is soft
Part platform avoids a large amount of duplicate developments so that all automatic test demands are all realized on the same platform,
Easy to maintain and management, also can easily integrate new test hardware, customized testing process or software interface.
Have many automatic test softwares, such as TestStand currently on the market.But there is exploitation week in such software
Phase is long, and reusability is poor, maintainable poor;In addition problems: 1. systems are faced in existing automatization test system development process
Complexity is high;2. the development cycle shortens to keep competitiveness and meet the market demand;3. functional requirement constantly increases;Tradition
Test development method, it is difficult to meet requirement to testing requirement;4. test Survey Software for peopleware's professional ability
Requirement it is relatively high, the demand of software function and hardware capability height solution lotus root is more obvious.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide one kind based on modular
Test development of measurement software method.
The purpose of the present invention can be achieved through the following technical solutions:
One kind being based on modular test development of measurement software method, comprising the following steps:
1) operator's frame Actor Framework design pattern based on software development creates test object, realizes each
The modularization of a function;
2) calling of different function module is realized by edit script file, carries out fast construction test platform;
3) by selecting different test items, different tests is carried out.
Preferably, operator's frame is suitable for multiple parallel task.
Preferably, it is operated in different threads using the module of operator's frame, has no synchronous pass between each other
System.
Preferably, it is realized and is communicated with message by object between different modules.
Preferably, the module of each operator's frame realizes data and message by access global variable engine
Communication, all channel datas are saved in global variable engine, are indexed and are edited with dictionary approach, same to variations per hour
Engine is protected with multi-thread access, has event Trigger Function.
Preferably, the creation test object, realizing the modularization of each function, detailed process is as follows:
First creation top level application program class is completed initialization, is recorded as parent, this step, and alarm starts and stops;
Then it can define subclass of the serial ports instrument class as top level application program class;
Finally specific RS232/RS485/USB is instantiated, realizes function modoularization.
Preferably, the script file in the step 2) includes text script and interface script, by described in editor
The control of software function and interface layout can be realized in text script, and the interface script defines the cloth of entire test interface
The attribute of office's situation and control and control on each interface location.
Preferably, during software initialization, it can read interface script, and initialize to interface according to definition,
Customized user interface is constructed, user interface directly quotes ready-made construction part module.
Compared with prior art, the invention has the following advantages that
(1) present invention is suitable for medium-and-large-sized software development, and Actor Framework frame can be avoided locked, competition, increasing
Big code reusability improves the somatotonia of test software;
(2) present invention realizes the modularization of function, can realize the fast construction of software platform by editing text,
Time and human cost are saved, testing efficiency is improved, reduces the development cycle.
Detailed description of the invention
Fig. 1 is synchronously control software flow pattern of the invention;
Fig. 2 is software systems schematic diagram of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is a part of the embodiments of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, those of ordinary skill in the art's every other reality obtained without making creative work
Example is applied, all should belong to the scope of protection of the invention.
Test operation is cumbersome, expansion capability is poor, multiple present in software technology in test measurement industry to overcome by the present invention
The problems such as poor with property, the application provide a kind of based on modular test development of measurement software method.
The present invention is based on modular test development of measurement software methods, characterized in that the described method includes:
(1) operator's frame Actor Framework design pattern based on software development creates test object, realizes
The modularization of each function;
(2) only need edit script file that the calling of different function module can be realized, thus fast construction test platform;
(3) different test items is selected, different tests is carried out.
In the step (1), operator's frame is suitable for the project of multiple parallel task.It is transported using the module of operator's frame
Row has no synchronized relation in different threads between each other.In such project, generally required between multiple parallel tasks
It is in communication with each other, operator's frame can be avoided locked, competition, increase code reuse degree.It is developed relative to traditional test software,
This method is to realize the communication of disparate modules with message by object.All channel datas are saved to global variable engine
In, it is indexed and is edited with dictionary approach.Variable engine is protected with multi-thread access, has event Trigger Function.It is each
The module of operator's frame realizes the communication of data and message by access global variable engine.
Using object as the basic unit of program.First creation top level application program class completes initialization as parent, this step,
Record, alarm, starts and stops.Then it can define subclass of the serial ports instrument class as top level application program class, if IO acquires class,
CAN communication class etc.;Specific RS232/RS485/USB etc. is instantiated again, realizes function modoularization, can be repeated as many times as required makes
With the shortening development cycle.
In the step (2), modular testing software is equivalent to library file, can be in the module for wherein adding newly-increased component
Change control, when needing to build new test platform, only need to edit text script, software function and interface layout can be realized
Control.Interface script defines the layout scenarios of entire test interface, defines control on each interface location and control
Attribute.During software initialization, it can read interface script, and initialize to interface according to definition, construct and make by oneself
The user interface of justice.User interface directly quotes ready-made construction part module, is not necessarily to programming development, the development time is greatly saved,
Improve the reusability of software.
Fig. 1 is shown the present invention is based on the process of modular test development of measurement software, specifically:
(1) according to testing requirement, testing process text is edited, funcall and UI component can be completed;
(2) call editor's text that test function can be completed;
Fig. 2 is that the present invention is based on the software systems schematic diagrames of modular test development of measurement software.
(1) this software frame is to be supported multi-thread concurrent using operator's Frame Design mode, can be avoided locked, competing
It strives, increases code reusability, current test software development approach is gone out with this foundational development;
(2) using object as the basic unit of program.Application class and hardware root are the classes of top layer, as parent,
Subclass may be implemented to inherit and modify.The interfaces instrument such as RS232/RS485/USB is the instantiation of serial ports instrument class, can be normal
The instrument of serial ports is supported in power supply, proportioning valve, load etc., is inherited and is opened up on the basis of its parent serial ports instrument class
Exhibition.Used all instruments for supporting this agreement can be all put into library, next time can directly be called;
For example:
The test Survey Software developed using this method, when carrying out new projects' exploitation, it is only necessary to execute following steps:
1. writing interface script, this step can also be completed by graphic interface.
2. writing hardware driving script, this step can also be completed by graphic interface.
3. writing cycle tests script, this step can also be completed by graphic interface.
4. running main test interface, the file where script file is selected, software, which will load automatically above step, to be determined
The script of justice, and the interface database and Driver Library specified according to script load, the interface content needed for being shown to user.
5. after clicking automatic running button, software prompt user selects cycle tests script file, and according to script text
The definition of part, executes test assignment automatically.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.
Claims (8)
1. one kind is based on modular test development of measurement software method, which comprises the following steps:
1) operator's frame Actor Framework design pattern based on software development creates test object, realizes each function
The modularization of energy;
2) calling of different function module is realized by edit script file, carries out fast construction test platform;
3) by selecting different test items, different tests is carried out.
2. according to claim 1 a kind of based on modular test development of measurement software method, which is characterized in that described
Operator's frame be suitable for multiple parallel task.
3. according to claim 1 or 2 a kind of based on modular test development of measurement software method, which is characterized in that
It is operated in different threads using the module of operator's frame, has no synchronized relation between each other.
4. according to claim 3 a kind of based on modular test development of measurement software method, which is characterized in that different
Module between by object with message realize communicate.
5. according to claim 3 a kind of based on modular test development of measurement software method, which is characterized in that each
The module of operator's frame realizes the communication of data and message, all channel datas by access global variable engine
It is saved in global variable engine, is indexed and is edited with dictionary approach, there is multi-thread access with variations per hour engine
Protection has event Trigger Function.
6. according to claim 1 a kind of based on modular test development of measurement software method, which is characterized in that described
Creation test object, realizing the modularization of each function, detailed process is as follows:
First creation top level application program class is completed initialization, is recorded as parent, this step, and alarm starts and stops;
Then it can define subclass of the serial ports instrument class as top level application program class;
Finally specific RS232/RS485/USB is instantiated, realizes function modoularization.
7. according to claim 1 a kind of based on modular test development of measurement software method, which is characterized in that described
Step 2) in script file include text script and interface script, software can be realized by the text script for editing described
The control of function and interface layout, the interface script define entire test interface layout scenarios and each interface
The attribute of control and control on position.
8. according to claim 7 a kind of based on modular test development of measurement software method, which is characterized in that soft
In part initialization procedure, it can read interface script, and initialize to interface according to definition, construct customized user circle
Face, user interface directly quote ready-made construction part module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910424201.7A CN110109655A (en) | 2019-05-21 | 2019-05-21 | One kind being based on modular test development of measurement software method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910424201.7A CN110109655A (en) | 2019-05-21 | 2019-05-21 | One kind being based on modular test development of measurement software method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110109655A true CN110109655A (en) | 2019-08-09 |
Family
ID=67491302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910424201.7A Pending CN110109655A (en) | 2019-05-21 | 2019-05-21 | One kind being based on modular test development of measurement software method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110109655A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060150148A1 (en) * | 2004-12-16 | 2006-07-06 | Openspan, Inc. | System and method for non-programmatically constructing software solutions |
CN106201882A (en) * | 2016-07-13 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | Automated operating system method of testing based on Jenkins and system |
CN107608659A (en) * | 2017-08-25 | 2018-01-19 | 北京智行鸿远汽车有限公司 | Design method applied to the LabVIEW of response multitask software architecture |
CN108804320A (en) * | 2018-05-30 | 2018-11-13 | 平安普惠企业管理有限公司 | Automated testing method, device, computer equipment and storage medium |
-
2019
- 2019-05-21 CN CN201910424201.7A patent/CN110109655A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060150148A1 (en) * | 2004-12-16 | 2006-07-06 | Openspan, Inc. | System and method for non-programmatically constructing software solutions |
CN106201882A (en) * | 2016-07-13 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | Automated operating system method of testing based on Jenkins and system |
CN107608659A (en) * | 2017-08-25 | 2018-01-19 | 北京智行鸿远汽车有限公司 | Design method applied to the LabVIEW of response multitask software architecture |
CN108804320A (en) * | 2018-05-30 | 2018-11-13 | 平安普惠企业管理有限公司 | Automated testing method, device, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
杨静等: "基于LabVIEW的自动化测试软件设计与实现", 《中国现代教育装备》 * |
皮祖成等: "基于LabVIEW面向对象的试车台实验控制软件设计", 《软件》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6971084B2 (en) | System and method for synchronizing execution of a batch of threads | |
US6754850B2 (en) | System and method for performing batch synchronization for a test sequence | |
US7529990B2 (en) | Systems and methods for managing multi-device test sessions | |
US7533347B2 (en) | Creating a graphical user interface for selected parameters of a graphical program | |
US20060036799A1 (en) | Multi-platform development and execution of graphical programs | |
US9785415B2 (en) | Remote interface to logical instruments | |
CN111274142B (en) | Software communication system architecture conformance test modeling method based on extended finite state machine | |
US7478349B2 (en) | Automatically synchronizing timed circuits on I/O Devices | |
US20120117537A1 (en) | Flow Chart Programming Platform for Testers and Simulators | |
CN111506304A (en) | Assembly line construction method and system based on parameter configuration | |
US9495265B2 (en) | Test executive system with processing of results data in chunks | |
RU2678717C9 (en) | Method for building a software system for automating and visualizing testing of embedded software for electronic devices | |
CN113986741A (en) | Component debugging method and device and computer equipment | |
US20040032412A1 (en) | Generating a graphical program based on a timing diagram | |
Colla et al. | Applying the IEC-61499 model to the shoe manufacturing sector | |
CN105868104B (en) | A kind of cross-platform graphic user interface automatic test approach | |
CN110109655A (en) | One kind being based on modular test development of measurement software method | |
CN106598601B (en) | Instrument module program compiling method based on wireless test platform | |
US10235868B2 (en) | Embedded shared logical instrument | |
CN116431142B (en) | High-efficiency programming method capable of being quickly constructed and not prone to error | |
CN112817571B (en) | Man-machine object fusion application modeling method based on scene storyboard | |
CN118295925A (en) | Test case automatic generation method and system based on graphical interface tool | |
Cosgrove et al. | Dynamic modeling and verification of safe-set architectures | |
CN118011787A (en) | Method and device for controlling thermal power generating unit | |
CN114816693A (en) | Implementation method of process automation robot capable of independently scheduling and operating |
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: 20190809 |