CN116991650A - Server copying test method and device, computer equipment and storage medium - Google Patents

Server copying test method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116991650A
CN116991650A CN202310962448.0A CN202310962448A CN116991650A CN 116991650 A CN116991650 A CN 116991650A CN 202310962448 A CN202310962448 A CN 202310962448A CN 116991650 A CN116991650 A CN 116991650A
Authority
CN
China
Prior art keywords
copying
time length
server
test
copy
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
Application number
CN202310962448.0A
Other languages
Chinese (zh)
Inventor
罗彦
甘飘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Yiyun Information System Co ltd
Original Assignee
Dongguan Yiyun Information System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Yiyun Information System Co ltd filed Critical Dongguan Yiyun Information System Co ltd
Priority to CN202310962448.0A priority Critical patent/CN116991650A/en
Publication of CN116991650A publication Critical patent/CN116991650A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time

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

The invention relates to the field of server complete machine copying test, and discloses a server copying test method, a device, computer equipment and a storage medium. The method comprises the following steps: acquiring a copying test item code input by a user and a copying standard time length corresponding to the copying test item code; obtaining a product code of a server to be tested, and determining a target copying standard time length of the server to be tested according to the product code, the copying test item code, the copying standard time length and the preset universal copying standard time length; determining the copying time of the server to be tested according to the obtained copying start time and copying end time of the server to be tested; and determining a copying test result of the server to be tested according to the copying time length and the target copying standard time length, and outputting the copying test result. The embodiment of the invention can monitor the copying test result of the server in real time, saves copying test time and reduces manufacturing cost.

Description

