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 belowBright 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 drawingsOther 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 representedIts practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figuresComponent, only symbolically depict one of those, or only marked one of those.Herein, "one" not only tableShow " 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 hostConfiguration;
Test machine described in S20 is instructed according to the test received, and the electric source modes of the test machine are revised as inoperativeAfter 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 mouldAfter formula, working status of the network interface card to be measured under the operating power mode is tested;The operating power mode includes ACPINormal 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 modificationDuring 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 S30In 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 instituteState 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 toThere 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 measuredNetwork 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 receivesAfter 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 surveyThe 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 surveyTest 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 instituteState host, host checks the progress of test according to the test result of feedback, then according to pre-set test content andTesting procedure issues test instruction to test machine again, after test machine receives instruction, is instructed according to test, according to above-mentionedTest method test work shape under another electric source modes that the network interface card to be measured is not tested in the non-operating modeState.By the operation of machine, since inevitable carelessness causes the something lost of some testing procedures when can avoid manual testingLeakage.
As mentioned in the background art, ACPI refers to Advanced Configuration and Power InterfaceAbbreviation, Chinese entitled " advanced configuration and power interface ", which defines six kinds of electric source modes of S0~S5, the present invention is mainlyTest 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 measuredMake 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 realityIt 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 toThe 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 comeEvery test instruction is issued, has saved human cost, and treat survey grid and be stuck in inoperative electric source modes and operating power modeTesting time after switching is made that certain requirement, its number tested will reach certain number, ensure that the standard of testExactness;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 testContent 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 masterStorage unit in machine;
Host described in S03 obtains network connection information from the router;The network connection information includes SSID and closeCode;
Host test described in S04 and the connection of the server, the test machine, the network interface card, the router to be measuredProperty;
If the S05 hosts and the server, the test machine, the network interface card to be measured, the router unconnectednessWhen, 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 hostConfiguration;
Test machine described in S20 is instructed according to the test received, and the electric source modes of the test machine are revised as inoperativeAfter 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 mouldAfter formula, working status of the network interface card to be measured under the operating power mode is tested;The operating power mode includes ACPINormal 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 modificationDuring 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 S30In 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 stepS20, 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 inDefault test content is stored in the server with the default testing procedure;Described in the host from server acquisitionTest 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 clothesBusiness 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 procedureIt 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 routerThe SSID and password of network link information, i.e. router, directly obtain network connection information, configuration is treated easy to test machine from hostSurvey 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, dropThe degree of automation of low test.
Before host issues test instruction, host needs to test and the server, test machine, described to be measuredThe connectedness of network interface card, the router, it is ensured that each equipment is in normal work, can complete this test, which thereby enhanceThe 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 testContent 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 masterStorage unit in machine;
Host described in S03 obtains network connection information from the router;The network connection information includes SSID and closeCode;
Host test described in S04 and the connection of the server, the test machine, the network interface card, the router to be measuredProperty;
If the S05 hosts and the server, the test machine, the network interface card to be measured, the router unconnectednessWhen, 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 hostConfiguration;
Test machine described in S21 is instructed according to the test received, and electric source modes are revised as in inoperative electric source modesOne 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 ordersWorking 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 powerPattern;
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 ordersMake 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 modificationDuring 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 S30In 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 procedureWith 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 stepS20, 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 rootInstructed according to the test received, one of which electric source modes electric source modes being revised as in inoperative electric source modes, host needsConfirm whether the test machine is in amended electric source modes, it is ensured that the accuracy of test;Its specific test method isIf 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 pingLogical test machine.Afterwards, host test network interface card to be measured is in the working status of the amended electric source modes, its specific testMethod 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 workElectric source modes specifically, the test machine is instructed according to the test received, are switched to work by the working status under operation modeMake electric source modes;Whether test machine described in the host acknowledgement is in the operating power mode, and test method is also ledMachine 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 testBy 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 throughPing 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 resultTo host, host, with reference to test content and the testing procedure having previously been stored on host, is tested by test resultProgress, 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 machineThe working status for continuing another electric source modes that Test Network is stuck in inoperative electric source modes, and switching are instructed according to testWorking 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 S1State, 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 testedIt 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 machineTest whether test machine is in this inoperative electric source modes of S1 by ping orders, then tested by ping orders to be measuredThe 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 ordersWhether 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;WeightMultiple above-mentioned testing procedure 10~20 times, and test result is fed back into host, host judges testing procedure 1 according to test resultIt 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, hostTest whether test machine is in this inoperative electric source modes of S2 by ping orders, then tested by ping orders to be measuredThe 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 ordersWhether 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;WeightMultiple above-mentioned testing procedure 10~20 times, and test result is fed back into host, host judges testing procedure 2 according to test resultIt 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, hostTest whether test machine is in this inoperative electric source modes of S4 by ping orders, then tested by ping orders to be measuredThe 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 ordersWhether 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;WeightMultiple above-mentioned testing procedure 10~20 times, and test result is fed back into host, host judges testing procedure 3 according to test resultIt 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 modesThe working status of inoperative electric source modes is switched to from operating power mode by present invention test network interface card, its test philosophy canTo 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, roadBy 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 routeAnd 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 intoJourney, 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, specificallyIt is as follows:
101st, test machine 13 configures wireless network card after host 12 obtains wireless messages, connects router 14, sendsPing 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 methodsIf 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 pingTest 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 byNormal 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 functionIt is as follows:
501st, after 12 control unit of host obtains 122 information of host information processing unit, test system can be controlled to startTest, stop test.
502nd, after test system starts execution, control unit 121 performs test according to predetermined system flow.The first step is examinedExamining system environment, main connectedness, wireless network card and route including host 12 with server 11, host 12 and test machine 13The connectedness of device 14;Second step, according to the test content of 12 storage unit of host, issues test instruction.3rd step, according to surveyTest 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 listMember 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 forFor the data message exchanged inside and out processing.Host 12 is mainly by control unit 121, host information processing unit122nd, host storage unit 123 is formed.Control unit 121 is mainly used for controlling the execution flow of test system, is pre-designed surveyTest system performs criterion of the flow as control.Host information processing unit 122 realize internal data forwarding call withAnd 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..TestMachine information processing unit 131 realizes that the forwarding of internal data is called and interacted with exterior.132 receive information of execution unitAfterwards, 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 listMember 123;
30th, test machine 13 installs network interface card and its driver to be measured, keeps the connection with host 12 by cable, ensuresHost 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 routerConnectedness between 14;
If the 80, S70 results pass, the control unit 121 of host 12 allows to perform next step, according to test content, issuesInstruct 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 willAs 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 informationThe 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 routeConnectedness between device 14;
If the 1212, S1211 results pass, according to test down sending content test instruction;If S1211 result fail, stop systemSystem performs;
1213rd, according to 13 feedback test information of test machine, judge to test whether content is finished.If it has been not carried outFinish, 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 13On 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 receivedOrder, 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, testWorking 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 definedPOS 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 switchedAfter operating power mode, the test module is additionally operable to test work of the network interface card to be measured under the operating power modeMake 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 modificationWhen 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 measuredIn the working status of the amended electric source modes and the operating mode;Otherwise, in the amended electric source modesAnd 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 againOrder;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 modeWorking 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 treatSurvey 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 13After 13 receive test instruction, the electric source modes of test machine 13 are revised as the one of which in inoperative electric source modes classElectric 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 13Make 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 onceThe 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, areDo 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 instituteState host, host checks the progress of test according to the test result of feedback, then according to pre-set test content andTesting procedure issues test instruction to test machine 13 again, after test machine 13 receives instruction, is instructed according to test, according toAbove-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 modeMake state.By the operation of machine, some testing procedures are caused due to inevitably neglecting when can avoid manual testingOmit.
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 machine13rd, 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 13On 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 receivedOrder, 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, testWorking 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 definedPOS 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 switchedAfter operating power mode, the test module is additionally operable to test work of the network interface card to be measured under the operating power modeMake 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 modificationWhen 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 measuredIn the working status of the amended electric source modes and the operating mode;Otherwise, in the amended electric source modesAnd 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 againOrder;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 modeWorking 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 needThere 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 describedNetwork 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, surveyAfter 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 whereinA 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 modesFor 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 oneIt 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 feelingsCondition, 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 instituteState host 12, host 12 checks the progress of test, then according to pre-set test content according to the test result of feedbackAnd 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 modeWorking status.By the operation of machine, some test steps are caused due to inevitably neglecting when can avoid manual testingRapid omission.
As mentioned in the background art, ACPI refers to Advanced Configuration and Power InterfaceAbbreviation, Chinese entitled " advanced configuration and power interface ", which defines six kinds of electric source modes of S0~S5, the present invention is mainlyTest 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 measuredWorking 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 atOff 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 12The 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 peopleWork instructs to issue every test, has saved human cost, and treat survey grid and be stuck in inoperative electric source modes and working powerTesting time after pattern switching is made that certain requirement, its number tested will reach certain number, ensure that testAccuracy;By test content set in advance and testing procedure, to a certain testing procedure when avoiding manual testingOmit, 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 13On 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 receivedOrder, 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, testWorking 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 definedPOS 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 switchedAfter operating power mode, the test module is additionally operable to test work of the network interface card to be measured under the operating power modeMake 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 modificationWhen 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 measuredIn the working status of the amended electric source modes and the operating mode;Otherwise, in the amended electric source modesAnd 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 againOrder;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 modeWorking status under electric source modes.
The server 11 includes:Server storage module, for storing the default test content and the default surveyTry is rapid;
The host 12 includes:The host acquisition module 124 and host storage module 125 being electrically connected to each other, for from instituteState server 11 and obtain the test content, the testing procedure;The host storage module 125 is used to store the testContent, the testing procedure;
The host acquisition module 124 is additionally operable to obtain network connection information from the router 14;The network connectionInformation includes SSID and password;
The host 12 further includes:Host command sending module 126, for according to the test content, the test stepSuddenly 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 machine13rd, 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 mouldBlock 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 measuredCard 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 inoperativeOne 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 modesMake state;
Whether the host test module 127 is additionally operable to confirm the test machine 13 after modification by ping ordersElectric source modes;
The host test module 127 is additionally operable to test the network interface card to be measured described amended by ping ordersThe 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 electricitySource 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 modeState.
The host test module 127 is additionally operable to whether successful switch arrives by the ping orders test test machine 13The 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 ordersWorking status under pattern.
The host 12 further includes host judgment module 129 according to the test result, the default test content and instituteDefault 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 surveyExamination.
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 embodimentNetwork interface card 10 connects, for obtaining test content and testing procedure from server 11;The wired network adapter 30 and test machine of host 1213 wired network adapter 50 connects, for sending ping orders, the electric source modes of test test machine 13, and test machine 13 from masterMachine 12 obtains network connection information;The wired network adapter 40 of host 12 is connected with wireless network card 60 by router 14, for nothingGauze 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 clothesBusiness device 11 obtains the test content, the testing procedure, and the host storage unit 123 being stored into the host 12;InstituteState 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 fromServer 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 testStep 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 14The 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 13Information, 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 connectsRouter 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, canThis 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 mouldOne of which electric source modes in formula, host 12 need to confirm whether the test machine 13 is in amended electric source modes, reallyProtect 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 withThe 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 existsThe working status of the amended electric source modes, its specific test method are host 12 by sending ping bags, ping netsThe 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 normallyWorking status under operating mode, specifically, the test machine 13 is instructed according to the test received, electric source modes are switchedFor operating power mode;The host 12 confirms whether the test machine 13 is in the operating power mode, and test method is sameSample 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 12Corresponding signal;Afterwards, the host 12 test working status of the network interface card to be measured under the operating power mode its toolThe 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 cardIn 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 cardsWhen, 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 resultHost 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 resultTo 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 machine13, test machine 13 instructs the work for continuing another electric source modes that Test Network is stuck in inoperative electric source modes according to testState, 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 S1State, 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 testedIt 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, mainMachine 12 tests whether test machine 13 is in this inoperative electric source modes of S1 by ping orders, is then surveyed by ping ordersTry 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 throughWhether ping orders test test machine 13 is in this operating power modes of S0, then tests network interface card to be measured by ping ordersWorking 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 testAs 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 mainMachine 12 tests whether test machine 13 is in this inoperative electric source modes of S2 by ping orders, is then surveyed by ping ordersTry 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 throughWhether ping orders test test machine 13 is in this operating power modes of S0, then tests network interface card to be measured by ping ordersWorking 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 testAs 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 mainMachine 12 tests whether test machine 13 is in this inoperative electric source modes of S4 by ping orders, is then surveyed by ping ordersTry 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 throughWhether ping orders test test machine 13 is in this operating power modes of S0, then tests network interface card to be measured by ping ordersWorking 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 testAs 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 inventionEmbodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the inventionUnder, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.