CN112634696A - Fault positioning practice method and device, electronic equipment and storage medium - Google Patents

Fault positioning practice method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112634696A
CN112634696A CN202011518238.5A CN202011518238A CN112634696A CN 112634696 A CN112634696 A CN 112634696A CN 202011518238 A CN202011518238 A CN 202011518238A CN 112634696 A CN112634696 A CN 112634696A
Authority
CN
China
Prior art keywords
fault
user
name
code
recurrence
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.)
Granted
Application number
CN202011518238.5A
Other languages
Chinese (zh)
Other versions
CN112634696B (en
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.)
Beike Technology Co Ltd
Original Assignee
Beike 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202011518238.5A priority Critical patent/CN112634696B/en
Publication of CN112634696A publication Critical patent/CN112634696A/en
Application granted granted Critical
Publication of CN112634696B publication Critical patent/CN112634696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes

Abstract

The application provides a fault location exercise method and device, electronic equipment and a storage medium. The method comprises the following steps: establishing an association relation between an address and a name of a stored fault recurrence code, and outputting the name of the fault recurrence code on a user interface; when a fault positioning request initiated by a user through the user interface is received, acquiring an address associated with the name of a fault recurrence code carried in the fault positioning request; acquiring a corresponding fault recurrence code through the address; and executing the fault recurrence code to reproduce the fault, and outputting the fault to the user on the user interface for the user to carry out fault positioning exercise. The method is not limited by scenes and time, can provide fault positioning practice scenes at low cost, and improves user experience.

Description

Fault positioning practice method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a fault location exercise method, a fault location exercise device, electronic equipment and a storage medium.
Background
The online problems occur less frequently, and some problems are not checked in time and are subjected to rollback operation to realize rapid loss stopping.
For troubleshooting and locating faults, the ability to resolve the problem can only be fostered by long-term accumulation of working experience.
The culture method has long period and high cost, and the prior art lacks a method and a method for quickly and accurately culturing relevant experiential talents.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for fault location exercise, an electronic device, and a storage medium, which are not limited by scenes and time, and can provide a fault location exercise scene at low cost, thereby improving user experience.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
in one embodiment, a fault location exercise method is provided, wherein an association relation is established between an address and a name of a stored fault recurrence code, and the name of the fault recurrence code is output on a user interface; the method comprises the following steps:
when a fault positioning request initiated by a user through the user interface is received, acquiring an address associated with the name of a fault recurrence code carried in the fault positioning request;
acquiring a corresponding fault recurrence code through the address;
and executing the fault recurrence code to reproduce the fault, and outputting the fault to the user on the user interface for the user to carry out fault positioning exercise.
Wherein the method further comprises:
acquiring description information of the fault recurrence code, and storing the description information in association with a corresponding address and a name;
and when the name of the fault recurrence code is output on a user interface, further outputting description information corresponding to the name.
Wherein the method further comprises:
collecting fault types;
and reproducing the fault using codes corresponding to the fault types, storing the codes as fault reproduction codes, and generating addresses of the fault reproduction codes.
Wherein after the corresponding fault recurrence code is obtained by the address and before the fault recurrence code is executed to replicate the fault, the method further comprises:
and combining the storage name in the address with the unique identification of the user to serve as the identification of the corresponding fault recurrence code.
Wherein, when receiving a fault location request initiated by a user through the user interface, the method further comprises:
a long link is created.
Wherein the method further comprises:
acquiring positioning information corresponding to the name, and storing the positioning information in association with the name;
when a fault positioning instruction sent by the user is received, fault positioning is carried out according to the content carried in the fault positioning instruction;
and when receiving an instruction for viewing the positioning information sent by the user, outputting the positioning information corresponding to the name on a user interface.
Wherein the method further comprises:
when a help seeking request sent by the user is received, request information carried in the help seeking request is output to the user interface;
and when a response sent aiming at the request information is received, outputting response information carried by the response to the user interface.
In another embodiment, there is provided a fault localization exercise device, the device comprising: the device comprises a storage unit, an output unit, a receiving unit, a first acquisition unit, a second acquisition unit and an execution unit;
the storage unit is used for establishing an association relation between the address and the name of the fault recurrence code;
the output unit is used for outputting the name of the fault recurrence code stored in the storage unit on a user interface; outputting the fault reproduced by the execution unit to the user on the user interface for the user to carry out fault positioning practice;
the receiving unit is used for receiving a fault positioning request initiated by a user through a user interface of the output name of the output unit;
the first obtaining unit is configured to obtain, in the storage unit, an address associated with a name of a fault recurrence code carried in the fault location request when the receiving unit receives the fault location request;
the second obtaining unit is used for obtaining the corresponding fault recurrence code through the address obtained by the first obtaining unit;
the execution unit is configured to execute the fault recurrence code recurrence fault acquired by the second acquisition unit.
Wherein the content of the first and second substances,
the storage unit is further used for acquiring description information of the fault recurrence code and storing the description information in association with a corresponding address and a name;
the output unit is further configured to output description information corresponding to the name when the name of the fault recurrence code is output on a user interface.
Wherein the apparatus further comprises: a collecting unit and an encoding unit;
the collecting unit is used for collecting fault types;
the encoding unit is used for reproducing the fault use codes corresponding to the fault types collected by the collecting unit;
the storage unit is further used for storing the code written by the encoding unit as a fault recurrence code and generating an address of the fault recurrence code.
Wherein the content of the first and second substances,
the executing unit is further configured to, when the second obtaining unit obtains the corresponding fault recurrence code through the address, combine the storage name in the address and the unique identifier of the user as an identifier of the corresponding fault recurrence code, and then execute the fault recurrence code to recurrence the fault.
Wherein the apparatus further comprises: a creating unit;
and the creating unit is used for creating the long link when the receiving unit receives a fault positioning request initiated by a user through the user interface.
Wherein the apparatus further comprises: a processing unit;
the storage unit is further used for acquiring the positioning information corresponding to the name and storing the positioning information in association with the name;
the receiving unit is used for receiving a fault positioning instruction; receiving an instruction for checking the positioning information;
the processing unit is used for carrying out fault positioning according to the content carried in the fault positioning instruction when the receiving unit receives the fault positioning instruction sent by the user;
the output unit is further configured to output, on a user interface, the positioning information corresponding to the name when the receiving unit receives an instruction for viewing the positioning information sent by a user.
Wherein the content of the first and second substances,
the receiving unit is further used for receiving a help seeking request; receiving a response to the request information transmission;
the output unit is further configured to output request information carried in the help request to the user interface when the receiving unit receives the help request sent by the user; and when the receiving unit receives a response sent by aiming at the request information, outputting response information carried by the response to the user interface.
In another embodiment, an electronic device is provided comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the fault localization exercise method as described when executing the program.
In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the fault localization exercise method.
According to the technical scheme, the fault is reproduced in a code mode, a virtual exercise environment is constructed, and a user can experience the fault positioning process through the exercise platform. The scheme is not limited by scenes and time, fault positioning practice scenes are provided at low cost, and user experience is improved;
a long link is established when the fault location exercise is started, the long link established when the fault location exercise is finished is directly disconnected, and the server can directly sense that the corresponding container is closed (relevant contents of the fault location of the current exercise are deleted), so that the resource waste is reduced;
meanwhile, the functions of seeking help and answering the help are provided, so that the requirements of the user in various aspects are met, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic diagram of a process of generating a fault location exercise in an embodiment of the present application;
FIG. 2 is a schematic diagram of another exemplary generation process of fault location practice in the present application;
FIG. 3 is a schematic diagram of obtaining address, name and description information of a fault recurrence code;
FIG. 4 is a schematic diagram of an interface through which a user may initiate a fault location exercise in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a process of fault location practice in an embodiment of the present application;
fig. 6 is a schematic view illustrating a process of fault location practice in the second embodiment of the present application;
fig. 7 is a schematic flowchart of a request initiation process in the third embodiment of the present application;
FIG. 8 is a schematic diagram of an apparatus for implementing the above technique in an embodiment of the present application;
fig. 9 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail with specific examples. Several of the following embodiments may be combined with each other and some details of the same or similar concepts or processes may not be repeated in some embodiments.
The embodiment of the application provides a fault positioning practice method which is applied to a fault positioning practice system. The system comprises: a server and a client.
The client provides a practice interface for the user, and the interface can be provided through an APP or a browser webpage.
On the interface, the user can log in, can select the exercise to be performed, can ask for help and answer help to other users, can check points, can check comments and comment, can post articles and the like.
The practice means that fault positioning practice corresponding to the name of the fault code provided by the selection platform sends a practice request to a server; the fault is reproduced in a code mode and output to a user for the user to practice; positioning information, i.e. corresponding answers, is also provided in the exercise for reference by the user.
The server responds to the user through the client when the user exercises, seeks help, checks comments, makes comments and posts articles, and accumulates points and the like for the user according to related operations of the user.
The generation process of the fault localization exercise is given below:
referring to fig. 1, fig. 1 is a schematic diagram of a generation process of a fault location exercise in an embodiment of the present application. The method comprises the following specific steps:
and step 101, acquiring the address and the name of the fault recurrence code, and storing the address and the name in an associated manner.
In this step, the address and name of the fault recurrence code may be obtained by input of a manager, and when the input address and name are obtained, the address and name are stored in association with each other.
The fault recurrence code here refers to a code for recurrence of a fault; and the address is used for storing the fault recurrence code, and the name is given for the fault which can be recovered by the fault recurrence code, so that a user can know the fault which can be subjected to fault location practice according to the name, such as the name of frequent GC, the name of continuous high-order cpu load and the like.
The fault recurrence code stored in the embodiment of the present application may be stored on the server, or may be stored on other devices.
The process of acquiring and generating the fault recurrence code is as follows:
the first step is to collect the fault types.
The corresponding fault type can be obtained through the fault occurring in the actual scene, and the fault type corresponding to the fault disclosed by various posts or websites of the crawler on the Internet can also be obtained.
And secondly, reproducing the fault use codes corresponding to the fault types, storing the codes for reproducing the faults as fault reproduction codes, and generating addresses of the fault reproduction codes.
In the embodiment of the present application, a fault recurrence code corresponding to one name may be referred to as one case.
In a specific application, 1 or more codes can be written for the same fault type to realize, and when one fault type corresponds to a plurality of fault recurrence codes, namely a plurality of cases, more and more detailed exercise materials can be provided.
The content of the case may be maintained by a server administrator, and may be specifically implemented as follows:
uploading the initially written code for reproducing the fault to a code warehouse (Gitlab), wherein the Gitlab needs to be configured with a pipeline for code packaging, and adding a script on the pipeline to realize uploading a container image (docker image) to a container warehouse (docker register), and at the moment, an executable case is generated, namely the fault reproduction code is generated, and the executable case also has an address for storing the code.
And 102, outputting the name of the fault recurrence code on a user interface.
And outputting the fault recurrence codes to a user interface, wherein a user can browse the names of the fault recurrence codes, and if positioning practice needs to be carried out on the faults corresponding to the names, a fault positioning request can be initiated on the names through the user interface.
Referring to fig. 2, fig. 2 is a schematic diagram of another fault location exercise generation process in the embodiment of the present application. The method comprises the following specific steps:
step 201, acquiring the address, name and description information of the fault recurrence code, and storing in association.
The address, name, and description information of the fault recurrence code acquired in this step may be acquired by input of a manager, and when the input address, name, and description information are acquired, associated storage is performed.
The fault recurrence code here refers to a code for recurrence of a fault; an address, which is an address for storing the fault recurrence code, and is a name given for a fault that the fault recurrence code can recur, so that a user can know the fault that can be used for fault location practice according to the name, such as the name that GC is frequent, and cpu load is continuously at a high level; the description information is information for further describing the background, content and the like of the fault corresponding to the name, and is used for presenting to a user, so that the user can know the fault content, the background and the like corresponding to the name more clearly in advance, and whether fault positioning exercise is performed on the fault corresponding to the name is determined.
Referring to fig. 3, fig. 3 is a schematic diagram of acquiring address, name and description information of a fault recurrence code. In fig. 3, the administrator inputs the address (please input the branch keyword), the name (please input the title), and the description information (the background description) by providing the input boxes of the address, the name, and the description information (the background description) on the interface, so that the server obtains the address, the name, and the description information of the fault recurrence code, and the corresponding relationship.
The input of the address provides an easy operation mode, a public part of the address is provided, different parts are filled by a user to form a complete address together, and an address input box can be directly provided in practical application for the user to directly input the address.
The fault recurrence code stored in the embodiment of the present application may be stored on the server, or may be stored on other devices.
The process of acquiring and generating the fault recurrence code is as follows:
the first step is to collect the fault types.
The corresponding fault type can be obtained through the fault occurring in the actual scene, and the fault type corresponding to the fault disclosed by various posts or websites of the crawler on the Internet can also be obtained.
And secondly, reproducing the fault use codes corresponding to the fault types, storing the codes for reproducing the faults as fault reproduction codes, and generating addresses of the fault reproduction codes.
In the embodiment of the present application, a fault recurrence code corresponding to one name may be referred to as one case.
In a specific application, 1 or more codes can be written for the same fault type to realize, and when one fault type corresponds to a plurality of fault recurrence codes, namely a plurality of cases, more and more detailed exercise materials can be provided.
The content of the case may be maintained by a server administrator, and may be specifically implemented as follows:
uploading the initially written code for reproducing the fault to a code warehouse (Gitlab), wherein the Gitlab needs to be configured with a pipeline for code packaging, and adding a script on the pipeline to realize uploading a container image (docker image) to a container warehouse (docker register), and at the moment, an executable case is generated, namely the fault reproduction code is generated, and the executable case also has an address for storing the code.
In the embodiment of the present application, the input positioning information, i.e., the reference answer, may also be obtained at the same time, as shown in fig. 3.
And 202, outputting the name and the description information of the fault recurrence code on a user interface.
And outputting the fault recurrence codes to a user interface, wherein a user can browse the names of the fault recurrence codes, and if positioning practice needs to be carried out on the faults corresponding to the names, a fault positioning request can be initiated on the names through the user interface.
Referring to fig. 4, fig. 4 is a schematic interface diagram of a user that may initiate a fault location exercise in an embodiment of the present application. The names given in fig. 4 are: cpu load continues high, describing information, like background: the overall cpu utilization or single core utilization continues to go high, maintaining 100%. And an 'exercise clicking button' is arranged on the interface, so that a user can send an exercise request to start fault positioning exercise of a corresponding name.
And the click viewing reference answer can be output for the user to select to view the positioning related information, namely the reference answer.
The following describes in detail the processes of implementing fault location practice, seeking help and answering, point checking, comment checking and commenting, article publishing, and the like, according to the embodiments of the present application, with reference to the accompanying drawings.
Example one
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a process of fault location practice in the first embodiment of the present application. The method comprises the following specific steps:
step 501, when a fault location request initiated by a user through the user interface is received, an address associated with a name of a fault recurrence code carried in the fault location request is obtained.
The corresponding relation between the storage address and the name is locally associated, and the corresponding address can be directly searched by using the name.
Step 502, obtaining a corresponding fault recurrence code through the address.
Step 503, executing the fault recurrence code to reproduce the fault, and outputting the fault to the user on the user interface for the user to perform fault positioning practice.
And executing the fault recurrence code to reproduce the fault, outputting the fault to a background code of a user interface when the fault occurs, and providing a virtual fault positioning scene for a user.
In the embodiment of the present application, when the specific implementation is performed, the server may be used for simultaneously performing fault location on the same fault by a plurality of users, and therefore, before acquiring the corresponding fault recurrence code locally for execution, the following processing needs to be performed, and then the fault recurrence code is executed:
and combining the storage name in the address with the unique identification of the user to serve as the identification of the corresponding fault recurrence code.
If the address of the fault recurrence code is: https:// git.abcd.com/nm-case/nm-6th-case, the nm-6th-case may be referred to as a storage name for the fault recurrence code, and a unique identifier, such as a system serial number, may be assigned to each user performing the training, or the unique identifier of the user and the storage name may be directly used in combination as the identifier of the fault recurrence code, so as to support the positioning training of the same fault by a plurality of users.
The server has an environment, operating system, etc. that supports the running of the fault-recurrence code, such as k8 s.
Acquiring positioning information corresponding to the name, and storing the positioning information in association with the name; that is, the server simultaneously provides answers to practice the user for reference.
The user can browse the recurrent faults output by the user interface, can position the faults, and can check the positioning information, namely check the positioning answers.
An example of the fault location exercise is given below, and the specific process is as follows:
when a fault positioning instruction sent by the user is received, fault positioning is carried out according to the content carried in the fault positioning instruction;
and when receiving an instruction for viewing the positioning information sent by the user, outputting the positioning information corresponding to the name on a user interface.
The process is that fault location is carried out according to the input content of the user, and the server outputs the stored location information to the user for the user to check and compare.
The embodiment reproduces faults in a code mode, and constructs a virtual exercise environment, so that a user can experience a fault positioning process through an exercise platform. The scheme can be free from the limitation of scenes and time, can provide fault location practice scenes at low cost, and improves user experience.
Example two
Referring to fig. 6, fig. 6 is a schematic view illustrating a process of performing fault location training in the second embodiment of the present application. The method comprises the following specific steps:
step 601, when receiving a fault location request initiated by a user through the user interface, creating a long link, and acquiring an address associated with a name of a fault recurrence code carried in the fault location request.
The corresponding relation between the storage address and the name is locally associated, and the corresponding address can be directly searched by using the name.
Step 602, acquiring a corresponding fault recurrence code through the address.
Step 603, the fault recurrence code is executed to reproduce the fault, and the fault is output to the user on the user interface for the user to perform fault positioning practice.
In the embodiment of the present application, when the specific implementation is performed, the server may be used for simultaneously performing fault location on the same fault by a plurality of users, and therefore, before acquiring the corresponding fault recurrence code locally for execution, the following processing needs to be performed, and then the fault recurrence code is executed:
and combining the storage name in the address with the unique identification of the user to serve as the identification of the corresponding fault recurrence code.
If the address of the fault recurrence code is: https:// git.abcd.com/nm-case/nm-6th-case, the nm-6th-case may be referred to as a storage name for the fault recurrence code, and a unique identifier, such as a system serial number, may be assigned to each user performing the training, or the unique identifier of the user and the storage name may be directly used in combination as the identifier of the fault recurrence code, so as to support the positioning training of the same fault by a plurality of users.
The server has an environment, operating system, etc. that supports the running of the fault-recurrence code, such as k8 s.
Acquiring positioning information corresponding to the name, and storing the positioning information in association with the name; that is, the server simultaneously provides answers to practice the user for reference.
Still referring to fig. 4, selecting "click-to-view reference answer" may output positioning information, i.e., reference answer, to the user.
Upon ending the requested corresponding fault localization exercise, breaking the long link.
Ending the corresponding fault location exercise here may be refreshing the page, closing the browser, closing the current window, etc.
According to the embodiment, faults are reproduced in a code mode, a virtual exercise environment is constructed, a user can experience a fault location process through an exercise platform, a long link is established when the fault location exercise is started, the established long link is directly disconnected when the fault location exercise is finished, a server can directly sense the fact that the corresponding container is closed (relevant contents of the currently-exercised fault location are deleted), and therefore resource waste is reduced. The scheme can be free from the limitation of scenes and time, can provide fault location practice scenes at low cost, and improves user experience.
EXAMPLE III
Referring to fig. 7, fig. 7 is a schematic diagram of a flow of initiating a request in the third embodiment of the present application. The method comprises the following specific steps:
step 701, when receiving a help request sent by the user, outputting request information carried in the help request to the user interface.
A user is provided with a "ask" button on the user interface for help by clicking on the button.
The page capable of inputting the content and the help seeking button can be directly provided, or the help seeking button can be provided firstly, after the help seeking button is clicked by the user, the input box corresponding to the help seeking content is provided for the user to input the help seeking content so as to initiate the help seeking request.
The embodiment of the application does not limit the specific implementation of help seeking, and the help seeking function is realized.
Step 702, when receiving a response sent to the request message, outputting response message carried by the response to the user interface.
If the help seeking content is related to fault location, the help seeking content and the help seeking response content can also be used as materials for location practice, and codes are reproduced for the user to conduct fault location practice.
EXAMPLE five
The embodiment of the application can also provide the functions of viewing comments, commenting, publishing articles, viewing scores and the like so as to improve the content which can be presented by the platform.
The server gives rules for point calculation, such as how many points to answer a help-seeking question, how many points to perform fault location exercise once, how many points to publish an article, how many points to comment on an article, and the like, calculates points for each user, and presents the points to the user when the user logs in, or presents the points to the user when the user checks.
Based on the same inventive concept, the embodiment of the application also provides a fault location exercise device. Referring to fig. 8, fig. 8 is a schematic structural diagram of an apparatus applied to the above technology in the embodiment of the present application. The device comprises: a storage unit 801, an output unit 802, a receiving unit 803, a first acquiring unit 804, a second acquiring unit 805, and an executing unit 806;
a storage unit 801 for establishing an association relationship between an address and a name for storing a fault recurrence code;
an output unit 802 for outputting the name of the fault recurrence code stored in the storage unit 801 on a user interface; outputting the fault reproduced by the execution unit 806 to the user at the user interface for the user to perform fault location practice;
a receiving unit 803, configured to receive a fault location request initiated by a user through a user interface of a name output by the output unit 802;
a first obtaining unit 804, configured to, when the receiving unit 803 receives the fault location request, obtain, in the storage unit 801, an address associated with a name of a fault recurrence code carried in the fault location request;
a second obtaining unit 805 configured to obtain the corresponding fault recurrence code through the address obtained by the first obtaining unit 804;
an executing unit 806, configured to execute the fault recurrence code recurrence fault acquired by the second acquiring unit 805.
Preferably, the first and second electrodes are formed of a metal,
a storage unit 801, configured to further obtain description information of the fault recurrence code, and store the description information in association with a corresponding address and name;
the output unit 802 is further configured to output description information corresponding to the name of the fault recurrence code when the name is output on a user interface.
Preferably, the apparatus further comprises: a collection unit 807 and an encoding unit 808;
a collecting unit 807 for collecting the failure types;
an encoding unit 808, configured to reproduce the fault usage code corresponding to the fault type collected by the collection unit 807;
the storage unit 801 is further configured to store the code written by the encoding unit 808 as a fault recurrence code, and generate an address of the fault recurrence code.
Preferably, the first and second electrodes are formed of a metal,
the executing unit 806 is further configured to, when the second obtaining unit 805 obtains the corresponding fault recurrence code through the address, combine the storage name in the address and the unique identifier of the user as an identifier of the corresponding fault recurrence code, and then execute the fault recurrence code to recurrence the fault.
Preferably, the apparatus further comprises: a creation unit 809;
a creating unit 809, configured to, when the receiving unit 803 receives a fault location request initiated by the user through the user interface, create a long link.
Preferably, the apparatus further comprises: a processing unit 810;
the storage unit 801 is further configured to acquire positioning information corresponding to the name, and store the positioning information in association with the name;
a receiving unit 803, configured to receive a fault location instruction; receiving an instruction for checking the positioning information;
a processing unit 810, configured to, when the receiving unit 803 receives a fault location instruction sent by the user, perform fault location according to content carried in the fault location instruction;
the output unit 802 is further configured to, when the receiving unit 803 receives an instruction sent by a user to view the positioning information, output the positioning information corresponding to the name on a user interface.
Preferably, the first and second electrodes are formed of a metal,
a receiving unit 803, further configured to receive a help request; receiving a response to the request information transmission;
the output unit 802 is further configured to, when the receiving unit 803 receives a help request sent by the user, output request information carried in the help request to the user interface; when the receiving unit 803 receives a response to the request information transmission, it outputs response information carried by the response to the user interface.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
In another embodiment, there is also provided an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the fault localization exercise when executing the program.
In another embodiment, a computer readable storage medium is also provided having stored thereon computer instructions that, when executed by a processor, may implement the steps in the fault localization exercise method.
Fig. 9 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 9, the electronic device may include: a Processor (Processor)910, a communication Interface (Communications Interface)920, a Memory (Memory)930, and a communication bus 940, wherein the Processor 910, the communication Interface 920, and the Memory 930 communicate with each other via the communication bus 940. Processor 910 may invoke logic instructions in memory 930 to perform the following method:
establishing an association relation between an address and a name of a stored fault recurrence code, and outputting the name of the fault recurrence code on a user interface;
when a fault positioning request initiated by a user through the user interface is received, acquiring an address associated with the name of a fault recurrence code carried in the fault positioning request;
acquiring a corresponding fault recurrence code through the address;
and executing the fault recurrence code to reproduce the fault, and outputting the fault to the user on the user interface for the user to carry out fault positioning exercise.
Furthermore, the logic instructions in the memory 930 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A fault positioning practice method is characterized in that an association relation is established between an address and a name of a stored fault recurrence code, and the name of the fault recurrence code is output on a user interface; the method comprises the following steps:
when a fault positioning request initiated by a user through the user interface is received, acquiring an address associated with the name of a fault recurrence code carried in the fault positioning request;
acquiring a corresponding fault recurrence code through the address;
and executing the fault recurrence code to reproduce the fault, and outputting the fault to the user on the user interface for the user to carry out fault positioning exercise.
2. The method of claim 1, further comprising:
acquiring description information of the fault recurrence code, and storing the description information in association with a corresponding address and a name;
and when the name of the fault recurrence code is output on a user interface, further outputting description information corresponding to the name.
3. The method of claim 1, further comprising:
collecting fault types;
and reproducing the fault using codes corresponding to the fault types, storing the codes as fault reproduction codes, and generating addresses of the fault reproduction codes.
4. The method of claim 1, wherein after the obtaining of the corresponding fault-recurrence code by the address and before the executing of the fault-recurrence code recurrence fault, the method further comprises:
and combining the storage name in the address with the unique identification of the user to serve as the identification of the corresponding fault recurrence code.
5. The method of claim 1, wherein upon receiving a fault location request initiated by a user via the user interface, the method further comprises:
a long link is created.
6. The method of claim 1, further comprising:
acquiring positioning information corresponding to the name, and storing the positioning information in association with the name;
when a fault positioning instruction sent by the user is received, fault positioning is carried out according to the content carried in the fault positioning instruction;
and when receiving an instruction for viewing the positioning information sent by the user, outputting the positioning information corresponding to the name on a user interface.
7. The method of claims 1-6, further comprising:
when a help seeking request sent by the user is received, request information carried in the help seeking request is output to the user interface;
and when a response sent aiming at the request information is received, outputting response information carried by the response to the user interface.
8. A fault localization exercise device, the device comprising: the device comprises a storage unit, an output unit, a receiving unit, a first acquisition unit, a second acquisition unit and an execution unit;
the storage unit is used for establishing an association relation between the address and the name of the fault recurrence code;
the output unit is used for outputting the name of the fault recurrence code stored in the storage unit on a user interface; outputting the fault reproduced by the execution unit to the user on the user interface for the user to carry out fault positioning practice;
the receiving unit is used for receiving a fault positioning request initiated by a user through a user interface of the output name of the output unit;
the first obtaining unit is configured to obtain, in the storage unit, an address associated with a name of a fault recurrence code carried in the fault location request when the receiving unit receives the fault location request;
the second obtaining unit is used for obtaining the corresponding fault recurrence code through the address obtained by the first obtaining unit;
the execution unit is configured to execute the fault recurrence code recurrence fault acquired by the second acquisition unit.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 7.
CN202011518238.5A 2020-12-21 2020-12-21 Fault positioning exercise method and device, electronic equipment and storage medium Active CN112634696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011518238.5A CN112634696B (en) 2020-12-21 2020-12-21 Fault positioning exercise method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011518238.5A CN112634696B (en) 2020-12-21 2020-12-21 Fault positioning exercise method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112634696A true CN112634696A (en) 2021-04-09
CN112634696B CN112634696B (en) 2023-01-31

Family

ID=75320256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011518238.5A Active CN112634696B (en) 2020-12-21 2020-12-21 Fault positioning exercise method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112634696B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1267366A (en) * 1968-08-07 1972-03-15 Plessey Co Ltd Improvements in or relating to tape playback machines
EP0657858A2 (en) * 1993-12-10 1995-06-14 ECC Simulation Limited Training aid
JPH086484A (en) * 1994-06-23 1996-01-12 Hitachi Ltd Plant operation training simulator and its training content setting method
CA2129390A1 (en) * 1994-08-03 1996-02-04 Bruce Fordyce Cockburn Method and apparatus for testing electronic memories for the presence of multiple cell coupling faults
JPH11239196A (en) * 1998-02-19 1999-08-31 Nec Eng Ltd Maintenance training system for communications equipment
CN101174369A (en) * 2007-09-27 2008-05-07 天津市优耐特汽车电控技术服务有限公司 Fault diagnosis didactics and experimental device of vehicle CAN bus system
CN101976047A (en) * 2010-09-03 2011-02-16 北京全路通信信号研究设计院 China train control system-grade 3 fault reproduction method and system
US20140199664A1 (en) * 2011-04-08 2014-07-17 Wombat Security Technologies, Inc. Mock attack cybersecurity training system and methods
WO2015027679A1 (en) * 2013-08-26 2015-03-05 Tao Delong Internet addressing method and apparatus
CN104680114A (en) * 2015-03-03 2015-06-03 黄伟军 Method for processing multiple requests via two-dimension code and system thereof
CN104932979A (en) * 2015-07-01 2015-09-23 王沛 Software fault locating method and device
US20160019800A1 (en) * 2014-07-18 2016-01-21 Ca, Inc. Methods, systems, and computer program products for user paced learning based on historical programming errors and solutions using electronic flash cards
CN105867162A (en) * 2016-03-21 2016-08-17 珠海格力电器股份有限公司 Fault recurrence equipment and usage method thereof
US20170075800A1 (en) * 2014-04-08 2017-03-16 Iyuntian Co., Ltd. Method, apparatus, and device for locating a software failure
CN107102915A (en) * 2017-04-21 2017-08-29 中国船舶工业综合技术经济研究院 A kind of electronic product software environment Fault Insertion Equipment
CN107330823A (en) * 2017-06-05 2017-11-07 北京交通大学 The fault case management method of train control on board equipment
CN110060541A (en) * 2019-05-20 2019-07-26 中国人民解放军空军工程大学航空机务士官学校 A kind of aircraft navigation attitude equipment simulating training system
CN110941554A (en) * 2019-11-25 2020-03-31 腾讯科技(深圳)有限公司 Method and device for reproducing fault
CN111369410A (en) * 2020-03-12 2020-07-03 安徽南瑞中天电力电子有限公司 Simulation method suitable for power system training and teaching system thereof
CN211555167U (en) * 2019-11-12 2020-09-22 国网甘肃省电力公司定西供电公司 Cable detection virtual reality simulation training system
CN111815000A (en) * 2020-07-10 2020-10-23 国网上海市电力公司 Method and system for reproducing power scene and computer readable storage medium

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1267366A (en) * 1968-08-07 1972-03-15 Plessey Co Ltd Improvements in or relating to tape playback machines
EP0657858A2 (en) * 1993-12-10 1995-06-14 ECC Simulation Limited Training aid
JPH086484A (en) * 1994-06-23 1996-01-12 Hitachi Ltd Plant operation training simulator and its training content setting method
CA2129390A1 (en) * 1994-08-03 1996-02-04 Bruce Fordyce Cockburn Method and apparatus for testing electronic memories for the presence of multiple cell coupling faults
JPH11239196A (en) * 1998-02-19 1999-08-31 Nec Eng Ltd Maintenance training system for communications equipment
CN101174369A (en) * 2007-09-27 2008-05-07 天津市优耐特汽车电控技术服务有限公司 Fault diagnosis didactics and experimental device of vehicle CAN bus system
CN101976047A (en) * 2010-09-03 2011-02-16 北京全路通信信号研究设计院 China train control system-grade 3 fault reproduction method and system
US20140199664A1 (en) * 2011-04-08 2014-07-17 Wombat Security Technologies, Inc. Mock attack cybersecurity training system and methods
WO2015027679A1 (en) * 2013-08-26 2015-03-05 Tao Delong Internet addressing method and apparatus
US20170075800A1 (en) * 2014-04-08 2017-03-16 Iyuntian Co., Ltd. Method, apparatus, and device for locating a software failure
US20160019800A1 (en) * 2014-07-18 2016-01-21 Ca, Inc. Methods, systems, and computer program products for user paced learning based on historical programming errors and solutions using electronic flash cards
CN104680114A (en) * 2015-03-03 2015-06-03 黄伟军 Method for processing multiple requests via two-dimension code and system thereof
CN104932979A (en) * 2015-07-01 2015-09-23 王沛 Software fault locating method and device
CN105867162A (en) * 2016-03-21 2016-08-17 珠海格力电器股份有限公司 Fault recurrence equipment and usage method thereof
CN107102915A (en) * 2017-04-21 2017-08-29 中国船舶工业综合技术经济研究院 A kind of electronic product software environment Fault Insertion Equipment
CN107330823A (en) * 2017-06-05 2017-11-07 北京交通大学 The fault case management method of train control on board equipment
CN110060541A (en) * 2019-05-20 2019-07-26 中国人民解放军空军工程大学航空机务士官学校 A kind of aircraft navigation attitude equipment simulating training system
CN211555167U (en) * 2019-11-12 2020-09-22 国网甘肃省电力公司定西供电公司 Cable detection virtual reality simulation training system
CN110941554A (en) * 2019-11-25 2020-03-31 腾讯科技(深圳)有限公司 Method and device for reproducing fault
CN111369410A (en) * 2020-03-12 2020-07-03 安徽南瑞中天电力电子有限公司 Simulation method suitable for power system training and teaching system thereof
CN111815000A (en) * 2020-07-10 2020-10-23 国网上海市电力公司 Method and system for reproducing power scene and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭亚楠等: "嵌入式继电保护装置在线故障检测方法研究", 《信息技术》 *

