CN105224430B - A kind of test macro and test method - Google Patents

A kind of test macro and test method Download PDF

Info

Publication number
CN105224430B
CN105224430B CN201510724544.7A CN201510724544A CN105224430B CN 105224430 B CN105224430 B CN 105224430B CN 201510724544 A CN201510724544 A CN 201510724544A CN 105224430 B CN105224430 B CN 105224430B
Authority
CN
China
Prior art keywords
test
item
test item
equipment
macro
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.)
Active
Application number
CN201510724544.7A
Other languages
Chinese (zh)
Other versions
CN105224430A (en
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.)
ITECH ELECTRONIC (NANJING) CO Ltd
Original Assignee
ITECH ELECTRONIC (NANJING) CO Ltd
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=54993417&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN105224430(B) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by ITECH ELECTRONIC (NANJING) CO Ltd filed Critical ITECH ELECTRONIC (NANJING) CO Ltd
Priority to CN201510724544.7A priority Critical patent/CN105224430B/en
Publication of CN105224430A publication Critical patent/CN105224430A/en
Application granted granted Critical
Publication of CN105224430B publication Critical patent/CN105224430B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to power supply test field, a kind of test macro and method, including hardware interface configuration, test formula configuration, test run and report query step are disclosed.Test macro and test method provided by the invention simplify testing process using the screening of two steps, can be easily replaced by test equipment, and do not have to rewrite test program, easy to operate, have better scalability, are widely used.

Description

