CN116881050A - Interactive automatic restarting method, device and system - Google Patents

Interactive automatic restarting method, device and system Download PDF

Info

Publication number
CN116881050A
CN116881050A CN202310973150.XA CN202310973150A CN116881050A CN 116881050 A CN116881050 A CN 116881050A CN 202310973150 A CN202310973150 A CN 202310973150A CN 116881050 A CN116881050 A CN 116881050A
Authority
CN
China
Prior art keywords
restarting
restart
test
server
display end
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
CN202310973150.XA
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.)
Great Wall Chaoyun Beijing Technology Co ltd
Original Assignee
Great Wall Chaoyun Beijing Technology 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 Great Wall Chaoyun Beijing Technology Co ltd filed Critical Great Wall Chaoyun Beijing Technology Co ltd
Priority to CN202310973150.XA priority Critical patent/CN116881050A/en
Publication of CN116881050A publication Critical patent/CN116881050A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an interactive automatic restarting method, a device and a system, which relate to the technical field of computers and are applied to a server, wherein the server is in communication connection with a display, and the interactive automatic restarting method comprises the following steps: receiving a restarting instruction sent by a display end, acquiring restarting times, and storing the restarting times into a test log; setting a restart interval time based on the number of restarts; operating a restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting; after restarting, storing the restarting test result into a test log, and sending the test log to a display end so that the display end can determine the operation parameters of the restarting test script based on the test log; when the operation parameters do not meet preset expected values, the display end modifies the restarting times based on the operation parameters; after each restarting, the restarting completion times are determined, if the restarting times are the same as the restarting completion times, the restarting test is ended, so that the restarting test is simpler and more convenient to operate, and the restarting test efficiency is improved.

Description

