CN104932958B - Computer card class equipment interface function automatic detection method - Google Patents
Computer card class equipment interface function automatic detection method Download PDFInfo
- Publication number
- CN104932958B CN104932958B CN201410098881.5A CN201410098881A CN104932958B CN 104932958 B CN104932958 B CN 104932958B CN 201410098881 A CN201410098881 A CN 201410098881A CN 104932958 B CN104932958 B CN 104932958B
- Authority
- CN
- China
- Prior art keywords
- card
- computer
- equipment
- parameter
- 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
- 238000001514 detection method Methods 0.000 title claims abstract description 13
- 238000012360 testing method Methods 0.000 claims abstract description 34
- 238000010998 test method Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 description 5
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
A kind of computer card class equipment interface function automatic detection method comprising step:(1)Several card equipments are corresponding in turn on the external interface for being inserted into the computer;(2)The corresponding execution shelves of card equipment described in routine call by the computer;(3)The information of the card equipment is obtained by the equipment manager of the computer by program;(4)The standard file being stored in the card equipment is obtained by program, the content of the standard file corresponds to the numerical value for being recorded as first parameter and the second parameter;(5)Step(3)With step(4)Whether the content of middle acquisition is consistent, if unanimously thening follow the steps(6), the test crash if inconsistent, and test result is uploaded to server;(6)Operation is written and read to the standard file by program, is successfully tested if reading and writing successfully, if read-write failure test crash.The present invention can improve working efficiency and meanwhile can ensure product quality and test after result be able to record and track.
Description
【Technical field】
The present invention relates to a kind of test method of computer external interface function, more particularly to a kind of computer card class equipment interface
Function automatic detection method.
【Background technology】
Every computer, no matter desktop computer or notebook, it is especially existing inside and outside all there are many interface and slot
Military discipline computer, due to the Special use environment of military discipline computer, whether quantity or function will be than common for external interface
Computer wants more strong, for example, the existing external card class equipment interface of military discipline computer just have SD card, mmc card, SYCARD cards and
Numerous interface slots such as NEWCARD cards.
The existing card equipment interface testing in factory end is the execution of single test program, i.e., a kind of card equipment interface pair
Answer a test program, this card equipment of corresponding program need to be only inserted on the interface of computer by when test, program start from
Dynamic detecting whether with the presence of the card equipment hardware device, if being successfully tested in the presence of if, there is no test crash.On however
The test process stated is what single program executed, therefore also to select corresponding journey for different card equipments in test process
Sequence is tested, to will greatly reduce working efficiency;On the other hand, test process Program is only by judging whether to deposit
Test result is just obtained in hardware device, has no and judges whether the interface of this corresponding card equipment has the function of read-write again,
Therefore this kind of test method cannot be guaranteed the good of external interface function, and the result after testing can not preserve with it is subsequent
Tracking.
In view of this, it is really necessary to provide a kind of automatic test approach, to solve, above-mentioned working efficiency is low, cannot be guaranteed production
Quality and it can not subsequently preserve the problem of tracking.
【Invention content】
Therefore, the purpose of the present invention is to provide a kind of computer card class equipment interface function automatic detection methods, in solution
State problem.
In order to achieve the above object, computer card class equipment interface function automatic detection method provided by the invention comprising
Following steps:
(1)Several card equipments are corresponding in turn on the external interface for being inserted into the computer;
(2)The corresponding execution shelves of card equipment described in routine call by the computer, the execution shelves include the first ginseng
Number and the second parameter, first parameter are used to judge the interface type of the card equipment, and second parameter is for judging
The interface quantity of the card equipment;
(3)The information of the card equipment is obtained by the equipment manager of the computer by program, described information includes
The type and quantity of the card equipment interface;
(4)The standard file being stored in the card equipment is obtained by program, the content correspondence of the standard file is recorded as
The numerical value of first parameter and the second parameter;
(5)Judge the step(3)The card equipment information of middle acquisition and the step(4)The standard file content of middle acquisition
It is whether consistent, if unanimously thening follow the steps(6), the test crash if inconsistent, and test result is uploaded to server;
(6)Operation is written and read to the standard file by program, is successfully thened follow the steps if reading and writing(7)If read-write failure
It thens follow the steps(8);
(7)The success of described program interface display, and test result is uploaded to server;
(8)Described program interface display fails, and test result is uploaded to server.
Preferably, in step(2)In, the extension name for executing shelves is named with " exe ".
Preferably, in step(2)In, first parameter and the second parameter are natural number.
Preferably, the card equipment is SD, MMC, SYCARD or NEWCARD card equipment.
Preferably, the computer is military discipline computer.
Compared to the prior art, computer card class equipment interface function automatic detection method of the present invention is by existing single test
Program update is the test program of complete set, to realize that a set of program is capable of the mesh of test different types card equipment interface
, while also greatly improving working efficiency;The present invention also adds the test to interface read-write capability in test process,
Therefore it largely ensure that the quality of product;The present invention realizes the record of test result by upload server simultaneously
And the purpose subsequently tracked.
【Description of the drawings】
Fig. 1 is schematically shown as the flow chart of computer card class equipment interface function automatic detection method of the present invention.
【Specific implementation mode】
In order to achieve the above object, it please refers to Fig.1 and is painted, computer card class equipment interface function provided by the invention is surveyed automatically
Method for testing comprising following steps:
S101:Several card equipments are corresponding in turn on the external interface for being inserted into the computer;
S102:The corresponding execution shelves of card equipment described in routine call by the computer, the execution shelves include first
Parameter and the second parameter, first parameter are used to judge the interface type of the card equipment, and second parameter is for sentencing
The interface quantity of the disconnected card equipment;
S103:The information of the card equipment, described information packet are obtained by the equipment manager of the computer by program
Include the type and quantity of the card equipment interface;
S104:The standard file being stored in the card equipment is obtained by program, the content of the standard file, which corresponds to, to be recorded
For the numerical value of first parameter and the second parameter;
S105:The standard file for judging the card equipment information obtained in the step S103 and being obtained in the step S104
Whether content is consistent, if unanimously thening follow the steps S106, if inconsistent test crash, and test result is uploaded to service
Device;
S106:Operation is written and read to the standard file by program, S107 is successfully thened follow the steps if reading and writing, if read-write is lost
It loses and thens follow the steps S108;
S107:The success of described program interface display, and test result is uploaded to server;
S108:Described program interface display fails, and test result is uploaded to server.
Wherein, in step s 102, the extension name for executing shelves is named with " exe ".
Wherein, in step s 102, first parameter and the second parameter are natural number.
Wherein, the card equipment is SD, MMC, SYCARD or NEWCARD card equipment.
Wherein, the computer is military discipline computer.
Existing single test program is improved to a set of by computer card class equipment interface function automatic detection method of the present invention
Complete test program, to realize that a set of program is capable of the purpose of test different types card equipment interface, while also significantly
Improve work efficiency;The present invention also adds the test to interface read-write capability in test process, therefore largely
On ensure that the quality of product;The present invention is realized the record of test result and is subsequently tracked by upload server simultaneously
Purpose.
Claims (4)
1. a kind of computer card class equipment interface function automatic detection method, which is characterized in that the test method includes following step
Suddenly:
(1) several card equipments are corresponding in turn on the external interface for being inserted into the computer, the card equipment be SD, MMC,
SYCARD or NEWCARD card equipments;
(2) the corresponding execution shelves of card equipment described in the routine call by the computer, the execution shelves include the first parameter and
Second parameter, first parameter are used to judge that the interface type of the card equipment, second parameter to be described for judging
The interface quantity of card equipment;
(3) information of the card equipment is obtained by the equipment manager of the computer by program, described information includes described
The type and quantity of card equipment interface;
(4) it is obtained by program and is stored in standard file in the card equipment, the content correspondence of the standard file is recorded as described
The numerical value of first parameter and the second parameter;
(5) whether judge the standard file content obtained in the card equipment information obtained in the step (3) and the step (4)
Unanimously, if unanimously thening follow the steps (6), if inconsistent test crash, and test result is uploaded to server;
(6) operation is written and read to the standard file by program, (7) is successfully thened follow the steps if reading and writing, if read-write is unsuccessfully held
Row step (8);
(7) described program interface display success, and test result is uploaded to server;
(8) described program interface display fails, and test result is uploaded to server.
2. computer card class equipment interface function automatic detection method according to claim 1, which is characterized in that in step
(2) in, the extension name for executing shelves is named with " exe ".
3. computer card class equipment interface function automatic detection method according to claim 1, which is characterized in that in step
(2) in, first parameter and the second parameter are natural number.
4. computer card class equipment interface function automatic detection method according to claim 1, which is characterized in that the computer
For military discipline computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410098881.5A CN104932958B (en) | 2014-03-18 | 2014-03-18 | Computer card class equipment interface function automatic detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410098881.5A CN104932958B (en) | 2014-03-18 | 2014-03-18 | Computer card class equipment interface function automatic detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104932958A CN104932958A (en) | 2015-09-23 |
CN104932958B true CN104932958B (en) | 2018-11-06 |
Family
ID=54120130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410098881.5A Expired - Fee Related CN104932958B (en) | 2014-03-18 | 2014-03-18 | Computer card class equipment interface function automatic detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104932958B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107305513A (en) * | 2016-04-22 | 2017-10-31 | 神讯电脑(昆山)有限公司 | Computer card equipment Auto-Test System and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1274115A (en) * | 1999-05-14 | 2000-11-22 | 英业达股份有限公司 | Device and method for testing communication interface card slot |
CN1325067A (en) * | 2000-05-19 | 2001-12-05 | 英业达股份有限公司 | Autoamtic test method of memory card and international association card in PC |
CN1567226A (en) * | 2003-06-20 | 2005-01-19 | 顺德市顺达电脑厂有限公司 | Test system and method for general purpose serial interface |
CN101739322A (en) * | 2008-11-14 | 2010-06-16 | 鸿富锦精密工业(深圳)有限公司 | Test device and method of embedded system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100405297C (en) * | 2005-05-18 | 2008-07-23 | 鸿富锦精密工业(深圳)有限公司 | Updating method for preset value initial setting program of embedded system |
-
2014
- 2014-03-18 CN CN201410098881.5A patent/CN104932958B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1274115A (en) * | 1999-05-14 | 2000-11-22 | 英业达股份有限公司 | Device and method for testing communication interface card slot |
CN1325067A (en) * | 2000-05-19 | 2001-12-05 | 英业达股份有限公司 | Autoamtic test method of memory card and international association card in PC |
CN1567226A (en) * | 2003-06-20 | 2005-01-19 | 顺德市顺达电脑厂有限公司 | Test system and method for general purpose serial interface |
CN101739322A (en) * | 2008-11-14 | 2010-06-16 | 鸿富锦精密工业(深圳)有限公司 | Test device and method of embedded system |
Also Published As
Publication number | Publication date |
---|---|
CN104932958A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104268055B (en) | The monitoring method and device of a kind of program exception | |
CN108845930B (en) | Interface operation test method and device, storage medium and electronic device | |
CN105204969B (en) | Abnormal log processing method and abnormal log processing unit | |
CN105955881A (en) | Automated test step recording and playback method and apparatus | |
CN111143150A (en) | Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit | |
CN106205731B (en) | Information processing method and storage equipment | |
CN108268364A (en) | Anomalous event back method, device and equipment | |
CN101738550A (en) | Electronic device test device and test method | |
US20120226844A1 (en) | Dual processor system and method for using the same | |
CN104123324A (en) | Positioning and obtaining method and device for unread messages | |
CN106598834A (en) | UI (User Interface) testing method and device | |
CN112416775B (en) | Software automatic test method and device based on artificial intelligence and electronic equipment | |
CN105068935A (en) | Method and device for processing software test result | |
CN104219639A (en) | Method and device for displaying text message record | |
CN112579382A (en) | NVMe solid state disk bad block analysis method, device, terminal and storage medium | |
CN102722430B (en) | Method and device for detecting hot plug of secure digital card | |
CN104123212A (en) | System test method of USB chip | |
CN104932958B (en) | Computer card class equipment interface function automatic detection method | |
CN108595332B (en) | Software testing method and device | |
CN109240856A (en) | A kind of storage metadata damage analogy method, device, terminal and storage medium | |
CN109634826B (en) | Controller limit performance analysis method and device, computer equipment and storage medium | |
CN111817916A (en) | Test method, device, equipment and storage medium based on mobile terminal cluster | |
CN101206613A (en) | High speed basic input/output system debug card | |
CN111210863A (en) | Method, device and equipment for testing embedded memory and computer storage medium | |
CN108255715B (en) | Test result processing method and terminal equipment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181106 |
|
CF01 | Termination of patent right due to non-payment of annual fee |