CN109582524A - A kind of test method, system and electronic equipment and storage medium - Google Patents
A kind of test method, system and electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109582524A CN109582524A CN201910012474.0A CN201910012474A CN109582524A CN 109582524 A CN109582524 A CN 109582524A CN 201910012474 A CN201910012474 A CN 201910012474A CN 109582524 A CN109582524 A CN 109582524A
- Authority
- CN
- China
- Prior art keywords
- time
- order
- smashcip
- server
- bmc
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000010998 test method Methods 0.000 title claims abstract description 32
- 238000003860 storage Methods 0.000 title claims abstract description 12
- 238000012360 testing method Methods 0.000 claims abstract description 47
- 230000006870 function Effects 0.000 claims abstract description 15
- 238000004590 computer program Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 3
- 238000000034 method Methods 0.000 abstract description 21
- 238000004891 communication Methods 0.000 description 8
- 230000005236 sound signal Effects 0.000 description 4
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012795 verification Methods 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/26—Functional testing
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)
- Debugging And Monitoring (AREA)
Abstract
This application discloses a kind of test method, system and a kind of electronic equipment and computer readable storage mediums, this method comprises: smashcip order is sent to server, so that server sets the object time for the BMC time according to the smashcip order;The current BMC time is obtained by ipmi order;The current BMC time and the object time are compared, the test result of the function of smash setting BMC time is obtained.Test method provided by the present application, is arranged the BMC time by smashcip order, obtains the current BMC time by ipmi order, and the test verifying of server smash functions of modules is completed when the two is consistent.It can be seen that test method provided by the present application, reduces unnecessary man-machine interactively process, to greatly improve testing efficiency, and guarantee the correctness of test operation.
Description
Technical field
This application involves field of computer technology, set more specifically to a kind of test method, system and a kind of electronics
Standby and a kind of computer readable storage medium.
Background technique
Server is the core of whole network system and computing platform, and many important data and log information are all stored in
On server.Server maintenance personnel judges frequently by BMC system time and log information and positioning analysis problem, so
The accuracy of BMC time is extremely important for maintenance locating personnel.Obtain setting BMC time, conventional test methodologies
Manual entry server is needed to obtain the setting BMC time manually, complex steps, speed is slow and is easy error.
Therefore, how to improve the test efficiency are those skilled in the art's technical issues that need to address.
Summary of the invention
The application's is designed to provide a kind of test method, system and a kind of electronic equipment and a kind of computer-readable deposits
Storage media improves testing efficiency.
To achieve the above object, this application provides a kind of test methods, comprising:
Smashcip order is sent to server, so that the BMC time is arranged according to the smashcip order for server
For the object time;
The current BMC time is obtained by ipmi order;
The current BMC time and the object time are compared, the test knot of the function of smash setting BMC time is obtained
Fruit.
Wherein, before the transmission smashcip order to server, further includes:
The server is connected using expect script, and enters smash command mode.
Wherein, after the transmission smashcip order to server, further includes:
The object time in the smashcip order is stored into file destination;
Before judging whether the current BMC time and the object time are consistent, further includes:
The object time is extracted from the file destination.
Wherein, after the test result of the function of obtaining the smash setting BMC time, further includes:
The test result is shown to user terminal.
It is wherein, described to send smashcip order to server, comprising:
The smashcip order is sent to the server using expect script.
To achieve the above object, this application provides a kind of test macros, comprising:
Sending module, for sending smashcip order to server, so that server is according to the smashcip order
The object time is set by the BMC time;
Module is obtained, for obtaining the current BMC time by ipmi order;
Contrast module obtains the smash setting BMC time for comparing the current BMC time and the object time
The test result of function.
Wherein, further includes:
Memory module, for storing the object time in the smashcip order into file destination;
Extraction module, for extracting the object time from the file destination.
Wherein, the sending module is specially that expect script is utilized to send the smashcip life to the server
It enables, so that server according to the smashcip order sets the BMC time to the module of object time.
To achieve the above object, this application provides a kind of electronic equipment, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the step of above-mentioned test method.
To achieve the above object, this application provides a kind of computer readable storage medium, the computer-readable storages
It is stored with computer program on medium, realizes when the computer program is executed by processor such as the step of above-mentioned test method.
By above scheme it is found that a kind of test method provided by the present application, comprising: send smashcip life to server
It enables, so that server sets the object time for the BMC time according to the smashcip order;It is obtained by ipmi order current
The BMC time;The current BMC time and the object time are compared, the test knot of the function of smash setting BMC time is obtained
Fruit.
The BMC time is arranged by smashcip order in test method provided by the present application, is obtained by ipmi order current
The BMC time completes the test verifying of server smash functions of modules when the two is consistent.It can be seen that survey provided by the present application
Method for testing reduces unnecessary man-machine interactively process, to greatly improve testing efficiency, and guarantees the correct of test operation
Property.Disclosed herein as well is a kind of test macro and a kind of electronic equipment and a kind of computer readable storage medium, equally can be real
Existing above-mentioned technical effect.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Application.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.Attached drawing is and to constitute specification for providing further understanding of the disclosure
A part, be used to explain the disclosure together with following specific embodiment, but do not constitute the limitation to the disclosure.Attached
In figure:
Fig. 1 is a kind of flow chart of test method shown according to an exemplary embodiment;
Fig. 2 is the flow chart of another test method shown according to an exemplary embodiment;
Fig. 3 is a kind of structure chart of test macro shown according to an exemplary embodiment;
The structure chart of Fig. 4 a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The embodiment of the present application discloses a kind of test method, improves testing efficiency.
Referring to Fig. 1, a kind of flow chart of test method shown according to an exemplary embodiment, as shown in Figure 1, comprising:
S101: sending smashcip order to server, so as to server according to the smashcip order by the BMC time
It is set as the object time;
The executing subject of the present embodiment can be the processor of test macro, send smashcip life to server first
It enables, which includes at least the object time of setting BMC, when server receives the smashcip order for BMC
Between be set as the object time.
Preferably, it can use expect script between test macro and server and carry out information exchange.I.e. in this step
It before, further include utilizing the expect script connection server, and the step of entering smash command mode.It utilizes
Expect script connects the process of the server are as follows:
Into the process of smash command mode are as follows: send "/usr/local/bin/smashclp ".
After entering smash command mode, using expect script to described in server transmission
Smashcip order.For example, setting the 10 points of smashcip orders in 35 minutes on the 31st of August in 2018 for the BMC time
For send " ntp-set datetime 2018-08-31 10:35:00 n ".
S102: the current BMC time is obtained by ipmi order;
In this step, it issues ipmi order and obtains current BMC time, ipmi order are as follows: ipmitool-I lanplus-
H ip–U admin–P admin sel time get。
S103: the comparison current BMC time and the object time obtain the survey of the function of smash setting BMC time
Test result.
In this step, smash set-up date and time (i.e. object time in step S101) and ipmi are obtained
To log and time (i.e. current BMC time in step S102) be compared, if unanimously, smash be arranged the BMC time
Functional verification passes through, conversely, then setup failed, test verifying does not pass through.Preferably, test result can also be shown to user
Terminal.
It as a preferred implementation manner, after step slol further include by the mesh in the smashcip order
The mark time stores the step into file destination.The file destination such as output.log can be used for subsequent log analysis and compare.
The command format of this step are as follows: log_file output.log.Correspondingly, further including from the target text before this step
The step of object time is extracted in part.
Test method provided by the embodiments of the present application is arranged the BMC time by smashcip order, is obtained by ipmi order
The current BMC time is taken, the test verifying of server smash functions of modules is completed when the two is consistent.It can be seen that the application is real
The test method for applying example offer, reduces unnecessary man-machine interactively process, to greatly improve testing efficiency, and guarantees to test
The correctness of operation.
The embodiment of the present application discloses a kind of test method, and relative to a upper embodiment, the present embodiment makees technical solution
Further instruction and optimization.It is specific:
Referring to fig. 2, the flow chart of another test method shown according to an exemplary embodiment, as shown in Fig. 2, packet
It includes:
S201: the server is connected using expect script, and enters smash command mode;
S202: the smashcip order is sent to the server using expect script, so that server is according to institute
It states smashcip order and sets the object time for the BMC time;
S203: the object time in the smashcip order is stored into file destination;
S204: the current BMC time is obtained by ipmi order;
S205: extracting the object time from the file destination, when comparing the current BMC time and the target
Between, obtain the test result of the function of smash setting BMC time.
S206: the test result is shown to user terminal.
A kind of test macro provided by the embodiments of the present application is introduced below, a kind of test macro described below with
A kind of above-described test method can be cross-referenced.
Referring to Fig. 3, a kind of structure chart of test macro shown according to an exemplary embodiment, as shown in Figure 3, comprising:
Sending module 301, for sending smashcip order to server, so that server is ordered according to the smashcip
It enables and sets the object time for the BMC time;
Module 302 is obtained, for obtaining the current BMC time by ipmi order;
Contrast module 303, for comparing the current BMC time and the object time, when obtaining smash setting BMC
Between function test result.
Test macro provided by the embodiments of the present application is arranged the BMC time by smashcip order, is obtained by ipmi order
The current BMC time is taken, the test verifying of server smash functions of modules is completed when the two is consistent.It can be seen that the application is real
The test macro for applying example offer, reduces unnecessary man-machine interactively process, to greatly improve testing efficiency, and guarantees to test
The correctness of operation.
On the basis of the above embodiments, as a preferred implementation manner, further include:
Link block for connecting the server using expect script, and enters smash command mode.
On the basis of the above embodiments, as a preferred implementation manner, further include:
Memory module, for storing the object time in the smashcip order into file destination;
Extraction module, for extracting the object time from the file destination.
On the basis of the above embodiments, as a preferred implementation manner, further include:
Display module, for showing the test result to user terminal.
On the basis of the above embodiments, the sending module is specially to utilize as a preferred implementation manner,
Expect script sends the smashcip order to the server, so that server will according to the smashcip order
The BMC time is set as the module of object time.
About the system in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Present invention also provides a kind of electronic equipment, referring to fig. 4, a kind of electronic equipment 400 provided by the embodiments of the present application
Structure chart, as shown in figure 4, may include processor 11 and memory 12.The electronic equipment 400 can also include multimedia group
Part 13, one or more of input/output (I/O) interface 14 and communication component 15.
Wherein, processor 11 is used to control the integrated operation of the electronic equipment 400, to complete in above-mentioned test method
All or part of the steps.Memory 12 is used to store various types of data to support the operation in the electronic equipment 400, these
Data for example may include the instruction of any application or method for operating on the electronic equipment 400, and application
The relevant data of program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..The memory 12 can be by
Any kind of volatibility or non-volatile memory device or their combination are realized, such as static random access memory
(Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically
Erasable Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM
(Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory
(Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as
ROM), magnetic memory, flash memory, disk or CD.Multimedia component 13 may include screen and audio component.Wherein shield
Curtain for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include one
A microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in memory
It 12 or is sent by communication component 15.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O interface
14 provide interface between processor 11 and other interface modules, other above-mentioned interface modules can be keyboard, mouse, button
Deng.These buttons can be virtual push button or entity button.Communication component 15 for the electronic equipment 400 and other equipment it
Between carry out wired or wireless communication.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field
Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication
Component 15 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 400 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part is realized, for executing above-mentioned test method.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of above-mentioned test method is realized when program instruction is executed by processor.For example, the computer readable storage medium can be
The above-mentioned memory 12 including program instruction, above procedure instruction can be executed by the processor 11 of electronic equipment 400 on to complete
The test method stated.
Each embodiment is described in a progressive manner in specification, 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 system 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 pointed out that for those skilled in the art, under the premise of not departing from the application principle, also
Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application
It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of test method characterized by comprising
Smashcip order is sent to server, so that server sets mesh for the BMC time according to the smashcip order
Mark the time;
The current BMC time is obtained by ipmi order;
The current BMC time and the object time are compared, the test result of the function of smash setting BMC time is obtained.
2. test method according to claim 1, which is characterized in that before the transmission smashcip order to server,
Further include:
The server is connected using expect script, and enters smash command mode.
3. test method according to claim 1, which is characterized in that after the transmission smashcip order to server,
Further include:
The object time in the smashcip order is stored into file destination;
Before judging whether the current BMC time and the object time are consistent, further includes:
The object time is extracted from the file destination.
4. test method according to claim 1, which is characterized in that the survey of the function of obtaining the smash setting BMC time
After test result, further includes:
The test result is shown to user terminal.
5. according to claim 1 to test method described in any one of 4, which is characterized in that described to be sent to server
Smashcip order, comprising:
The smashcip order is sent to the server using expect script.
6. a kind of test macro characterized by comprising
Sending module, for sending smashcip order to server, so as to server according to the smashcip order by BMC
Time is set as the object time;
Module is obtained, for obtaining the current BMC time by ipmi order;
Contrast module obtains the function of smash setting BMC time for comparing the current BMC time and the object time
Test result.
7. test macro according to claim 6, which is characterized in that further include:
Memory module, for storing the object time in the smashcip order into file destination;
Extraction module, for extracting the object time from the file destination.
8. test macro described according to claim 6 or 7, which is characterized in that the sending module is specially to utilize expect foot
This sends the smashcip order to the server, so that server sets the BMC time according to the smashcip order
It is set to the module of object time.
9. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the step of the test method as described in any one of claim 1 to 5 when for executing the computer program
Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized as described in any one of claim 1 to 5 when the computer program is executed by processor the step of test method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012474.0A CN109582524A (en) | 2019-01-07 | 2019-01-07 | A kind of test method, system and electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012474.0A CN109582524A (en) | 2019-01-07 | 2019-01-07 | A kind of test method, system and electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109582524A true CN109582524A (en) | 2019-04-05 |
Family
ID=65916197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910012474.0A Withdrawn CN109582524A (en) | 2019-01-07 | 2019-01-07 | A kind of test method, system and electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582524A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399263A (en) * | 2019-06-26 | 2019-11-01 | 苏州浪潮智能科技有限公司 | Verification method, device, electronic equipment and the medium of BMC feature release number |
CN110399716A (en) * | 2019-06-27 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of cryptographic validity test method, system and electronic equipment and storage medium |
CN111526046A (en) * | 2020-04-14 | 2020-08-11 | 浪潮商用机器有限公司 | Method, device, equipment and storage medium for setting BMC (baseboard management controller) time |
CN113204473A (en) * | 2021-06-08 | 2021-08-03 | 宁畅信息产业(北京)有限公司 | Heat dissipation test method and device, user terminal and storage medium |
-
2019
- 2019-01-07 CN CN201910012474.0A patent/CN109582524A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399263A (en) * | 2019-06-26 | 2019-11-01 | 苏州浪潮智能科技有限公司 | Verification method, device, electronic equipment and the medium of BMC feature release number |
CN110399716A (en) * | 2019-06-27 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of cryptographic validity test method, system and electronic equipment and storage medium |
CN111526046A (en) * | 2020-04-14 | 2020-08-11 | 浪潮商用机器有限公司 | Method, device, equipment and storage medium for setting BMC (baseboard management controller) time |
CN113204473A (en) * | 2021-06-08 | 2021-08-03 | 宁畅信息产业(北京)有限公司 | Heat dissipation test method and device, user terminal and storage medium |
CN113204473B (en) * | 2021-06-08 | 2024-05-24 | 宁畅信息产业(北京)有限公司 | Heat dissipation test method and device, user terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582524A (en) | A kind of test method, system and electronic equipment and storage medium | |
CN107368405B (en) | Test system, test method, mock platform, interceptor and client | |
US9712413B2 (en) | Systems and methods for managing computing systems utilizing augmented reality | |
CN110334007A (en) | A kind of functional interface calls verification method and device, electronic equipment and storage medium | |
CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
CN108111364B (en) | Service system testing method and device | |
CN109726830A (en) | Equipment routing inspection method, apparatus, electronic equipment and storage medium | |
CN104572031A (en) | Method and device for generating test case | |
CN113407393B (en) | Chip verification method, terminal device, verification platform and storage medium | |
CN103970655A (en) | Expect-based automatic server cluster testing method | |
WO2017071579A1 (en) | Method and device for mining android system vulnerabilities | |
CN110096413A (en) | A kind of disk localization method, system and electronic equipment and storage medium | |
JP2021103561A (en) | Identity information processing method, device, electronic apparatus, and storage medium | |
US11119747B2 (en) | System and method for application release orchestration and deployment | |
CN114024884A (en) | Test method, test device, electronic equipment and storage medium | |
CN111181771A (en) | Security changing abnormity positioning method and device based on fort machine and electronic equipment | |
CN112527678A (en) | Method, apparatus, device and storage medium for testing protocol | |
CN111949537A (en) | Interface test method, device, equipment and medium | |
KR101794016B1 (en) | Method of analyzing application objects based on distributed computing, method of providing item executable by computer, server performing the same and storage media storing the same | |
CN105893203A (en) | CEC verification method and device | |
CN109656804A (en) | Automated testing method, equipment, storage medium and device | |
CN109635552A (en) | Electronic equipment identity information verification method and device | |
CN110532186B (en) | Method, device, electronic equipment and storage medium for testing by using verification code | |
CN110601963B (en) | Message processing method and electronic device supporting same | |
CN113342632A (en) | Simulation data automatic processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190405 |
|
WW01 | Invention patent application withdrawn after publication |