CN107908511A - ACPI test methods, test machine and the system of a kind of network interface card - Google Patents

ACPI test methods, test machine and the system of a kind of network interface card Download PDF

Info

Publication number
CN107908511A
CN107908511A CN201711115035.XA CN201711115035A CN107908511A CN 107908511 A CN107908511 A CN 107908511A CN 201711115035 A CN201711115035 A CN 201711115035A CN 107908511 A CN107908511 A CN 107908511A
Authority
CN
China
Prior art keywords
test
network interface
interface card
electric source
host
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.)
Withdrawn
Application number
CN201711115035.XA
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.)
Taizhou Jiji Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201711115035.XA priority Critical patent/CN107908511A/en
Publication of CN107908511A publication Critical patent/CN107908511A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides ACPI test methods, test machine and the system of a kind of network interface card, method includes:S10 test machines are treated survey grid card and are configured;S20 test machines are instructed according to the test received, after electric source modes are revised as a kind of inoperative electric source modes, test working status of the network interface card to be measured under this inoperative electric source modes;S30 test machines are instructed according to the test received, after amended electric source modes are switched to operating power mode, test working status of the network interface card to be measured under operating power mode;Test result is fed back to host by S40 when completing test under electric source modes of the network interface card to be measured in inoperative electric source modes class;Otherwise, S20 retests are returned;The test that S60 receiving hosts are sent again according to test result instructs, and returns to S20, tests the working status under another electric source modes that network interface card to be measured is not tested in non-operating mode.The present invention realizes the automatic test of network interface card.

Description

ACPI test methods, test machine and the system of a kind of network interface card
Technical field
The present invention relates to network access device field, ACPI test methods, test machine and the system of espespecially a kind of network interface card.
Background technology
ACPI is the abbreviation of Advanced Configuration and Power Interface, and Chinese is entitled " advanced Configuration and power interface ", it defines six kinds of electric source modes, S0-S5.S0 represents the normal operating conditions of computer, operation system System and program are all being run.S1 is also referred to as POS patterns, when most power consumption sleep pattern, all registers are refreshed, and CPU stops Instruction.S2 refers to CPU and stops operating, but remaining equipment can operate, and this pattern is not used.S3 is also referred to as STR moulds Formula, that is, common sleep pattern, main storage still have power supply supply.Computer from S3 states return to S0 when main storage Content and its content when entering S3 states be identical.S4 is also referred to as STD patterns, refers specifically to resting state, at this Under state, the content of all main storages is stored in non-volatility memorizer (hard disk etc.), and after S4 recoveries, user can be with Return to the working status of script.Difference between S4 and S3 is disappeared except the content in main storage is moved in and out Beyond the time of consumption, if once the power supply failed when under S3 states, the data on all main storages will lose, bag All documents without preservation are included, and are not influenced then under S4 states.S5 is off-mode.
Network interface card product can be divided into USB network card, PCI network interface cards, PCI-E network interface cards according to interface type, and two class network interface cards are both needed to pacify Used mounted in computer, therefore, it is necessary to meet in different electrical power pattern switching, the performance state symbol of network interface card closes user demand. Such as when computer switches to S0 from S1, computer recovers normal operating conditions, network interface card can also be waken up into work shape State, and keep original radio configuration to connect.
The ACPI tests of existing network interface card mainly have several drawbacks in that:First, labor intensive, different network interface card projects is required to throw Enter manpower and perform test;Second, not easy to operate, electric source modes handoff procedure is complicated, such as the switching of S3 and S1 states is required to Change, take time and effort from bios;Third, being not easy to pinpoint the problems, consider from user's usage scenario, the switching of computer power supply pattern More frequently, test once, which can not be tested, goes wrong, therefore manual test is not easy to realize the loop test of Non-intermittent.
For the ease of test execution, optimal inspection method, saves time and manpower, comprehensive coverage test scene, there is provided one The ACPI test methods of network interface card are realized in kind automation.
The content of the invention
The object of the present invention is to provide ACPI test methods, system and the test machine of a kind of network interface card, realize network interface card from Dynamicization is tested, and can be saved time and human resources and can be applied to different test scenes.
Technical solution provided by the invention is as follows:
The present invention provides a kind of ACPI test methods of network interface card, including step:S10 test machines are obtained according at host The network connection information taken, configures the network interface card to be measured on the test machine;Test machine described in S20 is according to receiving Test instruction, after the electric source modes of the test machine to be revised as to a kind of electric source modes in inoperative electric source modes class, test Working status of the network interface card to be measured under the electric source modes;The inoperative electric source modes include the S1- under ACPI is defined POS patterns, S3-STR patterns, S4-STD patterns;Test machine described in S30 is instructed according to the test received, by amended electricity After source module is switched to operating power mode, working status of the network interface card to be measured under the operating power mode is tested;Institute State the normal mode of operation under operating power mode is defined including ACPI;S40 is when the network interface card to be measured after the modification described When test is completed under the electric source modes in inoperative electric source modes class, test result is fed back into the host, the test knot Fruit includes the network interface card to be measured the working status in step S20 and step S30;Otherwise, return to step S20 retests; Test machine described in S60 receives the test that the host is sent again according to the test result and instructs, return to step S20, test Working status under another electric source modes that the network interface card to be measured is not tested in the non-operating mode.
Preferably, step is further included before step S10:S01 set on the server it is described it is default test content with it is described Default testing procedure, and the default test content is stored in the server with the default testing procedure;Described in S02 Host obtains the test content, the testing procedure, and the storage unit being stored into the host from the server; Host described in S03 obtains network connection information from the router;The network connection information includes SSID and password;S06 institutes State host and test instruction is sent to the test machine according to the test content, the testing procedure.
Preferably, include before step S06:Host test described in S04 and the server, the test machine, described treat The connectedness of survey grid card, the router;If the S05 hosts and the server, the test machine, the network interface card to be measured, During the router unconnectedness, then stop test;Otherwise, then step S06 is performed.
Preferably, step S20 is specifically included:Test machine described in S21 is instructed according to the test received, by electric source modes The one of which electric source modes being revised as in inoperative electric source modes;Whether test machine described in host acknowledgement described in S22, which is in, is repaiied Electric source modes after changing;Working status of the network interface card to be measured described in host test described in S23 in the amended electric source modes.
Preferably, step S22 is specifically included:Host described in S221 confirms whether the test machine is located by ping orders In amended electric source modes;Step SS23 is specifically included:Host described in S231 tests the network interface card to be measured by ping orders In the working status of the amended electric source modes.
Preferably, step S30 is specifically included:Test machine described in S31 is instructed according to the test received, by electric source modes It is revised as operating power mode;Whether test machine described in host acknowledgement described in S32 is in the operating power mode;Described in S33 Working status of the network interface card to be measured under the operating power mode described in host test.
Preferably, step S32 is specifically included:Host described in S321 by ping orders test the test machine whether into Work(is switched to the operating power mode;Step S33 is specifically included:Host described in S331 described in ping orders test by treating Survey grid is stuck in the working status under the operating power mode.
Preferably, include before step S60:Host described in S50 is according to the test result, the default test content With the default testing procedure, judge in the inoperative electric source modes class with the presence or absence of the electric source modes do not tested;If S51 It is not present, then stops test;Otherwise, step S60 is jumped to continue to test.
A kind of test machine, including:Network card configuration module, for the network connection information according to the acquisition at host, to institute The network interface card to be measured stated on test machine is configured;The energy supply control module and network interface card test module being electrically connected to each other, for basis The test instruction received, the one of which electricity electric source modes of the test machine being revised as in inoperative electric source modes class After source module, working status of the network interface card to be measured under the electric source modes is tested;The inoperative electric source modes include ACPI define under S1-POS patterns, S3-STR patterns, S4-STD patterns;The energy supply control module is additionally operable to according to reception The test instruction arrived, after amended electric source modes are switched to operating power mode, the test module is additionally operable to test institute State working status of the network interface card to be measured under the operating power mode;The operating power mode defined including ACPI under just Normal operating mode;Information feedback module, for when in the network interface card to be measured inoperative electric source modes class after the modification When test is completed under electric source modes, test result is fed back into the host, the test result exists including the network interface card to be measured The working status of the amended electric source modes and the operating mode;Otherwise, the amended electric source modes with And the network interface card to be measured is retested under the operating mode;Information receiving module, for receive the host according to The test instruction that the test result is sent again;The network interface card test module is additionally operable to test the network interface card to be measured described Working status under another electric source modes do not tested in non-operating mode.
A kind of ACPI test systems of network interface card, including a kind of test machine and host, server and router.
By a kind of ACPI test methods, system and the test machine of network interface card provided by the invention, can bring following At least one beneficial effect:
1st, the present invention realizes the automatic test of network interface card.Test machine can be according to host according to test set in advance The test instruction that content and testing procedure are sent, treats survey grid card and is tested, it is not necessary to manually referred to issue every test Order, has saved human cost, and treats the test time that survey grid is stuck in after inoperative electric source modes and operating power mode switching Number is made that certain requirement, its number tested will reach certain number, ensure that the accuracy of test;By advance The test content and testing procedure of setting, omission when avoiding manual testing to a certain testing procedure, improve test Integrality.
2nd, the present invention can be used in different test scenes.User can be in advance by test content and testing procedure Server is stored in, when needing to test network interface card to be measured, test content and testing procedure are obtained from server by host, The test of test instruction progress network interface card to be measured is sent to test machine again.If test content and testing procedure are directly stored On host, after test scene changes, it will be unable to complete test.
3rd, host in advance using router management IP and password obtain network connection information, easy to test machine directly from Host obtains, and is directly connected to router, it is not necessary to which manual connection test machine to router, improves the automation of test.
4th, before test, the connectedness of each equipment of the host test with participating in test, it can be ensured that each equipment is No normal work, can complete this test, improve the accuracy of test.
5th, before the working status of test network interface card, whether test test machine is in amended operating power mode, energy Whether enough Validity Test test machines instruct according to test is completed work, it is ensured that the accuracy of test.
6th, using ping orders, effectively whether amended electric source modes can be in by exact p-value machine, and can have Effect confirms the working status of network interface card, so as to obtain effective test result.
7th, test machine is often tested after a wheel, test result is fed back to host, host is according to pre-set test Content and testing procedure, being capable of the current testing progress of accurate judgement, if whole test content is completed, so that according to survey Try is rapid and test down sending content test instructs, and realizes the automation of test.
Brief description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, a kind of ACPI of network interface card is tested Above-mentioned characteristic, technical characteristic, advantage and its implementation of method, test machine and system are further described.
Fig. 1 is a kind of one embodiment flow chart of the ACPI test methods of network interface card of the present invention;
Fig. 2 is a kind of another embodiment flow chart of the ACPI test methods of network interface card of the present invention;
Fig. 3 is a kind of another embodiment flow chart of the ACPI test methods of network interface card of the present invention;
Fig. 4 is present invention test system topological connection figure;
The structure diagram of the ACPI test systems of a kind of network interface card of present invention during Fig. 5;
Fig. 6 is a kind of another structure diagram of the ACPI test systems of network interface card of the present invention.
Drawing reference numeral explanation:
11- servers, 111- servers storage element, 112- server infos processing unit, 12- hosts, 121- controls Unit, 122- host informations processing unit, 123- hosts storage element, 124- hosts acquisition module, 125- hosts storage mould Block, 126- host commands sending module, 127- host tests module, 128- host computer control modules, 129- hosts judgment module, 13- test machines, 131- test machines information process unit, 132- execution units, 133- network card configurations module, 134 power supplys control mould Block, 135- network interface cards test module, 136- information feedback modules, 137- information receiving modules, 14- routers.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control attached drawing is said below Bright embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without creative efforts, can also be obtained according to these attached drawings Other attached drawings, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures Component, only symbolically depict one of those, or only marked one of those.Herein, "one" not only table Show " only this ", can also represent the situation of " more than one ".
As shown in Figure 1, a kind of one embodiment of the ACPI test methods of network interface card of the present invention, including:
S10 test machines carry out the network interface card to be measured on the test machine according to the network connection information obtained at host Configuration;
Test machine described in S20 is instructed according to the test received, and the electric source modes of the test machine are revised as inoperative After one of which electric source modes in electric source modes class, working status of the network interface card to be measured under the electric source modes is tested; The inoperative electric source modes include S1-POS patterns, S3-STR patterns, S4-STD patterns under ACPI is defined;
Test machine described in S30 is instructed according to the test received, and amended electric source modes are switched to working power mould After formula, working status of the network interface card to be measured under the operating power mode is tested;The operating power mode includes ACPI Normal mode of operation under definition;
S40 works as to be completed to survey under the electric source modes in the inoperative electric source modes class of the network interface card to be measured after the modification During examination, test result is fed back into the host, the test result includes the network interface card to be measured in step S20 and step S30 In working status;Otherwise, return to step S20 retests;
S60 receives the test that the host is sent again according to the test result and instructs, and return to step S20, tests institute State the working status under another electric source modes that network interface card to be measured is not tested in the non-operating mode.
In the present embodiment, the work that test machine side is completed mainly is elaborated, under actual test environment, it is also necessary to There is the participation of host.
Specifically, the network connection information that test machine obtains at host first, and network interface card to be measured is configured, it is described to be measured Network interface card includes wireless network card and wired network adapter.After the completion of configuration, host can send test instruction to test machine, and test machine receives After being instructed to test, the electric source modes of test machine are revised as the one of which electric source modes in inoperative electric source modes class, Then the working status of network interface card to be measured under this pattern is tested, then electric source modes are switched to operating power mode by test machine, The working status of network interface card to be measured is tested under operating power mode again.At this time, if only tested once, will necessarily influence to survey The accuracy of examination, it is therefore desirable to which retest is multiple, improves the accuracy of test, it is contemplated that actual conditions, in order not to influence to survey Test speed is improved in the case of examination precision, the number of retest can be generally arranged to 10~20 times.
When retest 10~20 times, i.e., during completion test described in step S40, test result is fed back into institute State host, host checks the progress of test according to the test result of feedback, then according to pre-set test content and Testing procedure issues test instruction to test machine again, after test machine receives instruction, is instructed according to test, according to above-mentioned Test method test work shape under another electric source modes that the network interface card to be measured is not tested in the non-operating mode State.By the operation of machine, since inevitable carelessness causes the something lost of some testing procedures when can avoid manual testing Leakage.
As mentioned in the background art, ACPI refers to Advanced Configuration and Power Interface Abbreviation, Chinese entitled " advanced configuration and power interface ", which defines six kinds of electric source modes of S0~S5, the present invention is mainly Test test machine to be switched under S0 operating power modes from tri- kinds of inoperative electric source modes of S1, S2, S4, the work of network interface card to be measured Make state.
Under normal circumstances, when test machine is in these three inoperative electric source modes of S1, S2, S4, network interface card to be measured should be at non- Working status, when test machine is switched under S0 operating power modes, network interface card to be measured should be waken up, and be switched to working status, this reality It is exactly to test whether network interface card to be measured network interface card to be measured when electric source modes switch is in due working status to apply example.
Relative to the prior art, the present embodiment realizes the automatic test of network interface card, test machine can according to host according to The test instruction that test content set in advance and testing procedure are sent, treats survey grid card and is tested, it is not necessary to manually come Every test instruction is issued, has saved human cost, and treat survey grid and be stuck in inoperative electric source modes and operating power mode Testing time after switching is made that certain requirement, its number tested will reach certain number, ensure that the standard of test Exactness;By test content set in advance and testing procedure, omission when avoiding manual testing to a certain testing procedure, Improve the integrality of test.
As shown in Fig. 2, a kind of one embodiment of the ACPI test methods of network interface card of the present invention, including:
S01 sets default test content and the default testing procedure on the server, and by the default test Content is stored in the server with the default testing procedure;
Host described in S02 obtains the test content, the testing procedure from the server;And it is stored into the master Storage unit in machine;
Host described in S03 obtains network connection information from the router;The network connection information includes SSID and close Code;
Host test described in S04 and the connection of the server, the test machine, the network interface card, the router to be measured Property;
If the S05 hosts and the server, the test machine, the network interface card to be measured, the router unconnectedness When, then stop test;Otherwise, then step S06 is performed;
Host described in S06 sends test instruction according to the test content, the testing procedure to the test machine;
S10 test machines carry out the network interface card to be measured on the test machine according to the network connection information obtained at host Configuration;
Test machine described in S20 is instructed according to the test received, and the electric source modes of the test machine are revised as inoperative After one of which electric source modes in electric source modes class, working status of the network interface card to be measured under the electric source modes is tested; The inoperative electric source modes include S1-POS patterns, S3-STR patterns, S4-STD patterns under ACPI is defined;
Test machine described in S30 is instructed according to the test received, and amended electric source modes are switched to working power mould After formula, working status of the network interface card to be measured under the operating power mode is tested;The operating power mode includes ACPI Normal mode of operation under definition;
S40 works as to be completed to survey under the electric source modes in the inoperative electric source modes class of the network interface card to be measured after the modification During examination, test result is fed back into the host, the test result includes the network interface card to be measured in step S20 and step S30 In working status;Otherwise, return to step S20 retests;
Test machine described in S60 receives the test that the host is sent again according to the test result and instructs, return to step S20, tests the working status under another electric source modes that the network interface card to be measured is not tested in the non-operating mode.
Specifically, in the present embodiment, the preparation done before testing is mainly elaborated.
User can pre-set the default test content and the default testing procedure on the server, and by described in Default test content is stored in the server with the default testing procedure;Described in the host from server acquisition Test content, the testing procedure, and the storage unit being stored into the host;The host according to it is described test content, The testing procedure sends test instruction to the test machine.
By above-mentioned steps, user can test the network interface card in different scenes, can be by host from clothes Business device is downloaded and stores test content and testing procedure, then carries out the test of network interface card, if will not test content and testing procedure It is stored into server, is directly stored on host, can be limited be subject to usage scenario.
Before test, the host also needs to the management IP and password using router, and net is obtained from the router The SSID and password of network link information, i.e. router, directly obtain network connection information, configuration is treated easy to test machine from host Survey grid card, so as to improve the degree of automation.If user will also input SSID on a testing machine and connect router with password, drop The degree of automation of low test.
Before host issues test instruction, host needs to test and the server, test machine, described to be measured The connectedness of network interface card, the router, it is ensured that each equipment is in normal work, can complete this test, which thereby enhance The accuracy of test.
As shown in figure 3, a kind of one embodiment of the ACPI test methods of network interface card of the present invention, including:
S01 sets default test content and the default testing procedure on the server, and by the default test Content is stored in the server with the default testing procedure;
Host described in S02 obtains the test content, the testing procedure from the server;And it is stored into the master Storage unit in machine;
Host described in S03 obtains network connection information from the router;The network connection information includes SSID and close Code;
Host test described in S04 and the connection of the server, the test machine, the network interface card, the router to be measured Property;
If the S05 hosts and the server, the test machine, the network interface card to be measured, the router unconnectedness When, then stop test;Otherwise, then step S06 is performed;
Host described in S06 sends test instruction according to the test content, the testing procedure to the test machine;
S10 test machines carry out the network interface card to be measured on the test machine according to the network connection information obtained at host Configuration;
Test machine described in S21 is instructed according to the test received, and electric source modes are revised as in inoperative electric source modes One of which electric source modes;
Whether test machine described in host acknowledgement described in S22 is in amended electric source modes;
Preferably, the host confirms whether the test machine is in amended electric source modes by ping orders;
Working status of the network interface card to be measured described in host test described in S23 in the amended electric source modes;
Preferably, the host tests the network interface card to be measured in the amended electric source modes by ping orders Working status;
Test machine described in S31 is instructed according to the test received, and electric source modes are revised as operating power mode;
Whether test machine described in host acknowledgement described in S32 is in the operating power mode;
Preferably, the host by ping orders tests the test machine whether successful switch is to the working power Pattern;
Working status of the network interface card to be measured under the operating power mode described in host test described in S33;
Preferably, the host tests work of the network interface card to be measured under the operating power mode by ping orders Make state;
S40 works as to be completed to survey under the electric source modes in the inoperative electric source modes class of the network interface card to be measured after the modification During examination, test result is fed back into the host, the test result includes the network interface card to be measured in step S20 and step S30 In working status;Otherwise, return to step S20 retests;
Host described in S50 judges according to the test result, the default test content and the default testing procedure With the presence or absence of the electric source modes do not tested in the inoperative electric source modes class;
If S51 is not present, stop test;Otherwise, step S60 is jumped to continue to test;
Test machine described in S60 receives the test that the host is sent again according to the test result and instructs, return to step S20, tests the working status under another electric source modes that the network interface card to be measured is not tested in the non-operating mode.
The present embodiment specifically describes the specific steps for testing network interface card working status to be measured.Specifically, the test machine root Instructed according to the test received, one of which electric source modes electric source modes being revised as in inoperative electric source modes, host needs Confirm whether the test machine is in amended electric source modes, it is ensured that the accuracy of test;Its specific test method is If determination methods are that electric source modes are successfully modified, test machine disconnects the connection with host, and host can not pass through direct-connected network interface card ping Logical test machine.Afterwards, host test network interface card to be measured is in the working status of the amended electric source modes, its specific test Method for host by sending ping bags, the ip of ping network interface cards, can confirm network interface card working status.
After testing test machine and being in amended inoperative electric source modes, it is also necessary to which Test Network is stuck in normal work Electric source modes specifically, the test machine is instructed according to the test received, are switched to work by the working status under operation mode Make electric source modes;Whether test machine described in the host acknowledgement is in the operating power mode, and test method is also led Machine sends ping bags to test machine, and when test machine is under operating power mode, meeting feeds back corresponding signal to host;Afterwards, Its specific test method of working status of the network interface card to be measured under the operating power mode is host described in the host test By sending ping bags, the ip of ping network interface cards, can confirm network interface card working status, if network interface card is in running order, can pass through Ping orders ping leads to network interface card to be measured, if network interface card is in off working state, during ping network interface cards, network interface card does not have response.
Repeat above-mentioned testing procedure 10~20 times, obtain the test result of network interface card, test machine can feed back test result To host, host, with reference to test content and the testing procedure having previously been stored on host, is tested by test result Progress, if finding, whole test assignment has also been not carried out, and the test for issuing next step is instructed and pressed to test machine, test machine The working status for continuing another electric source modes that Test Network is stuck in inoperative electric source modes, and switching are instructed according to test Working status under to operating power mode.If whole test assignment completes, stop test.
For example, pre-set testing procedure is 1, tests the work shape that network interface card to be measured is switched to S0 from electric source modes S1 State, testing time are 15 times;2nd, the working status that network interface card to be measured is switched to S0 from electric source modes S2, testing time 15 are tested It is secondary;3rd, the working status that network interface card to be measured is switched to S0 from electric source modes S4 is tested, testing time is 15 times.
When specific test, electric source modes are first revised as the corresponding inoperative electric source modes of S1, host by test machine Test whether test machine is in this inoperative electric source modes of S1 by ping orders, then tested by ping orders to be measured The working status of network interface card;Electric source modes are switched to the corresponding operating power modes of S0 by test machine, and host is surveyed by ping orders Whether examination test machine is in this operating power modes of S0, and the working status of network interface card to be measured is then tested by ping orders;Weight Multiple above-mentioned testing procedure 10~20 times, and test result is fed back into host, host judges testing procedure 1 according to test result It has been be completed that, start to perform the 2nd step, then sent test instruction to test machine.
After test machine receives test instruction, electric source modes are revised as the corresponding inoperative electric source modes of S2, host Test whether test machine is in this inoperative electric source modes of S2 by ping orders, then tested by ping orders to be measured The working status of network interface card;Electric source modes are switched to the corresponding operating power modes of S0 by test machine, and host is surveyed by ping orders Whether examination test machine is in this operating power modes of S0, and the working status of network interface card to be measured is then tested by ping orders;Weight Multiple above-mentioned testing procedure 10~20 times, and test result is fed back into host, host judges testing procedure 2 according to test result It has been be completed that, start to perform the 2nd step, then sent test instruction to test machine.
After test machine receives test instruction, electric source modes are revised as the corresponding inoperative electric source modes of S4, host Test whether test machine is in this inoperative electric source modes of S4 by ping orders, then tested by ping orders to be measured The working status of network interface card;Electric source modes are switched to the corresponding operating power modes of S0 by test machine, and host is surveyed by ping orders Whether examination test machine is in this operating power modes of S0, and the working status of network interface card to be measured is then tested by ping orders;Weight Multiple above-mentioned testing procedure 10~20 times, and test result is fed back into host, host judges testing procedure 3 according to test result It has been be completed that, whole test assignment has also been completed, and stops test.
, can be with addition to network interface card is switched to the change of operating power mode working status from inoperative electric source modes The working status of inoperative electric source modes is switched to from operating power mode by present invention test network interface card, its test philosophy can To refer to test philosophy provided in this embodiment.
A kind of one embodiment of the ACPI test methods of network interface card of the present invention, including:
The technical scheme is that a kind of ACPI test methods of network interface card, test system mainly includes server 11, road By device 14, host 12, test machine 13, network interface card to be measured.Test method mainly includes the following steps that:
1st, deployment test content and testing procedure on the server 11, are stored in server storage unit 111;
2nd, host 12 is connected to server 11, obtains test content from server 11, preserves to host storage unit;
3rd, test machine 13 installs network interface card and its driver to be measured;
4th, the connection of survey route is accompanied on host 12, the host information processing unit 122 of host 12 obtains the management IP of route And password.In main 12 selection test content, start to perform test;
5th, the control unit 121 of host 12 is according to 122 forwarding information of host information processing unit, control test system into Journey, performs the instruction for starting to test, stop test, continue next step;
6th, test machine 13 performs test according to instruction, and its test result is returned host 12.
The test content of the S1 is primarily referred to as the operating method of network interface card ACPI with testing procedure and realizes step, specifically It is as follows:
101st, test machine 13 configures wireless network card after host 12 obtains wireless messages, connects router 14, sends Ping bags confirm successful connection;
102nd, 13 deployment system instrument pwrtest.exe of test machine can be used for modification electric source modes (S1, S3, S4, Restart), after test-run a machine 13 to be measured enters the pattern, it is confirmed whether to enter successfully by ping bags in host 12.Determination methods If successfully modified for electric source modes, test machine 13 disconnects the connection with host 12, and host 12 can not be led to by direct-connected network interface card ping Test machine 13;
103rd, test-run a machine 13 to be measured is switched under normal operating conditions (S0) from s1 s3 s4 restart, and network interface card can be by Normal wakeup.For host 12 by sending ping bags, the ip of ping network interface cards, can confirm network interface card working status;
104th, S102-S103 is repeated, each electric source modes is tested 10~20 times;
Mainly complete pairwise testing system performs the control of flow to the control unit 121 of the step 5, implements function It is as follows:
501st, after 12 control unit of host obtains 122 information of host information processing unit, test system can be controlled to start Test, stop test.
502nd, after test system starts execution, control unit 121 performs test according to predetermined system flow.The first step is examined Examining system environment, main connectedness, wireless network card and route including host 12 with server 11, host 12 and test machine 13 The connectedness of device 14;Second step, according to the test content of 12 storage unit of host, issues test instruction.3rd step, according to survey Test result, judgement, which continues to execute, perhaps stops test in test.
Fig. 6 is the present embodiment test system structure figure.Test system 10 includes three parts, server 11, host 12, Test machine 13.Server 11 is made of server storage element 111 and server information process unit 112.Server storage list Member 111 is mainly used for disposing the test content and testing procedure of network interface card ACPI.Server info processing unit 112 is mainly responsible for For the data message exchanged inside and out processing.Host 12 is mainly by control unit 121, host information processing unit 122nd, host storage unit 123 is formed.Control unit 121 is mainly used for controlling the execution flow of test system, is pre-designed survey Test system performs criterion of the flow as control.Host information processing unit 122 realize internal data forwarding call with And interacted with exterior.Host storage unit 123 mainly stores two contents, when the test content obtained from server 11, Second, the preservation to test result.Test machine 13 is mainly comprising test machine information process unit 131, execution unit 132..Test Machine information processing unit 131 realizes that the forwarding of internal data is called and interacted with exterior.132 receive information of execution unit Afterwards, local processes are called to perform test.
Fig. 4 is present invention test system topological connection figure.Core equipment include server 11, host 12, test machine 13, Router 14, network interface card to be measured (wireless network card 60), some wired network adapters.
The present embodiment test system specific workflow is as follows:
10th, deployment tests content and testing procedure on the server 11, and is stored in server storage unit 111;
20th, host 12 is connected to server 11, and test content can be obtained from server 11, preserves to host and stores list Member 123;
30th, test machine 13 installs network interface card and its driver to be measured, keeps the connection with host 12 by cable, ensures Host 12 can be with the program of far call test machine 13.The host 12 and direct-connected network interface card IP of host B keeps the same network segment at this time;
40th, the connection of survey route is accompanied on host 12,12 information unit of host obtains the management IP and password of route.
50th, test content is selected in host 12, starts to perform test;
60th, the control unit 121 of host 12 performs test according to default flow;
70th, control unit 121 checks host 12 and server 11, host 12 and test machine 13, wireless network card and router Connectedness between 14;
If the 80, S70 results pass, the control unit 121 of host 12 allows to perform next step, according to test content, issues Instruct to test machine 13;
If the 90, S70 results fail, control unit 121 stops test, and engineer's queueing problem to be tested, returns to S50;
100th, test machine 13 performs test according to instruction, and its test result is returned host 12;
110th, after host 12 receives test result, whether discriminating test content is by the way that host information processing unit 122 will As a result with after test content matching, preserving to host storage unit 123;
120th, the control unit 121 of host 12 judges to test content implementation progress, selection continues to hold according to test information The next test content of row, until all tests are performed both by finishing, control unit 121 stops test system.
The specific workflow of 12 control unit 121 of host is:
1210th, control unit 121 is obtained after starting to perform order, loads predetermined control process;
1211st, control unit 121 checks host 12 and server 11, host 12 and test machine 13, wireless network card and route Connectedness between device 14;
If the 1212, S1211 results pass, according to test down sending content test instruction;If S1211 result fail, stop system System performs;
1213rd, according to 13 feedback test information of test machine, judge to test whether content is finished.If it has been not carried out Finish, return to S1212, be finished, then continue in next step;
1214th, halt system is run.
Present invention also offers a kind of one embodiment of test machine, including:
Network card configuration module 133, for the network connection information according to the acquisition at host 12, to the test machine 13 On network interface card to be measured configured;
The energy supply control module 134 and network interface card test module 135 being electrically connected to each other, for being referred to according to the test received Order, after the electric source modes of the test machine 13 to be revised as to the one of which electric source modes in inoperative electric source modes class, test Working status of the network interface card to be measured under the electric source modes;The inoperative electric source modes include the S1- under ACPI is defined POS patterns, S3-STR patterns, S4-STD patterns;
The energy supply control module 134 is additionally operable to, according to the test instruction received, amended electric source modes be switched After operating power mode, the test module is additionally operable to test work of the network interface card to be measured under the operating power mode Make state;The operating power mode includes the normal mode of operation under ACPI is defined;
Information feedback module 136, for when in the network interface card to be measured inoperative electric source modes class after the modification When test is completed under electric source modes, test result is fed back into the host 12, the test result includes the network interface card to be measured In the working status of the amended electric source modes and the operating mode;Otherwise, in the amended electric source modes And the network interface card to be measured is retested under the operating mode;
Information receiving module 137, refers to for receiving the host 12 according to the test that the test result is sent again Order;The network interface card test module 135 is additionally operable to test the another kind that the network interface card to be measured is not tested in the non-operating mode Working status under electric source modes.
Specifically, the network connection information that test machine 13 obtains at host first, and network interface card to be measured is configured, it is described to treat Survey grid card includes wireless network card and wired network adapter.After the completion of configuration, host can send test instruction, test machine to test machine 13 After 13 receive test instruction, the electric source modes of test machine 13 are revised as the one of which in inoperative electric source modes class Electric source modes, then test the working status of network interface card to be measured under this pattern, and then electric source modes are switched to work by test machine 13 Make electric source modes, test the working status of network interface card to be measured under operating power mode again.At this time, must if only tested once The accuracy of test can so be influenced, it is therefore desirable to which retest is multiple, improves the accuracy of test, it is contemplated that actual conditions, are Do not influence to improve test speed in the case of measuring accuracy, generally the number of retest can be arranged to 10~20 times.
When retest 10~20 times, i.e., during completion test described in step S40, test result is fed back into institute State host, host checks the progress of test according to the test result of feedback, then according to pre-set test content and Testing procedure issues test instruction to test machine 13 again, after test machine 13 receives instruction, is instructed according to test, according to Above-mentioned test method tests the work under another electric source modes that the network interface card to be measured is not tested in the non-operating mode Make state.By the operation of machine, some testing procedures are caused due to inevitably neglecting when can avoid manual testing Omit.
As shown in figure 5, a kind of one embodiment of the ACPI test systems of network interface card of the present invention, including host 12, test machine 13rd, server 11, router 14.
Test machine 13 includes:
Network card configuration module 133, for the network connection information according to the acquisition at host 12, to the test machine 13 On network interface card to be measured configured;
The energy supply control module 134 and network interface card test module 135 being electrically connected to each other, for being referred to according to the test received Order, after the electric source modes of the test machine 13 to be revised as to the one of which electric source modes in inoperative electric source modes class, test Working status of the network interface card to be measured under the electric source modes;The inoperative electric source modes include the S1- under ACPI is defined POS patterns, S3-STR patterns, S4-STD patterns;
The energy supply control module 134 is additionally operable to, according to the test instruction received, amended electric source modes be switched After operating power mode, the test module is additionally operable to test work of the network interface card to be measured under the operating power mode Make state;The operating power mode includes the normal mode of operation under ACPI is defined;
Information feedback module 136, for when in the network interface card to be measured inoperative electric source modes class after the modification When test is completed under electric source modes, test result is fed back into the host 12, the test result includes the network interface card to be measured In the working status of the amended electric source modes and the operating mode;Otherwise, in the amended electric source modes And the network interface card to be measured is retested under the operating mode;
Information receiving module 137, refers to for receiving the host 12 according to the test that the test result is sent again Order;The network interface card test module 135 is additionally operable to test the another kind that the network interface card to be measured is not tested in the non-operating mode Working status under electric source modes.
In the present embodiment, mainly elaborate the work that 13 side of test machine is completed, under actual test environment, also need There is the participation of host 12.
Specifically, the network connection information that test machine 13 obtains at host 12 first, and network interface card to be measured is configured, it is described Network interface card to be measured includes wireless network card and wired network adapter.After the completion of configuration, host 12 can send test instruction to test machine 13, survey After test-run a machine 13 receives test instruction, the electric source modes of test machine 13 are revised as in inoperative electric source modes class wherein A kind of electric source modes, then test the working status of network interface card to be measured under this pattern, and then test machine 13 switches electric source modes For operating power mode, the working status of network interface card to be measured is tested under operating power mode again.At this time, if only testing one It is secondary, the accuracy of test will necessarily be influenced, it is therefore desirable to which retest is multiple, improves the accuracy of test, it is contemplated that actual feelings Condition, in order not to influence measuring accuracy in the case of improve test speed, the number of retest can generally be arranged to 10~ 20 times.
When retest 10~20 times, i.e., during completion test described in step S40, test result is fed back into institute State host 12, host 12 checks the progress of test, then according to pre-set test content according to the test result of feedback And testing procedure issues test instruction to test machine 13 again, after test machine 13 receives instruction, instructed according to test, Tested according to above-mentioned test method under another electric source modes that the network interface card to be measured is not tested in the non-operating mode Working status.By the operation of machine, some test steps are caused due to inevitably neglecting when can avoid manual testing Rapid omission.
As mentioned in the background art, ACPI refers to Advanced Configuration and Power Interface Abbreviation, Chinese entitled " advanced configuration and power interface ", which defines six kinds of electric source modes of S0~S5, the present invention is mainly Test machine 13 is tested to be switched under S0 operating power modes from tri- kinds of inoperative electric source modes of S1, S2, S4, network interface card to be measured Working status.
Under normal circumstances, when test machine 13 is in these three inoperative electric source modes of S1, S2, S4, network interface card to be measured should be at Off working state, when test machine 13 is switched under S0 operating power modes, network interface card to be measured should be waken up, and be switched to working status, The present embodiment is exactly to test whether network interface card to be measured network interface card to be measured when electric source modes switch is in due working status.
Relative to the prior art, the present embodiment realizes the automatic test of network interface card, and test machine 13 can be according to host 12 The test sent according to test content set in advance and testing procedure instructs, and treats survey grid card and is tested, it is not necessary to people Work instructs to issue every test, has saved human cost, and treat survey grid and be stuck in inoperative electric source modes and working power Testing time after pattern switching is made that certain requirement, its number tested will reach certain number, ensure that test Accuracy;By test content set in advance and testing procedure, to a certain testing procedure when avoiding manual testing Omit, improve the integrality of test.
A kind of as shown in fig. 6, one embodiment of the ACPI test systems of network interface card of the present invention.
The test machine 13 includes:
Network card configuration module 133, for the network connection information according to the acquisition at host 12, to the test machine 13 On network interface card to be measured configured;
The energy supply control module 134 and network interface card test module 135 being electrically connected to each other, for being referred to according to the test received Order, after the electric source modes of the test machine 13 to be revised as to the one of which electric source modes in inoperative electric source modes class, test Working status of the network interface card to be measured under the electric source modes;The inoperative electric source modes include the S1- under ACPI is defined POS patterns, S3-STR patterns, S4-STD patterns;
The energy supply control module 134 is additionally operable to, according to the test instruction received, amended electric source modes be switched After operating power mode, the test module is additionally operable to test work of the network interface card to be measured under the operating power mode Make state;The operating power mode includes the normal mode of operation under ACPI is defined;
Information feedback module 136, for when in the network interface card to be measured inoperative electric source modes class after the modification When test is completed under electric source modes, test result is fed back into the host 12, the test result includes the network interface card to be measured In the working status of the amended electric source modes and the operating mode;Otherwise, in the amended electric source modes And the network interface card to be measured is retested under the operating mode;
Information receiving module 137, refers to for receiving the host 12 according to the test that the test result is sent again Order;The network interface card test module 135 is additionally operable to test the another kind that the network interface card to be measured is not tested in the non-operating mode Working status under electric source modes.
The server 11 includes:Server storage module, for storing the default test content and the default survey Try is rapid;
The host 12 includes:The host acquisition module 124 and host storage module 125 being electrically connected to each other, for from institute State server 11 and obtain the test content, the testing procedure;The host storage module 125 is used to store the test Content, the testing procedure;
The host acquisition module 124 is additionally operable to obtain network connection information from the router 14;The network connection Information includes SSID and password;
The host 12 further includes:Host command sending module 126, for according to the test content, the test step Suddenly test instruction is sent to the test machine 13.
The host 12 further includes:Host test module 127, for testing and the server 11, the test machine 13rd, the network interface card to be measured (wireless network card 60), the connectedness of the router 14;
The host further includes:Host computer control module 128, respectively with described instruction sending module, the host test mould Block 127 is electrically connected, if for the host 12 and the server 11, the test machine 13, the network interface card (wireless network to be measured Card 60), 14 unconnectedness of router when, then stop test;Otherwise, then step S06 is performed.
The energy supply control module 134 is additionally operable to, according to the test instruction received, electric source modes are revised as inoperative One of which electric source modes in electric source modes;
The host test module 127 is additionally operable to confirm whether the test machine 13 is in amended electric source modes;
The host test module 127 is additionally operable to test work of the network interface card to be measured in the amended electric source modes Make state;
Whether the host test module 127 is additionally operable to confirm the test machine 13 after modification by ping orders Electric source modes;
The host test module 127 is additionally operable to test the network interface card to be measured described amended by ping orders The working status of electric source modes.
The energy supply control module 134 is additionally operable to, according to the test instruction received, electric source modes are switched to work electricity Source module;
The host test module 127 is additionally operable to confirm whether the test machine 13 is in the operating power mode;
The host test module 127 is additionally operable to test work of the network interface card to be measured under the operating power mode State.
The host test module 127 is additionally operable to whether successful switch arrives by the ping orders test test machine 13 The operating power mode;
The host test module 127 is additionally operable to test the network interface card to be measured in the working power by ping orders Working status under pattern.
The host 12 further includes host judgment module 129 according to the test result, the default test content and institute Default testing procedure is stated, is judged in the inoperative electric source modes class with the presence or absence of the electric source modes do not tested;
If the host computer control module 128 is used to be not present, stop test;Otherwise, step S60 is jumped to continue to survey Examination.
Specifically, server 11, host 12, test machine 13 and the connection relation of router 14 may be referred to Fig. 5.
Wireless network card 60 is network interface card to be measured so that the wired network adapter 20 and server 11 of host 12 are wired in the present embodiment Network interface card 10 connects, for obtaining test content and testing procedure from server 11;The wired network adapter 30 and test machine of host 12 13 wired network adapter 50 connects, for sending ping orders, the electric source modes of test test machine 13, and test machine 13 from master Machine 12 obtains network connection information;The wired network adapter 40 of host 12 is connected with wireless network card 60 by router 14, for nothing Gauze card 60 sends ping orders, tests the working status of wireless network card 60.
Specifically, user can pre-set the default test content and the default testing procedure on the server 11, And the default test content is stored in the server 11 with the default testing procedure;The host 12 is from the clothes Business device 11 obtains the test content, the testing procedure, and the host storage unit 123 being stored into the host 12;Institute State host 12 and test instruction is sent to the test machine 13 according to the test content, the testing procedure.
By above-mentioned steps, user can test the network interface card in different scenes, can by host 12 from Server 11 is downloaded and stores test content and testing procedure, then carries out the test of network interface card, if will not test content and test Step is stored into server 11, is directly stored on host 12, can be limited be subject to usage scenario.
Before test, the host 12 also needs to the management IP and password using router 14, from the router 14 The SSID and password of network connection information, i.e. router 14 are obtained, directly network connection is obtained from host 12 easy to test machine 13 Information, configures network interface card to be measured, so as to improve the degree of automation.If user will also input SSID on test machine 13 and password connects Router 14 is connect, then reduces the degree of automation of test.
Host 12 issue test instruction before, host 12 need test with the server 11, the test machine 13, The network interface card to be measured (wireless network card 60), the connectedness of the router 14, it is ensured that each equipment is in normal work, can This test is completed, which thereby enhances the accuracy of test.
Specifically, the test machine 13 is instructed according to the test received, electric source modes are revised as inoperative power supply mould One of which electric source modes in formula, host 12 need to confirm whether the test machine 13 is in amended electric source modes, really Protect the accuracy of test;If it is that electric source modes are successfully modified that its specific test method, which is determination methods, test machine 13 disconnect with The connection of host 12, host 12 can not lead to test machine 13 by direct-connected network interface card ping.Afterwards, host 12 tests network interface card to be measured and exists The working status of the amended electric source modes, its specific test method are host 12 by sending ping bags, ping nets The ip of card, can confirm network interface card working status.
After testing test machine 13 and being in amended inoperative electric source modes, it is also necessary to which Test Network is stuck in normally Working status under operating mode, specifically, the test machine 13 is instructed according to the test received, electric source modes are switched For operating power mode;The host 12 confirms whether the test machine 13 is in the operating power mode, and test method is same Sample is also that host 12 sends ping bags to test machine 13, and when test machine 13 is under operating power mode, meeting be fed back to host 12 Corresponding signal;Afterwards, the host 12 test working status of the network interface card to be measured under the operating power mode its tool The test method of body for host 12 by sending ping bags, the ip of ping network interface cards, can confirm network interface card working status, if at network interface card In working status, then network interface card to be measured can be led to by ping orders ping, if network interface card is in off working state, ping network interface cards When, network interface card does not have response.
Repeat above-mentioned testing procedure 10~20 times, obtain the test result of network interface card, test machine 13 can be anti-by test result Host 12 is fed to, host 12, with reference to test content and the testing procedure having previously been stored on host 12, is obtained by test result To the progress of test, if finding, whole test assignment has also been not carried out, and the test for issuing next step is instructed to test machine 13, test machine 13 instructs the work for continuing another electric source modes that Test Network is stuck in inoperative electric source modes according to test State, and the working status being switched under operating power mode.If whole test assignment completes, stop test.
For example, pre-set testing procedure is 1, tests the work shape that network interface card to be measured is switched to S0 from electric source modes S1 State, testing time are 15 times;2nd, the working status that network interface card to be measured is switched to S0 from electric source modes S2, testing time 15 are tested It is secondary;3rd, the working status that network interface card to be measured is switched to S0 from electric source modes S4 is tested, testing time is 15 times.
When specific test, electric source modes are first revised as the corresponding inoperative electric source modes of S1 by test machine 13, main Machine 12 tests whether test machine 13 is in this inoperative electric source modes of S1 by ping orders, is then surveyed by ping orders Try the working status of network interface card to be measured;Electric source modes are switched to the corresponding operating power modes of S0 by test machine 13, and host 12 passes through Whether ping orders test test machine 13 is in this operating power modes of S0, then tests network interface card to be measured by ping orders Working status;The above-mentioned testing procedure of repetition 10~20 times, and test result is fed back into host 12, host 12 is according to test As a result, judging that testing procedure 1 has been completed, start to perform the 2nd step, then send test instruction to test machine 13.
After test machine 13 receives test instruction, electric source modes are revised as the corresponding inoperative electric source modes of S2, it is main Machine 12 tests whether test machine 13 is in this inoperative electric source modes of S2 by ping orders, is then surveyed by ping orders Try the working status of network interface card to be measured;Electric source modes are switched to the corresponding operating power modes of S0 by test machine 13, and host 12 passes through Whether ping orders test test machine 13 is in this operating power modes of S0, then tests network interface card to be measured by ping orders Working status;The above-mentioned testing procedure of repetition 10~20 times, and test result is fed back into host 12, host 12 is according to test As a result, judging that testing procedure 2 has been completed, start to perform the 2nd step, then send test instruction to test machine 13.
After test machine 13 receives test instruction, electric source modes are revised as the corresponding inoperative electric source modes of S4, it is main Machine 12 tests whether test machine 13 is in this inoperative electric source modes of S4 by ping orders, is then surveyed by ping orders Try the working status of network interface card to be measured;Electric source modes are switched to the corresponding operating power modes of S0 by test machine 13, and host 12 passes through Whether ping orders test test machine 13 is in this operating power modes of S0, then tests network interface card to be measured by ping orders Working status;The above-mentioned testing procedure of repetition 10~20 times, and test result is fed back into host 12, host 12 is according to test As a result, judging that testing procedure 3 has been completed, whole test assignment has also been completed, and stops test.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the ACPI test methods of a kind of network interface card, it is characterised in that including step:
S10 test machines configure the network interface card to be measured on the test machine according to the network connection information obtained at host;
Test machine described in S20 is instructed according to the test received, and the electric source modes of the test machine are revised as inoperative power supply After a kind of electric source modes in pattern class, working status of the network interface card to be measured under the electric source modes is tested;The non-work Make S1-POS patterns, S3-STR patterns, the S4-STD patterns under electric source modes are defined including ACPI;
Test machine described in S30 is instructed according to the test received, after amended electric source modes are switched to operating power mode, Test working status of the network interface card to be measured under the operating power mode;The operating power mode is included under ACPI definition Normal mode of operation;
S40 when completing test under the electric source modes in the network interface card to be measured inoperative electric source modes class after the modification, Test result is fed back into the host, the test result includes the network interface card to be measured the work in step S20 and step S30 Make state;Otherwise, return to step S20 retests;
Test machine described in S60 receives the test that the host is sent again according to the test result and instructs, return to step S20, Test the working status under another electric source modes that the network interface card to be measured is not tested in the non-operating mode.
2. the ACPI test methods of a kind of network interface card as claimed in claim 1, it is characterised in that further include step before step S10 Suddenly:
S01 sets default test content and the default testing procedure on the server, and by the default test content The server is stored in the default testing procedure;
Host described in S02 obtains the test content, the testing procedure from the server, and is stored into the host Storage unit;
Host described in S03 obtains network connection information from the router;The network connection information includes SSID and password;
Host described in S06 sends test instruction according to the test content, the testing procedure to the test machine.
3. the ACPI test methods of a kind of network interface card as claimed in claim 2, it is characterised in that include before step S06:
Host test described in S04 and the server, the test machine, the network interface card to be measured, the connectedness of the router;
If when the S05 hosts and the server, the test machine, the network interface card to be measured, the router unconnectedness, Stop test;Otherwise, then step S06 is performed.
4. the ACPI test methods of a kind of network interface card as claimed in claim 1, it is characterised in that step S20 is specifically included:
Test machine described in S21 is instructed according to the test received, and electric source modes are revised as in inoperative electric source modes wherein A kind of electric source modes;
Whether test machine described in host acknowledgement described in S22 is in amended electric source modes;
Working status of the network interface card to be measured described in host test described in S23 in the amended electric source modes.
5. the ACPI test methods of a kind of network interface card as claimed in claim 4, it is characterised in that step S22 is specifically included:
Host described in S221 confirms whether the test machine is in amended electric source modes by ping orders;
Step SS23 is specifically included:
Host described in S231 tests working status of the network interface card to be measured in the amended electric source modes by ping orders.
6. the ACPI test methods of a kind of network interface card as claimed in claim 1, it is characterised in that step S30 is specifically included:
Test machine described in S31 is instructed according to the test received, and electric source modes are revised as operating power mode;
Whether test machine described in host acknowledgement described in S32 is in the operating power mode;
Working status of the network interface card to be measured under the operating power mode described in host test described in S33.
7. the ACPI test methods of a kind of network interface card as claimed in claim 6, it is characterised in that step S32 is specifically included:
Host described in S321 by ping orders tests the test machine, and whether successful switch is to the operating power mode;
Step S33 is specifically included:
Host described in S331 tests working status of the network interface card to be measured under the operating power mode by ping orders.
8. the ACPI test methods of a kind of network interface card as described in claim 1~7, it is characterised in that include before step S60:
Host described in S50 judges described non-according to the test result, the default test content and the default testing procedure With the presence or absence of the electric source modes do not tested in operating power mode class;
If S51 is not present, stop test;Otherwise, step S60 is jumped to continue to test.
9. a kind of test machine, it is characterised in that the ACPI applied to a kind of network interface card according to any one of claims 1 to 8 is surveyed Method for testing, including:
Network card configuration module, for the network connection information according to the acquisition at host, to the network interface card to be measured on the test machine Configured;
The energy supply control module and network interface card test module being electrically connected to each other, for being instructed according to the test received, by the survey After the electric source modes of test-run a machine are revised as the one of which electric source modes in inoperative electric source modes class, test the network interface card to be measured and exist Working status under the electric source modes;The inoperative electric source modes include ACPI define under S1-POS patterns, S3-STR Pattern, S4-STD patterns;
The energy supply control module is additionally operable to, according to the test instruction received, amended electric source modes are switched to work electricity After source module, the test module is additionally operable to test working status of the network interface card to be measured under the operating power mode;Institute State the normal mode of operation under operating power mode is defined including ACPI;
Information feedback module, for when the electric source modes in the network interface card to be measured inoperative electric source modes class after the modification During lower completion test, test result is fed back into the host, the test result includes the network interface card to be measured in the modification Electric source modes afterwards and the working status of the operating mode;Otherwise, in the amended electric source modes and the work The network interface card to be measured is retested under operation mode;
Information receiving module, instructs for receiving the test that the host is sent again according to the test result;The network interface card Test module is additionally operable to test the work under another electric source modes that the network interface card to be measured is not tested in the non-operating mode Make state.
A kind of 10. ACPI test systems of network interface card, it is characterised in that a kind of test machine provided including such as claim 9 with And host, server and router.
CN201711115035.XA 2017-11-13 2017-11-13 ACPI test methods, test machine and the system of a kind of network interface card Withdrawn CN107908511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711115035.XA CN107908511A (en) 2017-11-13 2017-11-13 ACPI test methods, test machine and the system of a kind of network interface card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711115035.XA CN107908511A (en) 2017-11-13 2017-11-13 ACPI test methods, test machine and the system of a kind of network interface card

Publications (1)

Publication Number Publication Date
CN107908511A true CN107908511A (en) 2018-04-13

Family

ID=61845045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711115035.XA Withdrawn CN107908511A (en) 2017-11-13 2017-11-13 ACPI test methods, test machine and the system of a kind of network interface card

Country Status (1)

Country Link
CN (1) CN107908511A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347693A (en) * 2018-09-05 2019-02-15 天津市英贝特航天科技有限公司 A kind of JLAN91C111 network interface card test device and its test method
CN109408154A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 The method and device for closing network interface card network interface function is automatically opened under a kind of Linux system
CN111538518A (en) * 2020-04-27 2020-08-14 深圳忆联信息***有限公司 Method and device for realizing automatic batch test of tester and computer equipment
CN112133072A (en) * 2020-09-23 2020-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN113204384A (en) * 2021-05-14 2021-08-03 山东英信计算机技术有限公司 Equipment starting method and device and computer readable storage medium
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing network card switching effectiveness

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347693A (en) * 2018-09-05 2019-02-15 天津市英贝特航天科技有限公司 A kind of JLAN91C111 network interface card test device and its test method
CN109408154A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 The method and device for closing network interface card network interface function is automatically opened under a kind of Linux system
CN111538518A (en) * 2020-04-27 2020-08-14 深圳忆联信息***有限公司 Method and device for realizing automatic batch test of tester and computer equipment
CN112133072A (en) * 2020-09-23 2020-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN112133072B (en) * 2020-09-23 2021-07-06 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN113204384A (en) * 2021-05-14 2021-08-03 山东英信计算机技术有限公司 Equipment starting method and device and computer readable storage medium
CN113204384B (en) * 2021-05-14 2023-05-16 山东英信计算机技术有限公司 Device starting method, device and computer readable storage medium
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing network card switching effectiveness
CN114338457B (en) * 2021-12-23 2023-12-01 绿盟科技集团股份有限公司 Test system, method, device, equipment and medium for network card switching effectiveness

Similar Documents

Publication Publication Date Title
CN107908511A (en) ACPI test methods, test machine and the system of a kind of network interface card
CN105302716B (en) Test method, device under the development mode of interflow
CN102967815B (en) Chip testing method, automated testing equipment and system
CN103616937B (en) A kind of mainboard, PCIE network interface card and server system
CN103812726A (en) Automated testing method and device for data communication equipment
CN104809014B (en) A kind of system remote radio upgrade method
CN105378493A (en) Cloud based infrastructure for supporting protocol reconfigurations in protocol independent device testing systems
CN113377591B (en) Method and device for improving test speed of ATE equipment chip
CN109186666A (en) Detection method, device, computer equipment and the storage medium of equipment
CN106484620B (en) Method for testing multi-system terminal equipment, control equipment and console
CN104076806A (en) Method of carrying out automatic test on automobile electric control device and equipment
CN104298602A (en) Method and device for debugging application program
CN109428778B (en) Mainboard network connectivity test method and device
CN107070747A (en) A kind of method of the automatic test network interface card network connection stability under network card binding pattern
CN103037020B (en) Multi-channel high speed data transmission system used for single event effect detection
CN113595817A (en) LIN communication fault injection method, system and storage medium
CN106201810A (en) A kind of method of testing, device
CN107729035A (en) Distributed battery management system download program and update method
CN106612215A (en) Integrated remote detection device and method based on Ethernet
CN107396392A (en) Radio-frequency indicator testing method, device, equipment and the storage medium of WAP
CN102158374B (en) Bandwidth speed limiting testing method and testing device
CN103576019B (en) Testing tool, system and method of electrical equipment
CN101895439A (en) Multi-network element polling device and method
CN105490874B (en) Blade switch system, the rack network equipment and blade switch test method
CN111631661B (en) Fault positioning method of dish washing machine, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200818

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Applicant before: Phicomm (Shanghai) Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180413