Also Published As

Publication number Publication date
CN112634696B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
TWI515588B (en) Machine behavior determination method, web browser and web server
CN104394126B (en) Information recommendation method, server, client and system
CN105045887B (en) The system and method for mixed mode cross-domain data interaction
CN107066631A (en) Display methods, device and the electronic equipment of the page
CN106202085A (en) The method of information search, device and electronic equipment is carried out according to particular topic
CN108280125A (en) Method, apparatus, storage medium and the electronic device that the page is shown
CN105373478B (en) Automated testing method and system
CN106126524B (en) Information pushing method and device
JP2019510320A (en) Problem prediction method and system
JP6689955B2 (en) Machine learning based identification of broken network connections
CN103970534A (en) Method and equipment for supplying rendered page in mobile application
CN105260420A (en) Method and device for providing target page in mobile application
CN111177618A (en) Website building method, device, equipment and computer readable storage medium
US11398994B2 (en) Method and terminal for displaying social information
CN102799636A (en) Method and system for displaying webpage by mobile terminal
CN103390003A (en) Method and device for combining user data information among servers
CN106598991A (en) Web crawler system capable of realizing website interaction and automatic form extraction by conversational mode
CN112017059A (en) Hierarchical optimization risk control method and device and electronic equipment
CN104809223A (en) Method and device for supplying application content search result in application
CN109657125A (en) Data processing method, device, equipment and storage medium based on web crawlers
CN105656979A (en) Method for processing unstructured message, client, server, and platform
CN108984202B (en) Electronic resource sharing method and device and storage medium
JP2007171970A (en) Method, system, and computer program product (work-context search strings for work-embedded e-learning)
CN112634696B (en) Fault positioning exercise method and device, electronic equipment and storage medium
CN106911634B (en) Login method and device

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
GR01 Patent grant
GR01 Patent grant