CN102354200A - Method and device for automatic test through control instrument - Google Patents
Method and device for automatic test through control instrument Download PDFInfo
- Publication number
- CN102354200A CN102354200A CN2011101554646A CN201110155464A CN102354200A CN 102354200 A CN102354200 A CN 102354200A CN 2011101554646 A CN2011101554646 A CN 2011101554646A CN 201110155464 A CN201110155464 A CN 201110155464A CN 102354200 A CN102354200 A CN 102354200A
- Authority
- CN
- China
- Prior art keywords
- instrument
- test
- trial function
- test case
- type
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for automatic test through a control instrument, used for controlling the instrument, reducing modification of a test tool and a test case in the test process and increasing the test efficiency. The method comprises the following steps of: uploading the test case through the test tool; obtaining the type of the instrument through executing the test case, and executing a first test function in the test case; and calling and executing a second test function corresponding to the type of the instrument according to the first test function in the test case so as to control the instrument to test. The invention also discloses a device for realizing the method.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to the method and the device that carry out automatic test through control instrument.
Background technology
For radio equipment manufacturer; (RF TEST) is extremely important for radio frequency testing; In research and development, in producing be must test a link, the RF index of wireless device in network access testing, should mark in the test and must pass through, the test of dispatching from the factory in the production also will be tested RF index.
Radio frequency testing be unable to do without instrument.Instrument is made up of some elements, has the technical tool than consummating function.It generally has several functionalities simultaneously, like measurement, demonstration, record or measurement, control, warning etc.Instrument and control system are instrument and meter and the two big pillars of measuring the hierarchy of control.
Now, instrument and meter with measurement control Development Trend is: the observing and controlling function is to systematization, web development.At present when carrying out radio frequency testing, to the model and the test purpose development and testing instrument of instrument, to realize robotization control to instrument through instrument.Wherein, testing tool comprises test case.The exploitation of testing tool needs the too development personnel to cooperate with the tester can to accomplish.If test purpose changes, need to revise test case, because test case is included in the testing tool, therefore when revising test case, must revise testing tool.Similarly, change if test employed instrument, then need revise testing tool, because testing tool comprises test case, then test case is also wanted corresponding modification again.
To sum up, prior art all needs development and testing instrument (comprising test case) at every turn when carrying out new test, make troubles for test process, influences testing efficiency.
Summary of the invention
The embodiment of the invention provides a kind of and carries out the method and the device of automatic test through control instrument, is used to realize the control to instrument, reduces in the test process modification to testing tool and test case, and the raising testing efficiency.
A kind ofly carry out the method for automatic test, may further comprise the steps through control instrument:
Load test case through testing tool;
Through implementation of test cases, obtain meter type from instrument, and first trial function in the implementation of test cases;
According to first trial function in the test case, call and second trial function that execution is corresponding with meter type, test with control instrument.
A kind of device of control instrument to test that be used for comprises:
Load-on module is used for loading test case through testing tool;
Execution module is used for through implementation of test cases, obtains meter type from instrument, and first trial function in the implementation of test cases;
Testing control module is used for first trial function according to test case, calls and second trial function that execution is corresponding with meter type, tests with control instrument.
In the embodiment of the invention testing tool is separated with test case, when the needs control instrument when testing, the test case that needs through the testing tool loading.Obtain meter type through implementation of test cases, call then and second trial function that execution is corresponding with meter type, realization is to the control of instrument, so that test.The embodiment of the invention is separated testing tool with test case; And call corresponding second trial function automatically to meter type; Do not need to be directed against different test purposes at every turn and come to write again whole testing tool and test case, obviously improved testing efficiency with different meter type.
Description of drawings
Fig. 1 is for carrying out the main method process flow diagram of automatic test in the embodiment of the invention through control instrument;
Fig. 2 is the method detailed process flow diagram of control instrument in the embodiment of the invention;
The structural drawing of Fig. 3 for installing in the embodiment of the invention;
Fig. 4 is the data flow diagram of control instrument in the embodiment of the invention.
Embodiment
In the embodiment of the invention testing tool is separated with test case, when the needs control instrument when testing, the test case that needs through the testing tool loading.Obtain meter type through implementation of test cases, call then and second trial function that execution is corresponding with meter type, realization is to the control of instrument, so that test.The embodiment of the invention is separated testing tool with test case; And call corresponding second trial function automatically to meter type; Do not need to be directed against different test purposes at every turn and come to write again whole testing tool and test case, obviously improved testing efficiency with different meter type.
Referring to Fig. 1, it is following to carry out the main method flow process of automatic test through control instrument in the present embodiment:
Step 101: load test case through testing tool.
Step 102: through implementation of test cases, obtain meter type from instrument, and first trial function in the implementation of test cases.
Step 103: according to first trial function in the test case, call and second trial function that execution is corresponding with meter type, test with control instrument.
Testing tool is mainly used in and loads and implementation of test cases in the present embodiment, need not be directed against instrument development and testing instrument, and testing tool can load corresponding test case to test purpose and get final product.To test purpose development and testing use-case, do not distinguish meter type, function realizes that test purpose gets final product.Can be that test case provides function library to various test purposes in advance, supply test case to call.In test case, increase query function, in the implementation of test cases process to instrument transmission types querying command, and the message that has meter type returned of receiving instrument.The type querying command is a generic command, and all types of instrument all can be discerned.Preferable, testing tool realized by different processes when carrying out with test case, realizes communicating by letter of testing tool and test case through interprocess communication, realizes separating of testing tool and test case preferably.Come to introduce in detail the process of control instrument below through several exemplary embodiments.
Referring to Fig. 2, the method detailed flow process of control instrument is following in the present embodiment:
Step 201: load test case through testing tool.
Step 202: through implementation of test cases, to instrument transmission types querying command.
Step 203: the message that has meter type that receiving instrument returns.If instrument is not returned meter type, then physical environment is checked in prompting.
Step 204: first trial function of script type in the identification test case.Trial function comprises instrument function, parameter and Visa (Virtual Instrument Software Architecture, virtual instrument software architecture) order.Adopt the test case of script type in the present embodiment, can reduce the complexity of development and testing use-case.Because test case adopts script to write, the radio frequency automated test tool must be discerned script, calls corresponding instrument order according to the order of script.In addition, because test case adopts script to write, utilize the logicality of script, the radio frequency automated test tool must be understood script by the invoke script language interpreter.
Step 205: to the trial function of the script type that identifies, call and second trial function of the discernible Machine Type of instrument that execution is corresponding with meter type, test with control instrument.Wherein, set up the corresponding relation of second trial function of first trial function and the various meter type of script type in advance, can call second trial function of corresponding Machine Type through this corresponding relation.Corresponding relation is referring to shown in the table 1.
Table 1
The trial function name of script type | Meter type | The trial function name of Machine Type |
Trial function A | Meter type 1 | Trial function name 1 |
Trial function B | Meter type 1 | Trial function name 2 |
Trial function A | Meter type 2 | Trial function name 3 |
Trial function B | Meter type 2 | Trial function name 4 |
In the process of control instrument, load corresponding test case through testing tool according to test purpose, set up new process through testing tool afterwards, with implementation of test cases.Testing tool and test case include the process communication unit, so that realize communicating by letter between testing tool and the test case.Testing tool is through the test case of process communication cell call script type; Especially call first trial function of script type wherein; And first trial function of script type discerned and explain; The process of explaining is second trial function that first trial function of script type is converted into the discernible Machine Type of instrument to meter type; Carry out second trial function of Machine Type then, realize control instrument.
Understood the implementation procedure of control instrument through above description, this process can be realized by device, introduces in the face of the inner structure and the function of device down.
Referring to Fig. 3, be used for control instrument in the present embodiment and comprise: load-on module 301, execution module 302 and testing control module 303 with the device of testing.But this device can be specially actuating equipments such as computer equipment.
Load-on module 301 is used for loading test case through testing tool.
Data stream between execution module 302, testing control module 303, instrumentation tap module 304 and the instrument can be referring to shown in Figure 4.
In the embodiment of the invention testing tool is separated with test case, when the needs control instrument when testing, the test case that needs through the testing tool loading.Obtain meter type through implementation of test cases, call then and second trial function that execution is corresponding with meter type, realization is to the control of instrument, so that test.The embodiment of the invention is separated testing tool with test case; And call corresponding trial function automatically to meter type; Do not need to be directed against different test purposes at every turn and come to write again whole testing tool and test case, obviously improved testing efficiency with different meter type.Preferable, test case adopts script type in the embodiment of the invention, and testing tool adopts higher level lanquage type (like the C++ class type), has good versatility and reduces development difficulty.Call the trial function of corresponding Machine Type after the trial function identification to script type, test with control instrument.The embodiment of the invention can reduce the issue number of times of testing tool, reduces personal error, improves testing efficiency and accuracy.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the present invention can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device; Make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computing machine or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.
Claims (11)
1. one kind is carried out the method for automatic test through control instrument, it is characterized in that, may further comprise the steps:
Load test case through testing tool;
Through implementation of test cases, obtain meter type from instrument, and first trial function in the implementation of test cases;
According to first trial function in the test case, call and second trial function that execution is corresponding with meter type, test with control instrument.
2. the method for claim 1; It is characterized in that through implementation of test cases, the step that obtains meter type from instrument comprises: through implementation of test cases; To instrument transmission types querying command, and the message that has meter type returned of receiving instrument.
3. the method for claim 1 is characterized in that, test case is a script type;
According to first trial function in the test case, to call and second trial function that execution is corresponding with meter type, the step of testing with control instrument comprises:
First trial function of script type in the identification test case;
To the trial function of the script type that identifies, call and second trial function of the discernible Machine Type of instrument that execution is corresponding with meter type, test with control instrument.
4. the method for claim 1 is characterized in that, first trial function in the test case comprises instrument function, parameter and virtual instrument software architecture Visa order.
5. like each described method in the claim 1 to 4, it is characterized in that testing tool and test case corresponding different process when carrying out.
6. one kind is used for the device of control instrument to test, and it is characterized in that, comprising:
Load-on module is used for loading test case through testing tool;
Execution module is used for through implementation of test cases, obtains meter type from instrument, and first trial function in the implementation of test cases;
Testing control module is used for first trial function according to test case, calls and second trial function that execution is corresponding with meter type, tests with control instrument.
7. device as claimed in claim 6; It is characterized in that; Execution module is through implementation of test cases, indicates instrumentation tap module in the said device to instrument transmission types querying command, and the message of returning through instrumentation tap module receiving instrument that has meter type.
8. device as claimed in claim 6 is characterized in that, test case is a script type;
First trial function of script type in the testing control module identification test case; Trial function to the script type that identifies; Call and second trial function of the discernible Machine Type of instrument that execution is corresponding with meter type, test with control instrument.
9. device as claimed in claim 6 is characterized in that, execution module is transferred to testing control module through interprocess communication with the trial function of script type.
10. device as claimed in claim 6 is characterized in that, first trial function in the test case comprises instrument function, parameter and Visa order.
11., it is characterized in that testing tool and test case corresponding different process when carrying out like each described device in the claim 6 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101554646A CN102354200A (en) | 2011-06-10 | 2011-06-10 | Method and device for automatic test through control instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101554646A CN102354200A (en) | 2011-06-10 | 2011-06-10 | Method and device for automatic test through control instrument |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102354200A true CN102354200A (en) | 2012-02-15 |
Family
ID=45577775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101554646A Pending CN102354200A (en) | 2011-06-10 | 2011-06-10 | Method and device for automatic test through control instrument |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102354200A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488562A (en) * | 2013-08-30 | 2014-01-01 | 中国联合网络通信集团有限公司 | Automated testing method and device |
CN106647694A (en) * | 2016-11-17 | 2017-05-10 | 控福(上海)智能科技有限公司 | Script loading method generally used for ECU durability test stand load and script loading device thereof |
CN103455422B (en) * | 2013-08-30 | 2017-08-04 | 上海斐讯数据通信技术有限公司 | Software function automated testing method |
CN108256363A (en) * | 2016-12-29 | 2018-07-06 | 大唐移动通信设备有限公司 | A kind of radio frequency test method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567801A (en) * | 2003-06-25 | 2005-01-19 | 华为技术有限公司 | Radio-frequency indicator testing method |
CN1841340A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method and system for testing drive software |
CN101226502A (en) * | 2008-02-03 | 2008-07-23 | 中兴通讯股份有限公司 | Automatization test method and system |
CN101770423A (en) * | 2009-12-25 | 2010-07-07 | 中兴通讯股份有限公司 | Test data generation method and test system |
CN201732154U (en) * | 2010-08-13 | 2011-02-02 | 北京新雷能科技股份有限公司 | Automatic test system of primary power supply |
US20110055807A1 (en) * | 2009-08-31 | 2011-03-03 | Accenture Global Services Gmbh | Integration environment generator |
CN102023861A (en) * | 2010-12-08 | 2011-04-20 | 中兴通讯股份有限公司 | Method and system for generating test script and test suite |
-
2011
- 2011-06-10 CN CN2011101554646A patent/CN102354200A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567801A (en) * | 2003-06-25 | 2005-01-19 | 华为技术有限公司 | Radio-frequency indicator testing method |
CN1841340A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method and system for testing drive software |
CN101226502A (en) * | 2008-02-03 | 2008-07-23 | 中兴通讯股份有限公司 | Automatization test method and system |
US20110055807A1 (en) * | 2009-08-31 | 2011-03-03 | Accenture Global Services Gmbh | Integration environment generator |
CN101770423A (en) * | 2009-12-25 | 2010-07-07 | 中兴通讯股份有限公司 | Test data generation method and test system |
CN201732154U (en) * | 2010-08-13 | 2011-02-02 | 北京新雷能科技股份有限公司 | Automatic test system of primary power supply |
CN102023861A (en) * | 2010-12-08 | 2011-04-20 | 中兴通讯股份有限公司 | Method and system for generating test script and test suite |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488562A (en) * | 2013-08-30 | 2014-01-01 | 中国联合网络通信集团有限公司 | Automated testing method and device |
CN103488562B (en) * | 2013-08-30 | 2016-08-24 | 中国联合网络通信集团有限公司 | Automated testing method and device |
CN103455422B (en) * | 2013-08-30 | 2017-08-04 | 上海斐讯数据通信技术有限公司 | Software function automated testing method |
CN106647694A (en) * | 2016-11-17 | 2017-05-10 | 控福(上海)智能科技有限公司 | Script loading method generally used for ECU durability test stand load and script loading device thereof |
CN108256363A (en) * | 2016-12-29 | 2018-07-06 | 大唐移动通信设备有限公司 | A kind of radio frequency test method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104778124B (en) | A kind of software application automated testing method | |
CN102243281B (en) | Batch test method and system for PCBA (Printed Circuit Board Assembly) of Bluetooth headset | |
US10243794B2 (en) | Open architecture for self-organizing networks | |
CN103336194A (en) | Integrated automatic test system of on-board computer of civilian airliner | |
CN105577293A (en) | Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system | |
CN101848042A (en) | Method and system for testing radio frequency of mobile phones | |
CN103279416A (en) | Storage software automated testing system and method | |
CN102354200A (en) | Method and device for automatic test through control instrument | |
CN102063355B (en) | Automatic test server and system of disk array | |
CN104866384A (en) | Method and system for rapidly testing and detecting mobile device | |
CN102214133A (en) | System for quickly diagnosing and testing computer hardware | |
CN106528416A (en) | android platform-based automation testing method and system | |
CN110134598B (en) | Batch processing method, device and system | |
CN105760300A (en) | Automatic STK/UTK service testing method and system | |
CN115328710A (en) | Qt-based radio frequency automatic test method | |
CN112732237B (en) | Method and system for constructing code-free development technology model | |
CN103049374A (en) | Automatic testing method and device | |
CN114238081A (en) | Method and system suitable for small satellite batch test | |
US9665668B2 (en) | Configuring a dispatching rule for execution in a simulation | |
KR101488815B1 (en) | Device for generating a script for menu test, menu test automatic system having the same, and method thereof | |
CN107423216A (en) | Debugging tool configuration method, readable storage medium and debugging tool configuration device | |
Kashef et al. | Wireless cyber-physical system performance evaluation through a graph database approach | |
CN116299140A (en) | Method for checking automatic assembly line of electric energy meter in full detection mode | |
CN104615539A (en) | Measurement parameter processing method and system | |
CN109347578A (en) | Radio frequency performance test method, device, computer equipment and readable storage medium storing program for executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120215 |