CN105224430A - A kind of test macro and method of testing - Google Patents

A kind of test macro and method of testing Download PDF

Info

Publication number
CN105224430A
CN105224430A CN201510724544.7A CN201510724544A CN105224430A CN 105224430 A CN105224430 A CN 105224430A CN 201510724544 A CN201510724544 A CN 201510724544A CN 105224430 A CN105224430 A CN 105224430A
Authority
CN
China
Prior art keywords
test
test event
event
testing
testing tool
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
Application number
CN201510724544.7A
Other languages
Chinese (zh)
Other versions
CN105224430B (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(A) "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, disclose a kind of test macro and method, comprise hardware interface configuration, test formula configuration, test run and report query step.Test macro provided by the invention and method of testing utilize two step screenings to simplify testing process, can change testing tool easily, and again need not write test procedure, simple to operate, have better extendability, are widely used.

Description

A kind of test macro and method of testing
Technical field
The present invention relates to field of power supplies, be specifically related to test macro and the method for testing of power supply.
Background technology
Power detecting system is the test macro that power supply industry manufactures department's indispensability.Power detecting system is widely used in PC power source, adapter, charger, LED power, the measurement of the power supplys such as communication power supply, checks on for various power supply carries out quality.There is a lot of defect in power detecting system in the market, as testing apparatus model multisystem support limited, complex operation, extendability are poor, wiring is complicated, test event for some complexity cannot be supported or support limited, operational difficulty also improves the threshold of tester accordingly simultaneously, is not easy to safeguard use and secondary development.
Patent CN201210044884.1 in order to automatically test the communication function of determinand method in describe, during configuration testing system, need user to choose determinand kind or model; The test procedure configuration described in the patent No. 00814598.9 also needs artificial selection to measure classification and input measurement information.Scheme in above-mentioned patent all needs manually to choose determinand information, complicated operation, higher to personnel requirement.The test macro of the configurable test procedure of TW200829934 and method thereof, this patent is one of tradition editor test procedure method, namely " clicks ".The shortcoming of the method is, test event and test assignment quantity corresponding to each test event very huge, be not easy to needed for operator selects fast.
Therefore, in extensive power supply test field, for above patent shortcoming, be badly in need of proposing the technical scheme that can solve prior art defect.
Summary of the invention
The object of this invention is to provide a kind of test macro and method of testing, simple to operate, improve integrated testability efficiency.
For achieving the above object, the present invention adopts following technical scheme:
Test macro provided by the invention comprises:
Test event storehouse, for On-board test project;
Testing tool information acquisition module, for obtaining the characteristic information of testing tool;
Test formula configuration module, for selecting the test event list of applicable current test platform according to the characteristic information of testing tool Automatic sieve in test event storehouse, and in the test event list of the applicable current test platform filtered out, automatically carry out postsearch screening according to the test characteristic parameter that user is arranged, generate qualified test event sequence;
Test run module, for carrying out parsing checking to qualified test event, performs test.
Method of testing provided by the invention comprises the steps:
Set up test event storehouse;
Obtain the characteristic information of testing tool;
The test event list of applicable current test platform is selected according to characteristic information Automatic sieve in test event storehouse of testing tool;
User is arranged test characteristic parameter;
In the test event list of the applicable current test platform filtered out, automatically carry out postsearch screening according to the test characteristic parameter that user is arranged, generate qualified test event sequence;
Parsing checking is carried out to qualified test event, performs test.
Test macro provided by the invention and method of testing utilize two step screenings to simplify testing process, can change testing tool easily, and again need not write test procedure, simple to operate, have better extendability, are widely used.
Accompanying drawing explanation
Fig. 1 is software distinguishing hierarchy framework of the present invention;
Fig. 2 is method of testing process flow diagram of the present invention; Fig. 3 is guide function interface;
Fig. 4 is test event plug-in unit;
Fig. 5 is that test procedure writes process flow diagram;
Fig. 6 is test run method flow diagram;
Fig. 7 is test event row table generating methods;
Fig. 8 is method for creating test sequence.
Embodiment
Below in conjunction with accompanying drawing, for power detecting system, technical solution of the present invention is described in detail.
1, software level
System software adopt hierarchical design, by operation interface, test kernel, drive kernel, driving etc. form, structure as shown in Figure 1:
Operation interface is supplied to the port of user one operation, is mainly used in editing test formula, performs test formula, hardware interface configuration and the analysis of test data.
The test formula of interface editing is carried out parsing and connects with driving kernel by test kernel, performs test formula; Drive kernel to be responsible for establishment and to open and verify each testing tool, load corresponding driving simultaneously and complete communicating of software and equipment, be also responsible for the connection in series-parallel synchronizing function for the treatment of facility and the process of single three-phase equipment in addition.
Tool drives directly and interface contacts, and when use tool, completes control to tool and response, and response data can be fed back to operation interface by tool drive part.
Barcode scanner input allows the scanning bar code of current Devices to test and input system, does statement analysis; Support that barcode scanner starts software and starts test in addition.
The advantage of this distinguishing hierarchy is, the division of labor is clear and definite.Test kernel is only responsible for performing to test formula flow process controls, realizes system directive function, driving kernel directly can be transferred to process, need not pay close attention to concrete device category and equipment difference for the instruction of every bar operating equipment.Interface portion only needs to be supplied to test kernel test program file and controls the execution of kernel start/stop, and respond data in the test process transmitted by kernel, executing efficiency is higher simultaneously.Kernel portion is driven to provide unified interface to upper strata by instrument kind and function, underlying instrument is driven and connects, equipment packages for some variantization becomes unified functional interface to provide, making whole test macro need not consider the concrete equipment used when editing test formula, when some instruments wherein used are carried out changing other models or kind, also can not have influence on the operation of test procedure.
2, software function
Software function part is made up of test run, report query, test procedure configuration, hardware configuration, system management function.Connect each other between each function.Wherein system administrative section comprises system usage log and user management, and user by the difference of tester, can distribute different rights.Testing process is as indicated with 2:
Hardware configuration functional module is used for being configured the interface of current testing tool.Usually, software is when giving user, a softdog can be provided, the testing tool characteristic information (representing with condition code) of user's buying is saved in softdog, comprise INSTRUMENT MODEL, title, interface etc., user does not generally need to carry out additional configuration again, only having when changing the communication interface of wherein some instrument, just needing again to configure.Whether this part also will use tool for configuration simultaneously.
Test procedure configuration section is for editing the test formula of device under test.System provides some system testing projects, is applied to different test occasions.When after software startup, the each testing tool characteristic information of the current test platform stored in softdog can be read, because test event information each in preset test event storehouse has contained some testing tool characteristic informations that this test event uses, therefore software can be selected according to information automaticals such as the condition code of hardware and equipment classes the test event list being adapted at current test platform uses and is supplied to user.Test procedure writes flow process as shown in Figure 5.
When editing test formula, software additionally provides guide function, guide function interface as shown in Figure 3, by user, test characteristic parameter (comprising Devices to test specification information and test function point) is set, automatically produce the cycle tests of applicable current Devices to test, user only needs to click preservation and can complete test procedure and write.System has extracted the test characteristic parameter of each test event when working out test event storehouse and has been kept in test event information, the test characteristic parameter that guide part is arranged according to user automatically carries out postsearch screening in the test event list of the applicable current test platform filtered out, and finds out qualified test event and produces cycle tests in order.Support specifically to configure the cycle tests produced or some of them test item simultaneously.
The test event being supplied to user is supplied to interface with the form of plug-in unit (DLL), and which under the prerequisite of motionless interface program, can increase test event at any time.Each test event has a corresponding plug-in unit simultaneously, can customize the configuration interface of often kind of test event more personalized and targetedly, user-friendly, as shown in Figure 4.
For meeting the specific demand of some users, provide self-developing test item function, for user, programming setting is carried out to test characteristic parameter, software provides special configuration interface and operates, this part only needs user to have the programming knowledge of any to operate, the prefabricated operational order of all devices, provide some system directives simultaneously, the test event of various complexity can be produced.
Test run module, user can directly select a test file preserved to open, and software can do two parts process after opening test file, and transfer to test kernel to resolve validation test file, validation failure can be pointed out.All communication port using testing tool are opened after being parsed, and verify that whether the physical device of 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 testing tool authentication failed to point out, and perform current test by not allowing.Flow process is as Fig. 6.
Report query is used for doing data analysis to some equipment tested, test each time all can generate corresponding test archives, user can be passed through by time, bar code, test result/and failure, test event etc. carry out comprehensive inquiry, support self-defining report form template function simultaneously, meet the display format that user defines oneself needs.
3, tool
Present invention applicant still further developed this serial tool one side device under test of special measurement jig (patent announcement number: CN204086504U) for power detecting system and provides different types of IO interface, meet various Devices to test needs, conveniently can change Devices to test; Communicate with software in computer with USB interface on the other hand, by this interface, tool can sending controling instruction to software, reach the test run of control software design, the test result of each Devices to test also can be fed back to tool by software simultaneously, and utilize pilot lamp to show, tester can complete test before not needing to stand in computer, multiple Devices to test can be tested due to tool again simultaneously and also can carry out grouping test, improve testing efficiency greatly.
Test event row table generating method of the present invention is as shown in Figure 7:
First, the condition code (the present invention utilizes softdog to be configured) of all testing tools of read test platform configuration, condition code set A is combined into (as (0x01 in figure by testing tool condition code, 0x02, 0x03)), in test event storehouse, read the condition code that each test event uses testing tool obtain set B i(as (0x01 in figure, 0x02) or (0x01, 0x05, 0x06)), i=1...n, n is test event sum in test event storehouse, if certain test event corresponding condition code set B i be contained in set A, then can determine that this test event can be used on current test platform, user is supplied to test event tabular form, complete primary screening.
Method for creating test sequence of the present invention as shown in Figure 8.When the newly-built test formula of user, there is the configuration interface of the specification information of Devices to test, the current Devices to test specification information that will test is inputted by user, as input source ac/dc, output channel number, input voltage, frequency, input current etc., select Devices to test test function point simultaneously, as no-load voltage, full-load voltage, on time, unused time etc., test characteristic parameter identification code set D(is generated as (0xF1) in figure according to the test characteristic parameter that user is arranged, obtain the test characteristic parameter identification code of each test event in the test event list filtered out for the first time simultaneously, generate test characteristic parameter identification code set Cj(corresponding to each test event respectively as (0xF1 in figure, 0xF2)), j=1...m, m is test event sum in the test event list filtered out first time, if test characteristic parameter identification code set D is included in test characteristic parameter identification code set Cj, then test event corresponding for test characteristic parameter identification code set Cj is added in qualified test event list, namely generate cycle tests.During test, system produces test script according to the cycle tests produced, and sending controling instruction is to testing tool in order, gathers corresponding measurement parameter and completes test.

Claims (14)

1. a test macro, is characterized in that comprising:
Test event storehouse, for On-board test project;
Testing tool information acquisition module, for obtaining the characteristic information of testing tool;
Test formula configuration module, for selecting the test event list of applicable current test platform according to the characteristic information of testing tool Automatic sieve in test event storehouse, and in described test event list, automatically carry out postsearch screening according to the test characteristic parameter that user is arranged, generate qualified test event sequence;
Test run module, for carrying out parsing checking to qualified test event, performs test.
2. test macro as claimed in claim 1, is characterized in that described test formula configuration module comprises guide function module, arranges for user to test characteristic parameter.
3. test macro as claimed in claim 1, is characterized in that test macro also comprises report query module, for inquiring about test data, doing data analysis to testing apparatus.
4. test macro as claimed in claim 1, is characterized in that test event is supplied to user with card format by graphical interfaces, and each test event is a corresponding plug-in unit respectively.
5. test macro as claimed in claim 1, is characterized in that test event comprises the required characteristic information using testing tool.
6. test macro as claimed in claim 1, is characterized in that test macro comprises hardware configuration module, for being configured testing tool hardware interface.
7. a method of testing, is characterized in that comprising the steps:
Set up test event storehouse;
Obtain the characteristic information of testing tool;
The test event list of applicable current test platform is selected according to characteristic information Automatic sieve in test event storehouse of testing tool;
User is arranged test characteristic parameter;
In described test event list, automatically carry out postsearch screening according to the test characteristic parameter that user is arranged, generate qualified test event sequence;
Parsing checking is carried out to qualified test event, performs test.
8. method of testing as claimed in claim 7, characterized by further comprising the step be configured testing tool hardware interface.
9. method of testing as claimed in claim 7, characterized by further comprising inquiry test data, testing apparatus is done to the step of data analysis.
10. method of testing as claimed in claim 7, after it is characterized in that resolving qualified test event, open all communication port needing the testing tool used, and the equipment verifying the actual connection of each communication port whether with hardware interface accordant configuration information, if any one testing tool authentication failed will not allow to perform current test.
11. method of testings as claimed in claim 7, when it is characterized in that test, produce test script according to qualified test event, sending controling instruction completes test to testing tool in order.
12. method of testings as claimed in claim 7, is characterized in that the method selecting the test event list of applicable current test platform according to characteristic information Automatic sieve from test event storehouse of testing tool is as follows:
(1) according to the characteristic information generating feature set A of current test platform testing tool;
(2) obtain the required characteristic information using testing tool of each test event in test event storehouse, generate each test event characteristic of correspondence set B i respectively, i=1...n, n are test event sum;
(3) if characteristic set Bi is included in characteristic set A, then the test event corresponding to characteristic set Bi is added in the test event list of applicable current test platform.
13. method of testings as claimed in claim 7, it is characterized in that the test characteristic parameter arranged according to user automatically carries out postsearch screening in described test event list, the method generating qualified test event sequence is as follows:
(1) the test characteristic parameter arranged according to user generates test characteristic parameter identification code set D;
(2) obtain the test characteristic parameter identification code of each test event in test event list simultaneously, generate the test characteristic parameter identification code set Cj that each test event is corresponding respectively, j=1...m, m are the test event sum in test event list;
(3) if test characteristic parameter identification code set D is included in test characteristic parameter identification code set Cj, then test event corresponding for test characteristic parameter identification code set Cj is generated test event sequence.
14. tools being applied to test macro described in claim 1, it is characterized in that this tool is integrated with the multiple hardwares interface of satisfied different testing tool connection needs, and communicated with test macro by USB interface, user utilizes tool sending controling instruction to perform test to test macro, and test result feeds back to user by tool.
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 true CN105224430A (en) 2016-01-06
CN105224430B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108333445A (en) * 2017-12-26 2018-07-27 北京航天测控技术有限公司 A kind of instrument management method of the data acquisition instrument based on VxWorks
CN108334365A (en) * 2017-08-23 2018-07-27 中国电子科技集团公司第四十研究所 A kind of realization ATS software Instrumental parameter interface Dynamic Configuration
CN111624427A (en) * 2020-06-09 2020-09-04 南方电网科学研究院有限责任公司 Detection method and system of relay protection device
CN111679866A (en) * 2020-05-29 2020-09-18 苏州卓云软件有限公司 System capable of scheduling equipment to perform LED material test and test method thereof
CN112098769A (en) * 2020-08-07 2020-12-18 中国人民解放军海军七0一工厂 Component testing method, device and system
CN112214368A (en) * 2020-10-23 2021-01-12 英业达科技有限公司 Dynamic load control system and method thereof
CN112463579A (en) * 2019-09-09 2021-03-09 英业达科技有限公司 System and method for generating configuration file and testing by using configuration file

Citations (6)

* 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
US20060200816A1 (en) * 2005-03-02 2006-09-07 Advantest America R&D Center, Inc. Compact representation of vendor hardware module revisions in an open architecture test system
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

Patent Citations (6)

* 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
US20060200816A1 (en) * 2005-03-02 2006-09-07 Advantest America R&D Center, Inc. Compact representation of vendor hardware module revisions in an open architecture test system
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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334365A (en) * 2017-08-23 2018-07-27 中国电子科技集团公司第四十研究所 A kind of realization ATS software Instrumental parameter interface Dynamic Configuration
CN108334365B (en) * 2017-08-23 2021-04-13 中国电子科技集团公司第四十一研究所 Method for realizing instrument parameter interface dynamic configuration in automatic test system software
CN108333445A (en) * 2017-12-26 2018-07-27 北京航天测控技术有限公司 A kind of instrument management method of the data acquisition instrument based on VxWorks
CN108333445B (en) * 2017-12-26 2020-04-03 北京航天测控技术有限公司 Instrument management method of data acquisition instrument based on VxWorks
CN112463579A (en) * 2019-09-09 2021-03-09 英业达科技有限公司 System and method for generating configuration file and testing by using configuration file
CN111679866A (en) * 2020-05-29 2020-09-18 苏州卓云软件有限公司 System capable of scheduling equipment to perform LED material test and test method thereof
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
CN112214368A (en) * 2020-10-23 2021-01-12 英业达科技有限公司 Dynamic load control system and method thereof

Also Published As

Publication number Publication date
CN105224430B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN105224430A (en) A kind of test macro and method of testing
CN110764753B (en) Business logic code generation method, device, equipment and storage medium
CN109406916B (en) Test platform for semiconductor memory aging test device
CN102156784B (en) Verifying environment patterned chip verifying method and device
CN102387234B (en) Mobile phone automatic test device and method
CN105738792A (en) PCBA test device and test method
CN105760296B (en) Automatic test control method, device and terminal
CN109062777B (en) General automatic test system of track traffic signal equipment
CN107390110A (en) A kind of method, apparatus and system tested automatically PCBA
CN111078482B (en) Communication navigation equipment test system, method, equipment and readable storage medium
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN111736064B (en) Multi-type signal online test method and system for PCB
CN107992428A (en) The automatic test platform that a kind of Python is realized
CN103530209B (en) A kind of code keypad automated testing method
US20070233445A1 (en) Testing Suite for Product Functionality Assurance and Guided Troubleshooting
CN109491922A (en) One kind being based on model-driven test method and apparatus
CN105808510A (en) Debugging data verification method and device
CN109141588B (en) Automatic simulation test system for gas meter
CN113705026B (en) Digital modeling and intelligent detection system for power secondary equipment
CN104090186A (en) Analog quantity automatic check system based on safety instrument
CN112949018A (en) System and method for establishing direct current power transmission control and protection platform model and testing and verifying direct current power transmission control and protection platform model
CN107346128A (en) Automated testing method and system for lock control plate
CN101650655A (en) Method for analyzing test data of chip
CN114061646A (en) Automatic verification equipment for universal instrument and meter
CN106338747A (en) Lock-losing recapturing test method based on multi-mode multi-band OEM board card

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

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.

CP02 Change in the address of a patent holder