CN109857638A - A kind of testing system software general framework - Google Patents
A kind of testing system software general framework Download PDFInfo
- Publication number
- CN109857638A CN109857638A CN201811624923.9A CN201811624923A CN109857638A CN 109857638 A CN109857638 A CN 109857638A CN 201811624923 A CN201811624923 A CN 201811624923A CN 109857638 A CN109857638 A CN 109857638A
- Authority
- CN
- China
- Prior art keywords
- test
- subsystems
- equipment
- parameter
- standard commands
- 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.)
- Granted
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of testing system software general frameworks, the unified management of different test equipments is realized as middle layer by using standard commands, introducing test subsystems, construct test macro control management framework, when test equipment updates or replaces, it need to only update or the library file of replacement test equipment without developing testing system software again thus greatly reduces workload, the testing system software development time is shortened, is improved work efficiency.
Description
Technical field
The present invention relates to test fields of measurement, and in particular to a kind of testing system software general framework.
Background technique
With the development of test measuring technique, in fields such as aerospace, power test, high-speed rail motor-car, medicals, by
The type and quantity for the test equipment for including in the diversity and complexity of measurement object, test macro also increase increasingly.It is soft
Part developer need to be according to equipment and the feature development test macro of measurand, to complete the measurement to measurand.Tradition side
Case is that software developer need to be soft according to device programming handbook and characteristic of tested object exploitation test macro according to system function requirement
Part changes to realize test macro function and to the measurement of measurand when updating replacement test equipment, increase and decrease measurement object, upgrading
When making test macro, it need to be developed again according to new demand, compile, issue, it, will especially for large-scale testing system software
Bring very big workload.
Summary of the invention
In view of this, by modular software design, determining the present invention provides a kind of testing system software general framework
The Standard Interface of adopted standard can be realized when update or replacement test equipment, it is only necessary to update or replace the library file of new equipment
The compatibility to new equipment can be completed, reduce the workload of test macro exploitation.
A kind of testing system software general framework provided by the invention, including test macro and pass through with the test macro
The connected multiple test subsystems of standard communication interface, the test subsystems with multiple test equipments for being connected;
Test system configurations standard commands module, for standard commands to be sent to test subsystems, the standard commands
Including configuration order and control command;
Test subsystems configure the configuration file of universal driver and test equipment, and wherein universal driver includes that system is driven
Dynamic function, device drives function, resource manager and logic manager, system drive function is for realizing under test subsystems
All test equipments be uniformly controlled, device drives function is for realizing the control to single test equipment, resource manager
For recording the title, state, configuration parameter information of test equipment, logic manager is used to coordinate, one that control command executes
Cause property;Each test subsystems have unique mark;
When the standard commands received are the control command for single test equipment, test subsystems are according to parsing
Command information, using parse device name, device parameter as parameter, first calling logic manager, in conjunction with resource management
The data stored in device are judged, if contradiction is not present in order, are called device drives function, are executed the control to equipment
System;When standard commands are the control command for all test equipments under test subsystems, test subsystems are according to parsing
Command information, using the information that parses as parameter, first calling logic manager, in conjunction with the number stored in resource manager
According to being judged, if contradiction is not present in order, calling system driving function executes the control to all devices;
When standard commands are configuration order, the configuration file of test subsystems read test equipment, parsing this document is obtained
To configuration parameter, then calls device drives function to execute configuration order according to the configuration parameter and equipment is configured.
Further, the standard commands include: that initialization, configuration, starting, stopping, release resource, reset and acquisition are set
Standby information.
Further, the unique identification of the test subsystems is the IP address and port numbers of test subsystems.
Further, the format of the test equipment configuration file is customized reference format, including test equipment
Configuration parameter title and its value.
Further, the format of the standard commands are as follows: keyword: device resource title, parameter, parameter.
The utility model has the advantages that
The present invention realizes the system of different test equipments by using standard commands, introducing test subsystems as middle layer
One management, constructing test macro control management framework need to only update when test equipment updates or replaces or replacement test is set
Standby library file thus greatly reduces workload without developing testing system software again, shortens testing system software
Development time improves work efficiency.
Detailed description of the invention
Fig. 1 is testing system software general framework general frame figure provided by the invention.
Fig. 2 is testing system software general framework test equipment configuration file fragment figure provided by the invention.
Specific embodiment
The present invention will now be described in detail with reference to the accompanying drawings and examples.
The present invention provides a kind of testing system software general frameworks, and basic thought is: according to " test macro-test
Subsystem-test equipment " Mode Decomposition test macro function, passes through standard between measuring system constructing and multiple test subsystems
Communication interface is communicated, and is communicated between each test subsystems and multiple test equipments by bus, and test macro is logical
It crosses to test subsystems and issues standard commands, realize the control to test subsystems and test equipment;Test subsystems, to reception
To standard commands parsed, by universal driver according to order execute corresponding operation, and using command execution results as
Command response is sent to test macro;Test equipment executes corresponding according to the order from test subsystems received
Operation.It is connected between test macro and test subsystems using standard communication interface, is adopted between test subsystems and test equipment
It is connected with bus, as shown in Figure 1.
Test system configurations standard commands module, is sent to test subsystems for configuration order and control command, passes through institute
Control command is stated respectively to control single test equipment and multiple test equipments;
Test subsystems configure the configuration file of universal driver and test equipment, and wherein universal driver includes that system is driven
Dynamic function, device drives function, resource manager and logic manager, system drive function is for realizing under test subsystems
All test equipments be uniformly controlled, device drives function is for realizing the control to single test equipment, resource manager
The information such as title, state, configuration parameter for recording test equipment, logic manager is used to coordinate, control command executes
Consistency;The format of test equipment configuration file is the reference format of definition, and test equipment configuration file includes test equipment
Configuration parameter title and its value;Each test subsystems have unique mark;
After test subsystems receive the standard commands that test macro issues, parse the command, determine command operation,
The information such as device name and device parameter;
When standard commands are the control for single test equipment, test subsystems according to the command information of parsing, with
The information such as the device name, the device parameter that parse are as parameter, first calling logic manager, in conjunction with resource manager memory
The data of storage are judged, if contradiction is not present in order, are called device drives function, are executed the control to equipment;Work as mark
When quasi- order is for the control of all test equipments under test subsystems, test subsystems according to the command information of parsing,
Information to parse judged as parameter, first calling logic manager in conjunction with the data stored in resource manager,
If contradiction is not present in order, calling system driving function executes the control to all devices;
When standard commands are configuration order, the configuration file of test subsystems read test equipment parses this document, so
It calls device drives function to execute configuration order according to configuration parameter afterwards to configure equipment;
After the completion of control process executes, implementing result is returned to resource management by device drives function or system drive function
Device is recorded, while implementing result is fed back to test macro.
Embodiment one
Design standard order: standard commands are acquired for data, and are controlled test subsystems and test equipment, energy
It is enough that single test equipment is controlled, it, also can be to the institute under test subsystems such as the equipment separate control order that table 1 defines
There is test equipment to be uniformly controlled, the test subsystems as table 2 defines are uniformly controlled order;Its basic command includes: initial
Change, configuration, starting, stop, discharging resource, reset and obtain facility information, it, can new extensions life according to actual project needs
It enables, to realize other control functions.
Command format: " keyword: device resource title, parameter, parameter ", wherein device resource title can set to be default
Set, parameter can may be for default setting it is multiple, when all test equipments for being managed by test subsystems of control target
When, resource name is then set as default value.
1 equipment separate control order of table
2 test subsystems of table are uniformly controlled order
Test macro and test subsystems, which are established, to be communicated to connect: passing through standard traffic between test macro and test subsystems
Interface is communicated, and standard commands are issued to test subsystems by test macro;Each test subsystems are with unique IP
Location and port numbers, test macro can uniquely determine test subsystems by IP address and port numbers.
Test subsystems and test equipment, which are established, to be communicated to connect: being carried out between test subsystems and test equipment by bus
Communication.
Test subsystems receive, parsing, execute standard commands: test subsystems local storage system driving function, equipment
Driving function, resource manager, logic manager and test equipment configuration file, wherein system drive function for realizing
To being uniformly controlled for all test equipments under test subsystems, device drives function is for realizing the control to single test equipment
System, resource manager is for recording the information such as the title, state, configuration parameter of test equipment, and logic manager is for coordinating, controlling
The consistency that system order executes;The format of test equipment configuration file is the reference format of definition, test equipment configuration file packet
The configuration parameter title and its value of test equipment are included, as shown in Figure 2, wherein Value is the default value of parameter, when in use
User can change the value of Value;
After test subsystems receive the standard commands that test macro issues, parse the command, determine command operation,
The information such as device name and device parameter;
When standard commands are the control for single test equipment, test subsystems according to the command information of parsing, with
The information such as the device name, the device parameter that parse are as parameter, first calling logic manager, in conjunction with resource manager memory
The data of storage are judged, if contradiction is not present in order, are called device drives function, are executed the control to equipment;Work as mark
When quasi- order is for the control of all test equipments under test subsystems, test subsystems according to the command information of parsing,
Information to parse judged as parameter, first calling logic manager in conjunction with the data stored in resource manager,
If contradiction is not present in order, calling system driving function executes the control to all devices;
When standard commands are configuration order, the configuration file of test subsystems read test equipment parses this document, so
It calls device drives function to execute configuration order according to configuration parameter afterwards to configure equipment;
After the completion of control process executes, implementing result is returned to resource management by device drives function or system drive function
Device is recorded, while implementing result is fed back to test macro in the form of command response.Wherein, command response format are as follows:
" keyword: device resource title 1, state 1;Device resource title 2, state 2;……;\n";When standard commands are to control certain
When a equipment, test subsystems are returned only to the device resource title and state of the equipment;When being uniformly controlled for subsystem, subsystem
There are several equipment to return to the device resource title and state of several equipment in system;The definition of state and range can be fixed according to function
Justice.The specific format of command response is as shown in Table 3 and Table 4.
3 equipment separate control order of table and corresponding
4 system of table is uniformly controlled order and response
In conclusion the above is merely preferred embodiments of the present invention, being not intended to limit the scope of the present invention.
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention
Within protection scope.
Claims (5)
1. a kind of testing system software general framework, which is characterized in that pass through mark including test macro and with the test macro
The connected multiple test subsystems of quasi- communication interface, the test subsystems with multiple test equipments for being connected;
Test system configurations standard commands module, for standard commands to be sent to test subsystems, the standard commands include
Configuration order and control command;
Test subsystems configure the configuration file of universal driver and test equipment, and wherein universal driver includes system drive letter
Number, device drives function, resource manager and logic manager, system drive function is for realizing to the institute under test subsystems
There is being uniformly controlled for test equipment, device drives function is used for for realizing the control to single test equipment, resource manager
Title, state, the configuration parameter information of test equipment are recorded, logic manager is used for the consistency coordinated, control command executes;
Each test subsystems have unique mark;
When the standard commands received are the control command for single test equipment, test subsystems are according to the order of parsing
Information, using parse device name, device parameter as parameter, first calling logic manager, in conjunction in resource manager
The data of storage are judged, if contradiction is not present in order, are called device drives function, are executed the control to equipment;When
When standard commands are the control command for all test equipments under test subsystems, test subsystems are according to the order of parsing
Information, the information to parse are carried out as parameter, first calling logic manager in conjunction with the data stored in resource manager
Judgement, if contradiction is not present in order, calling system driving function executes the control to all devices;
When standard commands are configuration order, the configuration file of test subsystems read test equipment, parsing this document is matched
Parameter is set, then calls device drives function to execute configuration order according to the configuration parameter and equipment is configured.
2. frame according to claim 1, which is characterized in that the standard commands include: initialization, configuration, start, stop
Only, it discharges resource, reset and obtains facility information.
3. frame according to claim 1, which is characterized in that the unique identification of the test subsystems is test subsystems
IP address and port numbers.
4. frame according to claim 1, which is characterized in that the format of the test equipment configuration file is customized
Reference format, configuration parameter title and its value including test equipment.
5. frame according to claim 1, which is characterized in that the format of the standard commands are as follows: keyword: device resource
Title, parameter, parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811624923.9A CN109857638B (en) | 2018-12-28 | 2018-12-28 | Universal framework for test system software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811624923.9A CN109857638B (en) | 2018-12-28 | 2018-12-28 | Universal framework for test system software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109857638A true CN109857638A (en) | 2019-06-07 |
CN109857638B CN109857638B (en) | 2022-10-28 |
Family
ID=66892988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811624923.9A Active CN109857638B (en) | 2018-12-28 | 2018-12-28 | Universal framework for test system software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857638B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026635A (en) * | 2019-09-27 | 2020-04-17 | 珠海随变科技有限公司 | Software project testing system, method, device and storage medium |
CN117931666A (en) * | 2024-01-26 | 2024-04-26 | 中国人民解放军军事科学院***工程研究院 | System and method for testing core framework of software radio communication equipment |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102495799A (en) * | 2011-12-02 | 2012-06-13 | 刘伟 | Automatic test system and method of movable terminal |
CN103019922A (en) * | 2011-09-22 | 2013-04-03 | 北京新媒传信科技有限公司 | Realization method of component architecture capable of realizing independent testing |
WO2014087130A1 (en) * | 2012-12-04 | 2014-06-12 | Anite Telecoms Limited | Apparatus and method for testing |
US20140310693A1 (en) * | 2013-04-16 | 2014-10-16 | Advantest Corporation | Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing |
CN106294122A (en) * | 2016-07-20 | 2017-01-04 | 苏州博众精工科技有限公司 | The software test platform of a kind of standard and method of testing thereof |
CN106598848A (en) * | 2016-11-30 | 2017-04-26 | 中国直升机设计研究所 | Keyword-driven airborne software automatic test method and system |
CN106649098A (en) * | 2016-11-04 | 2017-05-10 | 海信集团有限公司 | Method and device for achieving version-release-software debugging on terminal device |
CN106649113A (en) * | 2016-12-21 | 2017-05-10 | 北京航天测控技术有限公司 | Testing equipment control system and realization method |
CN106776340A (en) * | 2016-12-30 | 2017-05-31 | 广东浪潮大数据研究有限公司 | A kind of general server S ensor automatic test approach |
US20170357564A1 (en) * | 2016-06-14 | 2017-12-14 | Sony Mobile Communications Inc. | Measurement coordination by monitoring of program code execution |
CN107807878A (en) * | 2016-09-09 | 2018-03-16 | 北京航空航天大学 | Automatic test engine based on keyword |
CN108334447A (en) * | 2017-12-31 | 2018-07-27 | 江苏易润信息技术有限公司 | A kind of system and method for test processes computer software exception |
-
2018
- 2018-12-28 CN CN201811624923.9A patent/CN109857638B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019922A (en) * | 2011-09-22 | 2013-04-03 | 北京新媒传信科技有限公司 | Realization method of component architecture capable of realizing independent testing |
CN102495799A (en) * | 2011-12-02 | 2012-06-13 | 刘伟 | Automatic test system and method of movable terminal |
WO2014087130A1 (en) * | 2012-12-04 | 2014-06-12 | Anite Telecoms Limited | Apparatus and method for testing |
US20140310693A1 (en) * | 2013-04-16 | 2014-10-16 | Advantest Corporation | Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing |
US20170357564A1 (en) * | 2016-06-14 | 2017-12-14 | Sony Mobile Communications Inc. | Measurement coordination by monitoring of program code execution |
CN106294122A (en) * | 2016-07-20 | 2017-01-04 | 苏州博众精工科技有限公司 | The software test platform of a kind of standard and method of testing thereof |
CN107807878A (en) * | 2016-09-09 | 2018-03-16 | 北京航空航天大学 | Automatic test engine based on keyword |
CN106649098A (en) * | 2016-11-04 | 2017-05-10 | 海信集团有限公司 | Method and device for achieving version-release-software debugging on terminal device |
CN106598848A (en) * | 2016-11-30 | 2017-04-26 | 中国直升机设计研究所 | Keyword-driven airborne software automatic test method and system |
CN106649113A (en) * | 2016-12-21 | 2017-05-10 | 北京航天测控技术有限公司 | Testing equipment control system and realization method |
CN106776340A (en) * | 2016-12-30 | 2017-05-31 | 广东浪潮大数据研究有限公司 | A kind of general server S ensor automatic test approach |
CN108334447A (en) * | 2017-12-31 | 2018-07-27 | 江苏易润信息技术有限公司 | A kind of system and method for test processes computer software exception |
Non-Patent Citations (3)
Title |
---|
DA ZUN等: "Research on automated testing framework for multi-platform mobile applications", 《2016 4TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING AND INTELLIGENCE SYSTEMS (CCIS)》 * |
朱益钊: "异构***端到端自动化测试框架的设计与实现", 《CNKI优秀硕士学位论文全文库 信息科技辑》 * |
董乾豪: "通用可扩展的分布式文件***性能测试框架研究与实现", 《CNKI优秀硕士学位论文全文库 信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026635A (en) * | 2019-09-27 | 2020-04-17 | 珠海随变科技有限公司 | Software project testing system, method, device and storage medium |
CN117931666A (en) * | 2024-01-26 | 2024-04-26 | 中国人民解放军军事科学院***工程研究院 | System and method for testing core framework of software radio communication equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109857638B (en) | 2022-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107220064B (en) | A kind of digital control system interface configuration development approach | |
CN106569801B (en) | Configuration display and control system based on complex parameters | |
EP1756605B1 (en) | Method and system for simulating a modular test system | |
US8230113B2 (en) | System, method, and computer-readable medium for development and deployment of self-describing controlled device modules in a control system | |
CN103530225B (en) | Automatization's compiler test method and realize automatization's compiler test platform of the method | |
CN109951315A (en) | A kind of method and system realizing YANG model and being mapped to internal model | |
CN110275833B (en) | Universal test equipment and use method | |
CN101196926A (en) | Database access platform and access method thereof | |
CN107632846A (en) | Firmware upgrade method and device, Shelf management module | |
CN104536746A (en) | Software structure based on DLL | |
CN204116942U (en) | Vehicle-mounted electronic control unit LIN bus communication automatic test device | |
CN101566943A (en) | Method, terminal and system for controlling terminal software functions | |
CN109857638A (en) | A kind of testing system software general framework | |
CN102088384B (en) | Standardized multifunctional LXI (LAN based extensions for instrumentation) equipment | |
CN105933767A (en) | Middleware device, middleware realization method and television set | |
CN109614325A (en) | A kind of method and device, electronic equipment and the storage medium of determining control property | |
CN100437513C (en) | Method and system for implementing automatic testing | |
CN109507991B (en) | Double-shaft servo control platform debugging system and method | |
CN104536759B (en) | The general-purpose platform implementation method of business disc system management | |
CN108319516A (en) | A kind of test system and test method | |
CN101957878B (en) | Method and device for constructing and managing prototype device library | |
KR20190049217A (en) | Unified Interface System For Heterogeneous Machine Tool Controller | |
CN104956355B (en) | Distributed test system framework | |
CN114189534A (en) | Design method of device interaction software simulation program in Internet of things system | |
CN101968742A (en) | Internal interlocking management method and device for simulation 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |