CN107643963A - Network interface card and the method and device of Compatibility of Operating System test - Google Patents

Network interface card and the method and device of Compatibility of Operating System test Download PDF

Info

Publication number
CN107643963A
CN107643963A CN201710653174.1A CN201710653174A CN107643963A CN 107643963 A CN107643963 A CN 107643963A CN 201710653174 A CN201710653174 A CN 201710653174A CN 107643963 A CN107643963 A CN 107643963A
Authority
CN
China
Prior art keywords
network interface
interface card
sut
test
tested
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
Application number
CN201710653174.1A
Other languages
Chinese (zh)
Inventor
陈吉兰
李金丽
李志伟
杨清玉
穆芳成
申利飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Standard Software Co Ltd
Original Assignee
China Standard Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201710653174.1A priority Critical patent/CN107643963A/en
Publication of CN107643963A publication Critical patent/CN107643963A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a kind of network interface card and the method and device of Compatibility of Operating System test, the method for testing includes:Network interface card and the test environment of Compatibility of Operating System test are created on server S UT to be measured, and the network interface card list for being able to record multiple network interface cards to be tested is created on SUT;When SUT is triggered network interface card with Compatibility of Operating System test, the test environment on SUT is activated, and select at least one network interface card to be tested to be put into the test environment activated from network interface card list;Testing process is performed at least one network interface card to be tested respectively in SUT test environment, obtains at least one network interface card to be tested and the test data of Compatibility of Operating System test;The compatibility of at least one network interface card to be tested and operating system is determined according to test data.Using method of the invention, it is possible to select one or more network interface cards to be tested to be tested according to user's request in network interface card list, testing efficiency is improved, ensures test expansibility, ease for maintenance, easy durability.

Description

Network interface card and the method and device of Compatibility of Operating System test
Technical field
The present invention relates to field of computer technology, more particularly to a kind of network interface card and the method for Compatibility of Operating System test And device.
Background technology
With the continuous popularization of computer technology, the use of various operating systems becomes increasingly prevalent, increasingly by joyous Meet.Today's society, computer technology rapid development, operating system are also regenerated being continuously updated, the function of operating system also with It is stronger and stronger, in the course of time, the requirement of pair various hardware devices interacted with operating system also becomes more and more higher.
But in this process, many hardware devices also have not enough time to renolation, user is using these hardware devices When, in this case it is not apparent that whether it can be caused to be interacted with operating system using these hardware devices with operating system perfect matching When always problematic, both can not be well matched with work, also can not just provide the user normal environment of operation, waste and use Family substantial amounts of time and energy, great inconvenience is brought to user.
In the prior art, network interface card is as one of hardware device necessary to computer, its when being interacted with operating system, Also can occur the problem of various incompatible regularly.When user uses network interface card, due to formerly be not aware that network interface card whether with Currently used operating system is compatible, if having used network interface card that can not be compatible, occur can not normal mounting, can not normally make With the problems such as, made troubles to user.Also, because network interface card with operating system can not be confirmed whether to match before, repeatedly Experiment process can waste a large amount of network interface cards, cause the waste of resource.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the network interface card and the method and related device of Compatibility of Operating System test of problem.
According to one aspect of the present invention, there is provided a kind of network interface card and the method for Compatibility of Operating System test, including:
Network interface card and the test environment of Compatibility of Operating System test are created on server S UT to be measured, and on the SUT Create the network interface card list for being able to record multiple network interface cards to be tested;
When the SUT is triggered network interface card with Compatibility of Operating System test, the test environment on the SUT is activated, and At least one network interface card to be tested is selected to be put into the test environment activated from the network interface card list;
Testing process is performed at least one network interface card to be tested respectively in the test environment of the SUT, obtains institute State at least one network interface card to be tested and the test data of Compatibility of Operating System test;
The compatibility of at least one network interface card to be tested and operating system is determined according to the test data.
Alternatively, the establishment on SUT is able to record the network interface card list of multiple network interface cards to be tested, including:
The network equipment therein is filtered out from the hardware device of the SUT;
Network interface card is filtered out from the network equipment filtered out according to default network interface name, and according to filtering out Network card identification create described in be able to record the network interface card lists of multiple network interface cards to be tested.
Alternatively, described created on SUT is able to record before the network interface card list of multiple network interface cards to be tested, in addition to:
Judge that the SUT whether there is the process being currently running;
If it is not, then extract the information of the SUT.
Alternatively, if the SUT has the process being currently running, in addition to:
Prompt the user whether to cover the process being currently running on the SUT simultaneous with operating system to be prepared to enter into the network interface card The test environment of capacitive test;
If so, then extract the information of the SUT;
If it is not, test terminates.
Alternatively, the information of the extraction SUT, including:
The hardware information of the SUT is extracted as follows:The facility information of the SUT is extracted by system command;With/ Or
The software information of the SUT is extracted as follows:By the operation for reading SUT described in system file contents extraction System information.
Alternatively, after the information of the extraction SUT, in addition to:
The checking script of the Server is performed on Server, verifies the validity of the Server;
If the Server is effective, the network interface card row of multiple network interface cards to be tested are able to record described in establishment on the SUT Table;
If the Server is invalid, the checking script of the Server is re-executed, continues to verify the Server's Validity.
Alternatively, at least one network interface card to be tested is selected in the list from network interface card, including:
When the network interface card list includes two or more network card identification, indicated according to condition to be measured or user from described At least one network interface card to be tested is selected in network interface card list, and with obtaining Adapter Name and the IP of at least one network interface card to be tested Location.
Alternatively, in addition to:
The checking script of the Server is re-executed on Server, verifies the validity of the Server;
When the Server is effective, at least one network interface card to be tested is held respectively in the test environment of the SUT Row testing process;
When the Server is invalid, test terminates.
It is alternatively, described that testing process is performed at least one network interface card to be tested respectively in SUT test environment, Including:
Functional test is carried out at least one network interface card to be tested by the network interface card test script of the SUT respectively;
Performance is carried out at least one network interface card to be tested by the Lmbench testing tools of increasing income of the SUT respectively Test.
Alternatively, the network interface card test script by SUT carries out function at least one network interface card to be tested respectively Test, including it is at least one following:
Test the startup and closing of at least one network interface card to be tested;
Test network interface corresponding at least one network interface card to be tested whether can ping lead to the Server;
Obtain the information, state, mac addresses of at least one network interface card to be tested;
Obtain the physical location of at least one network interface card to be tested;
Close other network interfaces.
Alternatively, it is described that at least one network interface card to be tested is entered respectively by SUT Lmbench testing tools of increasing income Row performance test, including it is at least one following:
The delay of tcp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
Tcp protocol communication handling capacities are tested by the Lmbench testing tools of increasing income of the SUT;
The delay of udp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
File transmission is tested by the Lmbench testing tools of increasing income of the SUT;
Packet loss is tested by the Lmbench testing tools of increasing income of the SUT.
Alternatively, it is described that testing process is performed at least one network interface card to be tested respectively in SUT test environment Afterwards, in addition to:
Test result is stored in the test result catalogue of the SUT;And/or
The running log of test process is stored in the test log catalogue of the SUT.
According to the other side of the embodiment of the present invention, a kind of network interface card and the dress of Compatibility of Operating System test are additionally provided Put, including:
Creation module, it is configured to create network interface card and the test wrapper of Compatibility of Operating System test on server S UT to be measured Border, and the network interface card list for being able to record multiple network interface cards to be tested is created on the SUT;
Active module, it is configured to, when the SUT is triggered network interface card with Compatibility of Operating System test, activate the SUT On test environment, and select at least one network interface card to be tested to be put into the test environment activated from the network interface card list In;
Test module, it is configured in the test environment of the SUT respectively perform at least one network interface card to be tested Testing process, obtain at least one network interface card to be tested and the test data of Compatibility of Operating System test;
Determining module, it is configured to determine at least one network interface card to be tested and operating system according to the test data Compatibility.
Alternatively, the creation module, is additionally configured to:
The network equipment therein is filtered out from the hardware device of the SUT;
Network interface card is filtered out from the network equipment filtered out according to default network interface name, and according to filtering out Network card identification create described in be able to record the network interface card lists of multiple network interface cards to be tested.
Alternatively, in addition to:
Judge module, it is configured to judge that the SUT whether there is the process being currently running;
Extraction module, it is configured to if it is not, then extracting the information of the SUT.
Alternatively, in addition to:
Reminding module, it is configured to prompt the user whether to cover the process being currently running on the SUT described to be prepared to enter into Network interface card and the test environment of Compatibility of Operating System test;
The extraction module, it is additionally configured to if so, then extracting the information of the SUT;
If it is not, test terminates.
Alternatively, the extraction module, is additionally configured to:
The hardware information of the SUT is extracted as follows:The facility information of the SUT is extracted by system command;With/ Or
The software information of the SUT is extracted as follows:By the operation for reading SUT described in system file contents extraction System information.
Alternatively, in addition to:
First authentication module, it is configured to perform the checking script of the Server on Server, verifies the Server Validity;
If the Server is effective, the network interface card row of multiple network interface cards to be tested are able to record described in establishment on the SUT Table;
If the Server is invalid, the checking script of the Server is re-executed, continues to verify the Server's Validity.
Alternatively, the active module, is additionally configured to:
When the network interface card list includes two or more network card identification, indicated according to condition to be measured or user from described At least one network interface card to be tested is selected in network interface card list, and with obtaining Adapter Name and the IP of at least one network interface card to be tested Location.
Alternatively, in addition to:
Second authentication module, is configured to re-execute the checking script of the Server on Server, described in checking Server validity;
When the Server is effective, at least one network interface card to be tested is held respectively in the test environment of the SUT Row testing process;
When the Server is invalid, test terminates.
Alternatively, the test module, is additionally configured to:
Functional test is carried out at least one network interface card to be tested by the network interface card test script of the SUT respectively;
Performance is carried out at least one network interface card to be tested by the Lmbench testing tools of increasing income of the SUT respectively Test.
Alternatively, the test module, it is additionally configured to be tested in the way of at least one following:
Test the startup and closing of at least one network interface card to be tested;
Test network interface corresponding at least one network interface card to be tested whether can ping lead to the Server;
Obtain the information, state, mac addresses of at least one network interface card to be tested;
Obtain the physical location of at least one network interface card to be tested;
Close other network interfaces.
Alternatively, the test module, it is additionally configured to be tested in the way of at least one following:
The delay of tcp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
Tcp protocol communication handling capacities are tested by the Lmbench testing tools of increasing income of the SUT;
The delay of udp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
File transmission is tested by the Lmbench testing tools of increasing income of the SUT;
Packet loss is tested by the Lmbench testing tools of increasing income of the SUT.
Alternatively, in addition to:
Preserving module, it is configured to test result being stored in the test result catalogue of the SUT;And/or
The running log of test process is stored in the test log catalogue of the SUT.
Network interface card provided in an embodiment of the present invention and the method for Compatibility of Operating System test, are created on server S UT to be measured Networking card and the test environment of Compatibility of Operating System test, and the net for being able to record multiple network interface cards to be tested is created on SUT Card list, the network interface card list, can for multiple network interface cards are carried out with test provides respectively due to being able to record multiple network interface cards to be tested Can be with conveniently, improving testing efficiency.When SUT is triggered network interface card with Compatibility of Operating System test, the test wrapper on SUT is activated Border, and select at least one network interface card to be tested to be put into the test environment activated from network interface card list.In SUT test Testing process is performed at least one network interface card to be tested respectively in environment, obtain at least one network interface card to be tested is with operation The test data of system compatibility test, the compatibility of at least one network interface card to be tested and operating system is determined according to test data. It follows that using method of the invention, it is possible in the network interface card list of establishment according to user's request select one or more treat Network interface card is tested, and it is tested, improves testing efficiency, and strengthens user's independently selectivity, lifts Consumer's Experience.In addition, The network interface card to be tested of selection is positioned in independent test environment, network interface card is tested and separated with other work, is further improved Testing efficiency, the expansibility of network interface card test, ease for maintenance, easy durability are ensured.More, the present invention is by SUT Test environment in a series of testing process is performed to network interface card, ensure that the comprehensive and normative of test, and pass through this Test of the invention to network interface card, user can select suitable network interface card to be used, save the time of user according to test result And energy, reduce the waste of network interface card resource.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings will be brighter to the detailed description of the specific embodiment of the invention, those skilled in the art Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of network interface card according to an embodiment of the invention and Compatibility of Operating System method of testing;
Fig. 2 is network interface card according to an embodiment of the invention and the general frame schematic diagram of Compatibility of Operating System test;
Fig. 3 is that network interface card according to an embodiment of the invention and the principle flow of Compatibility of Operating System test are illustrated Figure;
Fig. 4 is network interface card according to an embodiment of the invention and Compatibility of Operating System test idiographic flow schematic diagram;
Fig. 5 be network interface card according to an embodiment of the invention with Compatibility of Operating System test device the first is schematic Block diagram;
Fig. 6 be network interface card according to an embodiment of the invention with second of Compatibility of Operating System test device it is schematic Block diagram;
Fig. 7 be network interface card according to an embodiment of the invention with Compatibility of Operating System test device the third is schematic Block diagram;
Fig. 8 is network interface card according to an embodiment of the invention with the 4th kind of Compatibility of Operating System test device schematically Block diagram;
Fig. 9 is network interface card according to an embodiment of the invention with the 5th kind of Compatibility of Operating System test device schematically Block diagram;And
Figure 10 is network interface card according to an embodiment of the invention and the 6th kind of signal of Compatibility of Operating System test device Property block diagram.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
In order to solve the above technical problems, the embodiments of the invention provide a kind of network interface card and the side of Compatibility of Operating System test Method.Fig. 1 is the indicative flowchart of network interface card according to an embodiment of the invention and Compatibility of Operating System method of testing.Such as figure Shown in 1, this method comprises at least step S102 to step S108:
Step S102, establishment network interface card and the test environment of Compatibility of Operating System test on server S UT to be measured, and The network interface card list for being able to record multiple network interface cards to be tested is created on SUT;
Step S104, when SUT is triggered network interface card with Compatibility of Operating System test, the test environment on SUT is activated, and At least one network interface card to be tested is selected to be put into the test environment activated from network interface card list;
Step S106, testing process is performed at least one network interface card to be tested respectively in SUT test environment, obtain to A few network interface card to be tested and the test data of Compatibility of Operating System test;
Step S108, the compatibility of at least one network interface card to be tested and operating system is determined according to test data.
Network interface card provided in an embodiment of the present invention and the method for Compatibility of Operating System test, are created on server S UT to be measured Networking card and the test environment of Compatibility of Operating System test, and the net for being able to record multiple network interface cards to be tested is created on SUT Card list, the network interface card list, can for multiple network interface cards are carried out with test provides respectively due to being able to record multiple network interface cards to be tested Can be with conveniently, improving testing efficiency.When SUT is triggered network interface card with Compatibility of Operating System test, the test wrapper on SUT is activated Border, and select at least one network interface card to be tested to be put into the test environment activated from network interface card list.In SUT test Testing process is performed at least one network interface card to be tested respectively in environment, at least one network interface card to be tested is obtained and operating system is simultaneous The test data of capacitive test, the compatibility of at least one network interface card to be tested and operating system is determined according to test data.Thus Understand, using one or more to be tested method of the invention, it is possible to be selected in the network interface card list of establishment according to user's request Network interface card, and it is tested, testing efficiency is improved, and strengthen user's independently selectivity, lift Consumer's Experience.In addition, will choosing The network interface card to be tested selected is positioned in independent test environment, and network interface card is tested and separated with other work, further increases survey Try efficiency, ensured network interface card test expansibility, ease for maintenance, easy durability.More, the present invention is also by SUT's A series of testing process is performed to network interface card in test environment, ensure that the comprehensive and normative of test, and pass through this hair The bright test to network interface card, user can select suitable network interface card be used according to test result, save user time and Energy, reduce the waste of network interface card resource.
Fig. 2 is network interface card according to an embodiment of the invention and the general frame schematic diagram of Compatibility of Operating System test. In embodiments of the present invention, tested comprehensively in order to the function to network interface card, performance, the embodiments of the invention provide such as scheme Server S erver and server S UT to be measured (System Under Test) shown in 2.In embodiments of the present invention, carry above And two servers need to meet following condition:Two server OSs are that (the present embodiment selects server OS Acceptance of the bid kylin advanced server operating system), any version;The equal self-starting SSH (Secure of two servers start SHell, the security protocol established on the basis of application layer and transport layer) service, No. 22 ports of fire wall opening;The clothes of configuration two The IP of business device, network is unimpeded between ensureing two servers;Two servers are respectively mounted Lmbench testing tools of increasing income;Server need to be deposited There need to be authentication script certify.py in checking script verifyWeb.py, SUT;Server starts http services;Server Start bw_tcp-s, lat_udp-s order.
As shown in Fig. 2 after above-mentioned two server configures completion, checking script on Server be present , authentication script certify.py, network interface card test script on SUT be present in verifyWeb.py and Lmbench testing tools of increasing income RunNetwork.py, increase income Lmbench testing tools, test result and test log.
In embodiments of the present invention, SUT authentication script is the entrance script of the test, when being tested, by root User performs the authentication script on SUT.Specifically, the checking script for calling Server by SUT authentication script enters test. In test process, the function of network interface card is specifically tested by network interface card test script, by Lmbench testing tools pair of increasing income The correlated performance of tcp agreements and udp agreements etc. is tested.After test terminates, test result is stored in test result catalogue In, the running log in test process is stored in Log Directory.
It is right after the network interface card shown in Fig. 2 and the general frame of Compatibility of Operating System test are by such as upper type is arranged to work( Network interface card initiates compatibility test.Fig. 3 shows network interface card according to an embodiment of the invention and Compatibility of Operating System test Principle schematic flow sheet.With reference to Fig. 2 arrange parameter, Fig. 4 shows the setting according to an embodiment of the invention in Fig. 2 The network interface card carried out under environment and the idiographic flow schematic diagram of Compatibility of Operating System test.With reference to Fig. 3 and Fig. 4 to this hair Bright network interface card carries out overall elaboration with Compatibility of Operating System method of testing.
In embodiments of the present invention, it is possible, firstly, to call getLockFile functions to judge on SUT with the presence or absence of transporting Capable process, if the process not being currently running on SUT, illustrate that now SUT can provide test environment for the test of the present invention, At this point it is possible to printSUTInfo functions are called, printing extraction SUT information.If in addition, enter on SUT in the presence of what is be currently running It journey, the method according to the invention, user may also be prompted whether to cover the process being currently running, and then be the test of the present invention Setup test environment, if user's selection does not cover the process being currently running, this test terminates, if user is selecting covering The process of operation, then the method according to the invention, equally can also further call printSUTInfo functions, printing extraction SUT information.
Specifically, in embodiments of the present invention, during printing extraction SUT information, it can extract SUT's by system command The hardware informations such as facility information, and/or, the software information such as operation system information by reading system file contents extraction SUT. For example in embodiments of the present invention, SUT equipment vendors, equipment manufacturers, unit type etc. can be obtained by system command BIOS (Basic Input Output System, basic input output system) information, can also pass through reading/etc/* Release file contents obtain operation system information.
In embodiments of the present invention, after printing extraction SUT information, Server can be further performed on Server Checking script, verify Server validity.Specifically, Server checking script can be performed on Server, is obtained Server data message, Server validity is verified by the data message of acquisition.Such as can be by prompting to input Server Hostname hostname, verifyServer functions checking Server validity is then called, can also be led to The data message that the URL that urllib2 is specified obtains Server is crossed, including:Show Server Hostname, detect on Server Lmbench testing tools of increasing income (bw_tcp-s and lat_udp-s) whether run, have detected whether run http on Server Service etc., is verified by these information to Server validity.
When being configured to Server, Server need to be installed to increase income and Lmbench testing tools and opened the embodiment of the present invention Dynamic http services, in a preferred embodiment, if detect on Server do not have operation increase income Lmbench testing tools or Person does not run http services, then Server is invalid.In embodiments of the present invention, when Server is invalid, can re-execute Server checking script, continue to verify Server validity.
After Server checkings are effective, method according to embodiments of the present invention, network interface card can be created on SUT is with operation The test environment of system compatibility test, and the network interface card list for being able to record multiple network interface cards to be tested is created on SUT.On SUT When establishment is able to record the network interface card list of multiple network interface cards to be tested, plan functions can be called to obtain all nets to be tested on SUT Card.Such as first can be by calling getDevices functions to obtain the all-network equipment on SUT.Specifically, can pass through " udevadm info--export-db " obtain all hardware equipment on SUT, further, call for order GetNetworkDevices functions, it is filtered out by attribute SUBSYSTEM=net in the result that getDevices is returned In the network equipment.
In embodiments of the present invention, can be according to default network interface name from having filtered out after filtering out the network equipment The network equipment in filter out network interface card, and the network interface card for being able to record multiple network interface cards to be tested is created according to the network card identification filtered out List.Specifically, the network equipment that lo, virbr, vif, xenbr, wmaster, sit are carried in network interface name can be ignored, That is the network interface with lo, virbr, vif, xenbr, wmaster, sit will not be tested, meanwhile, other are accorded with The network interface card of conjunction condition is screened, and the network interface card list of network interface card to be tested is created according to the network card identification filtered out.
Further, after the network interface card list creating of network interface card to be tested is completed, can be called by SUT authentication script The network interface card of the Server checking script triggering embodiment of the present invention is tested with Compatibility of Operating System, activates the test wrapper on SUT Border.And then when network interface card list includes two or more network card identification, it can be indicated according to condition to be measured or user from network interface card At least one network interface card to be tested is selected in list and is put into the test environment activated.
Method according to embodiments of the present invention, can be with after at least one network interface card to be tested is selected from network interface card list Edit functions are called further to prompt the user whether to perform test, if user's selection is no, test terminates.If user's selection is, It then can further call prepareforNetTest functions.Specifically, can be by calling getLogicalNetName letters Number obtains the Adapter Name of selected network interface card to be tested, can also be by calling getIPAddress functions to obtain IP address.
Above-mentioned steps perform terminate after, in embodiments of the present invention, can be with order to ensure the accurate and effective property of test Further call verifyServer functions checking Server whether normal.Specifically, can show Server Hostname, Lmbench testing tools of increasing income (bw_tcp-s and lat_udp-s) whether have been run on detection Server, have been detected on Server Whether http service etc. is run.Now, if Server is in disarmed state, test terminates.If Server is still effective, By calling the run functions of network interface card test script to perform test stream at least one network interface card to be tested respectively in SUT test environments Journey.
Specifically, when performing testing process at least one network interface card to be tested respectively in SUT test environment, Ke Yitong The network interface card test script for crossing SUT carries out functional test at least one network interface card to be tested respectively, can also increasing income by SUT Lmbench testing tools carry out performance test at least one network interface card to be tested respectively.
In embodiments of the present invention, work(is carried out at least one network interface card to be tested by SUT network interface card test script respectively When can test, network card configuration, the process can be carried out at least one network interface card to be tested by SUT network interface card test script respectively It is main to need to call configureInterface functions.Specifically, can call shutdownInterface functions test to The closing of a few network interface card to be tested, it may call upon startInterface functions and test opening at least one network interface card to be tested It is dynamic, may call upon pingServer functions test the network interface whether can ping lead to Server, calling can also be passed through The printing of printInfo functions obtains the information, state, mac addresses of at least one network interface card to be tested, can also pass through system command Biosdevname prints the physical location of at least one network interface card to be tested, can also be by calling shutdownOther Interfaces functions close other network interfaces etc..
In embodiments of the present invention, if network card configuration fails, test terminates, if network card configuration success, can pass through SUT network interface card test script carries out performance test at least one network interface card to be tested respectively.Specifically, can opening by SUT Source Lmbench testing tools are tested the performance of tcp agreements and udp agreements, can also pass through the SUT Lmbench that increases income Testing tool is tested file transmission, packet loss can also be tested by SUT Lmbench testing tools of increasing income Deng.
Specifically, in embodiments of the present invention, tcp agreements and udp are assisted by SUT Lmbench testing tools of increasing income When the performance of view is tested, tcpTestLatency functions can be called, pass through the SUT Lmbench that increases income in the function Testing tool is tested the communication delay of tcp agreements, such as, treat test network interface card eth0 5 tcp protocol communications of progress and prolong When testing, can circulate in test environment and perform 5 subcommand lat_tcp eth0;It may call upon TcpTestBandwidth functions, gulped down in the function by SUT communication of the Lmbench testing tools to tcp agreements of increasing income The amount of telling is tested, such as, in test environment, circulation performs 5 subcommand bw_tcp-P 2-m 1m serverIP, is put down Equal bandwidth, if resulting average bandwidth * 8>Network speed * 0.8, then test pass through, and otherwise, test terminates;In addition, the present invention is implemented Example may call upon udpTest functions, pass through SUT communication delay of the Lmbench testing tools to udp of increasing income in the function Tested, such as, when treating survey grid card eth0 and being tested, order lat_udp eth0 can be performed.
In embodiments of the present invention, can when being tested by SUT Lmbench testing tools of increasing income file transmission , mainly can be with the upload of test file, download time and speed to call transferTest functions to realize, and verify transmission Whether file afterwards is consistent with the md5 of source file, so that it is guaranteed that information transfer is complete, consistent.The md5 of the present invention is that computer is wide One of general hashing algorithm used, is used primarily to ensure that information transfer is completely consistent.On file mentioned by the embodiment of the present invention Biography refers to test file being uploaded to Server.In addition, when specifically being tested file transmission, calling can be passed through first RegenerateTestFile functions regenerate test file, further, above-mentioned survey are carried out to the test file regenerated Examination.
In embodiments of the present invention, can be with when being tested by SUT Lmbench testing tools of increasing income packet loss By calling lossTest functions, and send order ping-i 0-q-c 5000 to Server and carried out between SUT and Server Packet loss is tested.
After above-mentioned steps execution terminates, method according to the invention it is possible to by calling saveResult functions, will Test result is stored in SUT test result catalogue;And/or by calling saveLog functions, by the operation day of test process Will is stored in SUT test log catalogue.Specifically, test result can be write in the file under test result catalogue, and With the file name of testing time name test result, the running log of test process can also be copied to test log catalogue Under file in, and with the testing time name test log file name.
In embodiments of the present invention, can be according to the survey obtained by execution testing process after above-mentioned steps execution terminates Test result data determine the compatibility of network interface card to be tested and operating system, then call clean functions cleaning test environment, call RestoreAllOtherInterfaces functions recover other network interface cards, finally terminate to test.
Using network interface card provided by the invention and Compatibility of Operating System method of testing, in addition to above-mentioned several examples, also deposit In many different application scenarios.Now provide the network interface card that several specific embodiments are provided the embodiment of the present invention is with operation System compatibility test method is described in detail.
Embodiment one
The present embodiment is by taking Fig. 3 as an example, as shown in figure 3, the present embodiment can comprise at least following steps S301 to step S312:
Step S301, judge with the presence or absence of the process being currently running on SUT, if so, step S302 is performed, if it is not, performing Step S303;
Step S302, prompt the user whether to cover the process being currently running, if so, step S303 is performed, if it is not, test Terminate;
In embodiments of the present invention, after performing step S301, if the process being currently running is not present on SUT, show to work as Preceding SUT can provide test environment for the test job of the present invention.If the process being currently running on SUT be present, show now SUT Other processes are being handled, more preferable test environment can not be provided for the network interface card of the present invention and the compatibility test of operating system. If now user still desires to carry out the test job of the present invention on SUT, method according to the invention it is possible to which further prompting is used Whether family covers the process being currently running.If the upper processes being currently running of SUT are capped, SUT can continue as this The test job setup test environment of invention.If user's selection does not cover the above-mentioned process being currently running, the present invention is implemented The test of example leaves it at that., can be according to the side of the present invention when SUT can provide test environment for the test job of this implementation Method continues executing with operations described below.
Step S303, printing extraction SUT information;
Specifically, the SUT information of printing of embodiment of the present invention extraction can not only include SUT hardware information, can be with Software information including SUT.For example the SUT information of printing extraction of the embodiment of the present invention can be SUT equipment vendors, equipment Manufacturer, operation system information etc..The present invention can also obtain the other information about SUT, and the embodiment of the present invention is not done to this It is specific to limit.
Step S304, Server Hostname hostname is inputted;
Step S305, this Server is judged whether, if so, step S306 is performed, if it is not, re-executing step S304;
The embodiment of the present invention, after SUT information is obtained, it can also determine whether to establish the Server of connection with SUT It whether there is, that is, verify Server validity, to ensure the accurate, effective of test.The embodiment of the present invention is inputted by prompting Server Hostname hostname, then, call verifyServer functions checking Server validity.When checking is tied Beam, it is ensured that after Server is effective, following testing procedure can be performed.In addition, can be with for Server validation verification Other effective manners are taken, the embodiment of the present invention is not specifically limited to this.
Step S306, test plan is performed on SUT, obtains all network interface cards to be tested on SUT;
Step S307, at least one network interface card to be tested is selected;
When performing step S306 test plan, all hardware equipment on SUT can be obtained first, further in institute The network equipment is filtered out in the hardware device of acquisition.And then can be according to default network interface name from the network filtered out Network interface card is filtered out in equipment, and the network interface card list for being able to record multiple network interface cards to be tested is created according to the network card identification filtered out. After the completion of network interface card list creating, user can select according to the demand of oneself from above-mentioned network interface card list it is specific need by The network interface card of test.Then proceed to perform the following steps.
Step S308, further determine whether to perform test, if so, step S309 is performed, if it is not, test terminates;
Step S309, the testing results on SUT;
Step S310, test result is preserved on SUT;
Step S311, test log is preserved on SUT;
Step S312, test environment is cleared up.
In embodiments of the present invention, can be with after user selects specific network interface card to be tested from network interface card list By calling edit functions to further determine whether to perform test.In embodiments of the present invention, if now no longer being tested, Current test directly terminates.If it is determined that perform test, then testing results on SUT.Specifically, network interface card test script can be passed through The test such as function is carried out to selected network interface card to be measured, can also be by Lmbench testing tools of increasing income to tcp agreements and udp The correlated performance of agreement etc. is tested.After test terminates, test result is stored in test result catalogue on SUT, will Test run daily record in test process is stored in Log Directory.After above-mentioned steps execution terminates, according to the side of the present invention Method, clean functions can also be called on SUT, the test environment created to perform above-mentioned test process is cleared up, and Terminate test.
Embodiment two
The present embodiment is by taking Fig. 4 as an example, as shown in figure 4, the present embodiment can comprise at least following steps S401 to step S408:
Step S401, judge that test prepares whether to succeed, if so, step S402 is performed, if it is not, test terminates;
Step S402, judge whether network interface configuration succeeds, if so, step S403 is performed, if it is not, test terminates;
Step S403, the delay of tcp protocol communications is tested by Lmbench testing tools of increasing income;
Step S404, tcp protocol communication handling capacities are tested by Lmbench testing tools of increasing income;
Step S405, the delay of udp protocol communications is tested by Lmbench testing tools of increasing income;
Step S406, file transmission is tested by Lmbench testing tools of increasing income;
Step S407, packet loss is tested by Lmbench testing tools of increasing income;
Step S408, test environment is cleared up.
In this example, test prepares that the validity by calling verifyServer functions to verify Server can be included. Specifically, this Server can be determined by Server Hostname by showing Server Hostname hostname It is whether effective.The embodiment of the present invention can also by detect Server whether run Lmbench related tools (bw_tcp-s and Lat_udp-s) or whether detection server runs the validity that the modes such as http services further verify Server.In addition, The test that the present invention is implemented prepares correspondingly test other related hardware and software, the embodiment of the present invention pair This is not specifically limited.
When test is ready to carry out unsuccessfully, directly terminate to test, can be further to net when test is ready to carry out successfully Network interface is configured.Specifically, can be at least one to be measured selected by the test of shutdownInterface functions by calling Try the closing of network interface card;Can also be by calling opening for the selected at least one network interface card to be tested of startInterface functions test It is dynamic;Can also by call pingServer functions test the network interface whether can ping lead to Server;Calling can also be passed through The printing of printInfo functions obtains the information, state, mac addresses of selected at least one network interface card to be tested;It can also pass through and be System order biosdevname prints the physical location of selected at least one network interface card to be tested;Calling can also be passed through ShutdownOther Interfaces functions close other network interfaces etc..The network interface configuration of the embodiment of the present invention may be used also So that including other test events, above-mentioned test is only to enumerate, and the embodiment of the present invention is not specifically limited to this.
When network interface configuration failure, test directly terminates, and when network interface configuration successful, the embodiment of the present invention is also Can be by Lmbench testing tools of increasing income to the delay of tcp protocol communications, tcp protocol communications handling capacity, udp communication delays, text Packet loss etc. is accordingly tested during part transmission and other associated transports, is no longer enumerated herein.
After above-mentioned steps execution terminates, the embodiment of the present invention can also be held on SUT by calling clean function pairs The above-mentioned test process of row and the test environment that creates is cleared up, also, calling can also be passed through RestoreAllOtherInterfaces functions further recover other network interface cards.
Therefore, can be in the network interface card list of establishment using the network interface card and Compatibility of Operating System method of testing of the present invention According to the one or more network interface cards to be tested of user's request selection, and it is tested, improve testing efficiency, and strengthen user certainly Main selectivity, lift Consumer's Experience.It is also possible to the network interface card to be tested of selection is positioned over independent test environment In, network interface card is tested and separated with other work, further increases testing efficiency, has ensured the expansibility, easy of network interface card test Maintainability, easy durability.More, the present invention is also flowed by performing a series of test to network interface card in SUT test environment Journey, the comprehensive and normative of test is ensure that, and can be according to test result by test of the present invention to network interface card, user Select suitable network interface card to be used, save time and the energy of user, reduce the waste of network interface card resource.In addition, this hair Bright network interface card and Compatibility of Operating System method of testing, facility information, the network interface card of server can be obtained first before test Facility information and operation system information, the validity that test prepares is ensure that to a greater extent.Also, the method for the present invention, After test terminates, test result can backup to the catalogue specified, and named with the testing time, similarly, additionally it is possible to will Test run daily record is copied under logfile directory, and is named with the testing time so that test result and test run day Will is searched and positioning is more convenient, is provided users with the convenient, is more further increased testing efficiency from side.
It should be noted that in practical application, above-mentioned all optional embodiments can be any group by the way of combining Close, form the alternative embodiment of the present invention, this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of network interface card and the dress of Compatibility of Operating System test Put.Fig. 5 is the first schematic block diagram of network interface card according to an embodiment of the invention and Compatibility of Operating System test device. As shown in figure 5, the device that network interface card is tested with Compatibility of Operating System comprises at least:
Creation module 510, it is configured to create network interface card and the test of Compatibility of Operating System test on server S UT to be measured Environment, and the network interface card list for being able to record multiple network interface cards to be tested is created on SUT;
Active module 520, couple, be configured to when be triggered network interface card and Compatibility of Operating System of SUT is surveyed with creation module 510 During examination, the test environment on SUT is activated, and select at least one network interface card to be tested to be put into what is activated from network interface card list In test environment;
Test module 530, coupled with active module 520, be configured to treat at least one respectively in SUT test environment Test network interface card and perform testing process, obtain at least one network interface card to be tested and the test data of Compatibility of Operating System test;
Determining module 540, coupled with test module 530, be configured to determine at least one net to be tested according to test data Card and the compatibility of operating system.
In a preferred embodiment, creation module 510, it is additionally configured to:
The network equipment therein is filtered out from SUT hardware device;
Network interface card is filtered out from the network equipment filtered out according to default network interface name, and according to the net filtered out Card mark creates the network interface card list for being able to record multiple network interface cards to be tested.
In a preferred embodiment, as shown in fig. 6, also including:
Judge module 550, it is configured to judge that SUT whether there is the process being currently running;
Extraction module 560, couple, be configured to if it is not, then extracting SUT information with judge module 550.
In a preferred embodiment, as shown in fig. 7, also including:
Reminding module 570, coupled with judge module 550, be configured to prompt the user whether that what is be currently running on covering SUT enters Journey is to be prepared to enter into the test environment of network interface card and Compatibility of Operating System test;
Extraction module 560, it is additionally configured to if so, then extracting SUT information;
If it is not, test terminates.
In a preferred embodiment, extraction module 570, it is additionally configured to:
SUT hardware information is extracted as follows:SUT facility information is extracted by system command;And/or
SUT software information is extracted as follows:Believed by the operating system for reading system file content obtaining SUT Breath.
In a preferred embodiment, as shown in figure 8, also including:
First authentication module 580, is coupled with extraction module 560, is configured to perform Server checking pin on Server This, verifies Server validity;
If Server is effective, the network interface card list for being able to record multiple network interface cards to be tested is created on SUT;
If Server is invalid, Server checking script is re-executed, continues to verify Server validity.
In a preferred embodiment, the first authentication module 580, is additionally configured to:
Server checking script is performed on Server, obtains Server data message, is believed by the data of acquisition Breath checking Server validity.
In a preferred embodiment, the first authentication module 580, it is additionally configured to carry out in the way of at least one following Checking:
Show Server Hostname hostname;
Whether detection Server runs Lmbench testing tools of increasing income;
Whether detection Server runs http services.
In a preferred embodiment, active module 520, it is additionally configured to:
SUT authentication script calls another server S erver checking script to trigger network interface card and Compatibility of Operating System Test.
In a preferred embodiment, active module 520, it is additionally configured to:
When network interface card list includes two or more network card identification, indicated according to condition to be measured or user from network interface card list The middle at least one network interface card to be tested of selection, and obtain the Adapter Name and IP address of at least one network interface card to be tested.
In a preferred embodiment, as shown in figure 9, also including:
Second authentication module 590, is coupled with active module 520, is configured to re-execute testing for Server on Server Script is demonstrate,proved, verifies Server validity;
When Server is effective, testing process is performed at least one network interface card to be tested respectively in SUT test environment;
When Server is invalid, test terminates.
In a preferred embodiment, test module 530, it is additionally configured to:
Functional test is carried out at least one network interface card to be tested by SUT network interface card test script respectively;
Performance test is carried out at least one network interface card to be tested by SUT Lmbench testing tools of increasing income respectively.
In a preferred embodiment, test module 530, it is additionally configured to:
Network card configuration is carried out at least one network interface card to be tested by SUT network interface card test script respectively.
In a preferred embodiment, test module 530, it is additionally configured to be surveyed in the way of at least one following Examination:
Test the startup and closing of at least one network interface card to be tested;
Whether test network interface corresponding at least one network interface card to be tested can the logical Server of ping;
Obtain the information, state, mac addresses of at least one network interface card to be tested;
Obtain the physical location of at least one network interface card to be tested;
Close other network interfaces.
In a preferred embodiment, test module 530, it is additionally configured to:
The performance of tcp agreements and udp agreements is tested by SUT Lmbench testing tools of increasing income.
In a preferred embodiment, test module 530, it is additionally configured to be surveyed in the way of at least one following Examination:
The delay of tcp protocol communications is tested by SUT Lmbench testing tools of increasing income;
Tcp protocol communication handling capacities are tested by SUT Lmbench testing tools of increasing income;
The delay of udp protocol communications is tested by SUT Lmbench testing tools of increasing income.
In a preferred embodiment, test module 530, it is additionally configured to be surveyed in the way of at least one following Examination:
File transmission is tested by SUT Lmbench testing tools of increasing income;
Packet loss is tested by SUT Lmbench testing tools of increasing income.
In a preferred embodiment, test module 530, it is additionally configured to:
Tested by the time and speed of upload and download of the SUT Lmbench testing tools of increasing income to file, and Whether the file after checking transmission is consistent with source file.
In a preferred embodiment, as shown in Figure 10, in addition to:
Preserving module 600, coupled with test module 530, be configured to test result being stored in SUT test result mesh Record;And/or
The running log of test process is stored in SUT test log catalogue.
In a preferred embodiment, preserving module 600, it is additionally configured to:
Test result is write in the file under test result catalogue, and test result file name is named with the testing time Claim.
In a preferred embodiment, preserving module 600, it is additionally configured to:
The running log of test process is copied in the file under test log catalogue, and daily record is named with the testing time The title of file.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including some features rather than further feature, but the combination of the feature of different embodiments means to be in the scope of the present invention Within and form different embodiments.For example, in detail in the claims, the one of any of embodiment claimed all may be used Used in a manner of in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) realize that network interface card according to embodiments of the present invention is surveyed with Compatibility of Operating System Trial assembly put in some or all parts some or all functions.The present invention is also implemented as being used to perform institute here The some or all equipment or program of device of the method for description are (for example, computer program and computer program production Product).Such program for realizing the present invention can store on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from internet website and obtained, and either be provided or on carrier signal to appoint What other forms provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention It is determined that or derive many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized It is set to and covers other all these variations or modifications.

Claims (24)

1. a kind of network interface card and the method for Compatibility of Operating System test, it is characterised in that including:
Network interface card and the test environment of Compatibility of Operating System test are created on server S UT to be measured, and is created on the SUT It is able to record the network interface card list of multiple network interface cards to be tested;
When the SUT be triggered network interface card and Compatibility of Operating System test when, activate the test environment on the SUT, and from institute State and select at least one network interface card to be tested to be put into the test environment activated in network interface card list;
Testing process is performed at least one network interface card to be tested respectively in the test environment of the SUT, obtain it is described extremely A few network interface card to be tested and the test data of Compatibility of Operating System test;
The compatibility of at least one network interface card to be tested and operating system is determined according to the test data.
2. according to the method for claim 1, it is characterised in that described created on SUT is able to record multiple nets to be tested The network interface card list of card, including:
The network equipment therein is filtered out from the hardware device of the SUT;
Network interface card is filtered out from the network equipment filtered out according to default network interface name, and according to the net filtered out The network interface card list of multiple network interface cards to be tested is able to record described in card mark establishment.
3. method according to claim 1 or 2, it is characterised in that the establishment on SUT is able to record multiple to be tested Before the network interface card list of network interface card, in addition to:
Judge that the SUT whether there is the process being currently running;
If it is not, then extract the information of the SUT.
4. according to the method for claim 3, it is characterised in that if the process being currently running be present in the SUT, in addition to:
Prompt the user whether to cover the process that is currently running on the SUT to be prepared to enter into the network interface card and Compatibility of Operating System The test environment of test;
If so, then extract the information of the SUT;
If it is not, test terminates.
5. according to the method for claim 4, it is characterised in that the information of the extraction SUT, including:
The hardware information of the SUT is extracted as follows:The facility information of the SUT is extracted by system command;And/or
The software information of the SUT is extracted as follows:By the operating system for reading SUT described in system file contents extraction Information.
6. according to the method for claim 5, it is characterised in that after the information of the extraction SUT, in addition to:
The checking script of the Server is performed on Server, verifies the validity of the Server;
If the Server is effective, the network interface card list of multiple network interface cards to be tested is able to record described in establishment on the SUT;
If the Server is invalid, the checking script of the Server is re-executed, continues to verify that the Server's is effective Property.
7. according to the method for claim 1, it is characterised in that at least one net to be tested is selected in the list from network interface card Card, including:
When the network interface card list includes two or more network card identification, indicated according to condition to be measured or user from the network interface card At least one network interface card to be tested is selected in list, and obtains the Adapter Name and IP address of at least one network interface card to be tested.
8. according to the method for claim 7, it is characterised in that also include:
The checking script of the Server is re-executed on Server, verifies the validity of the Server;
When the Server is effective, survey is performed at least one network interface card to be tested respectively in the test environment of the SUT Try flow;
When the Server is invalid, test terminates.
9. according to the method for claim 1, it is characterised in that it is described in SUT test environment respectively to it is described at least One network interface card to be tested performs testing process, including:
Functional test is carried out at least one network interface card to be tested by the network interface card test script of the SUT respectively;
Performance test is carried out at least one network interface card to be tested by the Lmbench testing tools of increasing income of the SUT respectively.
10. according to the method for claim 9, it is characterised in that the network interface card test script by SUT is respectively to described At least one network interface card to be tested carries out functional test, including at least one following:
Test the startup and closing of at least one network interface card to be tested;
Test network interface corresponding at least one network interface card to be tested whether can ping lead to the Server;
Obtain the information, state, mac addresses of at least one network interface card to be tested;
Obtain the physical location of at least one network interface card to be tested;
Close other network interfaces.
11. according to the method for claim 9, it is characterised in that the Lmbench testing tools point of increasing income by SUT It is other that performance test is carried out at least one network interface card to be tested including at least one following:
The delay of tcp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
Tcp protocol communication handling capacities are tested by the Lmbench testing tools of increasing income of the SUT;
The delay of udp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
File transmission is tested by the Lmbench testing tools of increasing income of the SUT;
Packet loss is tested by the Lmbench testing tools of increasing income of the SUT.
12. according to the method described in claim any one of 9-11, it is characterised in that described to distinguish in SUT test environment After testing process being performed at least one network interface card to be tested, in addition to:
Test result is stored in the test result catalogue of the SUT;And/or
The running log of test process is stored in the test log catalogue of the SUT.
13. a kind of network interface card and the device of Compatibility of Operating System test, it is characterised in that including:
Creation module, it is configured to create network interface card and the test environment of Compatibility of Operating System test on server S UT to be measured, and The network interface card list for being able to record multiple network interface cards to be tested is created on the SUT;
Active module, it is configured to, when the SUT is triggered network interface card with Compatibility of Operating System test, activate on the SUT Test environment, and select at least one network interface card to be tested to be put into the test environment activated from the network interface card list;
Test module, it is configured in the test environment of the SUT perform test at least one network interface card to be tested respectively Flow, obtain at least one network interface card to be tested and the test data of Compatibility of Operating System test;
Determining module, it is configured to determine that at least one network interface card to be tested is compatible with operating system according to the test data Property.
14. device according to claim 13, it is characterised in that the creation module, be additionally configured to:
The network equipment therein is filtered out from the hardware device of the SUT;
Network interface card is filtered out from the network equipment filtered out according to default network interface name, and according to the net filtered out The network interface card list of multiple network interface cards to be tested is able to record described in card mark establishment.
15. the device according to claim 13 or 14, it is characterised in that also include:
Judge module, it is configured to judge that the SUT whether there is the process being currently running;
Extraction module, it is configured to if it is not, then extracting the information of the SUT.
16. device according to claim 15, it is characterised in that also include:
Reminding module, it is configured to prompt the user whether to cover the process that is currently running on the SUT to be prepared to enter into the network interface card With the test environment of Compatibility of Operating System test;
The extraction module, it is additionally configured to if so, then extracting the information of the SUT;
If it is not, test terminates.
17. device according to claim 16, it is characterised in that the extraction module, be additionally configured to:
The hardware information of the SUT is extracted as follows:The facility information of the SUT is extracted by system command;And/or
The software information of the SUT is extracted as follows:By the operating system for reading SUT described in system file contents extraction Information.
18. device according to claim 17, it is characterised in that also include:
First authentication module, it is configured to perform the checking script of the Server on Server, verifies having for the Server Effect property;
If the Server is effective, the network interface card list of multiple network interface cards to be tested is able to record described in establishment on the SUT;
If the Server is invalid, the checking script of the Server is re-executed, continues to verify that the Server's is effective Property.
19. device according to claim 13, it is characterised in that the active module, be additionally configured to:
When the network interface card list includes two or more network card identification, indicated according to condition to be measured or user from the network interface card At least one network interface card to be tested is selected in list, and obtains the Adapter Name and IP address of at least one network interface card to be tested.
20. device according to claim 19, it is characterised in that also include:
Second authentication module, it is configured to re-execute the checking script of the Server on Server, verifies the Server Validity;
When the Server is effective, survey is performed at least one network interface card to be tested respectively in the test environment of the SUT Try flow;
When the Server is invalid, test terminates.
21. device according to claim 13, it is characterised in that the test module, be additionally configured to:
Functional test is carried out at least one network interface card to be tested by the network interface card test script of the SUT respectively;
Performance test is carried out at least one network interface card to be tested by the Lmbench testing tools of increasing income of the SUT respectively.
22. device according to claim 21, it is characterised in that the test module, be additionally configured to by it is following at least it One mode is tested:
Test the startup and closing of at least one network interface card to be tested;
Test network interface corresponding at least one network interface card to be tested whether can ping lead to the Server;
Obtain the information, state, mac addresses of at least one network interface card to be tested;
Obtain the physical location of at least one network interface card to be tested;
Close other network interfaces.
23. device according to claim 21, it is characterised in that the test module, be additionally configured to by it is following at least it One mode is tested:
The delay of tcp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
Tcp protocol communication handling capacities are tested by the Lmbench testing tools of increasing income of the SUT;
The delay of udp protocol communications is tested by the Lmbench testing tools of increasing income of the SUT;
File transmission is tested by the Lmbench testing tools of increasing income of the SUT;
Packet loss is tested by the Lmbench testing tools of increasing income of the SUT.
24. according to the device described in claim any one of 21-23, it is characterised in that also include:
Preserving module, it is configured to test result being stored in the test result catalogue of the SUT;And/or
The running log of test process is stored in the test log catalogue of the SUT.
CN201710653174.1A 2017-08-02 2017-08-02 Network interface card and the method and device of Compatibility of Operating System test Pending CN107643963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710653174.1A CN107643963A (en) 2017-08-02 2017-08-02 Network interface card and the method and device of Compatibility of Operating System test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710653174.1A CN107643963A (en) 2017-08-02 2017-08-02 Network interface card and the method and device of Compatibility of Operating System test

Publications (1)

Publication Number Publication Date
CN107643963A true CN107643963A (en) 2018-01-30

Family

ID=61110726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710653174.1A Pending CN107643963A (en) 2017-08-02 2017-08-02 Network interface card and the method and device of Compatibility of Operating System test

Country Status (1)

Country Link
CN (1) CN107643963A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632859A (en) * 2018-03-27 2018-10-09 深圳酷泰丰科技有限公司 The control method and system that the double physical interfaces of Single NIC compatibility carry out data transmission
CN109634792A (en) * 2018-12-06 2019-04-16 中国电子科技集团公司第十五研究所 A kind of server hardware test platform system based on cloud computing
CN110134556A (en) * 2019-05-16 2019-08-16 深圳市吉祥腾达科技有限公司 The test macro and test method of the Compatibility of Operating System of USB wireless network card
CN110750396A (en) * 2019-08-30 2020-02-04 苏州浪潮智能科技有限公司 Server operating system compatibility testing method and device and storage medium
CN111371654A (en) * 2020-03-18 2020-07-03 四川九州电子科技股份有限公司 Automatic testing system and method for intelligent fusion product network port
CN111611159A (en) * 2020-05-13 2020-09-01 麒麟软件有限公司 Linux operating system test authentication flow management method
CN112231162A (en) * 2020-10-23 2021-01-15 英业达科技有限公司 Startup test system and startup test method
CN113377413A (en) * 2021-04-29 2021-09-10 先进操作系统创新中心(天津)有限公司 Software batch adaptation method based on kylin desktop operating system
CN114647455A (en) * 2022-03-29 2022-06-21 苏州浪潮智能科技有限公司 Method and device for realizing compatibility of operating system and network card and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119237A (en) * 2006-07-31 2008-02-06 英业达股份有限公司 Network card testing method
CN102064971A (en) * 2009-11-18 2011-05-18 英业达股份有限公司 Pressure test method for network cards
US20120089871A1 (en) * 2010-10-11 2012-04-12 Inventec Corporation Test system
CN104168160A (en) * 2014-08-18 2014-11-26 浪潮(北京)电子信息产业有限公司 Method and device for testing compatibility of server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119237A (en) * 2006-07-31 2008-02-06 英业达股份有限公司 Network card testing method
CN102064971A (en) * 2009-11-18 2011-05-18 英业达股份有限公司 Pressure test method for network cards
US20120089871A1 (en) * 2010-10-11 2012-04-12 Inventec Corporation Test system
CN104168160A (en) * 2014-08-18 2014-11-26 浪潮(北京)电子信息产业有限公司 Method and device for testing compatibility of server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张呈志: "浅谈软件测试过程与软件质量控制", 《科技风》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632859A (en) * 2018-03-27 2018-10-09 深圳酷泰丰科技有限公司 The control method and system that the double physical interfaces of Single NIC compatibility carry out data transmission
CN108632859B (en) * 2018-03-27 2021-02-09 深圳酷泰丰科技有限公司 Control method and system for data transmission by single network card compatible with double physical interfaces
CN109634792A (en) * 2018-12-06 2019-04-16 中国电子科技集团公司第十五研究所 A kind of server hardware test platform system based on cloud computing
CN109634792B (en) * 2018-12-06 2023-10-03 中电太极(集团)有限公司 Cloud computing-based server hardware test platform system
CN110134556A (en) * 2019-05-16 2019-08-16 深圳市吉祥腾达科技有限公司 The test macro and test method of the Compatibility of Operating System of USB wireless network card
CN110134556B (en) * 2019-05-16 2023-08-11 深圳市吉祥腾达科技有限公司 System and method for testing compatibility of operating system of USB wireless network card
CN110750396A (en) * 2019-08-30 2020-02-04 苏州浪潮智能科技有限公司 Server operating system compatibility testing method and device and storage medium
CN110750396B (en) * 2019-08-30 2022-07-19 苏州浪潮智能科技有限公司 Server operating system compatibility testing method and device and storage medium
CN111371654B (en) * 2020-03-18 2022-10-14 四川九州电子科技股份有限公司 Automatic testing system and method for intelligent fusion product network port
CN111371654A (en) * 2020-03-18 2020-07-03 四川九州电子科技股份有限公司 Automatic testing system and method for intelligent fusion product network port
CN111611159A (en) * 2020-05-13 2020-09-01 麒麟软件有限公司 Linux operating system test authentication flow management method
CN112231162A (en) * 2020-10-23 2021-01-15 英业达科技有限公司 Startup test system and startup test method
CN113377413A (en) * 2021-04-29 2021-09-10 先进操作系统创新中心(天津)有限公司 Software batch adaptation method based on kylin desktop operating system
CN114647455B (en) * 2022-03-29 2023-08-04 苏州浪潮智能科技有限公司 Method and device for compatible operation system and network card and computer equipment
CN114647455A (en) * 2022-03-29 2022-06-21 苏州浪潮智能科技有限公司 Method and device for realizing compatibility of operating system and network card and computer equipment

Similar Documents

Publication Publication Date Title
CN107643963A (en) Network interface card and the method and device of Compatibility of Operating System test
CN106326219B (en) Method, device and system for checking business system data
CN100563177C (en) The system and method that a kind of network failure detects
CN112054941B (en) Automatic testing method, device and equipment for private domain name and storage medium
CN105933888B (en) A kind of eSIM card method for burn-recording and device based on NFC
CN107465572A (en) Intelligent terminal method of testing, apparatus and system
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN110266761B (en) Load balancing application creation method and device, computer equipment and storage medium
CN107294924A (en) Detection method, the device and system of leak
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
CN107644161A (en) Safety detecting method, device and the equipment of sample
CN106850299A (en) A kind of method and system of fast recovery equipment configuration
CN106656927A (en) Method and device for enabling Linux account to be added to AD domain
Zhang et al. Capture: Centralized library management for heterogeneous {IoT} devices
CN110008058A (en) System and method for network switch to execute automatic data backup
CN106850518A (en) Safety certifying method and device
CN104462934B (en) A kind of information processing method and electronic equipment
CN110166544B (en) Load balancing application creation method and device, computer equipment and storage medium
CN106572199A (en) Method for avoiding DNS pollution
CN106598831A (en) Method and device for testing SDK (software development kit)
CN107592243A (en) A kind of method and device for verifying router static binding function
CN108075933A (en) A kind of network interworking test method and device
CN110134558A (en) A kind of detection method and device of server
CN106254419A (en) System and method virtual machine operated by control station server
CN106603347B (en) Test method and system for checking internet function and checking network abnormity

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

Application publication date: 20180130

RJ01 Rejection of invention patent application after publication