CN111193638A - Linux platform based network card automatic testing method and device - Google Patents
Linux platform based network card automatic testing method and device Download PDFInfo
- Publication number
- CN111193638A CN111193638A CN201911328446.6A CN201911328446A CN111193638A CN 111193638 A CN111193638 A CN 111193638A CN 201911328446 A CN201911328446 A CN 201911328446A CN 111193638 A CN111193638 A CN 111193638A
- Authority
- CN
- China
- Prior art keywords
- test
- network card
- items
- testing
- linux platform
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 262
- 238000000034 method Methods 0.000 abstract description 5
- 238000010998 test method Methods 0.000 abstract description 5
- 238000004519 manufacturing process Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000007613 environmental effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000009662 stress testing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/06—Generation of reports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a network card automatic testing method based on a Linux platform, which comprises the following steps: configuring test options on a configuration file of a test server, and starting testing by using a test tool; sequentially completing the single test item, automatically generating a test report of the single test item and sending the test report to a designated place; and automatically generating test reports of all the test items and sending the test reports of all the test items to the appointed place until the test of all the test items is finished. Based on the method, the automation of the network card test is realized, and the test efficiency is improved by nearly 50. In addition, because all the items which are not covered by the previous test are covered in the tool, the test coverage rate of the test method is higher, the production efficiency is improved, and the labor cost is reduced. In addition, a corresponding Linux platform-based network card automatic testing device is also disclosed.
Description
Technical Field
The application relates to the technical field of network card performance testing, in particular to a network card automatic testing method and device based on a Linux platform.
Background
The server, as a mainstream product in the big data era, has an increasing market demand and an increasingly fierce competition. The network card is one of the necessary hardware of the computer, and the performance of the network card determines the quality of receiving and transmitting communication services. The test is taken as an important link in the product research and development stage, and automation needs to be integrated if the pace is to be accelerated.
The network card test is an important item in the test in the product research and development stage, but in the past, testers input commands under a system according to a standard operation instruction book and then check return values, the test is manually realized step by step, and finally, test reports are handwritten according to manually collected information. This test method has some drawbacks: first, all network card tests are manually performed, which is inefficient. Secondly, when a plurality of test machines are operated and tested simultaneously, the test missing phenomenon often occurs, and in addition, some test items can be selectively abandoned when the test delivery is urgent, so the test coverage rate is low.
Aiming at the problems of low test efficiency and low test coverage rate in the related technology, no effective solution is provided at present.
Disclosure of Invention
Aiming at the problems of low test efficiency and low test coverage rate in the related technology, the method and the device for automatically testing the network card based on the Linux platform are provided, so that the test efficiency can be improved, and the test coverage rate can be improved.
The technical scheme of the application is realized as follows:
according to one aspect of the application, an automatic network card testing method based on a Linux platform is provided, and comprises the following steps:
configuring test options on a configuration file of a test server, and starting testing by using a test tool;
sequentially completing the single test item, automatically generating a test report of the single test item and sending the test report to a designated place;
and automatically generating test reports of all the test items and sending the test reports of all the test items to the appointed place until the test of all the test items is finished.
The test items are selected according to actual test requirements, and the configuration options comprise custom time and turn number required by the test.
Wherein the test items include: checking network card information, checking environment, testing network card function, and testing network card performance and pressure.
The network card information checking and environment checking steps comprise:
and acquiring a test return value of the network card, comparing and judging the test return value with an actual demand parameter, writing a test result into a log file, and sending a test report of network card information checking and environment checking.
The step of testing the network card function comprises the following steps:
the test server sends an instruction to a DHCP server through the test tool;
the DHCP server configures a switch based on the instruction;
after the switch is configured, the test tool starts the network card function test.
The network card performance and pressure testing method comprises the following steps:
the test tool obtains the configuration information of the configuration file;
and starting to execute the network card performance and pressure test based on the configuration information of the configuration file.
According to another aspect of the present application, there is provided an automatic test device for a network card based on a Linux platform, comprising:
the configuration module is used for configuring test options on a configuration file of the test server and starting testing by using a test tool;
the execution module is used for sequentially executing and completing a single test item, automatically generating a test report of the single test item and sending the test report to a specified place;
and the execution module automatically generates test reports of all the test items and sends the test reports of all the test items to the appointed place until all the test items are tested.
The test items are selected according to actual test requirements, and the configuration options comprise custom time and turn number required by the test; the test items comprise network card information checking, environment checking, network card function testing, network card performance and pressure testing.
Wherein the execution module comprises:
the first execution module is used for acquiring a test return value of the network card, comparing and judging the test return value with an actual demand parameter, writing a test result into a log file, and sending a test report of network card information checking and environment checking;
and the second execution module is used for sending an instruction to a DHCP server, the DHCP server configures the switch based on the instruction, and after the switch is configured, the test tool starts the function test of the network card.
Wherein the execution module comprises:
and the third execution module is used for acquiring the configuration information of the configuration file and starting to execute the network card performance and pressure test based on the configuration information of the configuration file.
Based on the method and the device, the automation of the network card test is realized, and the test efficiency is improved by nearly 50. In addition, because all the items which are not covered by the previous test are covered in the tool, the test coverage rate of the test method is higher, the production efficiency is improved, and the labor cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 illustrates a flow diagram of a Linux platform based network card automated testing method according to some embodiments;
FIG. 2 illustrates a flow diagram of network card information checking, environmental checking, according to some embodiments;
FIG. 3 illustrates an architecture diagram of a test server, switch, and DHCP server in accordance with some embodiments;
FIG. 4 illustrates a flow diagram of a network card functionality test according to some embodiments;
FIG. 5 illustrates a schematic diagram of switch auto-configuration, according to some embodiments;
FIG. 6 illustrates a flow diagram for network card performance and stress testing according to some embodiments.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
Referring to fig. 1, the present application provides an automatic network card testing method based on a Linux platform, including:
configuring test options on a configuration file of a test server, and starting testing by using a test tool;
sequentially executing to finish the single test item, automatically generating a test report of the single test item and sending the test report to a designated place;
and automatically generating test reports of all the test items and sending the test reports of all the test items to a specified place until the test of all the test items is completed.
Based on the method, the automation of the network card test is realized, and the test efficiency is improved.
Preferably, the test items are selected according to actual test requirements, and the configuration options include custom test required time, turns or other controllable parameters. In some embodiments, an interface (configuration option, existing in the form of a configuration file) capable of interacting with a user is provided in the testing tool, and the user can select a project to be tested according to actual testing requirements to meet different requirements of the user. The user may configure the test options prior to testing.
Preferably, the test items include: checking network card information, checking environment, testing network card function, and testing network card performance and pressure.
Preferably, referring to fig. 2, the network card information checking and environment checking step includes: and acquiring a test return value of the network card, comparing and judging the test return value with the actual demand parameter, writing a test result into a log file, and sending a test report of network card information check and environmental check. The test items of the network card information check and the environment check are realized by python language. And automatically acquiring the required data through a code program, comparing and judging the data with the actual requirement, writing the processing result into a pdf report through codes, and sending the pdf report to the reviewers in the form of mails. In order to achieve the high effectiveness of the network card automatic test, after the execution of the user is started, the user does not need to participate in the automatic test, and the test tool can automatically complete the test of the selected test items in sequence.
Preferably, referring to fig. 3, 4 and 5, the step of testing the network card function includes: the test server sends an instruction to a DHCP (Dynamic Host Configuration Protocol) server through a test tool; the DHCP server configures the switch based on the instruction; after the switch is configured, the test tool starts the network card function test. In some embodiments, the test tool is executed on the test tool, a command is sent to the DHCP server, the DHCP server executes the code program after receiving the command to configure the switch, and the switch is configured to start the functional test of the network card through the code program.
Preferably, referring to fig. 6, the step of testing the performance and pressure of the network card includes: the test tool obtains configuration information of the configuration file; and starting to execute the network card performance and pressure test based on the configuration information of the configuration file. In some embodiments, the test tool captures the configuration information filled in the configuration file by the user, imports the code segment program, executes the test of the performance and pressure completion, finally generates the test report, and sends the mail.
Based on the method, the automation of the network card test is realized, and the test efficiency is improved by nearly 50. In addition, because all the items which are not covered by the previous test are covered in the tool, the test coverage rate of the test method is higher, the production efficiency is improved, and the labor cost is reduced.
Correspondingly, this application still provides an automatic testing arrangement of network card based on Linux platform, includes:
the configuration module is used for configuring test options on a configuration file of the test server and starting testing by using a test tool;
the execution module is used for sequentially executing and completing the single test item, automatically generating a test report of the single test item and sending the test report to a designated place;
and the execution module automatically generates test reports of all the test items and sends the test reports of all the test items to a specified place until all the test items are tested.
Preferably, the test items are selected according to actual test requirements, and the configuration options comprise custom time and turn number required by the test; the test items comprise network card information checking, environment checking, network card function testing, network card performance and pressure testing.
Preferably, the execution module includes: the first execution module is used for acquiring a test return value of the network card, comparing and judging the test return value with an actual demand parameter, writing a test result into a log file, and sending a test report of network card information check and environmental check; and the second execution module is used for sending the instruction to the DHCP server, the DHCP server configures the switch based on the instruction, and after the switch is configured, the test tool starts the function test of the network card.
Preferably, the execution module includes: and the third execution module is used for acquiring the configuration information of the configuration file and starting to execute the network card performance and pressure test based on the configuration information of the configuration file.
Based on the device, the automation of the network card test is realized, and the test efficiency is improved by nearly 50. In addition, because all the items which are not covered by the previous test are covered in the tool, the test coverage rate of the test method is higher, the production efficiency is improved, and the labor cost is reduced.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. An automatic network card testing method based on a Linux platform is characterized by comprising the following steps:
configuring test options on a configuration file of a test server, and starting testing by using a test tool;
sequentially completing the single test item, automatically generating a test report of the single test item and sending the test report to a designated place;
and automatically generating test reports of all the test items and sending the test reports of all the test items to the appointed place until the test of all the test items is finished.
2. The Linux platform-based network card automated testing method of claim 1, wherein the test items are selected according to actual test requirements, and the configuration options comprise custom time and turn number required by the test.
3. The Linux platform-based network card automated testing method of claim 1, wherein the test items comprise: checking network card information, checking environment, testing network card function, and testing network card performance and pressure.
4. The Linux platform-based network card automated testing method of claim 3, wherein the network card information checking and environment checking step comprises:
and acquiring a test return value of the network card, comparing and judging the test return value with an actual demand parameter, writing a test result into a log file, and sending a test report of network card information checking and environment checking.
5. The Linux platform-based network card automated testing method of claim 3, wherein the step of testing the network card function comprises:
the test server sends an instruction to a DHCP server through the test tool;
the DHCP server configures a switch based on the instruction;
after the switch is configured, the test tool starts the network card function test.
6. The Linux platform-based network card automated testing method of claim 3, wherein the step of testing the network card performance and pressure comprises:
the test tool obtains the configuration information of the configuration file;
and starting to execute the network card performance and pressure test based on the configuration information of the configuration file.
7. The utility model provides an automatic testing arrangement of network card based on Linux platform which characterized in that includes:
the configuration module is used for configuring test options on a configuration file of the test server and starting testing by using a test tool;
the execution module is used for sequentially executing and completing a single test item, automatically generating a test report of the single test item and sending the test report to a specified place;
and the execution module automatically generates test reports of all the test items and sends the test reports of all the test items to the appointed place until all the test items are tested.
8. The Linux platform-based network card automated testing apparatus of claim 7, wherein the test items are selected according to actual test requirements, and the configuration options comprise custom time and turn number required by the test; the test items comprise network card information checking, environment checking, network card function testing, network card performance and pressure testing.
9. The Linux platform-based network card automated testing apparatus of claim 8, wherein the execution module comprises:
the first execution module is used for acquiring a test return value of the network card, comparing and judging the test return value with an actual demand parameter, writing a test result into a log file, and sending a test report of network card information checking and environment checking;
and the second execution module is used for sending an instruction to a DHCP server, the DHCP server configures the switch based on the instruction, and after the switch is configured, the test tool starts the function test of the network card.
10. The Linux platform-based network card automated testing apparatus of claim 8, wherein the execution module comprises:
and the third execution module is used for acquiring the configuration information of the configuration file and starting to execute the network card performance and pressure test based on the configuration information of the configuration file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911328446.6A CN111193638A (en) | 2019-12-20 | 2019-12-20 | Linux platform based network card automatic testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911328446.6A CN111193638A (en) | 2019-12-20 | 2019-12-20 | Linux platform based network card automatic testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111193638A true CN111193638A (en) | 2020-05-22 |
Family
ID=70710994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911328446.6A Pending CN111193638A (en) | 2019-12-20 | 2019-12-20 | Linux platform based network card automatic testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111193638A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988483A (en) * | 2021-02-20 | 2021-06-18 | 山东英信计算机技术有限公司 | Cooperative testing method, system and equipment based on intelligent network card and host |
CN113630292A (en) * | 2021-08-09 | 2021-11-09 | 深圳市厚石网络科技有限公司 | Testing tool for Ethernet port rate and duplex mode of switch |
CN113923145A (en) * | 2021-09-30 | 2022-01-11 | 苏州浪潮智能科技有限公司 | Server network card automatic test method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101118513A (en) * | 2006-08-03 | 2008-02-06 | 鸿富锦精密工业(深圳)有限公司 | Board testing system and method |
CN103838651A (en) * | 2012-11-21 | 2014-06-04 | 鸿富锦精密工业(深圳)有限公司 | Mainboard function test management and control system and method |
CN107508727A (en) * | 2017-08-31 | 2017-12-22 | 郑州云海信息技术有限公司 | One kind automation network interface card information inspection method and device |
CN108449233A (en) * | 2018-04-02 | 2018-08-24 | 郑州云海信息技术有限公司 | A kind of automated setting network IP and the method for testing network interface card performance |
WO2018205514A1 (en) * | 2017-05-08 | 2018-11-15 | 深圳创维数字技术有限公司 | Set-top box wireless-compatibility automatic testing method, system, and readable storage medium |
CN109522168A (en) * | 2018-11-06 | 2019-03-26 | 郑州云海信息技术有限公司 | A kind of method for testing network interface card performance automatically using netperf under Linux |
-
2019
- 2019-12-20 CN CN201911328446.6A patent/CN111193638A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101118513A (en) * | 2006-08-03 | 2008-02-06 | 鸿富锦精密工业(深圳)有限公司 | Board testing system and method |
CN103838651A (en) * | 2012-11-21 | 2014-06-04 | 鸿富锦精密工业(深圳)有限公司 | Mainboard function test management and control system and method |
WO2018205514A1 (en) * | 2017-05-08 | 2018-11-15 | 深圳创维数字技术有限公司 | Set-top box wireless-compatibility automatic testing method, system, and readable storage medium |
CN107508727A (en) * | 2017-08-31 | 2017-12-22 | 郑州云海信息技术有限公司 | One kind automation network interface card information inspection method and device |
CN108449233A (en) * | 2018-04-02 | 2018-08-24 | 郑州云海信息技术有限公司 | A kind of automated setting network IP and the method for testing network interface card performance |
CN109522168A (en) * | 2018-11-06 | 2019-03-26 | 郑州云海信息技术有限公司 | A kind of method for testing network interface card performance automatically using netperf under Linux |
Non-Patent Citations (1)
Title |
---|
彭汝凤等: "IP测试系统设计与实现", 《微处理机》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112988483A (en) * | 2021-02-20 | 2021-06-18 | 山东英信计算机技术有限公司 | Cooperative testing method, system and equipment based on intelligent network card and host |
CN113630292A (en) * | 2021-08-09 | 2021-11-09 | 深圳市厚石网络科技有限公司 | Testing tool for Ethernet port rate and duplex mode of switch |
CN113630292B (en) * | 2021-08-09 | 2022-09-09 | 深圳市厚石网络科技有限公司 | Testing tool for Ethernet port rate and duplex mode of switch |
CN113923145A (en) * | 2021-09-30 | 2022-01-11 | 苏州浪潮智能科技有限公司 | Server network card automatic test method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111193638A (en) | Linux platform based network card automatic testing method and device | |
CN106933745A (en) | WEB automatic interface testing methods and system | |
CN107465572A (en) | Intelligent terminal method of testing, apparatus and system | |
CN107463362A (en) | The method and system of lasting deployment based on multiple Jenkins | |
CN103995777A (en) | Automatic embedded software block box testing system and method | |
CN110362490B (en) | Automatic testing method and system for integrating iOS and Android mobile applications | |
CN111273153A (en) | Automatic testing method, device and system for chip | |
CN111462811A (en) | Automatic testing method and device, storage medium and electronic equipment | |
CN113672441A (en) | Method and device for testing intelligent equipment | |
CN112231206A (en) | Script editing method for application program test, computer readable storage medium and test platform | |
CN111628910B (en) | TTCN software testing system of cellular communication terminal protocol stack | |
CN105487978A (en) | Method and system for automatically testing application software based on UFT | |
CN112100085B (en) | Android application program stability testing method, device and equipment | |
CN113452556A (en) | Product skill configuration method and device, storage medium and electronic device | |
CN105550103A (en) | Custom test script based automated testing method | |
CN105760300A (en) | Automatic STK/UTK service testing method and system | |
CN113434422A (en) | Virtual device debugging method and device and virtual device debugging system | |
CN111444109B (en) | Mobile terminal UI automatic test method and system | |
CN112596784A (en) | Iterative version deployment method and device | |
CN116629173A (en) | Verification method and device of network chip, computer equipment and storage medium | |
CN116087752A (en) | Chip testing method, system, device and medium | |
CN107193728A (en) | Mobile terminal automation testing method and device | |
CN110018846A (en) | A kind of automatic operational system and its operating method | |
CN101197729B (en) | Universal message test approach and device based on device status judgment | |
CN114385258A (en) | Automatic testing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200522 |