Summary of the invention
Being designed to provide for the application a kind of is directed to the test method of MOC card, device, equipment and calculating in server
Machine readable storage medium storing program for executing, so as to the record storage of effective guarantee MOC card test being normally carried out with test result, reduction was tested
Fault rate in journey.
In order to solve the above technical problems, the application provides a kind of test method for being directed to MOC card in server, comprising:
It calls MOC card test program to test MOC card to be tested, and test result is stored to test database
In;
From the genuine SN code of the target MOC card obtained in server product file store in destination server, the genuine SN
Code is extracted according to the scanning information of the two-dimension code label of the target MOC card in the destination server production and assembly and is generated,
And be stored in the server product file store, the MOC card to be tested includes the target MOC card;
The test result of the target MOC card is searched in the test database according to the genuine SN code, and is stored
The corresponding relationship of the test result and the destination server.
Optionally, in the survey for searching the target MOC card in the test database according to the genuine SN code
After test result, further includes:
If searching failure, the first error information is generated, to remind user to deposit in the server product file store
The genuine SN code of the target MOC card of storage is wrong.
Optionally, in the survey for searching the target MOC card in the test database according to the genuine SN code
Test result, and after storing the corresponding relationship of the test result and the destination server, further includes:
Generate the scan request to the two-dimension code label for the target MOC card being pasted on the destination server;
After receiving the scanning information of the two-dimension code label of scanning input, from the scanning information described in extraction
The genuine SN code of target MOC card;
Judge the original of the target MOC card stored in the genuine SN code and the server product file store of this acquisition
Whether factory's SN code is consistent;
If it is not, generating the second error information, then to remind user to be pasted onto the target on the destination server
The two-dimension code label of MOC card is wrong, is replaced.
Optionally, it is described in the destination server production and assembly according to the two-dimension code label of the target MOC card
Scanning information, which extracts, generates the genuine SN code, and is stored in the server product file store and specifically includes:
Receive the sequence number of the destination server of scanning input;
Receive the scanning information of the two-dimension code label of the target MOC card of scanning input;
Data bits verification is carried out to the scanning information;
If verifying successfully, the genuine SN code for generating the target MOC card is extracted from the scanning information;
The corresponding relationship of the sequence number and the genuine SN code is stored into the server product file store.
Optionally, described after extracting the genuine SN code for generating the target MOC card in the scanning information,
Before the corresponding relationship by the sequence number and the genuine SN code is stored into the server product file store, also wrap
It includes:
Judge whether the genuine SN code is already present in the server product file store;
If so, third error information is generated, to remind user to sweep the two-dimension code label of the target MOC card
It retouches wrong;
It stores if it is not, then continuing to execute the corresponding relationship by the sequence number and the genuine SN code to the service
Step in device file of product library.
Present invention also provides a kind of test devices for being directed to MOC card in server, comprising:
Test module: for calling MOC card test program to test MOC card to be tested, and test result is deposited
Storage is into test database;
Obtain module: for the genuine SN from the target MOC card obtained in destination server in server product file store
Code, the genuine SN code is in the destination server production and assembly according to the scanning of the two-dimension code label of the target MOC card
Information extraction generates, and is stored in the server product file store, and the MOC card to be tested includes the target MOC
Card;
Generation module: in the destination server production and assembly according to the two-dimension code label of the target MOC card
Scanning information extract the genuine SN code for generating the target MOC card, and be stored in the server product file store;
Memory module: for searching the survey of the target MOC card in the test database according to the genuine SN code
Test result, and store the corresponding relationship of the test result Yu the destination server.
Optionally, further includes:
Report an error module: described in being searched in the test database when the memory module according to the genuine SN code
When the test result failure of target MOC card, the first error information is generated, to remind user in the server product file store
The genuine SN code of the target MOC card of middle storage is wrong.
Optionally, further includes:
Scan request module: for generating the two dimensional code to the target MOC card being pasted on the destination server
The scan request of label;
Extraction module: for receive scanning input the two-dimension code label scanning information after, from the scanning
The genuine SN code of the target MOC card is extracted in information;
Two-dimension code label correction verification module: in the genuine SN code and the server product file store for judging this acquisition
Whether the genuine SN code of the target MOC card of storage is consistent;If it is not, generating the second error information, then to remind user viscous
The two-dimension code label for being attached to the target MOC card on the destination server is wrong, is replaced.
Present invention also provides a kind of test equipments for being directed to MOC card in server, comprising:
Memory: for storing computer program;
Processor: as described above any MOC in server is directed to realize for executing the computer program
The step of test method of card.
Present invention also provides a kind of computer readable storage medium, meter is stored in the computer readable storage medium
Calculation machine program, to realize any as described above be directed in server when the computer program is executed by processor
The step of test method of MOC card.
The test method for being directed to MOC card in server provided herein includes: that MOC card test program is called to treat
The MOC card of test is tested, and test result is stored into test database;Mesh is obtained from server product file store
The genuine SN code of the target MOC card in server is marked, the genuine SN code is in the destination server production and assembly according to institute
The scanning information for stating the two-dimension code label of target MOC card, which extracts, to be generated, and is stored in the server product file store, described
MOC card to be tested includes the target MOC card;The target is searched in the test database according to the genuine SN code
The test result of MOC card, and store the corresponding relationship of the test result Yu the destination server.
As it can be seen that compared with the prior art, provided herein is directed in server in the test method of MOC card, when
After MOC card to be tested all completes test, i.e., using the mesh of the destination server stored in server product file store
The genuine SN code for marking MOC card, searches the test result of target MOC card in the test database of MOC card, to form target clothes
The complete test content of business device.Since the genuine SN code of each MOC card in server product file store is all particular by sweeping
Retouch what the mode of two-dimension code label obtained, and it is general on MOC card only have a readily discernible two-dimension code label, therefore greatly
Ground reduces the error rate of the genuine SN code in server product file store, so effective guarantee MOC card test it is normal into
Capable and test result record storage, reduces the fault rate in test process.Provided herein is directed to MOC in server
The above-mentioned test side for being directed to MOC card in server may be implemented in test device, equipment and the computer readable storage medium of card
Method equally has above-mentioned beneficial effect.
Specific embodiment
The core of the application, which is to provide, a kind of is directed to the test method of MOC card, device, equipment and calculating in server
Machine readable storage medium storing program for executing, so as to the record storage of effective guarantee MOC card test being normally carried out with test result, reduction was tested
Fault rate in journey.
In order to which technical solutions in the embodiments of the present application is more clearly and completely described, below in conjunction with this Shen
Please attached drawing in embodiment, technical solutions in the embodiments of the present application is introduced.Obviously, described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of process for being directed to the test method of MOC card in server provided herein
Figure, mainly comprises the steps that
Step 1: calling MOC card test program to test MOC card to be tested, and test result is stored to test
In database.
Specifically, as previously mentioned, after server comes into operation, need periodically to carry out the test such as aging, to send out in time
Existing potential faults, safeguards system normal safe operation.Wherein, the component MOC card in server is needed individually from server master
It removes on plate and is tested respectively, MOC card test program is specific to after the test program of MOC card, operation test
Test result can be automatically generated.In actual test, often the MOC card removed in multiple servers is concentrated and carries out mass
Test.Therefore, after the MOC card in server to have been carried out to test, it is also necessary to by the test record for the MOC card tested with
The corresponding relationship of server is set up, to form the complete test result of the server.
Step 2: from the genuine SN code of the target MOC card obtained in server product file store in destination server, genuine
SN code is extracted according to the scanning information of the two-dimension code label of target MOC card in destination server production and assembly and is generated, and is stored
In server product file store, MOC card to be tested includes target MOC card.
In the assembling production process of server, assembler can save the important information of server, establish clothes
Business device file of product library, wherein the information stored just includes all parts (including MOC card) installed in every server
Component information, the sequence number of server and the component information of its component are bound.For this device of MOC card, need
The component information of storage just includes its genuine SN code.Genuine SN code is can be only set by manufacturer when MOC is stuck in production factory
The device coding of one identification, has multiple labels all to carry its genuine SN code on MOC card.
For the target MOC card in destination server, after it has been running for MOC card test program, can survey
Its test result is searched in examination database, and is searched according to the genuine SN code for being exactly target MOC card.Provided herein is directed to
In server in the test method of MOC card, the genuine SN code of the target MOC card stored in server product file store is not
It is to be obtained as passing through scanning one-dimension code label in the prior art, but pass through the two-dimension code label on scanning target MOC card
It obtains.A two-dimension code label is only had due to general on MOC card, and two dimensional code is readily discernible, therefore, can greatly reduce service
The error rate of the genuine SN code of acquisition is scanned in device file of product library.
Step 3: searching the test result of target MOC card in test database according to genuine SN code, and store test knot
The corresponding relationship of fruit and destination server.
It, can be in the survey of MOC card after the genuine SN code that the target MOC card of destination server has been determined by step 2
It tries to search test result corresponding with genuine SN code, the i.e. test result of target MOC card in database, and establishing and store should
The corresponding relationship of test result and destination server forms the complete test content of destination server.
As it can be seen that provided herein is directed in server in the test method of MOC card, when MOC card to be tested all
After completing test, i.e., using the genuine SN of the target MOC card of the destination server stored in server product file store
Code searches the test result of target MOC card, to form the complete survey of destination server in the test database of MOC card
Try content.Since the genuine SN code of each MOC card in server product file store is all particular by scanning the two-dimensional code label
What mode obtained, and it is general only with a readily discernible two-dimension code label on MOC card, therefore significantly reduce server
The error rate of genuine SN code in file of product library, and then effective guarantee MOC card test is normally carried out and test result
Record storage reduces the fault rate in test process.
The test method for being directed to MOC card in server provided herein, on the basis of the above embodiments:
As a kind of preferred embodiment, in the test knot for searching target MOC card in test database according to genuine SN code
After fruit, further includes:
If searching failure, the first error information is generated, to remind user to store in server product file store
The genuine SN code of target MOC card is wrong.
Specifically, if not finding survey corresponding with the genuine SN code of target MOC card in the test database of MOC card
Test result, then explanation this time search in based on genuine SN code be it is wrong, therefore, the first error information pair can be generated in time
User reminds, and can specifically be reminded using modes such as voice, text, images, and user's time update server is enabled
The genuine SN code of the target MOC card stored in file of product library.
As a kind of preferred embodiment, in the test knot for searching target MOC card in test database according to genuine SN code
Fruit, and after storing the corresponding relationship of test result and destination server, further includes:
Generate the scan request to the two-dimension code label for the target MOC card being pasted on destination server;
After receiving the scanning information of two-dimension code label of scanning input, target MOC card is extracted from scanning information
Genuine SN code;
Judging the genuine SN code of the target MOC card stored in the genuine SN code and server product file store of this acquisition is
It is no consistent;
If it is not, generating the second error information, then so as to the two of the target MOC card for reminding user to be pasted on destination server
It is wrong to tie up code label, is replaced.
It specifically, generally can also be on the server (specifically on server rear window) in server assembling production process
Also the two-dimension code label of upper MOC card is pasted, certainly, the MOC card of two-dimension code label and server installation on server rear window
On two-dimension code label be duplicate.When sometimes having carried out replacement to the MOC card installed in server, operator
Member may forget to replace the two-dimension code label being pasted on server rear window simultaneously.For this purpose, in order to ensure being pasted on server
Two-dimension code label correctness, provided herein is directed in server in the test method of MOC card, also to being pasted onto
Two-dimension code label on server rear window is verified.When pair for storing target MOC card test result and destination server
After should being related to, scan request is can be generated and shown, scan the two dimension being pasted on server rear window with request for test personnel
Code label, then extracts genuine SN code from scanning information, and with the target MOC card that is stored in server product file store
Genuine SN code compares: if the two is consistent, illustrating that the two-dimension code label being pasted on server rear window is correct;If two
Person is inconsistent, then the two-dimension code label that is pasted on server rear window of explanation is wrong, and second can be generated at this time and report an error letter
Breath, to remind user to replace the two-dimension code label on server rear window.
As a kind of preferred embodiment, in destination server production and assembly according to the two-dimension code label of target MOC card
Scanning information, which extracts, generates genuine SN code, and is stored in server product file store and specifically includes:
Receive the sequence number of the destination server of scanning input;
Receive the scanning information of the two-dimension code label of the target MOC card of scanning input;
Data bits verification is carried out to scanning information;
If verifying successfully, the genuine SN code for generating target MOC card is extracted from scanning information;
The corresponding relationship of sequence number and genuine SN code is stored into server product file store.
As previously mentioned, needing in the assembling production process of destination server by the original of the target MOC card of destination server
Factory's SN code is stored into server product file store.Specifically, the destination server of assembler scanning input is being received
Sequence number, target MOC card two-dimension code label after, first scanning information to the two-dimension code label can carry out data bits verification,
Tentatively to confirm the correctness of scanning result.If verifying the two dimensional code for successfully illustrating that scanning information comes from MOC card really
Label, rather than the label of other component can then extract genuine SN code from scanning information, with the sequence number of destination server into
Row binding, the corresponding relationship of the two is stored into server product file store.
Wherein, when carrying out data bits verification, the scanning information of the two-dimension code label of MOC card is typically all 88 numbers
According to, if digit is not right, illustrate scan mistake.In addition, the information carried in two-dimension code label is more, the set meal including MOC card
Number, configuration information and genuine SN code etc., genuine SN code can be only obtained using wherein useful data segment.
As a kind of preferred embodiment, after extracting the genuine SN code for generating target MOC card in scanning information, by sequence
Before the corresponding relationship of row number and genuine SN code is stored into server product file store, further includes:
Judge whether genuine SN code is already present in server product file store;
If so, third error information is generated, to remind user wrong to the two-dimension code label scanning of target MOC card;
The corresponding relationship of sequence number and genuine SN code is stored into server product file store if it is not, then continuing to execute
Step.
Specifically, in the assembling production process of destination server, the target of destination server is extracted when having scanned
When the genuine SN code of MOC card, duplicate checking can be first carried out in server product file store, then again after duplicate checking is out of question by the original
Factory's SN code and the corresponding relationship of sequence number are stored.Since a MOC card can only correspond to an a server i.e. sequence
Number, therefore, if find that genuine SN code is already present in server product file store when duplicate checking, illustrate to the target
The scanning of the two-dimension code label of MOC card is wrong, needs to generate third error information to remind user.
The test device for being directed to MOC card in server provided herein is introduced below.
Referring to Fig. 2, Fig. 2 is a kind of structure for being directed to the test device of MOC card in server provided herein
Block diagram;Including test module 1, obtain module 2, generation module 3 and memory module 4;
Test module 1 deposits test result for calling MOC card test program to test MOC card to be tested
Storage is into test database;
Module 2 is obtained for the genuine SN from the target MOC card obtained in destination server in server product file store
Code, genuine SN code are extracted according to the scanning information of the two-dimension code label of target MOC card in destination server production and assembly and are generated,
And be stored in server product file store, the MOC card to be tested includes target MOC card;
Generation module 3 is used to be believed in destination server production and assembly according to the scanning of the two-dimension code label of target MOC card
Breath extracts the genuine SN code for generating target MOC card, and is stored in server product file store;
Memory module 4 is used to search the test result of target MOC card in test database according to genuine SN code, and stores
The corresponding relationship of test result and destination server.
As it can be seen that the test device for being directed to MOC card in server provided herein, when MOC card to be tested is all complete
After test, i.e., using the genuine SN code of the target MOC card of the destination server stored in server product file store,
The test result of target MOC card is searched in the test database of MOC card, to be formed in the complete test of destination server
Hold.Since the genuine SN code of each MOC card in server product file store is all particular by the mode for scanning the two-dimensional code label
It obtains, and it is general only with a readily discernible two-dimension code label on MOC card, therefore significantly reduce server product
The error rate of genuine SN code in file store, and then the record of effective guarantee MOC card test being normally carried out with test result
Storage reduces the fault rate in test process.
The test device for being directed to MOC card in server provided herein, on the basis of the above embodiments:
As a kind of preferred embodiment, further includes:
Report an error module: described in being searched in the test database when the memory module according to the genuine SN code
When the test result failure of target MOC card, the first error information is generated, to remind user in the server product file store
The genuine SN code of the target MOC card of middle storage is wrong.
As a kind of preferred embodiment, further includes:
Scan request module: for generating the two dimensional code to the target MOC card being pasted on the destination server
The scan request of label;
Extraction module: for receive scanning input the two-dimension code label scanning information after, from the scanning
The genuine SN code of the target MOC card is extracted in information;
Two-dimension code label correction verification module: in the genuine SN code and the server product file store for judging this acquisition
Whether the genuine SN code of the target MOC card of storage is consistent;If it is not, generating the second error information, then to remind user viscous
The two-dimension code label for being attached to the target MOC card on the destination server is wrong, is replaced.
As a kind of preferred embodiment, generation module 3 is specifically used for:
Receive the sequence number of the destination server of scanning input;Receive the two dimensional code of the target MOC card of scanning input
The scanning information of label;Data bits verification is carried out to scanning information;If verifying successfully, is extracted from scanning information and generate mesh
Mark the genuine SN code of MOC card;
Memory module 4 is specifically used for:
The corresponding relationship of the sequence number and the genuine SN code is stored into server product file store.
As a kind of preferred embodiment, further includes:
Judgment module: for generation module 3 from scanning information extract generate target MOC card genuine SN code after,
Before memory module 4 stores the corresponding relationship of sequence number and genuine SN code into server product file store, genuine SN is judged
Whether code is already present in server product file store;If so, third error information is generated, to remind user to target
The two-dimension code label scanning of MOC card is wrong;If it is not, then memory module 4 continues on for sequence number pass corresponding with genuine SN code
System stores into server product file store.
Present invention also provides a kind of test equipments for being directed to MOC card in server, comprising:
Memory: for storing computer program;
Processor: as described above any MOC in server is directed to realize for executing the computer program
The step of test method of card.
Present invention also provides a kind of computer readable storage medium, computer is stored in computer readable storage medium
Program as described above any is directed to MOC card in server to realize when the computer program is executed by processor
Test method the step of.
The test device, equipment and computer readable storage medium for being directed to MOC card in server provided herein
Specific embodiment can correspond to each other reference with the test method as described above for being directed to MOC card in server, here
Just repeat no more.
Each embodiment is described in a progressive manner in the application, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
It should be noted that in present specification, the relational terms of such as " first " and " second " etc are used merely to
One entity or operation and another entity or operate is distinguished, without necessarily requiring or implying these entities or
There are any actual relationship or orders between person's operation.In addition, the terms "include", "comprise" or its any other
Variant is intended to non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only
It including those elements, but also including other elements that are not explicitly listed, or further include for this process, method, object
Product or the intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...",
It is not precluded in the process, method, article or apparatus that includes the element that there is also other identical elements.
Technical solution provided herein is described in detail above.Specific case used herein is to this Shen
Principle and embodiment please is expounded, the present processes that the above embodiments are only used to help understand and its
Core concept.It should be pointed out that for those skilled in the art, in the premise for not departing from the application principle
Under, can also to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection of the claim of this application
In range.