CN106528355A - Management controller testing method, apparatus and system - Google Patents
Management controller testing method, apparatus and system Download PDFInfo
- Publication number
- CN106528355A CN106528355A CN201610971384.0A CN201610971384A CN106528355A CN 106528355 A CN106528355 A CN 106528355A CN 201610971384 A CN201610971384 A CN 201610971384A CN 106528355 A CN106528355 A CN 106528355A
- Authority
- CN
- China
- Prior art keywords
- test
- tested
- management controller
- standard
- mark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 401
- 238000000034 method Methods 0.000 claims abstract description 56
- 238000001514 detection method Methods 0.000 claims description 18
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000012790 confirmation Methods 0.000 abstract description 4
- 230000007717 exclusion Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
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)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention provides a management controller testing method, apparatus and system. The method comprises the steps of determining test parameters of a to-be-tested management controller, wherein the test parameters include a standard address, a standard login identifier, a standard confirmation identifier and a test frequency; and when external execution triggering is received, testing the to-be-tested management controller according to the test frequency in the test parameters. By determining the standard address, the standard login identifier, the standard confirmation identifier and the test frequency of the to-be-tested management controller once, the to-be-tested management controller can be tested according to the determined test frequency after the external execution triggering is received, so that the manual input of test personnel during each testing can be effectively avoided, and the efficiency of performing login and logout testing processes for the management controller is improved.
Description
Technical field
The present invention relates to server technology field, more particularly to a kind of methods, devices and systems of test and management controller.
Background technology
Baseboard management controller (Baseboard Management Controller, BMC) be it is built-in in the server
One vitals, user is by logining BMC so as to play a role in the running of server.At present, for guaranteeing
Enough smoothly logining is published, and before server is issued, all can BMC be carried out logining and publish test, and then detect stablizing for BMC
Property, avoid the problems such as serious loss being caused to user and company with this.
At present, carry out BMC login publish test when, mainly manually complete to login by tester and publish.
But, generally, it is the stability for detecting BMC, needs carry out the test no less than 500 times, if that is every
It is secondary to login that to publish be to be manually completed by tester, it will to take a substantial amount of time, tested so as to entirely login to publish
The efficiency of journey will be very low.
The content of the invention
A kind of methods, devices and systems of test and management controller are embodiments provided, is improve to login and is published
The efficiency of test process.
In a first aspect, embodiments providing a kind of method of test and management controller, the method includes:
Determine the test parameter of Management Controller to be tested;Normal address, standard are logined mark, standard and confirm mark and survey
Examination number of times;
When the execution for receiving outside is triggered, according to the testing time in the test parameter, to the test tube to be measured
Reason controller is tested.
Preferably, the testing time according in the test parameter, tests to the Management Controller, bag
Include:
N1:According to the normal address in the test parameter, obtain the Management Controller to be tested logins interface;
N2:Standard in the test parameter is logined into mark and standard confirms that mark is logined in interface described in being added to,
When logining successfully, published, and determined completed target detection number of times;
N3:Whether the completed target detection number of times is judged less than the testing time in the test parameter, if
It is then to perform N1.
Preferably, mark is logined in the standard by the test parameter and standard confirms that mark is added to described stepping on
After entering interface, further include:
It is determined that the interface of logining jumps to test interface, judge that the test interface whether there is at least one feature mark
Know, login successfully if it is, determining.
Preferably, mark is logined in the standard by the test parameter and standard confirms that mark is added to described stepping on
After entering in interface, further include:
When logining unsuccessfully, test crash signal is generated, and is tested by the test crash signal interruption.
Preferably, further include:
Using following computing formula (1), the availability of the Management Controller to be tested is calculated;
Wherein, λ characterizes the availability of the corresponding BMC to be tested of the number of times to be tested;N characterizes described to be tested time
Number;N ' logins successful number of times in being characterized in the testing time n;tciI & lt test when characterizing i & lt test for logining successfully
Time used;tsjThe jth time test time used when characterizing jth time test for logining unsuccessfully;
Whether the availability is judged not less than default available threshold, if it is, determining that the result of the test is
It is qualified.
Preferably, further include:
Using the test each time in the testing time as current test, perform:
Judge whether destination folder;If it is, being that the current test is created in the destination folder
Corresponding test file, the test file storage is described currently to test corresponding execution journal and test result;Otherwise, create
The destination folder.
Second aspect, embodiments provides a kind of test and management control device, and the device includes:
Determining unit, for determining the test parameter of Management Controller to be tested;Mark, mark are logined in normal address, standard
Accurately recognize mark and testing time;
Test cell, for when the execution for receiving outside is triggered, according to the test that the determining unit determines
Testing time in parameter, tests to the Management Controller to be tested.
Preferably, the test cell, performs following N1 to N3 for circulating:
N1:According to the normal address in the test parameter, obtain the Management Controller to be tested logins interface;
N2:By the standard in the test parameter login mark and standard confirm mark be added to it is described login in interface, when logining into
During work(, published, and determined completed target detection number of times;N3:Whether judge the completed target detection number of times
Less than the testing time in the test parameter, if it is, performing N1.
Preferably, further include:Computing unit and judging unit, wherein,
The computing unit, for using following computing formula, calculating the availability of the Management Controller to be tested;
Wherein, λ characterizes the availability of the corresponding Management Controller to be tested of the number of times to be tested;N characterizes described
The number of times described to be tested that determining unit is determined;N ' logins successful number of times in being characterized in the testing time n;tciCharacterize the
I test is the time used of i & lt test when logining successfully;tsjJth time test is characterized for jth when logining unsuccessfully time test institute
Time;
The judging unit, for judge the availability that the computing unit calculates whether not less than it is default can
With threshold value, if it is, determining that the result of the test of the test cell is qualified.
The third aspect, embodiments provides a kind of test and management controller system, and the system can include:It is above-mentioned
Arbitrary described test and management control device and at least one Management Controller to be tested, wherein,
In at least one Management Controller to be tested, each Management Controller to be tested, for testing for each,
When receive the standard login mark and the standard confirm mark when, by the test and management control device show phase
Login interface and the test interface or be not responding to described in answering.
A kind of methods, devices and systems of test and management controller are embodiments provided, is once treated by determining
The normal address of test and management controller, standard are logined mark, standard and confirm mark and testing time, and that is receiving outside
After performing triggering, it is possible to according to the testing time for determining, treat test and management controller and tested, in this way, it is possible to have
Effect avoids, when being tested every time, being all manually entered by tester, is logined for Management Controller so as to improve
Publish the efficiency of test process.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of test and management controller method that one embodiment of the invention is provided;
Fig. 2 is the hardware structure figure of test and management control device place equipment provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of test and management control device that one embodiment of the invention is provided;
Fig. 4 is a kind of structural representation of test and management control device that another embodiment of the present invention is provided;
Fig. 5 is a kind of structural representation of test and management controller system that one embodiment of the invention is provided;
Fig. 6 is a kind of flow chart of test and management controller method that another embodiment of the present invention is provided;
Fig. 7 is a kind of flow chart of test and management controller method that another embodiment of the invention is provided.
Specific embodiment
For making purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than the embodiment of whole, based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, embodiments provide a kind of method of test and management controller, the method can include with
Lower step:
Step 101:Determine the test parameter of Management Controller to be tested;Normal address, standard are logined mark, standard and are confirmed
Mark and testing time.
Step 102:When the execution for receiving outside is triggered, according to the testing time in the test parameter, to described
Management Controller to be tested is tested.
In embodiments of the present invention, by determine once the normal address of Management Controller to be tested, standard login mark,
Standard confirms mark and testing time, and that is after the execution triggering for receiving outside, it is possible to according to the testing time for determining, right
Management Controller to be tested is tested, in this way, it is possible to be prevented effectively from when being tested every time, it is all manual by tester
Input, carries out logining the efficiency for publishing test process for Management Controller so as to improve.
In an embodiment of the invention, in order to realize according to the testing time for determining, realize treating test and management control
The automatic test of device, the specific embodiment of the step 102 include:N1:According to the normal address in the test parameter,
Obtain the Management Controller to be tested logins interface;N2:Standard in the test parameter is logined into mark and standard is true
Recognize mark be added to it is described login in interface, when logining successfully, published, and determined completed target detection number of times;
N3:Whether the completed target detection number of times is judged less than the testing time in the test parameter, if it is, performing
N1。
For example, it is determined that test parameter in testing time be 500 times, and be currently to treat test and management controller to carry out
30th test, and test corresponding result for the 30th time for logining successfully, then, automatic decision goes out 30 < 500 times, therefore, connect
Get off and will perform the 31st test automatically from the beginning of N1.
In addition, for test every time, without being manually entered by tester again, for example, standard is logined and is designated
Admin and standard confirm to be designated admni, that by it is above-mentioned perform the 31st test as a example by, in execution step N1, and
The admin and admni determined before execution triggering outside receiving automatically is automatically added to login in interface.
Interface login accordingly by being automatically opened up according to the normal address for determining, and is added in interface is logined automatically
It is determined that standard login mark and standard confirms mark, and whether fixed test is reached by automatic decision target detection
Number of times, when not up to, continuation carries out logining and publish test next time automatically, and whole test process is automatically performed, from
And without the need for being manually entered and being completed the test of all times again by tester, this improves and enter for Management Controller
Row logins the efficiency for publishing test process.
In an embodiment of the invention, currently test whether successfully to determine, in the step 102 will be described
Standard in test parameter logins mark and standard confirm mark be added to it is described login interface after, further include:It is determined that
The interface of logining jumps to test interface, judges the test interface with the presence or absence of at least one signature identification, if it is,
It is determined that logining successfully.
Wherein, signature identification is not unique, can be configured according to user's request, but the quantity of signature identification is at least one
Individual, by taking multiple buttons present in test interface as an example, the corresponding Button+ numerals of each button can serve as feature mark
Know, such as Button1 or Button9.
By finding a signature identification in the test page logined after interface redirects, so, so that it may know, it is current to test
Login successfully, so as to the test result for being successfully tested provides strong basis, for completing to treat test and management control
The test of device is laid a good foundation.
In an embodiment of the invention, in order to ensure the accuracy of the stability for treating test and management controller, in institute
Login the standard in the test parameter mark and the standard stated in step 102 confirms that mark is added to described logining in interface
Afterwards, further include:When logining unsuccessfully, test crash signal is generated, and is tested by the test crash signal interruption.
Discounting for external influence, that is when occurring logining unsuccessfully, it is possible to interrupt test, regardless of whether reaching survey
Examination number of times, is not continuing executing with, and for example, equally with the testing time in the test parameter for determining as 500 times, and is currently right
As a example by Management Controller to be tested carries out the 30th test, if the test result of the 30th time is for logining failure, without the need for entering
The operation of row the 31st time, so as to whole test process is performed 30 times altogether, therefore, according to described in the embodiment of the present invention, test tube to be measured
The test result of reason controller is failure.
By when logining unsuccessfully, interrupting all tests, so, realizing the test for treating test and management controller, with
This may determine that the stability of Management Controller to be tested is not good, therefore, also needing to treat test and management controller is carried out accordingly
Adjustment, it is to avoid after being issued, cause serious loss to company and user.
In an embodiment of the invention, it is possible to treat the shadow that test and management controller is caused to exclude extraneous factor
Ring, can further include:Using following computing formula (1), the availability of the Management Controller to be tested is calculated;
Wherein, λ characterizes the availability of the corresponding Management Controller to be tested of the number of times to be tested;N characterizes described
Number of times to be tested;N ' logins successful number of times in being characterized in the testing time n;tciWhen characterizing i & lt test for logining successfully
The i & lt test time used;tsjThe jth time test time used when characterizing jth time test for logining unsuccessfully;
Whether the availability is judged not less than default available threshold, if it is, determining that the result of the test is
It is qualified.
For example, determining, testing time n is 500 times, successful frequency n ' is logined in testing time n is for 500 times
It is that to login the number of times of failure in 500 times be 500-n '=500-499=1 time, i & lt survey for 499, in testing time n
I & lt test time t used when trying as logining successfullyciAnd jth time test is that jth time test is used when logining unsuccessfully
Time tsjAfterwards, it is possible to calculate the availability of Management Controller to be tested using above-mentioned computing formula (1), for exampleAnd the available threshold for pre-setting is 98%, because
This can determine that the test result of Management Controller to be tested is qualified.
Due to during test, it is impossible to which exclusion has other factors and has influence on whole test process, so as to pass through to hold
Go all tests, and the result according to test and corresponding testing time, calculated the available of Management Controller to be tested
Degree, so, to a certain extent, it also avoid as extraneous factor affects and the caused test for treating test and management controller
The judgement of error.
In an embodiment of the invention, for by the DCO information in whole test process and each test
Test result shows tester, can further include:Using the test each time in the testing time as current test,
Perform:Judge whether destination folder;If it is, being that the current test creates correspondence in the destination folder
Test file, test file storage is described currently to test corresponding execution journal and test result;Otherwise, create described
Destination folder.
Generally, the DCO information of whole test process, file destination can be found for convenience of tester
The file for being named as Login_out is pressed from both sides, and the file for creating is Login_out files, so, completes once to survey in execution
After examination, either login successfully or login failure, can store Log execution journal and test in corresponding file
As a result.
By searching or creating destination folder, and corresponding test file is created for test every time, so, complete
In pairs after the test of Management Controller to be tested, tester just can be by finding the destination folder, and in the target
The corresponding execution journal of all of test and test result is found in file, and tester cannot check before avoiding
The drawbacks of concrete test information.
As shown in Figure 2 and Figure 3, embodiments provide a kind of test and management control device.Device embodiment can be with
Realized by software, it is also possible to realized by way of hardware or software and hardware combining.From for hardware view, as shown in Fig. 2
For a kind of hardware structure diagram of test and management control device place equipment provided in an embodiment of the present invention, except shown in Fig. 2
Outside processor, internal memory, network interface and nonvolatile memory, the equipment that device is located in embodiment generally can be with
Including other hardware, such as it is responsible for processing forwarding chip of message etc..As a example by implemented in software, as shown in figure 3, patrolling as one
The device in meaning is collected, is corresponding computer program instructions in nonvolatile memory to be read by the CPU of its place equipment
Run what is formed in getting internal memory.The test and management control device that the present embodiment is provided, including:
Determining unit 301, for determining the test parameter of Management Controller to be tested;Normal address, standard login mark,
Standard confirms mark and testing time;
Test cell 302, for when the execution for receiving outside is triggered, according to the institute that the determining unit 301 determines
The testing time in test parameter is stated, the Management Controller to be tested is tested.
As shown in figure 4, in an embodiment of the invention, in order to judge whether Management Controller to be tested is qualified, enters one
Step includes:Computing unit 401 and judging unit 402, wherein,
The computing unit 401, can for using following computing formula (1), calculate the Management Controller to be tested
Expenditure;
Wherein, λ characterizes the availability of the corresponding Management Controller to be tested of the number of times to be tested;N characterizes described
The number of times to be tested that determining unit 301 is determined;N ' logins successful number of times in being characterized in the testing time n;tciCharacterize i-th
Secondary test is the time used of i & lt test when logining successfully;tsjJth time test is characterized for jth when logining unsuccessfully time test institute
Time;
The judging unit 402, for judging whether the availability that the computing unit 401 is calculated is not less than in advance
If available threshold, if it is, determining that the result of the test cell 302 test is qualified.
As shown in figure 5, embodiments providing a kind of test and management controller system, the system can include:On
Arbitrary described test and management control device 501 and at least one Management Controller to be tested 502 is stated, wherein,
In at least one Management Controller to be tested 502, each Management Controller to be tested 502, for for every
Secondary test, when receive the standard login mark and the standard confirm mark when, by the test and management controller fill
Put and login interface and the test interface or be not responding to described in 501 displayings accordingly.
Test result (the first will be judged with two kinds below:When appearance is logined unsuccessfully, interrupt test;Second:Complete institute
Have secondary test) carry out test and management controller as a example by, by determine Management Controller to be tested and its test parameter (normal address,
Standard is logined mark, standard and confirms mark and testing time), then for the testing time in test parameter, complete to be measured
The test of examination Management Controller.
Below will be with " the first:Appearance is when logining unsuccessfully, interrupt test ", the test parameter of Management Controller A to be tested
In normal address 1, standard login and be designated as a example by admin, standard confirm that being designated admni and testing time is 1000 times,
A kind of test and management controller method provided in an embodiment of the present invention is described in detail, as shown in fig. 6, the method can be wrapped
Include following steps:
Step 601:Determine that to login mark admin, standard true for the normal address 1, standard of Management Controller A to be tested successively
Recognize mark admni and testing time 1000 times.
Each Management Controller to be tested has corresponding unique address to correspond to therewith, in embodiments of the present invention, test
Personnel can check its Chinese material by online when Management Controller A to be tested is tested, so that it is determined that the normal address 1 of A,
The address is alternatively referred to as the IP address of A.
In addition, standard logins mark and standard confirms that mark is not but unique, and wherein, the standard that can store in A is stepped on
Inlet identity and standard confirm more than ten corresponding relation between mark, but generally, only store two corresponding relations, at this
In inventive embodiments, admin and admni is exactly the one of corresponding relation in A.
And, it is the effectiveness for ensureing test result, for the test of Management Controller to be tested is typically all no less than 500
Secondary, that is set as 1000 times for the testing time of A in embodiments of the present invention.
Step 602:Test triggering outside receiving.
In embodiments of the present invention, mark is logined in the normal address 1, standard for having determined Management Controller A to be tested
Admin, standard confirm mark admni and testing time 1000 times afterwards, need after the execution triggering for receiving outside, root
According to testing time 1000 times, treat test and management controller A and proceed by test.In embodiments of the present invention, outside execution
Triggering can be " Eenter " key on computer keyboard.
After execution triggering is received, it is possible to being tested each time in for 1000 tests, in this step
In carry out first the 1st time test.
Step 603:Login_out files are judged whether, if it is, execution step 604, otherwise, performs step
Rapid 605.
In order to show comprehensive test result information to tester, can be by generating the execution journal tested every time
And test result, and, for ease of, after the test for completing to treat test and management controller A, tester can be conveniently
Find these information, therefore, in embodiments of the present invention, the text that a folder name is referred to as Login_out can be placed it in
Part is pressed from both sides, if that is similar to test before excessively, it should have this document folder, otherwise, is pressed from both sides with regard to no this document, so, need to sentence
It is disconnected to whether there is Login_out files.
Step 604:It is that current test creates corresponding Login_out files, execution step in Login_out files
606。
For each test in 1000 tests of the embodiment of the present invention, because the execution time of test, test result etc.
The difference of information, can generate different execution journal every time, so corresponding Login_ can be built respectively for test every time
Out files, for example, when kth time test is carried out, will create a corresponding Login_out in Login_out files
K files, that so, when kth time test is completed, this document will be to the execution journal of current kth time test and test result
Stored.
Step 605:Create Login_out files, and execution step 604.
As described in above-mentioned step 603.
Step 606:According to normal address 1, obtain Management Controller A to be tested logins interface.
In embodiments of the present invention, when test is performed, normal address 1 of the meeting first according to Management Controller A to be tested,
That opens a corresponding A logins interface, and this is logined and confirms that mark is corresponding with standard
Input frame, logined with this.
Step 607:Admin and admni are added to and are logined in interface, it is determined that logining interface jumps to test interface.
Admin and admni are added to the corresponding input inframe logined in interface mentioned in above-mentioned steps 606, if
The admin and admni of input is mutually corresponding and correct, and that is logined interface and will realize redirecting, if that tester exists
When determining that standard logins mark and standard confirmation mark, input is wrong, and that has when the step is gone to, also and carries accordingly
Show, for example, standard is logined mark input error, standard and logins the indicative letters such as mark is not present or standard confirmation mark is wrong
Breath, the then test for realization to A, it is necessary to re-start determination.
Step 608:Whether there is at least one ID in judging test interface, if it is, execution step 609, otherwise, holds
Row step 612.
In embodiments of the present invention, as long as finding an ID (wherein the one of signature identification in the test interface after redirecting
Kind), for example, in the test page after redirecting, find multiple ID, respectively Button1, Button2 and Button3.
Step 609:It is determined that logining successfully, and publish, and determine completed target detection number of times k.
Step 610:By current kth time test corresponding execution journal and login successful test result be saved in it is corresponding
In Login_out files.
After publishing in step 609, then kth time test execution for A is completed, and that is also generated for current test
Corresponding execution journal, for example, by taking execution journal in kth time test process as an example, such as { in such a month, and on such a day some time in certain year
Certain point of certain second:Admin and admni be added to login interface.
In addition, login successful test result can also generate, for example { certain year, in such a month, and on such a day some time divided certain second:Kth
Secondary test is logined and is published successfully }.
Step 611:Whether target detection number of times k is judged less than 1000, if it is, execution step 606, otherwise, performs
Step 614.
Due to having determined that testing time for 1000 times, therefore, after being currently successfully tested, if not up to 1000
It is secondary, should also continue the step 607 from the embodiment of the present invention and proceed test, if that has reached the number of times, complete
Test, so as to interrupt test.
Step 612:Test crash signal is generated, and is tested by test crash signal interruption.
In embodiments of the present invention, in 1000 tests, as long as occurring once logining failure, all tests are just interrupted,
And think that the test of Management Controller A to be tested is not up to standard.
Step 613:Currently tested corresponding execution journal and login failure test result be saved in it is corresponding
In Login_out files, and terminate current process.
In embodiments of the present invention, for the execution journal and test result of logining failure also should be deposited accordingly
Storage, to facilitate after all tests are completed, shows comprehensive test execution daily record and corresponding test result to tester.
Step 614:Terminate and exit test.
Below will be with " second:Complete all time tests ", the study plot in the test parameter of Management Controller A to be tested
Location 1, standard is logined and is designated as a example by admin, standard confirm that being designated admni and testing time is 1000 times, to of the invention real
A kind of test and management controller method for applying example offer is described in detail, as shown in fig. 7, the method can include following step
Suddenly:
Step 701:Pre-set available threshold λ of Management Controller A to be tested1。
In embodiments of the present invention, it is contemplated that extraneous factor is possible to treat the test process of test and management controller A
Certain impact is produced, therefore, can be calculated to be tested then according to each test result by having performed 1000 tests
The availability of Management Controller A, then by judging λ with the available threshold for pre-setting1It is compared, so that it is determined that whether A
It is qualified.
Step 702:Determine that the normal address 1, standard of Management Controller A to be tested is logined mark admin, standard and confirms mark
Know admni and testing time 1000 times.
In embodiments of the present invention, step method corresponding with Fig. 6 is consistent, should determine that management control to be tested first
The aforementioned four test parameter of device A.
Step 703:Test triggering outside receiving.
In embodiments of the present invention, when it is determined that mark is logined in the normal address 1, standard of Management Controller A to be tested
After admin, standard confirm mark admni, testing time 1000 times and receive triggering, will be automatically performed for be tested
Test is published in logining every time for Management Controller A, and carries out 1000 tests manually without the need for tester, in such manner, it is possible to effectively
Improve the efficiency in test process.
Step 704:Login_out files are judged whether, if it is, execution step 705, otherwise, performs step
Rapid 706.
Step 705:It is that current test creates corresponding Login_out files, execution step in Login_out files
707。
Step 706:Create Login_out files, and execution step 706.
Step 707:According to normal address 1, obtain Management Controller A to be tested logins interface.
Step 708:Admin and admni are added to and are logined in interface, it is determined that logining interface jumps to test interface.
Step 709:Test interface is judged with the presence or absence of at least one ID, if it is, execution step 710, otherwise, performs
Step 713.
Step 710:It is determined that logining successfully, published, determined completed target detection number of times i, and current i & lt is surveyed
Examination time t usedci。
In embodiments of the present invention, be the availability that calculates Management Controller A to be tested, should when test is completed every time,
The time used by the test process is calculated, that i & lt test time t usedciIn referring to from execution step 707 to current procedures
The time required when publishing is completed, for example, the 501st test is successfully tested for logining to publish, and time t usedc501For 2s;
In addition, can also be by being calculated according to the execution journal for generating, e.g., in the time being determined needed for i & lt test
tciWhen, obtained according to the execution journal that current procedures have been generated, for example, first article generated in the 20th test is held
Row daily record is { 22 points 55 seconds during 28 days 23 October in 2016:Obtain Management Controller A to be tested logins interface }, generation
The last item execution journal is { 22 points 56 seconds during 28 days 23 October in 2016:Publish successfully, so used by the 20th test
Time tc20For the 56-55=1 seconds.
It should be noted that when the step is gone to, can determine whether the corresponding time under corresponding test, so as to for it
After judge whether Management Controller A to be tested qualified and lay the foundation.
Step 711:By current i & lt test corresponding execution journal and login successful test result be saved in it is corresponding
In Login_out files.
Step 712:Whether target detection number of times i is judged less than 1000, if it is, execution step 707, otherwise, performs
Step 716.
Step 713:It is determined that login failure, determine completed target detection number of times j, and current jth time test is used
Time tsj。
In embodiments of the present invention, equally the jth time test time used can be determined according to the method in above-mentioned steps 611
tsj。
Step 714:By current jth time test corresponding execution journal and login failure test result be saved in it is corresponding
In Login_out files.
Step 715:Whether target detection number of times j is judged less than 1000, if it is, execution step 707, otherwise, performs
Step 716.
In embodiments of the present invention, either login and publish successfully, still login and publish failure, be required for judging current survey
Whether examination number of times j is less than 1000, so, if it is less, continue to be tested from step 707 next time, if it is not, then
Execution step 716.
Step 716:Successful frequency n ' is logined for 998 times in determining 1000 tests.
After all 1000 tests are completed, it is determined that successful frequency n ' is logined in this 1000 times tests, at this
In bright embodiment, as a example by logining successful frequency n ' for 998 times, then the number of times for logining failure accordingly can just be calculated
For 1000-n '=1000-998=2 time.
Step 717:According to testing time n be 1000 times, n ', 1000-n ', tciAnd tsj, calculate Management Controller to be tested
Availability λ of A.
In embodiments of the present invention, it is determined that testing time n be 1000 times, testing time n be 1000 times in login successfully
Frequency n ', be i & lt when logining the number of times 1000-n ' of failure, i & lt test in 1000 times for logining successfully in testing time n
Test time t usedciAnd jth time test is the time t used of jth time test when logining unsuccessfullysjAfterwards, it is possible to using meter
Calculate the availability that formula (1) calculates Management Controller A to be tested
That is simplified calculation method in embodiments of the present invention, for example, with the Management Controller A to be tested calculated according to formula (1)
Availability λ be 98.997%.
Step 718:Judge λ whether less than λ1, if it is, execution step 719, otherwise execution step 720.
Step 719:The test result of Management Controller A to be tested is determined for qualified.
In embodiments of the present invention, by judging λ=98.997% and λ1=98%, then it is evident that λ=
98.997% > λ1=98%, therefore, it is qualified for the test result of Management Controller A to be tested.
Step 720:The test result of Management Controller A to be tested is determined for unqualified.
To sum up, each embodiment of the invention at least has the advantages that:
1st, in embodiments of the present invention, by determining that once the normal address of Management Controller to be tested, standard login mark
Know, standard confirms mark and testing time, that is after the execution triggering for receiving outside, it is possible to according to the test time for determining
Number, treats test and management controller and is tested, in this way, it is possible to be prevented effectively from when being tested every time, all by tester
Member is manually entered, and carries out logining the efficiency for publishing test process for Management Controller so as to improve.
2nd, in embodiments of the present invention, by automatically opening up according to the normal address for determining, and
Automatically the standard that addition determines in interface is logined logins mark and standard confirms mark, and passes through automatic decision target detection
Whether fixed testing time is reached, and when not up to, continuation carries out logining and publish test next time, whole test automatically
Process is automatically performed, so as to be manually entered and be completed the tests of all times again by tester, therefore, improve
Carry out logining the efficiency for publishing test process for Management Controller.
3rd, in embodiments of the present invention, by finding a signature identification in the test page logined after interface redirects,
So, so that it may know, current test has been logined successfully, so as to the test result for being successfully tested provides strong basis, is
The test for completing to treat test and management controller is laid a good foundation.
4th, in embodiments of the present invention, by when logining unsuccessfully, interrupting all tests, so, realizing to be tested
The test of Management Controller, may determine that with this stability of Management Controller to be tested is not good, therefore, also need to treat testing tube
Reason controller is adjusted correspondingly, it is to avoid after being issued, cause serious loss to company and user.
5th, in embodiments of the present invention, due to during test, it is impossible to which exclusion has other factors and has influence on entirely
Test process, so as to pass through to have performed all tests, and the result according to test and corresponding testing time, calculates to be measured
The availability of examination Management Controller, so, to a certain extent, it also avoid caused to be measured as extraneous factor affects
The judgement of the test error of examination Management Controller.
6th, in embodiments of the present invention, it is by lookup or establishment destination folder and corresponding for test establishment every time
Test file, so, after the test for completing to treat test and management controller, tester just can be by finding the mesh
Mark file, and the corresponding execution journal of all of test and test result is found in the destination folder, and avoid
The drawbacks of tester cannot check concrete test information before.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation is made a distinction with another entity or operation, and not necessarily require or imply presence between these entities or operation
Any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to non-
Exclusiveness is included, so that a series of process, method, article or equipment including key elements not only includes those key elements,
But also including other key elements being not expressly set out, or also include solid by this process, method, article or equipment
Some key elements.In the absence of more restrictions, the key element for being limited by sentence " including a 〃 ", does not arrange
Except also there is other same factor in including the process of the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of said method embodiment can pass through
Completing, aforesaid program can be stored in the storage medium of embodied on computer readable the related hardware of programmed instruction, the program
Upon execution, perform the step of including said method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate
Art scheme, is not intended to limit protection scope of the present invention.All any modifications made within the spirit and principles in the present invention,
Equivalent, improvement etc., are all contained in protection scope of the present invention.
Claims (10)
1. a kind of method of test and management controller, it is characterised in that include:
Determine the test parameter of Management Controller to be tested;Normal address, standard are logined mark, standard and confirm mark and test secondary
Number;
When the execution for receiving outside is triggered, according to the testing time in the test parameter, to the management control to be tested
Device processed is tested.
2. method according to claim 1, it is characterised in that the testing time according in the test parameter is right
The Management Controller is tested, including:
N1:According to the normal address in the test parameter, obtain the Management Controller to be tested logins interface;
N2:By the standard in the test parameter login mark and standard confirm mark be added to it is described login in interface, when stepping on
When entering successfully, published, and determined completed target detection number of times;
N3:Whether the completed target detection number of times is judged less than the testing time in the test parameter, if it is,
Perform N1.
3. method according to claim 2, it is characterised in that login mark in the standard by the test parameter
With standard confirm mark be added to it is described login interface after, further include:
It is determined that the interface of logining jumps to test interface, the test interface is judged with the presence or absence of at least one signature identification,
Login successfully if it is, determining.
4. according to the method in claim 2 or 3, it is characterised in that login in the standard by the test parameter
After mark and standard confirm that mark is added to described logining in interface, further include:
When logining unsuccessfully, test crash signal is generated, and is tested by the test crash signal interruption.
5. according to the arbitrary described method of claims 1 to 3, it is characterised in that further include:
Using following computing formula, the availability of the Management Controller to be tested is calculated;
Wherein, λ characterizes the availability of the corresponding Management Controller to be tested of the number of times to be tested;N characterizes described to be measured
Examination number of times;N ' logins successful number of times in being characterized in the testing time n;tciI & lt when characterizing i & lt test for logining successfully
The test time used;tsjThe jth time test time used when characterizing jth time test for logining unsuccessfully;
Whether the availability is judged not less than default available threshold, if it is, determining that the result of the test is qualified.
6. according to the arbitrary described method of claim 1 to 5, it is characterised in that further include:
Using the test each time in the testing time as current test, perform:
Judge whether destination folder;If it is, being that the current test creates correspondence in the destination folder
Test file, test file storage is described currently to test corresponding execution journal and test result;Otherwise, create described
Destination folder.
7. a kind of test and management control device, it is characterised in that include:
Determining unit, for determining the test parameter of Management Controller to be tested;It is true that mark, standard are logined in normal address, standard
Recognize mark and testing time;
Test cell, for when the execution for receiving outside is triggered, according to the test parameter that the determining unit determines
In testing time, the Management Controller to be tested is tested.
8. device according to claim 7, it is characterised in that the test cell, performs following N1 to N3 for circulating:
N1:According to the normal address in the test parameter, obtain the Management Controller to be tested logins interface;
N2:By the standard in the test parameter login mark and standard confirm mark be added to it is described login in interface, when stepping on
When entering successfully, published, and determined completed target detection number of times;
N3:Whether the completed target detection number of times is judged less than the testing time in the test parameter, if it is,
Perform N1.
9. the device according to claim 7 or 8, it is characterised in that further include:Computing unit and judging unit, its
In,
The computing unit, for using following computing formula, calculating the availability of the Management Controller to be tested;
Wherein, λ characterizes the availability of the corresponding Management Controller to be tested of the number of times to be tested;N characterizes the determination
The number of times described to be tested that unit is determined;N ' logins successful number of times in being characterized in the testing time n;tciCharacterize i & lt
The i & lt test time used when testing as logining successfully;tsjWhen characterizing jth time test for logining unsuccessfully, jth time test is used
Time;
The judging unit, for judging whether the availability that the computing unit is calculated is not less than default available threshold
Value, if it is, determine that the result of the test of the test cell is qualified.
10. a kind of test and management controller system, it is characterised in that include:The arbitrary described test and management of claim 7 to 9
Control device and at least one Management Controller to be tested, wherein,
In at least one Management Controller to be tested, each Management Controller to be tested, for for every time test, when connecing
Receive the standard and login mark and when the standard confirms mark, shown by the test and management control device corresponding
It is described to login interface and the test interface or be not responding to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610971384.0A CN106528355A (en) | 2016-11-01 | 2016-11-01 | Management controller testing method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610971384.0A CN106528355A (en) | 2016-11-01 | 2016-11-01 | Management controller testing method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106528355A true CN106528355A (en) | 2017-03-22 |
Family
ID=58325779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610971384.0A Pending CN106528355A (en) | 2016-11-01 | 2016-11-01 | Management controller testing method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528355A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173712A (en) * | 2017-12-26 | 2018-06-15 | 郑州云海信息技术有限公司 | A kind of double-mirror BMC stability test methods |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104063306A (en) * | 2013-03-18 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Automatic login method, device and system in intelligent terminal software testing |
CN104268045A (en) * | 2014-09-29 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Testing method for startup and shutdown in remote control system |
-
2016
- 2016-11-01 CN CN201610971384.0A patent/CN106528355A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104063306A (en) * | 2013-03-18 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Automatic login method, device and system in intelligent terminal software testing |
CN104268045A (en) * | 2014-09-29 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Testing method for startup and shutdown in remote control system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173712A (en) * | 2017-12-26 | 2018-06-15 | 郑州云海信息技术有限公司 | A kind of double-mirror BMC stability test methods |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Taroni et al. | Prospective CSEP evaluation of 1‐day, 3‐month, and 5‐yr earthquake forecasts for Italy | |
US8423960B2 (en) | Evaluation of software based on review history | |
US20140033174A1 (en) | Software bug predicting | |
CN105117341B (en) | A kind of distributed automated test case generation method performed based on dynamic symbol | |
US10374934B2 (en) | Method and program product for a private performance network with geographical load simulation | |
CN105260312B (en) | A kind of adjustment method of multinuclear real time system application data contention mistake | |
CN111191250B (en) | Verification method and device, verification device, server and terminal | |
CN107659562A (en) | A kind of method and device for excavating malice login account | |
CN109542784A (en) | A kind of test cases inspection method and device | |
US20230344857A1 (en) | Multidimensional security situation real-time representation method and system and applicable to network security | |
CN114255784A (en) | Substation equipment fault diagnosis method based on voiceprint recognition and related device | |
CN109473121A (en) | Speech synthesis quality detecting method and device | |
CN115827610A (en) | Method and device for detecting effective load | |
CN107145417A (en) | A kind of outer plug-in card installation site method of calibration and device | |
CN110458421A (en) | A kind of quality safety management method, apparatus and storage device | |
CN106528355A (en) | Management controller testing method, apparatus and system | |
Yuki et al. | Generating clone references with less human subjectivity | |
CN104572470B (en) | A kind of integer overflow fault detection method based on transformation relation | |
Tian et al. | How well just-in-time defect prediction techniques enhance software reliability? | |
CN107402883B (en) | A kind of data test treating method and apparatus | |
CN108917710A (en) | The monitoring method and monitoring device of shallow-depth-excavation tunnel sedimentation | |
CN114926152A (en) | Power grid construction safety examination and training method and system and electronic equipment | |
CN106528397B (en) | A kind of method for testing software and its device | |
JP4156896B2 (en) | Password strength inspection method and apparatus, password strength inspection program and recording medium recording the program | |
Land et al. | An industrial evaluation of test prioritisation criteria and metrics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170322 |
|
RJ01 | Rejection of invention patent application after publication |