Server copying test method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of server complete machine copying test, in particular to a server copying test method, a device, computer equipment and a storage medium.
Background
Before leaving the factory, the server is generally subjected to copying test to ensure that the produced server meets the quality requirements of related products. The existing server copying test is usually to collect test logs of the servers from a system after a batch of server copying tests are completed, and judge whether the copying test is abnormal according to the copying time in the test logs, but because the number of machine stations is large in the server copying test, the test lines are distributed widely, the unified collection of the test logs is long in time consuming, and the copying test results cannot be obtained and monitored in real time, if the copying test is abnormal, the abnormal conditions exist in the copying test process, the test personnel cannot be warned in time to take corresponding measures to intervene, and relative hysteresis exists, so that the server needs to be reworked for testing, the test time and the manufacturing cost are increased, and the on-time delivery of the product is affected.
Disclosure of Invention
The embodiment of the invention provides a server copying test method, a device, computer equipment and a storage medium, which aim to solve the problems that the existing server copying test is long in time consumption and cannot monitor copying test results in real time.
In a first aspect, an embodiment of the present invention provides a server copy testing method, including:
acquiring a copying test item code input by a user and a copying standard time length corresponding to the copying test item code;
acquiring a product code of a server to be tested, and determining a target copying standard time length of the server to be tested according to the product code, the copying test item code, the copying standard time length and a preset universal copying standard time length;
determining the copying time length of the server to be tested according to the obtained copying start time and copying end time of the server to be tested;
and determining a copying test result of the server to be tested according to the copying time length and the target copying standard time length, and outputting the copying test result.
In a second aspect, an embodiment of the present invention further provides a server copy testing apparatus, including:
the device comprises an acquisition unit, a copying unit and a processing unit, wherein the acquisition unit is used for acquiring a copying test item code input by a user and a copying standard time length corresponding to the copying test item code;
the first determining unit is used for obtaining a product code of the server to be tested, and determining a target copying standard time length of the server to be tested according to the product code, the copying test item code, the copying standard time length and a preset universal copying standard time length;
a second determining unit, configured to determine a copying time length of the server to be tested according to the obtained copying start time and copying end time of the server to be tested;
and a third determining unit, configured to determine a copy test result of the server to be tested according to the copy time length and the target copy standard time length, and output the copy test result.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the invention provides a server copying test method, a server copying test device, computer equipment and a storage medium. Wherein the method comprises the following steps: acquiring a copying test item code input by a user and a copying standard time length corresponding to the copying test item code; acquiring a product code of a server to be tested, and determining a target copying standard time length of the server to be tested according to the product code, the copying test item code, the copying standard time length and a preset universal copying standard time length; determining the copying time length of the server to be tested according to the obtained copying start time and copying end time of the server to be tested; and determining a copying test result of the server to be tested according to the copying time length and the target copying standard time length, and outputting the copying test result. According to the technical scheme, the target copying standard time length of the server to be tested is determined according to the obtained product code, the copying test item code, the copying standard time length and the preset general standard time length, the copying time length of the server to be tested is determined according to the obtained copying start time and the copying end time, the copying test result of the server to be tested can be determined according to the copying time length and the target copying standard time length, the copying time length can be obtained in real time in the copying test process, and further the copying test result of the server to be tested can be monitored in real time, so that a tester can take corresponding measures in time, copying test time is saved, and copying test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a server copy testing method according to an embodiment of the present invention;
FIG. 2 is a schematic sub-flowchart of a server copy testing method according to an embodiment of the present invention;
FIG. 3 is a schematic sub-flowchart of a server copy testing method according to an embodiment of the present invention;
FIG. 4 is a schematic sub-flowchart of a server copy testing method according to an embodiment of the present invention;
FIG. 5 is a schematic view of a sub-flow of a server copy testing method according to an embodiment of the present invention
FIG. 6 is a schematic block diagram of a server copy testing apparatus provided by an embodiment of the present invention;
fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1, fig. 1 is a flow chart of a server copy testing method according to an embodiment of the present invention. The server copying test method is applied to a copying monitoring platform, whether the copying time of the server to be tested is abnormal when the server to be tested is subjected to copying test can be monitored on the copying monitoring platform, and the copying test result of the server to be tested can be checked on the copying monitoring platform. The server copy test method is described in detail below. As shown in fig. 1, the method includes the following steps S100 to S130.
S100, acquiring a copying test item code input by a user and copying standard time length corresponding to the copying test item code.
In the embodiment of the invention, a server which needs to be subjected to a copying test is called a server to be tested. Before the server to be tested is tested, a deployment engineer will firstly configure corresponding test parameters of the server to be tested on a server to be tested, including test item codes of the server to be tested and standard time length of server to be tested. Specifically, the deployment engineer configures the copying test item code pn (part number) in the configuration interface on the copying monitoring platform, and then sets a copying standard time length for each pn code according to the copying test requirement, and understandably, each pn code corresponds to one copying standard time length. After the configuration of the copying monitoring platform is completed, the copying monitoring platform can acquire the pn code and the copying standard time length by the engineer to be deployed. In this embodiment, the pn code is used to distinguish different copy test items, and one pn code includes a plurality of servers to be tested. In practical application, because different production requirements exist for servers to be tested in different copying test projects, a deployment engineer is required to configure corresponding copying standard time length for each pn code independently according to the actual requirements, and the different copying test projects correspond to different copying standard time lengths, for example, the copying standard time length corresponding to the A code is 24 hours; the standard time of copying corresponding to the B code is 25 hours.
S110, obtaining a product code of the server to be tested, and determining a target copying standard time length of the server to be tested according to the product code, the copying test item code, the copying standard time length and a preset universal copying standard time length.
In the embodiment of the invention, the product code of the server to be tested is sn (serial number) code, namely the product serial number of the server to be tested, and the product serial number of each server to be tested is unique, so that the corresponding server can be determined according to the sn code. Further, in this embodiment, the sn code and the pn code have an association relationship: the sn codes belong to a subset of pn codes, and one pn code may include a plurality of sn codes. The preset universal time length is a copying time length configured by a deployment engineer and commonly used in copying test, and when the sn code of the server to be tested is not configured with a corresponding pn code, the preset universal time length can be used as a copying standard time length of the server to be tested. After the information of the sn code, the pn code, the copying standard time length and the preset universal copying standard time length is obtained, the target copying standard time length of the server to be tested can be determined according to the corresponding relation among the sn code, the pn code, the copying standard time length and the preset universal copying.
Referring to fig. 2, in an embodiment, for example, in the embodiment of the present invention, the step S110 includes the following steps S111-S112.
S111, if the product code and the copying test item code have an association relation, taking the copying standard time length as the target copying standard time length of the server to be tested;
in the embodiment of the invention, if the sn codes of the server to be tested have an association relation with the pn codes, and the sn codes are a subset of the pn codes, the copying standard time length corresponding to the pn codes is obtained, and the copying standard time length is used as the target copying standard time length of the server to be tested corresponding to the sn codes. Specifically, when a copying test is performed on a server to be tested, acquiring a sn code of the server to be tested, matching the sn code with a pn code set in a copying monitoring platform, and if the sn code is matched with a corresponding pn code, indicating that the sn code is a subset of the matched pn code, acquiring a copying standard time length corresponding to the pn code, and taking the copying standard time length as a target copying standard time length of the server to be tested corresponding to the sn code. Understandably, the sn codes with association relation with the same pn code have the same target copying standard duration of the corresponding server to be tested, and the target copying standard durations of all the servers to be tested corresponding to the sn codes under the pn code subset can be uniformly set through the association relation between the sn codes and the pn codes.
And S112, if the product code and the copying test item code have no association relation, taking the preset universal copying standard time as the target copying standard time.
In the embodiment of the invention, if the sn codes of the server to be tested and the pn codes have no association relation, and the sn codes are not a subset of the pn codes, the preset universal copying standard time length is obtained, and the universal copying standard time length is used as the target copying standard time length of the server to be tested corresponding to the sn codes. Specifically, when a copying test is performed on a server to be tested, acquiring a sn code of the server to be tested, matching the sn code with a pn code set in a copying monitoring platform, and if the corresponding pn code cannot be matched, indicating that the sn code does not belong to any subset of the pn codes, and a copying standard time length cannot be configured for the server to be tested corresponding to the sn code through the pn code, acquiring a universal copying standard time length preset in the copying monitoring platform as a target copying standard time length of the server to be tested corresponding to the sn code.
S120, determining the copying time of the server to be tested according to the obtained copying start time and the copying end time of the server to be tested.
In the embodiment of the invention, when the server to be tested starts to be subjected to the copying test, the corresponding time when the copying test starts is obtained as the copying start time of the server to be tested; when the copying test of the server to be tested is stopped, the corresponding time when the copying is finished is obtained as the copying ending time of the server to be tested, and the actual copying time of the server to be tested in the copying test can be calculated according to the obtained copying starting time and the copying ending time. It should be noted that, in this embodiment, the test for stopping the copy machine of the server to be tested may include two cases: when a server to be tested starts a copying test, the copying test is stopped due to the occurrence of abnormality of the copying test, and the time corresponding to the copying test stopping time is obtained at the moment as the copying end time; another case is that the server to be tested starts the copy test until the copy end instruction is received to end the copy test to stop the copy test, at which time the time corresponding to the time when the copy end instruction is received to stop the copy test is taken as the copy end time.
Referring to fig. 3, in an embodiment, for example, in the embodiment of the present invention, the step S120 includes the following steps S121-S124.
S121, acquiring test times and judging the test times;
s122, if the test times are preset times and a test start instruction is received, acquiring the current time corresponding to the test start instruction as a copying start time;
s123, if a test ending instruction is received, acquiring the current time corresponding to the test ending instruction as the copying ending time;
s124, calculating the difference between the copying test ending time and the copying starting time to obtain the copying time of the server to be tested.
In the embodiment of the invention, because different servers have different copying test requirements, the server to be tested can possibly perform copying test for one or more times, and therefore, when calculating the copying time of the server to be tested, the testing starting time and the testing ending time of which copying test are required to be used as the copying starting time and the copying ending time of the server to be tested are required to be determined. Specifically, acquiring the test times of a server to be tested, and if the test times are preset times, wherein the predicted times are 1 time, acquiring the test start time of the 1 st copying test as the copying start time; in the process of the copying test, if a test ending instruction is received, which indicates that the server to be tested stops the copying test or completes the copying test, the test ending time of the 1 st copying test is obtained as the copying ending time. Understandably, the test ending instruction may be an instruction input by a deployment engineer, or may be a test ending instruction generated when the test stopping process occurs in the test process of copying the server to be tested, where the test stopping process is detected by the copy monitoring platform. After obtaining the copying start time and the copying end time, the copying monitoring platform automatically calculates the difference between the copying end time and the copying start time to obtain the copying duration of the server to be tested.
Referring to fig. 4, in an embodiment, for example, in the embodiment of the present invention, the following steps S125-S127 may be further included after the step S121.
S125, if the test times are not preset times, acquiring the test starting time of the last test as the copying starting time;
s126, acquiring the test ending time of the last test as the copying ending time;
s127, calculating the difference between the copying test ending time and the copying starting time to obtain the copying time of the server to be tested.
In the embodiment of the invention, if the number of times of testing the server to be tested is not the preset number of times, that is, the number of times of testing is more than 1, which indicates that the server to be tested is subjected to multiple copying tests, the starting time of the last test is obtained as the copying starting time, the ending time of the last test is obtained as the copying ending time, and the difference between the copying ending time and the copying starting time is calculated to obtain the copying duration of the server to be tested.
S130, determining a copying test result of the server to be tested according to the copying time length and the target copying standard time length, and outputting the copying test result.
In the embodiment of the invention, after the copying time length of the server to be tested is obtained, the copying time length is compared with the target copying standard time length to obtain the copying test result of the server to be tested, whether the copying test of the server to be tested has the copying time abnormal condition or not can be judged according to the copying test result, and the copying test result can be obtained and output in real time, so that the occurrence of the copying test abnormal condition is automatically monitored, and early warning prompt can be carried out on the copying test abnormal condition in time.
Referring to fig. 5, in an embodiment, for example, in the embodiment of the present invention, the step S130 includes the following steps S131-S133.
S131, detecting whether the copying time length is within the target copying standard time length range;
in the embodiment of the invention, the target copying standard time length comprises a copying standard time length upper threshold value and a copying standard time length lower threshold value, wherein the copying standard time length upper threshold value is obtained by calculating the difference between the copying standard time length and the preset floating time length, and the copying standard time length lower threshold value is obtained by calculating the sum of the copying standard time length and the preset floating time length. After determining the upper threshold value and the lower threshold value of the standard copying time length, comparing the copying time length with the upper threshold value and the lower threshold value of the standard copying time length to judge whether the copying time length is within the range of the target copying standard time length. Specifically, judging whether the copying time length is smaller than the copying standard time length lower threshold value, if the copying time length is not smaller than the copying standard time length lower threshold value, judging whether the copying time length is larger than the copying standard time length upper threshold value, and if the copying time length is not larger than the copying standard time length upper threshold value, judging that the copying time length is in the target copying standard time length range. For example, when the standard time length of copying is 24 hours and the floating time length is 1 hour, the upper threshold value of the standard time length of copying is 23 hours, and the lower threshold value of the standard time length of copying is 25 hours, namely the standard time length of copying is 23-25 hours, when the 23-25 hours of copying time length is less than or equal to 23, the copying time length is within the range of the standard time length of copying. In this embodiment, the upper threshold value of the standard copying time period is smaller than the lower threshold value of the standard copying time period. The preset floating time is a floating time which is preset on a copying monitoring platform by a deployment engineer according to the copying test requirement of the server to be tested, for example, the floating time is 1 hour.
S132, if the copying time length is not in the range of the target copying standard time length, determining that the copying time length is abnormal, and outputting an abnormal copying test result;
s133, if the copying time length is within the target copying standard time length range, determining that the copying time length is normal, and outputting a normal copying test result.
In the embodiment of the invention, if the copying time length is not in the range of the target copying standard time length, the server to be tested is proved to have abnormality in the copying test, for example, the target copying standard time length is 23-24 hours, the copying time length is 26 hours, the server to be tested can be confirmed to have abnormality in the copying time length, early warning prompt information is generated according to the abnormal copying time length, and the early warning prompt information is sent to monitoring personnel or terminals in a preset mode. In practical application, the preset mode is mail, that is, early warning prompt information is sent to monitoring personnel or corresponding terminal equipment in a mail mode, so that the monitoring personnel can be reminded of timely taking corresponding measures to intervene. Further, if the monitoring personnel receive the early warning prompt information, a checking instruction can be sent to check the abnormal condition of the server to be tested. And if the copying monitoring platform receives the checking instruction, obtaining a copying test result of the server to be tested, wherein the copying test result comprises sn codes of the server to be tested, copying test stations, copying time length and the state of the server to be tested. The copying test station is the station position of the server to be tested for copying test; the state of the server to be tested comprises a copy-on test normal and a copy-on test abnormal. And then displaying the obtained copying test result on a copying monitoring platform so as to enable monitoring staff to check and know the copying test condition of the server to be tested. If the copying time length is within the range of the target copying standard time length, for example, the target copying standard time length is 23-25 hours and the copying time length is 24 hours, the copying time length of the server to be tested can be determined to be normal, and a normal copying test result is output.
Fig. 6 is a schematic block diagram of a server copy testing apparatus 200 provided in an embodiment of the present invention. As shown in fig. 6, the present invention also provides a server copy test apparatus 200 corresponding to the above server copy test method. The server copy test apparatus 200 includes a unit for performing the above-described server copy test method, and may be configured in a computer device. Specifically, referring to fig. 6, the server copy test apparatus 200 includes an acquisition unit 201, a first determination unit 202, a second determination unit 203, and a third determination unit 204.
Wherein, the obtaining unit 201 is configured to obtain a copying test item code input by a user and a copying standard duration corresponding to the copying test item code; the first determining unit 202 is configured to obtain a product code of a server to be tested, and determine a target copying standard duration of the server to be tested according to the product code, the copying test item code, the copying standard duration, and a preset universal copying standard duration; the second determining unit 203 is configured to determine a copying duration of the server to be tested according to the obtained copying start time and the copying end time of the server to be tested; the third determining unit 204 is configured to determine a copy test result of the server to be tested according to the copy time length and the target copy standard time length, and output the copy test result.
In some embodiments, for example, the first determining unit 202 includes a first sub-unit and a second sub-unit.
The first serving subunit is configured to take the copying standard duration as a target copying standard duration of the server to be tested if the product code and the copying test item code have an association relationship; and the second serving subunit is configured to take a preset universal copying standard duration as the target copying standard duration if the product code and the copying test item code have no association relationship.
In some embodiments, for example, in this embodiment, the second determining unit 203 includes a first judging subunit, a first acquiring subunit, a second acquiring subunit, and a first calculating subunit.
The first judging subunit is used for acquiring the test times and judging the test times; the first obtaining subunit is configured to obtain, if the test number is a preset number and a test start instruction is received, a test start time of the preset number as a copying start time; the second obtaining subunit is configured to, if a test ending instruction is received, use the test ending time of the preset times as a copying ending time; the first calculating subunit is used for calculating the difference between the copying test ending time and the copying starting time to obtain the copying time length of the server to be tested.
In some embodiments, for example, in this embodiment, the second determining unit 203 further includes a third acquiring subunit, a fourth acquiring subunit, and a second calculating subunit.
The third obtaining subunit is configured to obtain, if the number of tests is not a preset number, a test start time of a last test as the copying start time; the fourth obtaining subunit is configured to obtain a test end time of a last test as the copying machine end time; the second calculating subunit is configured to calculate a difference between the copying test ending time and the copying start time, so as to obtain a copying duration of the server to be tested.
In some embodiments, for example, the third determining unit 204 includes a detecting subunit, a first determining subunit, and a second determining subunit.
The detection subunit is used for detecting whether the copying time length is within the standard copying time length range of the target; the first determining subunit is configured to determine that an abnormality exists in the copying time length if the copying time length is not within the target copying standard time length range, and output an abnormal copying test result; and the second determining subunit is used for determining that the copying time length is normal if the copying time length is within the target copying standard time length range and outputting a normal copying test result.
In some embodiments, for example, in this embodiment, the detection subunit includes a third calculation subunit, a fourth calculation subunit, a second determination subunit, a third determination subunit, and a determination subunit.
The third calculation subunit is used for calculating the difference between the copying standard time length and the preset floating time length to obtain an upper threshold value of the copying standard time length; the fourth calculating subunit is used for calculating the sum of the copying standard time length and the preset floating time length to obtain a lower threshold value of the copying standard time length; the second judging subunit is used for judging whether the copying time length is smaller than the lower threshold value of the copying standard time length; the third judging subunit is configured to judge whether the copying time duration is greater than the copying standard time duration upper threshold if the copying time duration is not less than the copying standard time duration lower threshold; and the judging subunit is used for judging that the copying time length is in the range of the target copying standard time length if the copying time length is not greater than the upper threshold value of the copying standard time length.
In some embodiments, for example, the first determining subunit includes a transmitting subunit and an output subunit.
The sending subunit is used for sending early warning prompt information to a monitoring person or a terminal in a preset mode if the copying time length is determined to be abnormal; and the output subunit is used for acquiring the copying test result of the server to be tested if receiving the checking instruction, and outputting and displaying the copying test result.
The server copy test apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 300 is a display device having a copy test result monitoring function.
With reference to FIG. 7, the computer device 300 includes a processor 302, a memory, and a network interface 305, which are connected by a system bus 301, wherein the memory may include a non-volatile storage medium 303 and an internal memory 304.
The non-volatile storage medium 303 may store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, may cause the processor 302 to perform a server copy test method.
The processor 302 is used to provide computing and control capabilities to support the operation of the overall computer device 300.
The internal memory 304 provides an environment for the execution of a computer program 3032 in the non-volatile storage medium 303, which computer program 3032, when executed by the processor 302, causes the processor 302 to perform a server copy test method.
The network interface 305 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and does not constitute a limitation of the computer device 300 to which the present inventive arrangements may be applied, and that a particular computer device 300 may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
It should be appreciated that in embodiments of the present invention, the processor 302 may be a central processing unit (Central Processing Unit, CPU), the processor 302 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), field programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform any of the embodiments of the server copy test method described above.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A server copying test method is characterized by comprising the following steps:
acquiring a copying test item code input by a user and a copying standard time length corresponding to the copying test item code;
acquiring a product code of a server to be tested, and determining a target copying standard time length of the server to be tested according to the product code, the copying test item code, the copying standard time length and a preset universal copying standard time length;
determining the copying time length of the server to be tested according to the obtained copying start time and copying end time of the server to be tested;
and determining a copying test result of the server to be tested according to the copying time length and the target copying standard time length, and outputting the copying test result.
2. The server copy-on test method of claim 1, wherein the determining the target copy-on standard duration of the server to be tested according to the product code, the copy-on test item code, the copy-on standard duration, and a preset universal copy-on standard duration comprises:
if the product code and the copying test item code have an association relation, taking the copying standard time length as the target copying standard time length of the server to be tested;
and if the product code and the copied test item code have no association relation, taking the preset universal copying standard time length as the target copying standard time length.
3. The server copy-on test method as claimed in claim 1, wherein said determining a copy-on time of the server to be tested from the acquired copy-on start time and copy-on end time of the server to be tested includes:
acquiring test times and judging the test times;
if the test times are preset times and a test start instruction is received, acquiring the test start time of the preset times as the copying start time;
if a test ending instruction is received, acquiring the test ending time of the preset times as the copying ending time;
and calculating the difference between the copying test ending time and the copying starting time to obtain the copying time of the server to be tested.
4. A server copy testing method as claimed in claim 3, wherein after said obtaining the number of tests and determining the number of tests, further comprising:
if the test times are not the preset times, acquiring the test starting time of the last copying test as the copying starting time;
acquiring the test ending time of the last copying test as the copying ending time;
and calculating the difference between the copying test ending time and the copying starting time to obtain the copying time of the server to be tested.
5. The server copy-on test method of claim 1, wherein the determining a copy-on test result of the server to be tested according to the copy-on time length and the target copy-on standard time length and outputting the copy-on test result comprises:
detecting whether the copying time length is within the standard copying time length range of the target;
if the copying time length is not in the range of the target copying standard time length, determining that the copying time length is abnormal, and outputting an abnormal copying test result;
if the copying time length is within the target copying standard time length range, determining that the copying time length is normal, and outputting a normal copying test result.
6. The server copy test method according to claim 5, wherein the target copy standard time period includes a copy standard time period upper threshold and a copy standard time period lower threshold, and the detecting whether the copy time period is within the target copy standard time period comprises:
calculating the difference between the standard copying time and a preset floating time to obtain an upper threshold value of the standard copying time;
calculating the sum of the copying standard time length and the preset floating time length to obtain a lower threshold value of the copying standard time length;
judging whether the copying time length is smaller than the lower threshold value of the copying standard time length or not;
if the copying time length is not less than the lower threshold value of the copying standard time length, judging whether the copying time length is greater than the upper threshold value of the copying standard time length;
if the copying time length is not greater than the upper threshold value of the copying standard time length, judging that the copying time length is within the range of the target copying standard time length.
7. The server copy test method as claimed in claim 5, wherein said determining that there is an abnormality in said copy time period and outputting a result of the abnormal copy test comprises:
if the copying time length is abnormal, sending early warning prompt information to a monitoring person or a terminal in a preset mode;
and if the checking instruction is received, acquiring an abnormal copying test result of the server to be tested, and outputting and displaying the abnormal copying test result.
8. A server copy testing apparatus, comprising:
the device comprises an acquisition unit, a copying unit and a processing unit, wherein the acquisition unit is used for acquiring a copying test item code input by a user and a copying standard time length corresponding to the copying test item code;
the first determining unit is used for obtaining a product code of the server to be tested, and determining a target copying standard time length of the server to be tested according to the product code, the copying test item code, the copying standard time length and a preset universal copying standard time length;
a second determining unit, configured to determine a copying time length of the server to be tested according to the obtained copying start time and copying end time of the server to be tested;
and a third determining unit, configured to determine a copy test result of the server to be tested according to the copy time length and the target copy standard time length, and output the copy test result.
9. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-7.
10. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202310962448.0A 2023-08-01 2023-08-01 Server copying test method and device, computer equipment and storage medium Pending CN116991650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310962448.0A CN116991650A (en) 2023-08-01 2023-08-01 Server copying test method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310962448.0A CN116991650A (en) 2023-08-01 2023-08-01 Server copying test method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116991650A true CN116991650A (en) 2023-11-03

