Disclosure of Invention
The application provides a problem repairing method, a problem repairing device, electronic equipment and a computer-readable storage medium, which are used for avoiding excessive communication between developers and users (or testers) when the developers perform problem positioning, improving the efficiency of problem positioning and further improving the efficiency of problem repairing, and the technical scheme adopted by the application is as follows:
in a first aspect, there is provided a method of problem repair, the method comprising,
receiving a target question playback instruction;
based on the target problem playback instruction, acquiring problem related information corresponding to the target problem, wherein the problem related information comprises page URL information and mark position coordinate information;
and displaying the target problem in a dynamic playback mode based on the problem related information so as to prompt a developer to position and repair the target problem.
Optionally, the presenting the target question by a dynamic playback mode based on the question related information includes:
jumping to a first page of a target problem based on first page URL information in the problem related information;
and performing position drawing at the corresponding position of the first page of the target question based on the coordinate information at the first mark in the question related information.
Optionally, the displaying the target question in a dynamic playback manner based on the question related information further includes:
judging whether the problem related information comprises second page URL information or not;
and when the question related information comprises second page URL information, jumping to a target question second page, and performing position drawing at a corresponding position of the target question second page based on second mark position coordinate information in the question related information.
Optionally, the method further comprises: transparency masking a first page of a target issue and/or a second page of the target issue
A process, the transparency mask process, is used to render the page-only readable process unwritable.
Optionally, the method further comprises:
when a question feedback instruction of a user is received, question related information of a question page is collected based on the installed target middleware.
Optionally, collecting the question-related information of the question page based on the installed target middleware includes:
acquiring page URL information and mark position coordinate information of a first question page;
and when a page jump instruction of a user is detected, acquiring page URL information and mark position coordinate information of a second problem page jumped to through the target middleware.
In a second aspect, there is provided a problem remedy apparatus, comprising,
the receiving module is used for receiving a target problem playback instruction;
the acquisition module is used for acquiring problem related information corresponding to the target problem based on the target problem playback instruction, wherein the problem related information comprises page URL information and mark position coordinate information;
and the display module is used for displaying the target problem in a dynamic playback mode based on the problem related information so as to prompt a developer to position and repair the target problem.
Optionally, the display module comprises:
the first jumping unit is used for jumping to a first page of a target problem based on first page URL information in the problem related information;
and the drawing unit is used for drawing the position at the corresponding position of the first page of the target question based on the coordinate information at the first mark in the question related information.
Optionally, the display module further comprises:
the judging unit is used for judging whether the problem related information comprises second page URL information or not;
and the second jumping unit is used for jumping to the second page of the target problem when the problem related information comprises second page URL information, and performing position drawing at the corresponding position of the second page of the target problem based on the second mark position coordinate information in the problem related information.
Optionally, the apparatus further comprises:
and the mask module is used for performing transparent mask processing on the first page of the target problem and/or the second page of the target problem, and the transparent mask processing is used for enabling the page to be read only and not to be written.
Optionally, the apparatus further comprises:
and the collection module is used for collecting the problem related information of the problem page based on the installed target middleware when a problem feedback instruction of the user is received.
Optionally, the collection module comprises:
the acquisition unit is used for acquiring page URL information and mark position coordinate information of the first question page;
and the detection unit is used for acquiring the page URL information and the mark position coordinate information of the second problem page jumped to by the target middleware when the page jump instruction of the user is detected.
In a third aspect, an electronic device is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the problem-repairing method shown in the first aspect is performed.
In a fourth aspect, there is provided a computer-readable storage medium for storing computer instructions which, when run on a computer, cause the computer to perform the problem fixing method of the first aspect.
Compared with the prior art that developers need to communicate with users (or testers) in a large quantity when problem location is carried out, the problem locating method and device have the advantages that target problem playback instructions are received, problem related information corresponding to the target problems is obtained based on the target problem playback instructions, the problem related information comprises page URL information and mark position coordinate information, and then the target problems are displayed in a dynamic playback mode based on the problem related information so as to prompt the developers to carry out location and repair on the target problems. The problem related information based on the target problem is displayed in a dynamic playback mode, the target problem is visually displayed, the problem that developers need to communicate with users (or testers) in a large quantity to accurately position the target problem is avoided, the efficiency of positioning the target problem is improved, and the efficiency of repairing the target problem can be improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
An embodiment of the present application provides a problem repairing method, as shown in fig. 1, the method may include the following steps:
step S101, receiving a target question playback instruction;
among them, problem (i.e., Bug): the problem is a professional term in the field of computers, because of defects existing in system security policies, hazards that attackers can access without authorization, and other problems existing in system or application development, and is not limited herein.
Specifically, the target question playback instruction may be that a developer selects one of the target questions on a corresponding question list page for question playback, and receives the target question playback instruction based on a selection operation of the developer, where the developer here is merely an example and does not form a limitation of the present application.
Step S102, based on a target problem playback instruction, obtaining problem related information corresponding to a target problem, wherein the problem related information comprises page URL information and mark position coordinate information;
specifically, the problem related information corresponding to the target problem may be acquired from the database based on a mapping relationship between the target problem and the problem related information corresponding to the target problem according to the name or ID information of the target problem, where the problem related information may include, but is not limited to, page URL information, and coordinate information at a mark; the page URL information may be a URL address of a web page or an application page having a problem, and the coordinate information of the mark may be specific location information of the problem in the web page or the application page, such as an information input area corresponding to an account password in an application login page.
And S103, displaying the target problem in a dynamic playback mode based on the problem related information to prompt a developer to position and repair the target problem.
Specifically, based on the acquired problem related information, displaying the target problem in a dynamic playback mode to prompt a developer to position and repair the target problem; wherein, the dynamic playback may be a playback showing of operation steps of finding problems by users or developers in a time sequence.
Compared with the prior art that a developer needs to communicate with a user (or a tester) in a large quantity when problem location is carried out, the problem recovery method receives a target problem playback instruction, then based on the target problem playback instruction, obtains problem related information corresponding to the target problem, wherein the problem related information comprises page URL information and mark position coordinate information, and then displays the target problem in a dynamic playback mode based on the problem related information so as to prompt the developer to carry out location recovery on the target problem. The problem related information based on the target problem is displayed in a dynamic playback mode, the target problem is visually displayed, the problem that developers need to communicate with users (or testers) in a large quantity to accurately position the target problem is avoided, the efficiency of positioning the target problem is improved, and the efficiency of repairing the target problem can be improved.
The embodiment of the present application provides a possible implementation manner, and specifically, step S103 includes:
step S1031 (not shown in the figure), jumping to the first page of the target question based on the first page URL information in the question related information;
step S1032 (not shown in the figure), position drawing is performed at the corresponding position of the first page of the target question based on the first mark-at-coordinate information in the question-related information.
Specifically, the problem related information includes page URL information and mark position coordinate information, and the dynamic playback of the target problem may be that, based on first page URL information in the obtained target problem related information, the target problem jumps to a first page of the target problem corresponding to the URL information; then, based on the coordinate information at the first mark in the question related information, position drawing is performed at the corresponding position of the first page of the target question, wherein the drawing may be symbol marking (for example, marking the corresponding position by a square frame, a round frame, or the like), color marking (for example, displaying a corresponding color to distinguish the corresponding position from other positions), or zooming in or out on the corresponding position to distinguish the corresponding position from other positions. And the jump to the first page of the target problem and the position depiction at the corresponding position are executed according to the occurring time sequence, so that the effect of dynamic playing is achieved.
For the embodiment of the application, jumping to the first page of the target problem and performing position description at the corresponding position are performed according to the occurring time sequence, so that the effect of dynamic playing is achieved, and the problem of how to realize dynamic playback of the target problem is solved.
The embodiment of the present application provides a possible implementation manner, and specifically, step S103 further includes:
step S1033 (not shown in the figure), determining whether the question-related information includes second page URL information;
step S1034 (not shown in the figure), when the question related information includes the second page URL information, jumping to the target question second page, and performing location mapping at the corresponding location of the target question second page based on the second mark position coordinate information in the question related information.
Specifically, some problems can be presented only through two pages, whether the problem related information includes second page URL information or not can be judged, when the problem related information includes the second page URL information, the target problem second page is skipped to, and position drawing is performed at a corresponding position of the target problem second page based on second mark position coordinate information in the problem related information. The problem that three or more pages are required to be displayed can be realized by steps similar to step S1034 (not shown in the figure), and details are not described herein.
The dynamic playback problem of the problem that a plurality of pages are required to be reflected is solved.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes:
step S104 (not shown), performing transparency masking on the first page of the target issue and/or the second page of the target issue, where the transparency masking is used to make the page readable only processing unwritable.
Specifically, the transparency masking processing can be performed on the first page of the target problem and/or the second page of the target problem, wherein the transparency masking processing is used for enabling the page to be readable only and not writable, and therefore the dynamic playback of the target problem is prevented from being influenced by misoperation of developers.
For the embodiment of the application, the transparent masking processing is carried out on the first page of the target problem and/or the second page of the target problem, so that the influence of misoperation of a developer on the dynamic playback of the target problem is avoided.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes:
step S105 (not shown in the figure), when receiving the question feedback instruction of the user, collects question related information of the question page based on the installed target middleware.
Where the middleware is a separate system software or service by which the distributed application software shares resources between different technologies. Middleware, which is located on the operating system of a client/server, manages computer resources and network communications, is software that connects two separate applications or separate systems. Connected systems, even if they have different interfaces, can still exchange information with each other through middleware. One key way to execute middleware is information transfer. Through middleware, applications can operate in a multi-platform or OS environment.
Specifically, after finding a corresponding problem, a user or a tester may start a corresponding problem feedback instruction, and after receiving the problem feedback instruction of the user, may collect problem-related information of a problem page based on an installed target middleware; the middleware can be installed in the APP application or the WEB application in the form of a third-party plug-in.
According to the embodiment of the application, the problem of acquiring the problem related information is solved, and a foundation is laid for the dynamic playback of the subsequent target problem.
The embodiment of the present application provides a possible implementation manner, and step S105 (not shown in the figure) includes:
step S1051 (not shown in the figure), collecting page URL information and mark position coordinate information of the first question page;
step S1052 (not shown in the figure), when the page jump instruction of the user is detected, acquiring the page URL information and the mark position coordinate information of the second problem page jumped to through the target middleware.
Specifically, the jump of the page and the click event of the mouse can be monitored through corresponding monitoring codes, so that the page URL information and the coordinate information of the mark position of the first problem page are collected; if the problem needs to be reflected by a plurality of pages, the URL information of the page of the second problem page to be jumped to and the coordinate information of the mark position can be acquired through the target middleware when the page jump instruction of the user exists or not is detected and the page jump instruction exists.
For the embodiment of the application, the problem of how to specifically realize the acquisition of the problem related information is solved.
Fig. 2 is a problem repairing apparatus provided in an embodiment of the present application, where theapparatus 20 includes: a receivingmodule 201, an obtainingmodule 202, and apresenting module 203, wherein,
areceiving module 201, configured to receive a target question playback instruction;
the obtainingmodule 202 is configured to obtain, based on the target problem playback instruction, problem-related information corresponding to the target problem, where the problem-related information includes page URL information and mark position coordinate information;
and thedisplay module 203 is used for displaying the target problem in a dynamic playback mode based on the problem related information so as to prompt a developer to perform positioning repair on the target problem.
The embodiment of the application provides a problem repairing device, compared with the prior art that a developer needs to communicate with a user (or a tester) in a large quantity when problem positioning is carried out, the problem repairing device receives a target problem playback instruction, acquires problem related information corresponding to a target problem based on the target problem playback instruction, wherein the problem related information comprises page URL (uniform resource locator) information and mark position coordinate information, and then displays the target problem based on the problem related information in a dynamic playback mode so as to prompt the developer to position and repair the target problem. The problem related information based on the target problem is displayed in a dynamic playback mode, the target problem is visually displayed, the problem that developers need to communicate with users (or testers) in a large quantity to accurately position the target problem is avoided, the efficiency of positioning the target problem is improved, and the efficiency of repairing the target problem can be improved.
The identity authentication device of this embodiment can execute an identity authentication method provided in the above embodiments of this application, and the implementation principles thereof are similar, and are not described herein again.
As shown in fig. 3, the present embodiment provides another problem repair apparatus, and theapparatus 30 includes: a receivingmodule 301, an obtainingmodule 302, and apresenting module 303, wherein,
areceiving module 301, configured to receive a target question playback instruction;
wherein, the receivingmodule 301 in fig. 3 has the same or similar function as the receivingmodule 201 in fig. 2.
An obtainingmodule 302, configured to obtain, based on a target question playback instruction, question-related information corresponding to a target question, where the question-related information includes page URL information and mark position coordinate information;
the acquiringmodule 302 in fig. 3 has the same or similar function as the acquiringmodule 202 in fig. 2.
And thedisplay module 303 is configured to display the target problem in a dynamic playback manner based on the problem related information, so as to prompt a developer to perform positioning repair on the target problem.
Wherein, thedisplay module 303 in fig. 3 has the same or similar function as thedisplay module 203 in fig. 2.
The embodiment of the present application provides a possible implementation manner, and specifically, thedisplay module 303 includes:
a first skippingunit 3031, configured to skip to a first page of a target question based on first page URL information in the question related information;
adrawing unit 3032, configured to draw a position at a corresponding position of the first page of the target question based on the first mark-position coordinate information in the question-related information.
For the embodiment of the application, jumping to the first page of the target problem and performing position description at the corresponding position are performed according to the occurring time sequence, so that the effect of dynamic playing is achieved, and the problem of how to realize dynamic playback of the target problem is solved.
The embodiment of the present application provides a possible implementation manner, and thedisplay module 303 further includes:
a determiningunit 3032, configured to determine whether the problem related information includes second page URL information;
and a second jumping unit 3033, configured to jump to the second page of the target question when the question related information includes second page URL information, and perform location mapping at a corresponding location of the second page of the target question based on second mark location coordinate information in the question related information.
The dynamic playback problem of the problem that a plurality of pages are required to be reflected is solved.
The embodiment of the present application provides a possible implementation manner, and further, the apparatus further includes:
and themasking module 304 is used for performing transparency masking processing on the first page of the target problem and/or the second page of the target problem, wherein the transparency masking processing is used for enabling the page to be read-only processing and not to be written.
For the embodiment of the application, the transparent masking processing is carried out on the first page of the target problem and/or the second page of the target problem, so that the influence of misoperation of a developer on the dynamic playback of the target problem is avoided.
The embodiment of the present application provides a possible implementation manner, and further, the apparatus further includes:
acollecting module 305, configured to collect question related information of the question page based on the installed target middleware when receiving a question feedback instruction of the user.
According to the embodiment of the application, the problem of acquiring the problem related information is solved, and a foundation is laid for the dynamic playback of the subsequent target problem.
The embodiment of the present application provides a possible implementation manner, and further, thecollection module 305 includes:
theacquisition unit 3051 is configured to acquire page URL information of the first question page and coordinate information of a mark position;
the detectingunit 3052 is configured to, when a page jump instruction of the user is detected, acquire, by the target middleware, page URL information and mark position coordinate information of the second problem page to which the user jumps.
For the embodiment of the application, the problem of how to specifically realize the acquisition of the problem related information is solved.
The embodiment of the application provides a problem repairing device, compared with the prior art that a developer needs to communicate with a user (or a tester) in a large quantity when problem positioning is carried out, the problem repairing device receives a target problem playback instruction, acquires problem related information corresponding to a target problem based on the target problem playback instruction, wherein the problem related information comprises page URL (uniform resource locator) information and mark position coordinate information, and then displays the target problem based on the problem related information in a dynamic playback mode so as to prompt the developer to position and repair the target problem. The problem related information based on the target problem is displayed in a dynamic playback mode, the target problem is visually displayed, the problem that developers need to communicate with users (or testers) in a large quantity to accurately position the target problem is avoided, the efficiency of positioning the target problem is improved, and the efficiency of repairing the target problem can be improved.
The embodiment of the present application provides a problem repairing apparatus, which is suitable for the method shown in the above embodiment, and is not described herein again.
An embodiment of the present application provides an electronic device, as shown in fig. 4, anelectronic device 40 shown in fig. 4 includes: aprocessor 4001 and amemory 4003.Processor 4001 is coupled tomemory 4003, such as viabus 4002. Further, theelectronic device 40 may also include atransceiver 4004. In addition, thetransceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 400 is not limited to the embodiment of the present application. Theprocessor 4001 is applied in the embodiment of the present application, and is used to implement the functions of the receiving module, the acquiring module, and the displaying module shown in fig. 2 or fig. 3, and the functions of the mask module and the collecting module shown in fig. 3. Thetransceiver 4004 includes a receiver and a transmitter.
Processor 4001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. Theprocessor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components.Bus 4002 may be a PCI bus, EISA bus, or the like. Thebus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Memory 4003 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
Thememory 4003 is used for storing application codes for executing the scheme of the present application, and the execution is controlled by theprocessor 4001. Theprocessor 4001 is used to execute application code stored in thememory 4003 to implement the functions of the problem remedying apparatus provided by the embodiments shown in fig. 2 or fig. 3.
The embodiment of the application provides electronic equipment, compared with the prior art that a developer needs to communicate with a user (or a tester) in a large quantity when problem location is carried out, the electronic equipment receives a target problem playback instruction, then based on the target problem playback instruction, problem related information corresponding to a target problem is obtained, the problem related information comprises page URL information and mark position coordinate information, then the target problem is displayed in a dynamic playback mode based on the problem related information, and the developer is prompted to carry out location repair on the target problem. The problem related information based on the target problem is displayed in a dynamic playback mode, the target problem is visually displayed, the problem that developers need to communicate with users (or testers) in a large quantity to accurately position the target problem is avoided, the efficiency of positioning the target problem is improved, and the efficiency of repairing the target problem can be improved.
The embodiment of the application provides an electronic device suitable for the method embodiment. And will not be described in detail herein.
The present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method shown in the above embodiments is implemented.
Compared with the prior art that a developer needs to communicate with a user (or a tester) in a large amount when problem location is carried out, the problem location method comprises the steps of receiving a target problem playback instruction, obtaining problem related information corresponding to a target problem based on the target problem playback instruction, wherein the problem related information comprises page URL information and mark position coordinate information, and displaying the target problem in a dynamic playback mode based on the problem related information so as to prompt the developer to locate and repair the target problem. The problem related information based on the target problem is displayed in a dynamic playback mode, the target problem is visually displayed, the problem that developers need to communicate with users (or testers) in a large quantity to accurately position the target problem is avoided, the efficiency of positioning the target problem is improved, and the efficiency of repairing the target problem can be improved.
The embodiment of the application provides a computer-readable storage medium which is suitable for the method embodiment. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.