CN101276305B - Automatic test system and method - Google Patents
Automatic test system and method Download PDFInfo
- Publication number
- CN101276305B CN101276305B CN2008101053439A CN200810105343A CN101276305B CN 101276305 B CN101276305 B CN 101276305B CN 2008101053439 A CN2008101053439 A CN 2008101053439A CN 200810105343 A CN200810105343 A CN 200810105343A CN 101276305 B CN101276305 B CN 101276305B
- Authority
- CN
- China
- Prior art keywords
- test
- server module
- module
- server
- client
- 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.)
- Expired - Fee Related
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 126
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000005284 excitation Effects 0.000 claims abstract description 39
- 230000002093 peripheral effect Effects 0.000 claims description 31
- 238000013459 approach Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000002131 composite material Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000005086 pumping Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Images
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The present invention provides a system of automatic test and its method, under the condition of no PC drive, the automatic test of the computer external device is realized by utilizing the frames of the client and the server, combined with an auxiliary tester. The system and method mainly includes: a testing excitation signal is transmitted from the client to the server module; the server generates a testing case corresponding to the testing excitation signal after receiving the testing excitation signal, controlling the computer external device to process teat by adopting USB OTG mode and utilizing the test case; the server module compares the testing result of the computer external device with the expected result, transmitting the comparing result to the client module. The system overcomes faults of bad flexibility, high consumption of resource and human power.
Description
Technical field
The present invention relates to a kind of Auto-Test System, especially a kind of system and method thereof that computer peripheral equipment is tested automatically.
Background technology
Along with the development of computing machine and infotech, for the normal operation of safeguards system or the quality of assurance product, automatic test is implemented and fast development in every profession and trade with the characteristic of its highly effective.Auto-Test System (Automated Test System) is meant and can adopts computer control, realizes the system of automatic test, just to finishing excitation, measurement, data processing automatically and showing or the general designation of the type systematic that outputs test result.
In the field of automatic testing of computer peripheral equipment, generally, make peripheral hardware enter various functional statuses in conjunction with driving and the control of PC, in conjunction with various testing tools it is comprehensively tested again.
But at real PC test environment, a kind of state of every test need expend a large amount of time, if repeatedly test takes time and effort especially; Simultaneously, under the PC environment, need SDK (Software Development Kit) and test program set, this can expend a lot of resources supplIess or fund.And the dirigibility of test is also very poor, is unsuitable for making various adjustment.Besides, no matter for hardware or software, test macro is all very huge.
Summary of the invention
The objective of the invention is to overcome the very flexible, test resource requirement and the wasteful shortcoming of manpower that exist in the automatic test of computer peripheral equipment in the prior art; Utilize the framework of client and server, under the situation that no PC drives, realize automatic test, a kind of system and method thereof of automatic test of brand-new computer peripheral equipment is provided computer peripheral equipment in conjunction with the subtest instrument.
According to a first aspect of the invention, provide a kind of system that comprises the automatic test of client modules, server module, computer peripheral equipment to be tested, having comprised:
Wherein said client modules and server module all are to be in the situation that no PC drives, and client modules and server module are controlled by controller respectively, and can communicate with one another;
Described server module also comprises the functional module of USB OTG, is connected between the controller and computer peripheral equipment of server;
The controller of described server module is under the effect from the test and excitation of client modules, controlling this server module produces after receiving this test and excitation signal and the corresponding test cases of described test and excitation signal, this server module enters the corresponding function state to test according to described test cases by USB OTG functional module control computer peripheral hardware, and computer peripheral equipment gives a response server module after test;
Described server module judges whether to conform to expected result according to the response of computer peripheral equipment, and the comparison result signal is passed to client.
Preferably, described client modules comprises the self-test actuator module, is used to produce the test and excitation signal; Described server module comprises exciter response device module, be used for response test and to the response the result compare.
Preferably, described client modules and server module comprise the GPIO module respectively, and communicate by the GPIO module.
Preferably, the controller of described client modules and server module is MCU.
Preferably, described client modules comprises the test result collector module, is used to collect the comparison signal that server module returns.
In a preferred embodiment, described computer peripheral equipment to be tested is PC Camera.
According to a second aspect of the invention, a kind of automatic test approach of the computer peripheral equipment based on the client and server structure system is provided, described client modules of this method and server module are controlled by controller respectively under no PC drive condition, said method comprising the steps of:
Send the test and excitation signal by client modules to server module;
Server module produces and the corresponding test cases of described test and excitation signal after receiving the test and excitation signal, adopt USB OTG mode control computer peripheral hardware to enter the corresponding function state according to described test cases, after test, send test result back to server module to test;
Server module will be compared from the test result and the expected results of computer peripheral equipment, and comparison result is returned to client modules.
Preferably, described client modules and server module adopt the GPIO mode to communicate, so that transmit test and excitation signal and comparison result.
Preferably, the controller of described client modules and server module is MCU.
Preferably, described method comprises the step that client modules is preserved the comparison result.
According to the present invention, for the automatic test of computer peripheral equipment provides a kind of brand-new system and method.The system of test is microization more, and the equipment and the personnel of input also are controlled effectively, for test job provides cost savings; Simultaneously, all can adjust flexibly for the product of different model.
Description of drawings
Below with reference to accompanying drawings specific embodiments of the present invention is described in detail, wherein:
Fig. 1 is the structural representation of computer peripheral equipment Auto-Test System of the present invention;
Fig. 2 is a client process flow diagram of the present invention;
Fig. 3 is server flow process figure of the present invention; And
Fig. 4 is test waveform figure of the present invention.
Embodiment
In order to realize the more brief automatic test of computer peripheral equipment flexibly, the invention provides a kind of under the situation that no PC drives new control structure.That is, respectively client and server is controlled, and made computer peripheral equipment enter various functional statuses to carry out functional test by controller.Next will be example with the automatic test of PC Camera, specify this system and method thereof.
Fig. 1 illustrates the structural representation of computer peripheral equipment Auto-Test System.As shown in Figure 1, this automatization test system mainly comprises four modules, is respectively client modules, server module, PC Camera module to be tested and subtest instrument.The function of each module is described respectively below, and the relation between them.
Client modules comprises the MCU controller, self-test actuator, collection device and GPIO communication module.Self-test actuator produces the test and excitation case automatically, by GPIO the excitation of client is sent to server, is the source that produces excitation.The collection device is used for server the result of test is sent to by GPIO under the situation of client, preserves test result, for analysis result provides the data basis.The function of MCU and GPIO is fairly simple, and MCU mainly is the control total system, and GPIO is the passage of communication.
Server module mainly is made up of four parts, is respectively the MCU controller, the exciter response device, and USB OTG and GPIO communication module are formed.
The exciter response device mainly is the test and excitation case that the customer in response end sends, according to client's excitation generation test cases.Test cases works by USB OTG again.
USB OTG module has mainly realized the function of USB Host, can freely control the PCCamera chip.Here be noted that PC Camera is the Slave chip of a USB, USB Host is that initiatively PC Camera is passive.USB OTG major control PC Camera enters different states in the present invention.Below different states, carry out response test, see whether conform to expected result.Just return correct signal to client if meet, give client otherwise just return rub-out signal.
PC Camera module, the also equipment that promptly will test, this PC Camera is a USBCamera, it is that USB Slave equipment and USB OTG link, and realizes the transmission of data.
Subtest instrument module mainly is the test at PC Camera performance, when PCCamera enters different conditions, it is carried out the property comparison test.
Fig. 2 illustrates the workflow diagram of client.Since the stage 200, client begins start-up system, in 202 stages client is carried out initialization.In 204 stages, select the excitation case in the self-test actuator, these excitation cases can be to finish writing in advance, select to the user after also can working as system start-up.Judge whether to finish all test and excitation cases then and send, for the test and excitation case, the general transmission repeatedly, promptly a case has a plurality of test and excitation actions.If finish, just enter ending phase 214.If do not finish, in the stage 206, send the test cases excitation, require to send by individual.The result who sends is judged, see and whether receive that test finishes.Finish if receive test, entered for 210 stages, accept test result.In 212 stages, deposit test result in the test gatherer then, then returned for 206 stages, continue the work in this stage.Do not finish if receive test, just entered for 208 stages, wait for a period of time, generally very short.And then return and judge, see whether receive the test finish.
Fig. 3 illustrates the workflow diagram of server.Since the stage 300, server end begins start-up system, in 302 stages server end is carried out initialization.Judge then whether the exciter response device of server receives excitation.If no, just entered for 308 stages, wait for a period of time, generally very short, and then return and judge.If receive excitation, then entered for 304 stages, in the exciter response device, find corresponding test cases.Then in 306 stages, case is controlled PC Camera by USBOTG, and tests.After test is finished, judge whether test result is correct.If correct, entered for 312 stages and return the correct result of client; If incorrect, entered for 310 stages and return the client error result.Behind this stage end-of-job, return and judge whether the exciter response device receives excitation.
In this example, the communication of client and server is undertaken by four GPIO pin, all is two input pins and two output pins concerning client and server, specific to how to realize communication, can define these four pin flexibly.This simple communications protocol also can freely define.
Fig. 4 illustrates some simple test waveforms that the present invention realizes.Illustrate between the client and server end how to communicate by letter by this waveform.Use four GPIO pin in this example and carried out client and server communication.All two input pins and two output pins concerning client and server.The pin of High Speed and Suspend is an output pin concerning client in the drawings, and Finish and Result pin are input pins; Then on the contrary to server end, HighSpeed and Suspend pin are input pins, and Finish and Result pin are output pins.
Client sends excitation to server by High Speed and two output pins of Suspend (is input to server) in this example, and returning of result is by Finish and these two input pins of Result (is output to server); Self-test actuator only produces two kinds of pumping signals in this example, below the detailed excitation waveform in the key drawing:
As can be seen from the figure, client has two kinds to the signal of server input.First kind is that the signal of Suspend is low signal (low level) always, and the signal of High Speed is from low to high, and up to the Finish signal from low to high, from high to low the time, the signal of High Speed is step-down just again.Test and excitation below this composite signal representative.When High Speed signal from low to high and the Suspend signal always when low, server detects this two signals, will allow the exciter response device of server give excitation of USB OTG.Allow USB OTG make that PC Camera powers on, set, and the handshake procedure of beginning USB.The descriptor that obtains PC Camera is simultaneously carried out self-verifying to it, can claim that this process is USB High Speed.If the result of this process is correct, server at first sends one and finishes signal so, and the Finish signal is uprised from low, represents that this test cases finishes.Simultaneously the result is sent it back client, if the Finish signal from low uprise during this period of time in, Result uprises from low, illustrate that so test result is correct, otherwise test result is wrong.
Second kind is that High Speed signal is a low signal always, and the signal of Suspend is from low to high, and the test and excitation of this explanation client is to make PC Camera enter the Suspend state.After this state was equivalent to PC Camera insertion PC in fact, PC entered dormant state.The electric current of PC Camera very little (comparing duty) in theory, at this moment the outside connects a subtest instrument, such as reometer or other instruments, can monitor the variation of PC Camera electric current at any time.
In a word, the self-test actuator of client is constantly tested according to the state of test, the result of test is kept in the test gatherer, and such ATE (automatic test equipment) can satisfy the demand of test substantially, but equipment is simple and convenient, easy operating can play the result of automatic test.
What one of ordinary skill in the art will appreciate that is, more than Shuo Ming embodiment all is that the test with PC Camera is an example, for different computer peripheral equipments, and for example keyboard or mouse, according to design of the present invention, also can realize based on the test macro of this structure.Simultaneously, because it has realized microization, can be for the client and server module on different devices, have a style of one's own; Also can integrate, be placed in the monoblock circuit board.
More than specific descriptions of the present invention are intended to illustrate the implementation of specific embodiments can not be interpreted as it is limitation of the present invention.Those of ordinary skills can make various variants on the basis of the embodiment that describes in detail under instruction of the present invention, these variants all should be included within the design of the present invention.The present invention's scope required for protection is only limited by described claims.
Claims (10)
1. a computer peripheral equipment Auto-Test System comprises client modules, server module and computer peripheral equipment to be tested, it is characterized in that:
Described client modules and server module all are to be under the situation of no PC driving, and client modules and server module are controlled by controller separately respectively, and can communicate with one another;
Described server module also comprises the functional module of USB OTG, is connected between the controller and computer peripheral equipment of server;
The controller of described server module is under the effect from the test and excitation signal of client modules, the Control Server module produces after receiving the test and excitation signal and the corresponding test cases of described test and excitation signal, server module is controlled this computer peripheral equipment according to described test cases by USB OTG functional module and is entered the corresponding function state to test, and computer peripheral equipment gives a response server module after test; And
Described server module judges whether to conform to expected result according to the response of computer peripheral equipment, and the comparison result signal is passed to client.
2. system according to claim 1 is characterized in that: described client modules comprises the self-test actuator module, is used to produce the test and excitation signal; Described server module comprises exciter response device module, be used for response test and to the response the result compare.
3. system according to claim 1 is characterized in that: described client and server module comprises the GPIO module respectively, and intercoms mutually by the GPIO module.
4. system according to claim 1 is characterized in that: the controller of described client modules and server module is MCU.
5. system according to claim 1 is characterized in that: described client modules comprises the test result collector module, is used to collect the comparison signal that server module returns.
6. according to each described system of claim 1 to 5, it is characterized in that: described computer peripheral equipment to be tested is PC Camera.
7. computer peripheral equipment automatic test approach, this method is utilized the client and server structure system, and described client modules and server module are controlled by controller respectively under no PC drive condition, said method comprising the steps of:
Send the test and excitation signal by client modules to server module;
Server module produces and the corresponding test cases of described test and excitation signal after receiving the test and excitation signal, adopt the mode control computer peripheral hardware of USB OTG to enter the corresponding function state according to described test cases, after test, send test result back to server module to test; And
Server module will be compared from the test result and the expected results of computer peripheral equipment, and comparison result is returned to client modules.
8. method according to claim 7 is characterized in that: described client modules and server module adopt the GPIO mode to communicate, so that transmit test and excitation signal and comparison result.
9. method according to claim 7 is characterized in that: the controller of described client and server is MCU.
10. method according to claim 7 is characterized in that: also comprise the step that client is preserved the comparison result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101053439A CN101276305B (en) | 2008-04-28 | 2008-04-28 | Automatic test system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101053439A CN101276305B (en) | 2008-04-28 | 2008-04-28 | Automatic test system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101276305A CN101276305A (en) | 2008-10-01 |
CN101276305B true CN101276305B (en) | 2011-06-08 |
Family
ID=39995766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101053439A Expired - Fee Related CN101276305B (en) | 2008-04-28 | 2008-04-28 | Automatic test system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101276305B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236592A (en) * | 2010-05-07 | 2011-11-09 | 华为终端有限公司 | Computer peripheral and computer compatibility test method, device and system |
CN106093643A (en) * | 2016-06-14 | 2016-11-09 | 深圳百为通达科技有限公司 | The method of testing of electronic product stability |
CN107870271A (en) * | 2016-11-03 | 2018-04-03 | 珠海市杰理科技股份有限公司 | Automated testing method and device |
-
2008
- 2008-04-28 CN CN2008101053439A patent/CN101276305B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101276305A (en) | 2008-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN206400286U (en) | A kind of test system based on hardware in loop equipment | |
CN101324860B (en) | Mainboard test system and test method | |
US7548828B2 (en) | Automatic test equipment platform architecture using parallel user computers | |
CN103376340B (en) | A kind of keyset, multi-platform serial test system and method | |
CN102156671A (en) | System for automatically testing computer mainboard | |
CN108983077B (en) | Circuit board test system and test method based on JTAG link | |
CN106445811A (en) | SecureCRT-based automated test system and method | |
CN102967815A (en) | Chip testing method, automated testing equipment and system | |
CN101276305B (en) | Automatic test system and method | |
CN112631937A (en) | Automatic CAN operation testing method and device for T-Box | |
KR101440505B1 (en) | Real Time Verification Device for the Flight Control Computer and Controlling Method therefor | |
US20220291283A1 (en) | Automatic chip testing system and method | |
CN102884515B (en) | Serial ports re-orientation processes method, apparatus and system | |
CN114328045A (en) | I2C debugging method, system and device for BMC and computer readable storage medium | |
CN204347152U (en) | A kind of Multi-bus circuit board test diagnosis system | |
CN106612215A (en) | Integrated remote detection device and method based on Ethernet | |
CN115904849B (en) | PCIE link signal testing method, system, computer equipment and medium | |
US20110208448A1 (en) | Test apparatus and information processing system | |
KR101967769B1 (en) | Simulation system based on hardware in the loop simulation | |
Jha | Development of test automation framework for testing avionics systems | |
CN112486877B (en) | Outfield guarantee and test platform of generalized FC conversion interface module | |
Huppler et al. | Spec: Enabling efficiency measurement | |
CN111221684B (en) | Detection method of server | |
US20080262825A1 (en) | Arrangement for transmitting information | |
CN112304653A (en) | Universal comprehensive test method and system for satellite test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110608 Termination date: 20120428 |