Family

ID=88527845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310962448.0A Pending CN116991650A (en) 2023-08-01 2023-08-01 Server copying test method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116991650A (en)

Similar Documents

Publication Publication Date Title
US20150105973A1 (en) Vehicle network health assessment
US7712083B2 (en) Method and apparatus for monitoring and updating system software
EP2166422A1 (en) Method of alarm mask generation and condition monitoring of wind turbines
EP2613207A2 (en) Adaptive trend-change detection and function fitting system and method
CN108700491B (en) Bearing carbonization fault detection in turbine systems
CN102141948A (en) Noisy monitor detection and intermittent fault isolation
CN108604085B (en) Temperature sensor fault detection in a turbine system
CN116991650A (en) Server copying test method and device, computer equipment and storage medium
CN112763813A (en) Apparatus and method for detecting cause of battery discharge of vehicle
US8225646B2 (en) Throttle body sweep diagnostic system and method
US8060332B2 (en) Method for testing sensor function and computer program product thereof
KR101997217B1 (en) Device diagnostic system
CN109309575A (en) A kind of method and apparatus of determining monitoring system health degree
CN113172764B (en) Monitoring method and system for mixing plant
US20200292596A1 (en) Monitoring system
CN110059013B (en) Method and device for determining normal operation after software upgrading
CN114490213A (en) Method, system, device and storage medium for monitoring and diagnosing computer mainboard faults
US6785623B2 (en) Business to business electronic test monitoring information system
US20100223028A1 (en) Diagnosis agent for remote plant diagnosis
CN111176931A (en) Operation monitoring method, operation monitoring device, server and storage medium
CN114746821A (en) Diagnostic device, diagnostic method, and program
CN114815573B (en) Ammeter time calibration method and device, electronic equipment and storage medium
JP7310754B2 (en) diagnostic equipment
US9965373B2 (en) Monitoring method and computer device
CN112199247B (en) Method and device for checking Docker container process activity in non-service state

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