Interactive automatic restarting method, device and system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an interactive automatic restart method, apparatus, and system.
Background
With the increasing demands of traditional information services and increasingly powerful cloud computing on the stability of servers, stability testing of servers becomes extremely important, and restarting testing of servers is a common method for detecting server stability.
For the restarting test, the professional technician follows the restarting test condition, which often wastes professional human resources, but the restarting test operation is complex, the restarting test operation by non-professional staff is often difficult, errors can occur in the test process, and the test efficiency can be affected if the errors are not found in time when the errors occur.
Disclosure of Invention
Therefore, the invention aims to provide an interactive automatic restarting method, device and system, which enable the operation of restarting test to be simpler and more convenient through the interactive automatic starting of a server side and a display side, and monitor the restarting test result of the server side in real time through the display side, thereby ensuring that when errors occur in the process of running the restarting test script, the restarting test can be continuously performed by timely eliminating the errors, and improving the restarting test efficiency.
In a first aspect, an embodiment of the present invention provides an interactive automatic restart method, applied to a server, where the server is communicatively connected to a display, including: receiving a restarting instruction sent by a display end, acquiring restarting times, and storing the restarting times into a test log; setting a restart interval time based on the number of restarts; operating a restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting; after restarting, storing the restarting test result into a test log, and sending the test log to a display end so that the display end can determine the operation parameters of the restarting test script based on the test log; when the operation parameters do not meet preset expected values, the display end modifies the restarting times based on the operation parameters; and after each restarting, determining the restarting completion times, and if the restarting times are the same as the restarting completion times, ending the restarting test.
In a preferred embodiment of the present invention, after the receiving the restart instruction sent by the display end and obtaining the restart times, the method includes: assigning a value represented by a count field in the test log to 0; after the restart test script is run based on the restart times and the restart interval time to obtain the restart test result, the method further comprises the following steps: and after the operation of restarting the test script is finished, adding 1 to the numerical value of the counting field in the test log until the numerical value of the counting field is the same as the restarting times.
In a preferred embodiment of the present invention, the determining the number of times of restart completion after each restart includes: the value of the count field is used as the restart completion number.
In a preferred embodiment of the present invention, in the process of restarting the restart test script based on the number of restarts and the restart interval time, the method includes: if an operation error occurs in the operation process of restarting the test script, an operation error prompt is sent to a display end.
In a preferred embodiment of the present invention, the determining the number of times of restarting is performed after each restart, and if the number of times of restarting is the same as the number of times of restarting, before ending the restart test, further includes: receiving a restarting instruction which is sent by a display end and comprises the modified restarting times; and running a restarting test script to restart based on the modified restarting times and the restarting interval time.
In a second aspect, an embodiment of the present invention provides an interactive automatic restart method, applied to a display end, where the display end is communicatively connected to a server, the method includes: setting the restarting times, and sending restarting instructions comprising the restarting times to the server side so that the server side sets restarting interval time based on the restarting times; operating a restarting test script based on the restarting times and the restarting interval time to obtain a restarting test result; receiving a test log sent by a server; determining operation parameters of a restarting test script based on the test log; if the operation parameters do not meet the preset expected values, the restarting times are modified based on the operation parameters, and a restarting instruction comprising the modified restarting times is sent to the server.
In a preferred embodiment of the present invention, before the receiving the test log sent by the server, the method further includes: and receiving an operation error prompt sent by the server.
In a third aspect, an embodiment of the present invention further provides an interactive automatic restart device, applied to a server, where the server is communicatively connected to a display, and includes: the restarting time acquisition module is used for receiving the restarting instruction sent by the display end, acquiring the restarting time and storing the restarting time into the test log; the restarting interval time setting module is used for setting restarting interval time based on the restarting times; the restarting test script running module is used for running the restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting; the test log sending module is used for storing a restarting test result into the test log after each restarting, and sending the test log to the display end so that the display end can determine the operation parameters of the restarting test script based on the test log; when the operation parameters do not meet preset expected values, the display end modifies the restarting times based on the operation parameters; and the restarting completion time determining module is used for determining the restarting completion time after each restarting, and ending the restarting test if the restarting time is the same as the restarting completion time.
In a fourth aspect, an embodiment of the present invention further provides an interactive automatic restart device, applied to a display end, where the display end is communicatively connected to a server, and includes: the restarting time setting module is used for setting restarting times, and sending restarting instructions comprising the restarting times to the server side so that the server side can set restarting interval time based on the restarting times; operating a restarting test script based on the restarting times and the restarting interval time to obtain a restarting test result; the test log receiving module is used for receiving the test log sent by the server; the operation parameter determining module is used for determining operation parameters of the restarting test script based on the test log; and the restarting instruction sending module is used for modifying the restarting times based on the operation parameters and sending the restarting instructions comprising the modified restarting times to the server side if the operation parameters do not meet the preset expected values.
In a fifth aspect, an embodiment of the present invention further provides an interactive automatic restart system, including a server and a display, where the server is configured to implement the interactive automatic restart method of the first aspect, and the display is configured to implement the interactive automatic restart method of the second aspect.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides an interactive automatic restarting method, device and system, which are applied to a server, wherein the server is in communication connection with a display, and the interactive automatic restarting method, device and system comprises the following steps: receiving a restarting instruction sent by a display end, acquiring restarting times, and storing the restarting times into a test log; setting a restart interval time based on the number of restarts; operating a restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting; after restarting, storing the restarting test result into a test log, and sending the test log to a display end so that the display end can determine the operation parameters of the restarting test script based on the test log; when the operation parameters do not meet preset expected values, the display end modifies the restarting times based on the operation parameters; and after each restarting, determining the restarting completion times, and if the restarting times are the same as the restarting completion times. The method has the advantages that the display end is utilized to send the restarting instruction to the server end, and the server end sends the test log stored with the restarting test result to the display end after the restarting test result is obtained, so that the interactive automatic restarting of the server end and the display end is completed, the restarting test operation is simpler and more convenient, the restarting test result of the server end is monitored in real time through the display end, when errors occur in the process of running the restarting test script, the restarting test can be continuously performed in time, and the restarting test efficiency is improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an interactive automatic restarting method applied to a server according to an embodiment of the present invention;
FIG. 2 is a flowchart of an interactive automatic restarting method applied to a display end according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an interactive automatic restarting device applied to a server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an interactive automatic restarting device applied to a display end according to an embodiment of the present invention;
FIG. 5 is a block diagram of an interactive automatic restart system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. 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.
With the increasing demands of traditional information services and increasingly powerful cloud computing on the stability of servers, stability testing of servers becomes extremely important, and restarting testing of servers is a common method for detecting server stability.
For the restarting test, the professional technician follows the restarting test condition, which often wastes professional human resources, but the restarting test operation is complex, the restarting test operation by non-professional staff is often difficult, errors can occur in the test process, and the test efficiency can be affected if the errors are not found in time when the errors occur.
Based on the above, the interactive automatic restarting method, device and system provided by the embodiment of the invention are applied to the server, and the server is in communication connection with the display, and can receive the restarting instruction sent by the display, acquire the restarting times and store the restarting times in the test log; setting a restart interval time based on the number of restarts; operating a restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting; after restarting, storing the restarting test result into a test log, and sending the test log to a display end so that the display end can determine the operation parameters of the restarting test script based on the test log; when the operation parameters do not meet preset expected values, the display end modifies the restarting times based on the operation parameters; and after each restarting, determining the restarting completion times, and if the restarting times are the same as the restarting completion times. The method has the advantages that the display end is utilized to send the restarting instruction to the server end, and the server end sends the test log stored with the restarting test result to the display end after the restarting test result is obtained, so that the interactive automatic restarting of the server end and the display end is completed, the restarting test operation is simpler and more convenient, the restarting test result of the server end is monitored in real time through the display end, when errors occur in the process of running the restarting test script, the restarting test can be continuously performed in time, and the restarting test efficiency is improved.
For the convenience of understanding the present embodiment, a detailed description will be first given of an interactive automatic restarting method disclosed in the embodiment of the present invention.
Example 1
An embodiment of the invention provides an interactive automatic restarting method, and fig. 1 is a flowchart of the interactive automatic restarting method applied to a server provided by the embodiment of the invention. The server is in communication connection with the display. As shown in fig. 1, the interactive automatic restart method may include the steps of:
step S101, receiving a restarting instruction sent by a display end, acquiring restarting times, and storing the restarting times into a test log.
The display end can be a display screen with a display function. The staff can send a restarting instruction to the server through the display end, and the restarting instruction can comprise restarting times and parameters for configuring the server.
The test log is used for recording operation parameters, restarting times, restarting interval time, restarting triggering time, restarting completion times, restarting test results and the like generated when the restarting test is carried out.
Step S102, setting a restart interval time based on the number of restarts.
The restart interval time is the interval time between each restart. The worker can set the restart interval time according to the number of restarts according to his own experience.
And step S103, running a restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting.
The restarting test script is a code for restarting the server. The restart test script may be caused to run a restart number of times according to the restart interval time according to the restart number of times and the restart interval time to complete the restart test.
The restart test result may include an operation parameter, a restart number, a restart interval time, a time when a restart is triggered, a restart completion number, and the like, which are generated when the restart test script is operated.
When the restart test script is executed, an error may occur, so in the process of executing the restart test script based on the number of times of restarting and the restart interval time, the method further comprises: if an operation error occurs in the operation process of restarting the test script, an operation error prompt is sent to a display end.
After the operation error occurs, the display end pops up the alarm popup window immediately, which is used for reminding a worker of restarting the test interruption, and after the worker checks the error, the worker can modify parameters such as parameters for configuring the server end, restarting times and the like at the display end, and then the worker sends a restarting instruction to the server end again.
Step S104, after restarting each time, the restarting test result is stored in the test log, and the test log is sent to the display end.
The method comprises the steps that a test log is sent to a display end, and the display end can determine operation parameters of restarting a test script based on the test log; and when the operation parameters do not meet the preset expected values, the display end modifies the restarting times based on the operation parameters.
The test log comprises a restart test result corresponding to the current restart completion times and a restart test result completed before the current restart completion times.
Step S105, after each restart, the number of times of restart completion is determined, and if the number of times of restart is the same as the number of times of restart completion, the restart test is ended.
The restart completion times are determined after each restart, and the restart test script is not run again under the condition that the restart times are the same as the restart completion times, namely the restart test is ended.
In order to realize statistics on the completion condition of the restarting times, so as to judge whether the restarting test script runs again, after receiving the restarting instruction sent by the display end and obtaining the restarting times, the method can include: the value represented by the count field in the test log is assigned a value of 0. After the restart test script is run based on the restart times and the restart interval time to obtain the restart test result, the method further comprises the following steps: and after the operation of restarting the test script is finished, adding 1 to the numerical value of the counting field in the test log until the numerical value of the counting field is the same as the restarting times.
The count field is used for representing the restart completion times, and after the restart times are obtained, a value represented by the count field in the test log is assigned to 0, namely the restart completion times are 0.
The number of the count field in the test log is increased by 1 after each time of running the restart test script, for example, after the restart test script is run for the first time, the number of the count field is changed to 1, that is, the number of times of restart completion is 1, until the number of times of restart completion stops increasing the number of the count field when the number of times of restart is the number of times of restart, at this time, the restart test script will not run again, and the restart test is ended.
Specifically, determining the number of times of restart completion after each restart includes: the value of the count field is used as the restart completion number.
When the restart test script is run, a running error may occur, after a worker removes the error, a modified restart instruction is sent through the display end, so after each restart, the number of restart completion times is determined, and if the number of restart times is the same as the number of restart completion times, before the step of ending the restart test, the method may include: receiving a restarting instruction which is sent by a display end and comprises the modified restarting times; and running a restarting test script to restart based on the modified restarting times and the restarting interval time.
And after receiving the restarting instruction again, acquiring the modified restarting times in the restarting instruction, resetting the restarting interval time based on the modified restarting times, and running the restarting test script to restart based on the modified restarting times and the reset restarting interval time.
According to the interactive automatic restarting method applied to the server, the display end is utilized to send the restarting instruction to the server, and the server sends the test log stored with the restarting test result to the display end after obtaining the restarting test result, so that the interactive automatic restarting of the server and the display end is completed, the restarting test operation is simpler and more convenient, the restarting test result of the server is monitored in real time through the display end, when errors occur in the process of running the restarting test script, the restarting test can be eliminated in time, and the restarting test efficiency is improved.
Example 2
An embodiment of the invention provides an interactive automatic restarting method, and fig. 2 is a flowchart of the interactive automatic restarting method applied to a display end. The display end is in communication connection with the service end. As shown in fig. 1, the interactive automatic restart method may include the steps of:
step S201, the restarting times are set, and restarting instructions including the restarting times are sent to the server.
The display end sends a restarting instruction comprising restarting times to the server end, so that the server end can set restarting interval time based on the restarting times; and running a restarting test script based on the restarting times and the restarting interval time to obtain a restarting test result.
The restarting times can be set by a worker at the display end according to the restarting test requirement.
Step S202, receiving a test log sent by a server.
The test log comprises a restart test result of the restart by the server running the restart test script.
When the restart test script is operated, the situation of operation errors may occur, after the situation that the operation errors occur in the operation restart test script of the server side, the display side pops up an alarm popup window immediately, so as to remind a worker of restarting the test interrupt, specifically, before receiving the test log sent by the server side, the method comprises the following steps: and receiving an operation error prompt sent by the server.
The operation error prompt comprises operation times of operating the restarting test script, interrupt positions of the restarting test script and the like when the operation error occurs.
Step S203, determining the operation parameters of the restart test script based on the test log.
The operation parameters may include a time when the restart is triggered, a time when the restart is ended, and the like.
In step S204, if the operation parameter does not meet the preset expected value, the number of restarts is modified based on the operation parameter, and a restart instruction including the modified number of restarts is sent to the server.
Specifically, the time required for performing one restart may be determined according to the operation parameters, and if the time does not meet the preset expected value, the parameters of the server may be adjusted, the number of restarts may be modified, and a restart instruction including the modified number of restarts may be sent to the server.
According to the interactive automatic restarting method applied to the display terminal, which is provided by the embodiment of the invention, the restarting instruction is sent to the server terminal by utilizing the display terminal, and the test log stored with the restarting test result is sent to the display terminal by the server terminal after the restarting test result is obtained, so that the interactive automatic restarting of the server terminal and the display terminal is completed, the restarting test is simpler and more convenient to operate, the restarting test result of the server terminal is monitored in real time by the display terminal, when errors occur in the process of running the restarting test script, the restarting test can be continuously performed in time by eliminating the errors, and the restarting test efficiency is improved.
Example 3
Corresponding to the above method embodiment, the embodiment of the present invention provides an interactive automatic restarting device, fig. 3 is a schematic structural diagram of an interactive automatic restarting device applied to a server, where the server is communicatively connected to a display, as shown in fig. 3, and the interactive automatic restarting device may include:
the restart times acquisition module 301 is configured to receive a restart instruction sent by the display end, acquire restart times, and store the restart times in the test log.
A restart interval time setting module 302, configured to set a restart interval time based on the number of restarts.
And the restart test script running module 303 is configured to run the restart test script to restart based on the restart times and the restart interval time, and obtain a restart test result after each restart.
The test log sending module 304 is configured to store a restart test result into a test log after each restart, and send the test log to the display end, so that the display end determines an operation parameter of the restart test script based on the test log; and when the operation parameters do not meet the preset expected values, the display end modifies the restarting times based on the operation parameters.
The restart completion number determining module 305 is configured to determine the restart completion number after each restart, and if the restart number is the same as the restart completion number, end the restart test.
According to the interactive automatic restarting device applied to the server, provided by the embodiment of the invention, the restarting instruction can be sent to the server by utilizing the display end, and the server sends the test log stored with the restarting test result to the display end after the restarting test result is obtained, so that the interactive automatic restarting of the server and the display end is completed, the restarting test operation is simpler and more convenient, the restarting test result of the server is monitored in real time by the display end, when errors occur in the process of running the restarting test script, the restarting test can be eliminated in time, and the restarting test efficiency is improved.
In some embodiments, the restart times acquisition module is further configured to assign a value represented by a count field in the test log to 0; after the restart test script is run based on the restart times and the restart interval time to obtain the restart test result, the method further comprises the following steps: and after the operation of restarting the test script is finished, adding 1 to the numerical value of the counting field in the test log until the numerical value of the counting field is the same as the restarting times.
In some embodiments, the restart completion number determining module is further configured to use the value of the count field as the restart completion number.
In some embodiments, the restart test script running module is further configured to send a running error prompt to the display end if a running error occurs in a running process of the restart test script.
In some embodiments, the test log sending module is further configured to receive a restart instruction sent by the display end, where the restart instruction includes the modified restart times; and running a restarting test script to restart based on the modified restarting times and the restarting interval time.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
Example 4
Corresponding to the above method embodiment, the embodiment of the present invention provides an interactive automatic restarting device, fig. 4 is a schematic structural diagram of an interactive automatic restarting device applied to a display end, where the display end is communicatively connected to a server end, as shown in fig. 4, the interactive automatic restarting device may include:
a restart number setting module 401, configured to set a restart number, send a restart instruction including the restart number to the server, so that the server sets a restart interval time based on the restart number; operating a restarting test script based on the restarting times and the restarting interval time to obtain a restarting test result;
the test log receiving module 402 is configured to receive a test log sent by the server;
an operation parameter determining module 403, configured to determine an operation parameter of the restart test script based on the test log;
and the restart instruction sending module 404 is configured to modify the restart times based on the operation parameter if the operation parameter does not meet the preset expected value, and send a restart instruction including the modified restart times to the server.
According to the interactive automatic restarting device applied to the display end, which is provided by the embodiment of the invention, the restarting instruction is sent to the server end by utilizing the display end, and the server end sends the test log stored with the restarting test result to the display end after the restarting test result is obtained, so that the interactive automatic restarting of the server end and the display end is completed, the restarting test is simpler and more convenient to operate, the restarting test result of the server end is monitored in real time by the display end, when errors occur in the process of running the restarting test script, the restarting test can be continuously performed in time, and the restarting test efficiency is improved.
In some embodiments, the test log receiving module is further configured to receive a running error prompt sent by the server.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
Example 5
The embodiment of the invention also provides an interactive automatic restarting system, and fig. 5 is a structural diagram of the interactive automatic restarting system. As shown in fig. 5, the system includes a server 501 and a display 502, where the server 501 and the display 502 are communicatively connected to each other, and are used for running the above-mentioned interactive automatic restarting method applied to the server and the above-mentioned interactive automatic restarting method applied to the display.
Example 6
The embodiment of the invention also provides electronic equipment for running the interactive automatic restarting method; referring to a schematic structural diagram of an electronic device shown in fig. 6, the electronic device includes a memory 600 and a processor 601, where the memory 600 is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor 601 to implement the above-mentioned interactive automatic restart method.
Further, the electronic device shown in fig. 6 further includes a bus 602 and a communication interface 603, and the processor 601, the communication interface 603, and the memory 600 are connected through the bus 602.
The memory 600 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 603 (which may be wired or wireless), which may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 602 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
The processor 601 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 601 or instructions in the form of software. The processor 601 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 600 and the processor 601 reads the information in the memory 600 and in combination with its hardware performs the steps of the method of the previous embodiment.
The embodiment of the invention also provides a computer readable storage medium, which stores computer executable instructions that, when being called and executed by a processor, cause the processor to implement the above-mentioned interactive automatic restart method, and the specific implementation can be referred to the method embodiment and will not be described herein.
The computer program product for performing the interactive automatic restart method according to the embodiment of the present invention includes a computer readable storage medium storing a non-volatile program code executable by a processor, where the program code includes instructions for performing the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, 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 server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. An interactive automatic restarting method, which is characterized by being applied to a server, wherein the server is in communication connection with a display, and the method comprises the following steps:
receiving a restarting instruction sent by the display end, acquiring restarting times, and storing the restarting times into a test log;
setting a restart interval time based on the restart times;
operating a restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting;
after each restarting, storing the restarting test result into a test log, and sending the test log to the display end so that the display end can determine the operation parameters of the restarting test script based on the test log; when the operation parameters do not meet preset expected values, the display end modifies the restarting times based on the operation parameters;
and after each restarting, determining the restarting completion times, and ending the restarting test if the restarting times are the same as the restarting completion times.
2. The method according to claim 1, wherein after the receiving the restart instruction sent by the display end and obtaining the number of restarts, the method includes:
assigning a value represented by a count field in the test log to 0;
after the restart test script is operated based on the restart times and the restart interval time to obtain a restart test result, the method further comprises:
and after the operation of the restarting test script is finished, adding 1 to the numerical value of a counting field in the test log until the numerical value of the counting field is the same as the restarting times.
3. The method of claim 2, wherein determining the number of reboots completed after each reboot comprises:
and taking the numerical value of the counting field as the restart completion times.
4. The method of claim 1, wherein during the restarting the running restart test script based on the number of restarts and the restart interval time, the method further comprises:
and if an operation error occurs in the operation process of the restarting test script, sending the operation error prompt to the display end.
5. The method of claim 1, wherein after the determining the number of times of restart completion after each restart, if the number of times of restart and the number of times of restart completion are the same, before ending the restart test, the method further comprises:
receiving a restarting instruction which is sent by the display terminal and comprises the modified restarting times;
and running a restarting test script to restart based on the modified restarting times and the restarting interval time.
6. An interactive automatic restarting method, which is applied to a display end, wherein the display end is in communication connection with a server end, the method comprises the following steps:
setting the restarting times, and sending restarting instructions comprising the restarting times to the server side so that the server side sets restarting interval time based on the restarting times; operating a restarting test script based on the restarting times and the restarting interval time to obtain a restarting test result;
receiving a test log sent by the server;
determining operation parameters of the restarting test script based on the test log;
and if the operation parameter does not meet the preset expected value, modifying the restarting times based on the operation parameter, and sending a restarting instruction comprising the modified restarting times to the server.
7. The method of claim 6, wherein prior to said receiving the test log sent by the server, the method further comprises:
and receiving the operation error prompt sent by the server.
8. An interactive automatic restart device, applied to a server, where the server is communicatively connected to a display, the device comprising:
the restarting time acquisition module is used for receiving the restarting instruction sent by the display end, acquiring restarting times and storing the restarting times into a test log;
a restart interval time setting module, configured to set a restart interval time based on the restart times;
the restarting test script running module is used for running the restarting test script to restart based on the restarting times and the restarting interval time, and obtaining a restarting test result after each restarting;
the test log sending module is used for storing the restarting test result into a test log after each restarting, and sending the test log to the display end so that the display end can determine the operation parameters of the restarting test script based on the test log; when the operation parameters do not meet preset expected values, the display end modifies the restarting times based on the operation parameters;
and the restarting completion time determining module is used for determining the restarting completion time after each restarting, and ending the restarting test if the restarting time is the same as the restarting completion time.
9. An interactive automatic restart device, applied to a display end, where the display end is communicatively connected to a server end, the device comprising:
the restarting time setting module is used for setting restarting time and sending restarting instructions comprising the restarting time to the server so that the server can set restarting interval time based on the restarting time; operating a restarting test script based on the restarting times and the restarting interval time to obtain a restarting test result;
the test log receiving module is used for receiving the test log sent by the server;
an operation parameter determining module, configured to determine an operation parameter of the restart test script based on the test log;
and the restarting instruction sending module is used for modifying the restarting times based on the operating parameters and sending restarting instructions comprising the modified restarting times to the server side if the operating parameters do not meet preset expected values.
10. An interactive automatic restart system comprising a server for performing the interactive automatic restart method of any one of claims 1-5 and a display for performing the interactive automatic restart method of claim 6 or 7.
CN202310973150.XA 2023-08-03 2023-08-03 Interactive automatic restarting method, device and system Pending CN116881050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310973150.XA CN116881050A (en) 2023-08-03 2023-08-03 Interactive automatic restarting method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310973150.XA CN116881050A (en) 2023-08-03 2023-08-03 Interactive automatic restarting method, device and system

Publications (1)

Publication Number Publication Date
CN116881050A true CN116881050A (en) 2023-10-13

Family

ID=88264443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310973150.XA Pending CN116881050A (en) 2023-08-03 2023-08-03 Interactive automatic restarting method, device and system

Country Status (1)

Country Link
CN (1) CN116881050A (en)

Similar Documents

Publication Publication Date Title
US11360842B2 (en) Fault processing method, related apparatus, and computer
CN109344066B (en) Method, system and terminal for testing browser page
CN108153654B (en) Log collection method and device
CN108197002B (en) Mobile device non-buried point data statistical method, system, terminal and medium
CN116881050A (en) Interactive automatic restarting method, device and system
CN111626498A (en) Equipment operation state prediction method, device, equipment and storage medium
CN112800003B (en) Recommendation method for creating snapshot, snapshot creation method, device and electronic equipment
CN113434354B (en) Bus exception handling method and device, electronic equipment and readable storage medium
CN113297149A (en) Method and device for monitoring data processing request
CN111352825B (en) Data interface testing method and device and server
CN112685253A (en) Front-end error log collection method, device, equipment and storage medium
CN114385387B (en) Access information generation method and device and computer equipment
CN110908725A (en) Application program starting method and device, electronic equipment and readable medium
CN112463446B (en) PCIe device recovery method and system, electronic device and storage medium
CN113722236B (en) Game debugging method, device, equipment and storage medium
CN113867994B (en) Cabinet VPD information processing method and device, storage equipment and readable storage medium
CN109471764B (en) Method, device, terminal and storage medium for quickly reading system information
CN115634448A (en) Frame rate statistical method and device and electronic equipment
CN116820863A (en) Cascade test method, cascade test device, electronic equipment and storage medium
CN113342556A (en) System service repairing method and device and server
CN114780013A (en) Touch screen operation identification method and device, terminal device and medium
CN114924940A (en) Performance test method, device, storage medium and electronic equipment
CN114153708A (en) Method for recording BMC reset, CPLD and server
CN116610481A (en) Fault diagnosis method, device, computer equipment, storage medium and system
CN116775357A (en) System control method, device, 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