CN104461795B - Serial ports mouse automatic test approach - Google Patents
Serial ports mouse automatic test approach Download PDFInfo
- Publication number
- CN104461795B CN104461795B CN201310420985.9A CN201310420985A CN104461795B CN 104461795 B CN104461795 B CN 104461795B CN 201310420985 A CN201310420985 A CN 201310420985A CN 104461795 B CN104461795 B CN 104461795B
- Authority
- CN
- China
- Prior art keywords
- serial ports
- computer
- program interface
- ports mouse
- described program
- 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 38
- 238000013459 approach Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims abstract description 14
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 241001062009 Indigofera Species 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Landscapes
- Tests Of Electronic Circuits (AREA)
- Debugging And Monitoring (AREA)
Abstract
A kind of serial ports mouse automatic test approach, this method include:(1)In setting program interface on the computer;(2)The number of the computer com port is obtained by the program;(3)Judge to whether there is the serial ports mouse device in the computer, if in the presence of performing step(4)If being not present, step is performed(8);(4)The number and state of the serial ports mouse device are recorded, the state of the serial ports mouse device is shown by the program interface respectively;(5)Judge whether the number of the serial ports mouse device is identical with the number of the computer com port, if identical, performs step(6)If differing, step is performed(8);(6)If all " ENABLE " that the program interface is shown, performs step(7)If the program interface shows at least one " UNABLE ", step is performed(8);(7)The program interface shows " PASS ", then bolt down procedure, records result;(8)The program interface shows " FAIL ", then bolt down procedure, records result.
Description
【Technical field】
The present invention relates to a kind of automatic test approach of mouse, and in particular to a kind of automatic test approach of serial ports mouse.
【Background technology】
At present, the connecting interface type between mouse and host computer common are com port(Serial ports), PS/2, USB and indigo plant
Four type of tooth.Since the mouse data transfer rate of com port and PS/2 interface types is low, so that medium-to-high grade mouse cannot play it
High performance advantage, and do not support hot plug.With the development of technology, the mouse of serial ports and PS/2 interface types also will be by
Gradually it is eliminated.
However, in some adverse circumstances, for example computer, such as military computer are used in water, heat, cold environment, in order to
Anti- rugged environment, computer manufacturer answers demand that the external interface of computer can be arranged to the form of com port, so that serial ports type
Mouse also applied in some particular surroundings.
Generally in above-mentioned computer is produced, in order to test serial ports mouse whether the purpose that can be used, first staff
Serial ports mouse can be generally inserted at the com port of computer manually, then check whether that there are this in the equipment manager of computer
Serial ports mouse device, and if so, rocking mouse, test is successful, otherwise unsuccessful if it can use.On however,
The test process stated is artificial judgement, artificially checks, so that easily erroneous judgement, leakage are seen, it is impossible to ensure the quality of product, and survey
The result of examination cannot preserve, and be not easy to follow-up tracking.
In view of this, it is really necessary to develop a kind of serial ports mouse automatic test approach, to solve above-mentioned manually to test
The defects of generation.
【The content of the invention】
It is therefore an object of the present invention to a kind of serial ports mouse automatic test approach is developed, to solve the above problems.
In order to reach above-mentioned target, the present invention provides a kind of serial ports mouse automatic test approach, it has applied to test
In the computer of com port, the computer has an at least com port, and the serial ports mouse automatic test approach comprises the following steps:
(1)In setting program interface on the computer;
(2)The number of the computer com port is obtained by described program;
(3)Judge to whether there is the serial ports mouse device in the computer, if in the presence of performing step(4)If do not deposit
Then performing step(8);
(4)Record the number of the serial ports mouse device and corresponding state, the state difference of the serial ports mouse device
Pass through described program interface display;
(5)Judge whether the number of the serial ports mouse device is identical with the number of the computer com port, if identical,
Perform step(6)If differing, step is performed(8);
(6)All " ENABLE " if of described program interface display, performs step(7)If described program interface is shown
Show at least one " UNABLE ", then perform step(8);
(7)Described program interface display " PASS ", then bolt down procedure, records result;
(8)Described program interface display " FAIL ", then bolt down procedure, records result.
Preferably, described program passes through WMI(Windows Management Istrumentation, window management rule
Model)In Win32_Pointing Device instruct and judge that the serial ports mouse device whether there is.
Preferably, the number of the computer com port obtains in the configuration file of the computer.
Preferably, the serial ports mouse device is corresponded with the computer com port respectively.
Preferably, described program interface is provided with status bar and result bar.
Preferably, " ENABLE " either " UNABLE " by the status bar show " PASS " or
" FAIL " is shown by the result bar.
Compared to the prior art, serial ports mouse automatic test approach of the present invention, which may replace, manually realizes automatic test and record
The process of test result, test process of the invention is simple, can quickly test whether serial ports mouse can use, and greatly improves
Work efficiency, avoids the erroneous judgement that artificial test produces, and leakage is seen it cannot be guaranteed that the problem of product quality.
【Brief description of the drawings】
Fig. 1 is schematically shown as the flow chart of serial ports mouse automatic test approach of the present invention.
【Embodiment】
In order to reach above-mentioned target, the present invention provides a kind of serial ports mouse automatic test approach, it has applied to test
In the computer of com port, the computer has an at least com port.When test, the serial ports mouse is sequentially inserted into first described
In the com port of computer, test program is secondly opened, please refers to Fig.1 and illustrates, the serial ports mouse automatic test approach includes following
Step:
S101:In setting program interface on the computer;
S102:The number of the computer com port is obtained by described program;
S103:Judge to whether there is the serial ports mouse device in the computer, if in the presence of, step S104 is performed, if
It is not present, then performs step S108;
S104:Record the number of the serial ports mouse device and corresponding state, the state point of the serial ports mouse device
Do not pass through described program interface display;
S105:Judge whether the number of the serial ports mouse device is identical with the number of the computer com port, if identical,
Step S106 is then performed, if differing, performs step S108;
S106:If all " ENABLE " of described program interface display, step S107 is performed, if described program interface
Show at least one " UNABLE ", then perform step S108;
S107:Described program interface display " PASS ", then bolt down procedure, records result;
S108:Described program interface display " FAIL ", then bolt down procedure, records result.
In this present embodiment, described program passes through WMI(Windows Management Istrumentation, window pipe
Manage specification)In Win32_Pointing Device instruct and judge that the serial ports mouse device whether there is.
In this present embodiment, the number of the computer com port obtains in the configuration file of the computer.
In this present embodiment, the serial ports mouse device is corresponded with the computer com port respectively.
In this present embodiment, described program interface is provided with status bar and result bar.
In this present embodiment, described " ENABLE " or " UNABLE " shown by the status bar, " PASS " or
Person " FAIL " is shown by the result bar.
Serial ports mouse automatic test approach of the present invention may replace the process for manually realizing automatic test and record test result,
The test process of the present invention is simple, can quickly test whether serial ports mouse can use, greatly improve work efficiency, avoid
The erroneous judgement that artificial test produces, leakage are seen it cannot be guaranteed that the problem of product quality.
It is noted that the invention is not restricted to the above embodiment, any person skilled in the art is based on this hair
Any simple modification that bright technical solution makees above-described embodiment, equivalent variations each fall within the protection model of the present invention with modification
Enclose.
Claims (5)
1. a kind of serial ports mouse automatic test approach, it is applied in computer of the test with com port, and the computer has at least
One com port, it is characterised in that the serial ports mouse automatic test approach comprises the following steps:
(1) in setting program interface on the computer;
(2) obtain the number of the computer com port by described program, the serial ports mouse device respectively with the computer com port
Correspond;
(3) judge to whether there is the serial ports mouse device in the computer, if in the presence of, step (4) is performed, if being not present,
Then perform step (8);
(4) number of the serial ports mouse device and corresponding state are recorded, the state of the serial ports mouse device passes through respectively
Described program interface display;
(5) judge whether the number of the serial ports mouse device is identical with the number of the computer com port, if identical, performs
Step (6), if differing, performs step (8);
(6) if all " ENABLE " of described program interface display, step (7) is performed, if described program interface display is extremely
Few one " UNABLE ", then perform step (8);
(7) described program interface display " PASS ", then bolt down procedure, records result;
(8) described program interface display " FAIL ", then bolt down procedure, records result.
2. serial ports mouse automatic test approach according to claim 1, it is characterised in that described program passes through in WMI
Win32_Pointing Device are instructed to judge that the serial ports mouse device whether there is.
3. serial ports mouse automatic test approach according to claim 1, it is characterised in that the number of the computer com port
Obtained in the configuration file of the computer.
4. serial ports mouse automatic test approach according to claim 1, it is characterised in that described program interface is provided with shape
State column and result bar.
5. serial ports mouse automatic test approach according to claim 4, it is characterised in that " ENABLE " or
" UNABLE " is shown by the status bar, and " PASS " or " FAIL " are shown by the result bar.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310420985.9A CN104461795B (en) | 2013-09-16 | 2013-09-16 | Serial ports mouse automatic test approach |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310420985.9A CN104461795B (en) | 2013-09-16 | 2013-09-16 | Serial ports mouse automatic test approach |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461795A CN104461795A (en) | 2015-03-25 |
CN104461795B true CN104461795B (en) | 2018-04-20 |
Family
ID=52907891
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310420985.9A Expired - Fee Related CN104461795B (en) | 2013-09-16 | 2013-09-16 | Serial ports mouse automatic test approach |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104461795B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0768619A1 (en) * | 1995-10-16 | 1997-04-16 | AT&T Corp. | Computer mouse with sensory alerting to prevent human injury |
CN1369796A (en) * | 2001-02-13 | 2002-09-18 | 英业达股份有限公司 | Method for authenticating mouse functions in Windows environment |
CN1501265A (en) * | 2002-11-12 | 2004-06-02 | 联想(北京)有限公司 | Data record, simulation apparatus and method for input operation of keyboard and mouse |
CN2689345Y (en) * | 2004-02-26 | 2005-03-30 | 联想(北京)有限公司 | Tester of USB port |
CN103175683A (en) * | 2013-03-25 | 2013-06-26 | 东莞市东宇机械设备有限公司 | Mouse function detection method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200407711A (en) * | 2003-10-17 | 2004-05-16 | Via Tech Inc | Testing apparatus |
-
2013
- 2013-09-16 CN CN201310420985.9A patent/CN104461795B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0768619A1 (en) * | 1995-10-16 | 1997-04-16 | AT&T Corp. | Computer mouse with sensory alerting to prevent human injury |
CN1369796A (en) * | 2001-02-13 | 2002-09-18 | 英业达股份有限公司 | Method for authenticating mouse functions in Windows environment |
CN1501265A (en) * | 2002-11-12 | 2004-06-02 | 联想(北京)有限公司 | Data record, simulation apparatus and method for input operation of keyboard and mouse |
CN2689345Y (en) * | 2004-02-26 | 2005-03-30 | 联想(北京)有限公司 | Tester of USB port |
CN103175683A (en) * | 2013-03-25 | 2013-06-26 | 东莞市东宇机械设备有限公司 | Mouse function detection method |
Also Published As
Publication number | Publication date |
---|---|
CN104461795A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9197629B2 (en) | Remote direct memory access authentication of a device | |
CN108133732A (en) | Performance test methods, device, equipment and the storage medium of flash chip | |
CN107609188B (en) | Data synchronization verification method based on golden gate | |
CA2674319A1 (en) | Methods and systems for solving problems with hard-coded credentials | |
US9218259B2 (en) | Computing device and method for testing SOL function of a motherboard of the computing device | |
CN105448348B (en) | A kind of chip restorative procedure and device | |
CN105786695A (en) | Data test method and system | |
CN109522228A (en) | Interface automatic test data configuration method, apparatus, platform and storage medium | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN105929270A (en) | Fault injection method and device | |
CN102368836A (en) | Method for realizing flexible configuration transference between passive optical network (PON) ports | |
CN104298761A (en) | Implementation method for master data matching between heterogeneous software systems | |
CN105320510B (en) | A kind of method and device of automatic tracing data relationship | |
CN110896489A (en) | Authentication method, device, equipment and storage medium | |
CN102620746A (en) | Navigator testing system | |
CN106850342A (en) | The method and device of test interchanger compatibility and stability | |
CN104461795B (en) | Serial ports mouse automatic test approach | |
CN105373446B (en) | It is a kind of based on the system self-repairing method drilled automatically and device | |
CN108287770A (en) | Electronic equipment, information processing method and readable storage medium storing program for executing | |
CN109522162A (en) | A kind of data back up method, system, equipment and computer readable storage medium | |
CN103077104B (en) | Verification method, device and system for on-chip system | |
CN109741780A (en) | A kind of method and its system based on linux system test SSD performance | |
CN105389253A (en) | Method and system for simulating client to execute network element management based on multithreading technology | |
CN105511995B (en) | A kind of graphics processor verification method | |
CN105893170A (en) | Method and system for providing resource access |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180420 |
|
CF01 | Termination of patent right due to non-payment of annual fee |