A kind of test macro and test method
Technical field
The present invention relates to field of power supplies, and in particular to the test macro and test method of power supply.
Background technique
Power detecting system is the test macro that power supply industry manufactures department's indispensability.Power detecting system is widely applied In PC power source, adapter, charger, LED power, the measurement of the power supplys such as communication power supply carries out quality for various power supplys and checks on.Mesh There are many defects, such as test equipment model multisystem to support limited, cumbersome, extension for preceding power detecting system in the market Poor, wiring complexity of property etc. can not support or support limited, while operational difficulty also phase for the test item of some complexity That answers improves the threshold of tester, is not easy to maintenance use and secondary development.
It describes, configures in the method for communication function of the patent CN201210044884. 1 to test determinand automatically When test macro, user is needed to choose species or model to be measured;The configuration of test program described in the patent No. 00814598.9 It is also required to artificial selection measurement classification and input measurement information.Scheme in above-mentioned patent requires manually to choose determinand letter Breath, it is complicated for operation, it is higher to personnel requirement.TW200829934 can configure the test macro and its method of test program, the patent For one of tradition editor's test program method, i.e., " click ".The disadvantages of this method is, test item and each test item pair The test assignment quantity answered is very huge, is not easy to needed for operator quickly selects.
Therefore, in extensive power supply test field, for the above patent disadvantage, urgent need, which proposes, can solve the prior art and lacks Sunken technical solution.
Summary of the invention
It is easy to operate the object of the present invention is to provide a kind of test macro and test method, improve integrated testability efficiency.
For achieving the above object, the present invention adopts the following technical scheme that:
Test macro provided by the invention includes:
Test item library, for storing test item;
Test equipment information acquisition module, for obtaining the characteristic information of test equipment;
Test formula configuration module, for the characteristic information according to test equipment in test item library Automatic sieve select it is suitable The test item list of current test platform is closed, and according to the test characteristic parameter of user setting in the suitable current survey filtered out It tries to carry out postsearch screening automatically in the test item list of platform, generates qualified test item sequence;
Test run module executes test for carrying out parsing verifying to qualified test item.
Test method provided by the invention includes the following steps:
Establish test item library;
Obtain the characteristic information of test equipment;
According to the characteristic information of test equipment, Automatic sieve selects the test for being suitble to current test platform in test item library Bulleted list;
User is configured test characteristic parameter;
According to the test characteristic parameter of user setting in the test item list of the suitable current test platform filtered out It is automatic to carry out postsearch screening, generate qualified test item sequence;
Parsing verifying is carried out to qualified test item, executes test.
Test macro and test method provided by the invention simplify testing process using the screening of two steps, can be easily Test equipment is replaced, and does not have to rewrite test program, it is easy to operate, there is better scalability, be widely used.
Detailed description of the invention
Fig. 1 is software distinguishing hierarchy frame of the invention;
Fig. 2 is test method flow chart of the present invention;
Fig. 3 is guide function interface;
Fig. 4 is test item plug-in unit;
Fig. 5 is that test program writes flow chart;
Fig. 6 is test run method flow diagram;
Fig. 7 is test item list generation method;
Fig. 8 is method for creating test sequence.
Specific embodiment
With reference to the accompanying drawing, technical solution of the present invention is described in detail by taking power detecting system as an example.
1, software level
System software uses hierarchical design, is made of operation interface, test kernel, driving kernel, driving etc., structure is as schemed Shown in 1:
Operation interface is supplied to the port of user one operation, is mainly used for editing test formula, executes test formula, is hard The analysis of part interface configuration and test data.
The test formula of interface editing is carried out parsing and and kernel is driven to establish connection, execution test journey by test kernel Formula;Driving kernel is responsible for creation and opens and verify each test equipment, while loading corresponding driving and completing the logical of software and equipment Furthermore letter is also responsible for the series-parallel synchronizing function of processing equipment and the processing of single three-phase equipment.
Jig driving is directly contacted with interface, when using jig, completes the control to jig by jig drive part System and response, and response data can be fed back into operation interface.
Barcode scanner input allows to scan the bar code and input system of current Devices to test, does statement analysis;Additionally support Barcode scanner starting software starts to test.
The advantages of distinguishing hierarchy, is that the division of labor is clear.Test kernel is only responsible for executing control to test formula process, It realizes system command function, can directly transfer to driving kernel to handle every operation device directive, not have to concern Specific device category and equipment difference.Interface portion is only provided to test kernel test program file and controls kernel and opens Beginning/stopping executes, while responding data in the test process transmitted by kernel, and executing efficiency is higher.Drive kernel portion Unified interface is provided by instrument type and function to upper layer, connection is established to underlying instrument driving, for some variantization Equipment packages are provided at unified functional interface, so that entire test macro is specifically used without considering when editing test formula Equipment, the fortune of test program will not be influenced when replace other models or type for some instruments used in it Row.
2, software function
Software function part is by test run, report query, test program configuration, hardware configuration, system management function group At.It is connected each other between each function.Wherein system administration part includes system usage log and user management, and user can be with By the difference of tester, different rights are distributed.Testing process is as indicated with 2:
Hardware configuration functional module is for configuring the interface of current test equipment.In general, software is giving user When, a softdog can be provided, the test equipment characteristic information of user's buying is saved in softdog(It is indicated with condition code), packet Instrument model, title, interface etc. are included, user does not need generally additionally to be configured again, only when replacement some of them instrument When communication interface, just need to configure again.This part is also used to configure whether to use jig simultaneously.
Test program configuration section is used to edit the test formula of device under test.System provides several system testing items Mesh, applied to different test occasions.After software starting, each tester of current test platform stored in softdog can read Device characteristic information, since each test item information has contained that this test item uses in preset test item library one A little test equipment characteristic informations, therefore software can be picked out automatically according to information such as the condition code of hardware and equipment classes and be suitble to working as The test item list used on preceding test platform is supplied to user.It is as shown in Figure 5 that test program writes process.
When editing test formula, software additionally provides guide function, and guide function interface is as shown in figure 3, pass through user Test characteristic parameter is set(Include Devices to test specification information and test function point), automatically generate out and be suitble to current Devices to test Cycle tests, user, which only needs to click preservation test program can be completed, to write.System when working out test item library It has extracted the test characteristic parameter of each test item and has been stored in test item information, guide part is according to user setting Test characteristic parameter carry out postsearch screening automatically in the test item list of the suitable current test platform filtered out, It finds out qualified test item and generates cycle tests in order.It is supported simultaneously to the cycle tests of generation or in which some Test item is specifically configured.
The test item of user is supplied to plug-in unit(DLL)Form be supplied to interface, which can be at motionless interface Under the premise of program, increase test item at any time.Simultaneously each test item have a corresponding plug-in unit, can it is more personalized with The configuration interface of every kind of test item is targetedly customized, it is user-friendly, as shown in Figure 4.
For the specific demand for meeting some users, provides self-developing test item function and test characteristic is joined for user Number is programmed setting, and software provides special configuration interface and operated, this part only needs user to have any programming Knowledge can be operated, the prefabricated operational order of all devices, while provide several system commands, can produce out various multiple Miscellaneous test item.
Test run module, the test file that user can directly select a preservation are opened, and software is opening test file After can do two parts processing, transfer to test kernel parsing validation test file, validation failure will do it prompt.It is beaten after being parsed All communication port for using test equipment are opened, and whether the physical device for verifying each port is consistent with system configuration, Here the characteristic of read test instrument and configuration file comparison are verified, if there is any one test equipment is verified Failure will prompt, and would not allow for executing current test.Process such as Fig. 6.
Report query for doing data analysis to some equipment tested, test each time can all generate one it is right The test archives answered, user can by time, bar code, test result by the/progress comprehensive inquiry such as failure, test item, It supports customized report template function simultaneously, meets the display format that user defines oneself needs.
3, jig
Present invention applicant still further developed special test fixture for power detecting system(Patent announcement number: CN204086504U)The series jig one side device under test provides different types of input/output interface, meet it is various to Measurement equipment needs, and can conveniently replace Devices to test;On the other hand it is communicated with software in USB interface and computer, By the interface, jig can send control instruction to software, and to reach the test run of control software, while software can also be with The test result of each Devices to test is fed back into jig, is shown using indicator light, tester does not need station in computer Before test can be completed, and since jig can test multiple Devices to test simultaneously and can be grouped test, greatly mention High testing efficiency.
Test item list generation method of the present invention is as shown in Figure 7:
Firstly, the condition code of all test equipments of read test platform configuration(The present invention is matched using softdog It sets), condition code set A is combined by test equipment condition code(In such as figure(0x01,0x02,0x03)), in test item library Reading each test item uses the condition code of test equipment to obtain set Bi(In such as figure(0x01,0x02)Or(0x01, 0x05,0x06)), i=1...n, n are test item sum in test item library, if the condition code that certain test item is corresponding Set Bi is contained in set A, then can determine that the test item can be on current test platform, with test item list Form is supplied to user, completes the screening of first time.
Method for creating test sequence of the present invention is as shown in Figure 8.When user creates a test formula, there is Devices to test Specification information configuration interface, current Devices to test specification information to be tested is inputted by user, such as input source ac/dc, defeated Port number out, input voltage, frequency, input current etc., simultaneous selection Devices to test test function point, such as floating voltage are fully loaded with Voltage, available machine time, unused time etc. generate test characteristic parameter identification code set according to the test characteristic parameter of user setting D(In such as figure(0xF1), while the test characteristic parameter for obtaining each test item in the test item list filtered out for the first time is known Other code generates the corresponding test characteristic parameter identification code set Cj of each test item respectively(In such as figure(0xF1,0xF2)), j= 1...m, m is test item sum in the test item list filtered out for the first time;If test characteristic parameter identification code set D Included in test characteristic parameter identification code set Cj, then the corresponding test item of test characteristic parameter identification code set Cj is added Enter in qualified test item list, i.e. generation cycle tests.When test, system generates survey according to the cycle tests of generation Training sheet sends control instruction to test equipment in order, acquires corresponding measurement parameter and complete test.

Claims (14)

1. a kind of test macro, it is characterised in that including:
Test item library, for storing test item;
Test equipment information acquisition module, for obtaining the characteristic information of test equipment;
Test formula configuration module, for the characteristic information according to test equipment, Automatic sieve is selected and is suitble to work as in test item library The test item list of preceding test platform, and it is automatic in the test item list according to the test characteristic parameter of user setting Postsearch screening is carried out, qualified test item sequence is generated;
Test run module executes test for carrying out parsing verifying to qualified test item.
2. test macro as described in claim 1, it is characterised in that the test formula configuration module includes guide function mould Block is configured test characteristic parameter for user.
3. test macro as described in claim 1, it is characterised in that test macro further includes report query module, for inquiring Test data does data analysis to test equipment.
4. test macro as described in claim 1, it is characterised in that test item is provided with card format by graphical interfaces To user, each test item respectively corresponds a plug-in unit.
5. test macro as described in claim 1, it is characterised in that test item includes the required spy using test equipment Reference breath.
6. test macro as described in claim 1, it is characterised in that test macro includes hardware configuration module, for test Instrument hardware interface is configured.
7. a kind of test method, it is characterised in that include the following steps:
Establish test item library;
Obtain the characteristic information of test equipment;
According to the characteristic information of test equipment, Automatic sieve selects the test item for being suitble to current test platform in test item library List;
User is configured test characteristic parameter;
Postsearch screening is carried out automatically in the test item list according to the test characteristic parameter of user setting, and generation meets item The test item sequence of part;
Parsing verifying is carried out to qualified test item, executes test.
8. test method as claimed in claim 7, it is characterised in that further include being configured to test equipment hardware interface Step.
9. test method as claimed in claim 7, it is characterised in that further include inquiry test data, do data to test equipment The step of analysis.
10. test method as claimed in claim 7, it is characterised in that after being parsed to qualified test item, beat Open the test equipment in need used communication port, and verify the practical equipment connected of each communication port whether with hardware Interface configuration information is consistent, if any one test equipment authentication failed would not allow for executing current test.
11. test method as claimed in claim 7, it is characterised in that when test, generated according to qualified test item Test script sends control instruction in order and completes to test to test equipment.
12. test method as claimed in claim 7, it is characterised in that according to the characteristic information of test equipment from test item library Middle Automatic sieve, which is selected, is suitble to the method for the test item list of current test platform as follows:
(1)Characteristic set A is generated according to the characteristic information of current test platform test equipment;
(2)The characteristic information needed for each test item in test item library using test equipment is obtained, generates each test item respectively Mesh corresponding characteristic set Bi, i=1...n, n are test item sum;
(3)If characteristic set Bi is included in characteristic set A, test item corresponding to characteristic set Bi is added and is suitble to In the test item list of current test platform.
13. test method as claimed in claim 7, it is characterised in that according to the test characteristic parameter of user setting in the survey Postsearch screening is carried out automatically in examination bulleted list, and the method for generating qualified test item sequence is as follows:
(1)Test characteristic parameter identification code set D is generated according to the test characteristic parameter of user setting;
(2)The test characteristic parameter identification code for obtaining each test item in test item list simultaneously, generates each test item respectively Mesh corresponding test characteristic parameter identification code set Cj, j=1...m, m are the test item sum in test item list;
(3)It, will test spy if test characteristic parameter identification code set D is included in test characteristic parameter identification code set Cj Property the corresponding test item of parameter identification code set Cj generate test item sequence.
14. being applied to the jig of test macro described in claim 1, it is characterised in that the jig, which is integrated with, meets different testers The multiple hardwares interface that device connection needs, and communicated by USB interface and test macro, user sends control using jig It instructs and executes test to test macro, test result feeds back to user by jig.
CN201510724544.7A 2015-10-29 2015-10-29 A kind of test macro and test method Active CN105224430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510724544.7A CN105224430B (en) 2015-10-29 2015-10-29 A kind of test macro and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510724544.7A CN105224430B (en) 2015-10-29 2015-10-29 A kind of test macro and test method

Publications (2)

Publication Number Publication Date
CN105224430A CN105224430A (en) 2016-01-06
CN105224430B true CN105224430B (en) 2018-11-20

Family

ID=54993417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510724544.7A Active CN105224430B (en) 2015-10-29 2015-10-29 A kind of test macro and test method

Country Status (1)

Country Link
CN (1) CN105224430B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463579B (en) * 2019-09-09 2024-04-12 英业达科技有限公司 System and method for generating configuration file and testing using configuration file

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334365B (en) * 2017-08-23 2021-04-13 中国电子科技集团公司第四十一研究所 Method for realizing instrument parameter interface dynamic configuration in automatic test system software
CN108333445B (en) * 2017-12-26 2020-04-03 北京航天测控技术有限公司 Instrument management method of data acquisition instrument based on VxWorks
CN111679866B (en) * 2020-05-29 2023-10-31 苏州卓云软件有限公司 System capable of dispatching equipment to test LED materials and testing method thereof
CN111624427A (en) * 2020-06-09 2020-09-04 南方电网科学研究院有限责任公司 Detection method and system of relay protection device
CN112098769A (en) * 2020-08-07 2020-12-18 中国人民解放军海军七0一工厂 Component testing method, device and system
CN112214368B (en) * 2020-10-23 2022-06-14 英业达科技有限公司 Dynamic load control system and method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1382271A (en) * 1999-10-22 2002-11-27 歌拉利旺株式会社 Automatic measuring apapratus, automatic measurement data processing and control apparatus, network system and record medium of automatic measurement processing and control program
CN101819260A (en) * 2010-03-19 2010-09-01 深圳市东辰科技有限公司 Method and system for controlling power supply test and power supply test method
CN103079086A (en) * 2012-12-30 2013-05-01 广东九联科技股份有限公司 Automatic testing system for set-top box
CN103092156A (en) * 2012-12-26 2013-05-08 莱诺斯科技(北京)有限公司 Device replaceable automatic test system and method
CN204086504U (en) * 2014-09-22 2015-01-07 艾德克斯电子(南京)有限公司 Power supply product measurement jig

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8214800B2 (en) * 2005-03-02 2012-07-03 Advantest Corporation Compact representation of vendor hardware module revisions in an open architecture test system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1382271A (en) * 1999-10-22 2002-11-27 歌拉利旺株式会社 Automatic measuring apapratus, automatic measurement data processing and control apparatus, network system and record medium of automatic measurement processing and control program
CN101819260A (en) * 2010-03-19 2010-09-01 深圳市东辰科技有限公司 Method and system for controlling power supply test and power supply test method
CN103092156A (en) * 2012-12-26 2013-05-08 莱诺斯科技(北京)有限公司 Device replaceable automatic test system and method
CN103079086A (en) * 2012-12-30 2013-05-01 广东九联科技股份有限公司 Automatic testing system for set-top box
CN204086504U (en) * 2014-09-22 2015-01-07 艾德克斯电子(南京)有限公司 Power supply product measurement jig

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463579B (en) * 2019-09-09 2024-04-12 英业达科技有限公司 System and method for generating configuration file and testing using configuration file

Also Published As

Publication number Publication date
CN105224430A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105224430B (en) A kind of test macro and test method
CN109406916B (en) Test platform for semiconductor memory aging test device
CN107390110A (en) A kind of method, apparatus and system tested automatically PCBA
CN102387234B (en) Mobile phone automatic test device and method
US7673179B2 (en) Online testing unification system with remote test automation technology
CN105608254B (en) A kind of the Automation Design method and platform towards Intelligent hardware system development
CN104615541B (en) Emulation testing modeling and method based on flow chart
CN109062777B (en) General automatic test system of track traffic signal equipment
US7823128B2 (en) Apparatus, system and/or method for combining multiple tests to a single test in a multiple independent port test environment
CN105760296B (en) Automatic test control method, device and terminal
CN105738792A (en) PCBA test device and test method
CN109800117A (en) A kind of DC automated testing method and system based on IPMI
CN106646040A (en) APF/SVG module automatic calibration testing system and testing method
CN109001581A (en) Support the test macro of multiple users using different application
CN106841886A (en) A kind of BMS burn-in tests monitoring system and its application apparatus
TW201843589A (en) User control of automated test features with software application programming interface (api)
US20070233445A1 (en) Testing Suite for Product Functionality Assurance and Guided Troubleshooting
CN109491922A (en) One kind being based on model-driven test method and apparatus
CN110471857A (en) The automatic test approach and device of artificial intelligence model performance capability
CN108170118A (en) Electric vehicle controller automatically testing platform and method
CN107728045A (en) FPGA method of testings based on Ultra Flex
CN113705026B (en) Digital modeling and intelligent detection system for power secondary equipment
CN106093745B (en) A kind of power automatic device chip card Auto-Test System
CN106844129A (en) A kind of POS automatic switch machine detecting device
CN107346128A (en) Automated testing method and system for lock control plate

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Zhimengyuan, No.4 gupinggang, Gulou District, Nanjing, Jiangsu Province, 210009

Patentee after: ADEX Electronics (Nanjing) Co.,Ltd.

Address before: Building 1, No. 108, xishanqiao South Road, Yuhuatai District, Nanjing City, Jiangsu Province, 210012

Patentee before: ADEX Electronics (Nanjing) Co.,Ltd.