CN104796296A - Automatic network interface card function test method - Google Patents
Automatic network interface card function test method Download PDFInfo
- Publication number
- CN104796296A CN104796296A CN201410021245.2A CN201410021245A CN104796296A CN 104796296 A CN104796296 A CN 104796296A CN 201410021245 A CN201410021245 A CN 201410021245A CN 104796296 A CN104796296 A CN 104796296A
- Authority
- CN
- China
- Prior art keywords
- program
- network
- information
- test
- network interface
- 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
- 238000010998 test method Methods 0.000 title description 4
- 238000012360 testing method Methods 0.000 claims abstract description 44
- 230000005540 biological transmission Effects 0.000 claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 8
- 230000001360 synchronised effect Effects 0.000 claims description 5
- 238000001514 detection method Methods 0.000 claims 5
- 230000007547 defect Effects 0.000 abstract description 4
- 238000007689 inspection Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
一种网卡功能自动测试方法,其包括以下步骤:(1)打开程序测试界面;(2)根据所述网卡的传输带宽对应在所述测试界面上设定带宽类型,同时可根据需要设定相应的时间类型;(3)由所述程序获取所述网卡的描述信息及根据设定的时间类型获取相应的时间;(4)由所述程序获取所述网卡的标准信息;(5)判断所述描述信息与所述标准信息是否相同,若完全相同,则执行步骤(6),若不完全相同,则执行步骤(7);(6)所述测试界面显示成功,则关闭程序,记录测试结果;(7)所述测试界面显示失败,则关闭程序,记录测试结果。本发明避免了人为查看带来的漏看、错看的缺陷,保证了产品的质量,同时测试后的结果还能够进行保存和后续的追踪。
A method for automatically testing network card functions, comprising the following steps: (1) opening a program test interface; (2) setting the bandwidth type on the test interface according to the transmission bandwidth of the network card, and setting the corresponding (3) The program obtains the description information of the network card and obtains the corresponding time according to the set time type; (4) The program obtains the standard information of the network card; (5) Judging the Whether the above description information is the same as the standard information, if they are exactly the same, go to step (6), if not, go to step (7); (6) If the test interface shows success, close the program and record the test Result; (7) If the test interface shows a failure, the program is closed and the test result is recorded. The present invention avoids the defects of missing and misreading caused by artificial checking, ensures the quality of the product, and meanwhile, the test results can be preserved and tracked later.
Description
【技术领域】【Technical field】
本发明涉及一种自动测试方法,具体涉及一种网卡功能自动测试方法。The invention relates to an automatic testing method, in particular to a network card function automatic testing method.
【背景技术】【Background technique】
随着计算机网络的不断发展,越来越多的人接触到了网络。区域网属于计算机网络中的一种,是一个提供数据交换与资源共享的网络系统。而组成区域网的主要设备之一就是网络配接卡(Network Interface Card)简称网卡(NIC),网卡为计算机之间的数据通信提供实体连接,每一台计算机如需接入网络必定要安装网卡。With the continuous development of computer networks, more and more people have come into contact with the Internet. Local area network is a kind of computer network, which is a network system that provides data exchange and resource sharing. One of the main devices that make up a local area network is the Network Interface Card (NIC) for short. The network card provides a physical connection for data communication between computers. If each computer needs to access the network, it must be installed with a network card. .
网卡是计算机网络中必不可少的基本设备,会影响到整个网络的正常运行,因此网卡功能的测试是当前计算机硬件诊断系列项目中的主要测试项目之一,其测试的过程是将带宽为100M或1000M的网线插入待测计算机的网口中,同时打开网络设备管理器观察网络是否连接,并察看是否有资料包的传送,若上述皆成功,则所述的网卡功能是合格的,反之则不然,然而上述的测试过程均是为人为查看,从而易产生误判或漏看等现象,进而不能保证产品的质量,同时测试的结果也无法保存,不方便后续的追踪。The network card is an indispensable basic device in the computer network, which will affect the normal operation of the entire network. Therefore, the test of the network card function is one of the main test items in the current computer hardware diagnosis series. The test process is to set the bandwidth to 100M Or insert a 1000M network cable into the network port of the computer to be tested. At the same time, open the network device manager to observe whether the network is connected, and check whether there is any data packet transmission. If all the above are successful, the function of the network card described is qualified. Otherwise, it is not However, the above-mentioned testing process is all checked by humans, which is prone to misjudgment or omission, which cannot guarantee the quality of the product. At the same time, the test results cannot be saved, which is inconvenient for follow-up tracking.
有鉴于此,实有必要提供一种网卡功能自动测试方法,以解决上述人工测试带来的缺陷。In view of this, it is necessary to provide an automatic test method for network card functions to solve the defects caused by the above-mentioned manual test.
【发明内容】【Content of invention】
因此,本发明的目的是提供一种网卡功能自动测试方法,以解决上述问题。Therefore, the purpose of the present invention is to provide a network card function automatic testing method to solve the above problems.
为了达到上述目的,本发明提供的网卡功能自动测试方法,其包括以下步骤:In order to achieve the above object, the network card function automatic testing method provided by the invention comprises the following steps:
(1)打开程序测试界面;(1) Open the program test interface;
(2)根据所述网卡的传输带宽对应在所述测试界面上设定带宽类型,同时可根据需要设定相应的时间类型;(2) Set the bandwidth type on the test interface according to the transmission bandwidth of the network card, and set the corresponding time type as required;
(3)由所述程序获取所述网卡的描述信息及根据设定的时间类型获取相应的时间;(3) Obtain the description information of the network card by the program and obtain the corresponding time according to the set time type;
(4)由所述程序获取所述网卡的标准信息;(4) Obtaining the standard information of the network card by the program;
(5)判断所述描述信息与所述标准信息是否相同,若完全相同,则执行步骤(6),若不完全相同,则执行步骤(7);(5) Judging whether the description information is the same as the standard information, if they are completely the same, perform step (6), if not, perform step (7);
(6)所述测试界面显示成功,则关闭程序,记录测试结果;(6) If the test interface shows success, close the program and record the test results;
(7)所述测试界面显示失败,则关闭程序,记录测试结果。(7) If the test interface fails, the program is closed and the test result is recorded.
较佳的,在步骤(2)中,所述带宽类型可设定为10M、100M或1000M的带宽,所述程序默认设定的被测带宽为1000M。Preferably, in step (2), the bandwidth type can be set to a bandwidth of 10M, 100M or 1000M, and the measured bandwidth set by the program is 1000M by default.
较佳的,在步骤(2)中,所述的时间类型可设定为固定时间或真实时间,所述程序默认设定的为真实时间,所述真实时间由所述程序在服务器上获取,从而使所述待测机台与所述服务器的时间同步。Preferably, in step (2), the time type can be set as fixed time or real time, and the default setting of the program is real time, and the real time is obtained by the program on the server, Thus, the time of the machine to be tested is synchronized with that of the server.
较佳的,在步骤(3)中,所述描述信息包括网卡接口类型的信息、网速的信息、连接状态的信息及传输资料包的信息,所述网卡接口类型、网速、连接状态及传输资料包的信息均显示于所述测试界面上。Preferably, in step (3), the description information includes information about the interface type of the network card, information about the network speed, information about the connection state and information about the transmission data packet, the type of the interface of the network card, the speed of the network, the connection state and The information of the transmission data package is displayed on the test interface.
较佳的,在步骤(4)中,所述标准信息由程序通过WMI(Windows ManagementIstrumentation,窗口管理规范)中的win32_network指令获取。Preferably, in step (4), the standard information is acquired by the program through the win32_network command in WMI (Windows Management Instrumentation, Window Management Specification).
相较于现有技术,本发明网卡功能自动测试方法通过上述描述信息与标准信息的比对,从而通过程序可自动判断出所述网卡的功能是否良好,同时还可以通过获取真实时间,使得服务器与待测机台的时间同步,避免了人为查看带来的漏看、错看的缺陷,保证了产品的质量,同时测试后的结果还能够进行保存和后续的追踪。Compared with the prior art, the network card function automatic test method of the present invention compares the above-mentioned description information with the standard information, so that the program can automatically determine whether the function of the network card is good, and can also obtain the real time at the same time, so that the server Synchronized with the time of the machine to be tested, avoiding the defects of missing and misreading caused by manual inspection, ensuring the quality of the product, and at the same time, the results after the test can be saved and followed up.
【附图说明】【Description of drawings】
图1绘示为本发明网卡功能自动测试方法的流程图。FIG. 1 is a flow chart of the method for automatically testing network card functions of the present invention.
【具体实施方式】【Detailed ways】
请参阅图1绘示,为了达到上述目的,本发明提供的网卡功能自动测试方法,其包括以下步骤:Please refer to Fig. 1 and illustrate, in order to achieve the above object, the network card function automatic testing method provided by the present invention, it comprises the following steps:
S101:打开程序测试界面;S101: open the program test interface;
S102:根据所述网卡的传输带宽对应在所述测试界面上设定带宽类型,同时可根据需要设定相应的时间类型;S102: according to the transmission bandwidth of described network card, correspondingly set bandwidth type on described test interface, can set corresponding time type as required simultaneously;
S103:由所述程序获取所述网卡的描述信息及根据设定的时间类型获取相应的时间;S103: Obtain the description information of the network card by the program and obtain the corresponding time according to the set time type;
S104:由所述程序获取所述网卡的标准信息;S104: Obtain the standard information of the network card by the program;
S105:判断所述描述信息与所述标准信息是否相同,若完全相同,则执行步骤S106,若不完全相同,则执行步骤S107;S105: judging whether the description information is identical to the standard information, if they are completely the same, then perform step S106, if not completely the same, then perform step S107;
S106:所述测试界面显示成功,则关闭程序,记录测试结果;S106: the test interface shows success, then close the program, record the test result;
S107:所述测试界面显示失败,则关闭程序,记录测试结果。S107: If the test interface fails, the program is closed and the test result is recorded.
其中,在步骤S102中,所述带宽类型可设定为10M、100M或1000M的带宽,所述程序默认设定的被测带宽为1000M。Wherein, in step S102, the bandwidth type can be set to 10M, 100M or 1000M bandwidth, and the default setting of the program to be tested is 1000M bandwidth.
其中,在步骤S102中,所述的时间类型可设定为固定时间或真实时间,所述程序默认设定的为真实时间,所述真实时间由所述程序在服务器上获取,从而使所述待测机台与所述服务器的时间同步。Wherein, in step S102, the time type can be set as fixed time or real time, and the default setting of the program is real time, and the real time is obtained by the program on the server, so that the The time of the machine to be tested is synchronized with that of the server.
其中,在步骤S103中,所述描述信息包括网卡接口类型的信息、网速的信息、连接状态的信息及传输资料包的信息,所述网卡接口类型、网速、连接状态及传输资料包的信息均显示于所述测试界面上。Wherein, in step S103, the description information includes the information of the interface type of the network card, the information of the network speed, the information of the connection status and the information of the transmission data package, the information of the interface type of the network card, the network speed, the connection status and the information of the transmission data package. Information is displayed on the test interface.
其中,在步骤S104中,所述标准信息由程序通过WMI(Windows ManagementIstrumentation,窗口管理规范)中的win32_network指令获取。Wherein, in step S104, the standard information is obtained by the program through the win32_network command in WMI (Windows Management Instrumentation, Window Management Specification).
本实施例中,于测试前,首先将传输带宽为1000M的网线插入待测机台的网口,由于所述程序默认设定的带宽类型为1000M,时间类型默认设定为真实时间,因此打开所述程序的测试界面后,只需将所述服务器的IP输入到所述测试界面上,从而使所述待测机台能够获取与所述服务器同步的真实时间,接着在所述测试界面上点击开始,最后由所述程序根据上述网卡功能自动测试方法执行相应的指令。In this embodiment, before the test, first insert a network cable with a transmission bandwidth of 1000M into the network port of the machine to be tested. Since the default bandwidth type of the program is 1000M, and the default time type is set to real time, open After the test interface of the program, you only need to input the IP of the server on the test interface, so that the machine to be tested can obtain the real time synchronized with the server, and then on the test interface Click to start, and finally the program executes corresponding instructions according to the above-mentioned network card function automatic testing method.
本发明网卡功能自动测试方法通过上述描述信息与标准信息的比对,从而通过程序可自动判断出所述网卡的功能是否良好,同时还可以通过获取真实时间,使得服务器与待测机台的时间同步,避免了人为查看带来的漏看、错看的缺陷,保证了产品的质量,同时测试后的结果还能够进行保存和后续的追踪。The network card function automatic test method of the present invention compares the above-mentioned description information with the standard information, thereby can automatically judge whether the function of the network card is good through the program, and can also obtain the real time at the same time, so that the time between the server and the machine to be tested Synchronization avoids the defects of missing and misreading caused by human inspection, and ensures the quality of the product. At the same time, the results after the test can be saved and followed up.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410021245.2A CN104796296A (en) | 2014-01-17 | 2014-01-17 | Automatic network interface card function test method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410021245.2A CN104796296A (en) | 2014-01-17 | 2014-01-17 | Automatic network interface card function test method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104796296A true CN104796296A (en) | 2015-07-22 |
Family
ID=53560824
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410021245.2A Pending CN104796296A (en) | 2014-01-17 | 2014-01-17 | Automatic network interface card function test method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104796296A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106996860A (en) * | 2016-01-22 | 2017-08-01 | 神讯电脑(昆山)有限公司 | Optical fiber connects Auto-Test System and method |
| CN108155997A (en) * | 2018-01-04 | 2018-06-12 | 联想(北京)有限公司 | Network interface card, information acquisition method, client and electronic equipment |
| CN108965062A (en) * | 2018-08-07 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of network interface test method, device, equipment and the storage medium of Onboard NIC |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1482712A1 (en) * | 2003-05-30 | 2004-12-01 | Ixia | Virtual network addresses |
| CN101882099A (en) * | 2009-05-06 | 2010-11-10 | 鸿富锦精密工业(深圳)有限公司 | Network card testing system and method |
| CN102185733A (en) * | 2011-04-13 | 2011-09-14 | 深圳宝德科技集团股份有限公司 | Network card testing method and system |
| CN202503534U (en) * | 2012-03-23 | 2012-10-24 | 深圳市普联技术有限公司 | Wireless USB network card testing system |
| CN102799507A (en) * | 2012-06-29 | 2012-11-28 | 浪潮电子信息产业股份有限公司 | Method for testing PCIE (Peripheral Component Interface Express) bandwidth stability |
-
2014
- 2014-01-17 CN CN201410021245.2A patent/CN104796296A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1482712A1 (en) * | 2003-05-30 | 2004-12-01 | Ixia | Virtual network addresses |
| CN101882099A (en) * | 2009-05-06 | 2010-11-10 | 鸿富锦精密工业(深圳)有限公司 | Network card testing system and method |
| CN102185733A (en) * | 2011-04-13 | 2011-09-14 | 深圳宝德科技集团股份有限公司 | Network card testing method and system |
| CN202503534U (en) * | 2012-03-23 | 2012-10-24 | 深圳市普联技术有限公司 | Wireless USB network card testing system |
| CN102799507A (en) * | 2012-06-29 | 2012-11-28 | 浪潮电子信息产业股份有限公司 | Method for testing PCIE (Peripheral Component Interface Express) bandwidth stability |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106996860A (en) * | 2016-01-22 | 2017-08-01 | 神讯电脑(昆山)有限公司 | Optical fiber connects Auto-Test System and method |
| CN108155997A (en) * | 2018-01-04 | 2018-06-12 | 联想(北京)有限公司 | Network interface card, information acquisition method, client and electronic equipment |
| CN108965062A (en) * | 2018-08-07 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of network interface test method, device, equipment and the storage medium of Onboard NIC |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10965580B2 (en) | Systems and methods for automated determination of network device transiting data attributes | |
| EP3886367B1 (en) | Automating 5g slices using real-time analytics | |
| CN108768730B (en) | Method and device for operating intelligent network card | |
| CN108322351A (en) | Generate method and apparatus, fault determination method and the device of topological diagram | |
| CN103812726A (en) | Automated testing method and device for data communication equipment | |
| CN109040119B (en) | Vulnerability detection method and device for intelligent building network | |
| CN107277100B (en) | System and method for near real-time cloud infrastructure policy implementation and management | |
| CN110968072B (en) | Electrical automation equipment monitoring system and method based on artificial intelligence | |
| CN110505220B (en) | Method and device for supporting OPC protocol to realize dual-computer hot standby and communication terminal | |
| CN104079571A (en) | Method and device for recognizing Android simulator | |
| CN109104335A (en) | A kind of industrial control equipment network attack test method and system | |
| CN104796296A (en) | Automatic network interface card function test method | |
| CN106656636A (en) | Cloud platform fault detection method and device | |
| CN105245591B (en) | A kind of monitoring method and system of the experience of desktop cloud performance | |
| US10361945B2 (en) | System and method to reconcile cabling test results with cabling test configurations | |
| CN112650557B (en) | A command execution method and device | |
| CN107612755A (en) | The management method and its device of a kind of cloud resource | |
| CN107544830A (en) | A kind of method and device of automatic installation database | |
| CN111341379A (en) | A method and apparatus for testing a storage device | |
| CN109582584A (en) | A kind of BMC Smashclp method for automatically testing functions and device | |
| CN112737890B (en) | Method and system for preventing network tester from being interrupted due to network oscillation | |
| CN109167707A (en) | A kind of shunting device test macro, method, apparatus, server and storage medium | |
| CN104363143A (en) | Port mapping test method of wireless router | |
| TW201843627A (en) | Evaluation platform for auditing methods and systems | |
| CN110995495A (en) | Network fault detection method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150722 |
|
| RJ01 | Rejection of invention patent application after publication |