CN111652180A - Defect positioning method, device, equipment and computer readable storage medium - Google Patents

Defect positioning method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111652180A
CN111652180A CN202010550837.9A CN202010550837A CN111652180A CN 111652180 A CN111652180 A CN 111652180A CN 202010550837 A CN202010550837 A CN 202010550837A CN 111652180 A CN111652180 A CN 111652180A
Authority
CN
China
Prior art keywords
log
running
slice
instruction
operation result
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
CN202010550837.9A
Other languages
Chinese (zh)
Other versions
CN111652180B (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.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian 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 Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202010550837.9A priority Critical patent/CN111652180B/en
Publication of CN111652180A publication Critical patent/CN111652180A/en
Application granted granted Critical
Publication of CN111652180B publication Critical patent/CN111652180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/635Overlay text, e.g. embedded captions in a TV program
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/02Recognising information on displays, dials, clocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a defect positioning method, a defect positioning device, defect positioning equipment and a computer readable storage medium, and belongs to the technical field of internet. The method comprises the following steps: acquiring an operation video of a program in a target time period and an operation log of the program in the target time period; processing the running log into a plurality of slice logs, each slice log corresponding to at least one frame of image in the running video; acquiring a first operation instruction received by a program in a target time period and a first operation result of the first operation instruction according to the running log; inquiring a standard operation result of the first operation instruction according to the first operation instruction; and marking the section log corresponding to the first operation result in the operation log according to the comparison result of the first operation result and the standard operation result. By the technical scheme, the problem that the defect positioning method is complex in the related technology is solved, and the effect of simplifying the defect positioning method is achieved.

Description

Defect positioning method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for defect location.
Background
When running, a program generates a corresponding log, and the log can record the corresponding operation of the program. When a program runs, defects such as parameter errors or function call errors may exist, and an operator needs to locate the defects generated when the program runs so as to change the program corresponding to the defects.
In a defect positioning method in the related art, a terminal may record an operation video (that is, an operation interface video) of a program when the program is running, an operator views the video, records each operation step in the video and a time corresponding to each operation step, views a log corresponding to the time according to the time corresponding to the operation step, and analyzes the log by the operator to determine which operation step the defect is generated by and which part of the operation step the defect is generated by.
However, the above-described defect localization method is complicated.
Disclosure of Invention
The embodiment of the application provides a defect positioning method, a defect positioning device, defect positioning equipment and a computer readable storage medium. The technical scheme is as follows:
according to a first aspect of the present application, there is provided a defect localization method, including:
acquiring an operation video of a program in a target time period and an operation log of the target time period;
processing the running log into a plurality of slice logs, each slice log corresponding to at least one frame of image in the running video;
acquiring a first operation instruction received by the program in the target time period and a first operation result of the first operation instruction according to the running log;
inquiring a standard operation result of the operation instruction according to the operation instruction;
and marking the slice log corresponding to the first operation result in the running log according to the comparison result of the first operation result and the standard operation result.
Optionally, the labeling, according to the comparison result between the first operation result and the standard operation result, in the slice log corresponding to the first operation result in the running log, includes:
and when the first operation result is inconsistent with the standard operation result, marking a defect in the slice log corresponding to the first operation result in the running log.
Optionally, after the first operation instruction received by the program in the target time period and the first operation result of the first operation instruction are obtained according to the execution log, the method further includes:
and labeling the first operation instruction in at least one frame of image corresponding to the first operation instruction in the running video.
Optionally, the labeling the first operation instruction in at least one frame of image corresponding to the first operation instruction in the running video includes:
determining an operation area corresponding to the first operation instruction in the corresponding at least one frame of image;
and highlighting the operation area in at least one frame of image corresponding to the first operation instruction in the running video.
Optionally, the highlighting includes: one or more of display in a color different from the other area than the operation area, display in a font different from the other area than the operation area, and display in a font size different from the other area than the operation area.
Optionally, after the labeling is performed in the slice log corresponding to the first operation result in the running log according to the comparison result between the first operation result and the standard operation result, the method further includes:
and respectively inserting the marked slice logs into each corresponding frame of image in the running video.
Optionally, after the marked slice logs are respectively inserted into each corresponding frame of image in the running video, the method further includes:
playing the running video inserted with the plurality of slice logs;
acquiring an adjusting instruction;
and continuing playing the running video inserted with the plurality of slice logs from the moment corresponding to the adjusting instruction.
In another aspect, a defect locating apparatus is provided, the defect locating apparatus including:
the acquisition module is used for acquiring an operation video of a program in a target time period and an operation log of the target time period;
the processing module is used for processing the running log into a plurality of slice logs, and each slice log corresponds to at least one frame of image in the running video;
the receiving module is used for acquiring a first operation instruction received by the program in the target time period and a first operation result of the first operation instruction according to the running log;
the query module is used for querying a standard operation result of the operation instruction according to the operation instruction;
and the marking module is used for marking the slice log corresponding to the first operation result in the running log according to the comparison result of the first operation result and the standard operation result.
In a further aspect, there is provided a defect localization apparatus comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the defect localization method according to the first aspect.
In a further aspect, there is provided a computer storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the defect localization method according to the first aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the defect positioning method comprises the steps of acquiring an operating video of a program in a target time period and an operating log of the target time period, processing the operating log into a plurality of slice logs, enabling each slice log to correspond to one frame of image in the operating video, acquiring a first operating instruction of the program, and a first operating result and a standard operating result corresponding to the first operating instruction, and labeling the slice log corresponding to the first operating result according to the relation between the first operating result and the standard operating result, so that defects can be labeled in the operating video conveniently according to the slice logs. By the technical scheme, the problem that the defect positioning method is complex in the related technology is solved, and the effect of simplifying the defect positioning method is achieved.
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 creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a defect localization method provided in an embodiment of the present application;
FIG. 2 is a flowchart of a defect locating method according to an embodiment of the present application;
FIG. 3 is a flow chart of another defect location method provided by the embodiments of the present application;
FIG. 4 is a schematic diagram of a highlighted operating area provided by an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a slice log being inserted into a corresponding image according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating the operation steps of a defect locating method according to an embodiment of the present application;
fig. 7 is a block diagram of a defect locating apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a defect locating apparatus according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
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.
In a defect positioning method, a terminal can record a running video (namely an operation interface video) of a program when the program runs, an operator watches the video, records each operation step in the video and the time corresponding to each operation step, checks a log corresponding to the time according to the time corresponding to the operation step, and the operator analyzes the log to determine which operation step the defect is generated by and which part of the program of the operation step the defect is generated by.
However, the above-described defect localization method is complicated.
The embodiment of the application provides a defect positioning method, a defect positioning device, defect positioning equipment and a computer readable storage medium.
Fig. 1 is a schematic diagram of an implementation environment of a defect location method provided in an embodiment of the present application, where the implementation environment may include a server 11 and a terminal 12.
The server 11 may be a server or a cluster of servers.
The terminal 12 may be a mobile phone, a tablet computer, a notebook computer, an intelligent wearable device, or other various terminals. The terminal 12 can be connected to the server by wire or wirelessly (in the case of wireless connection shown in fig. 1). The operator may control the server 11 through the terminal 12, so that the server 11 executes the defect location method provided in the embodiment of the present application.
Fig. 2 is a flowchart of a defect locating method according to an embodiment of the present application. The defect location method may be applied to the server in the above implementation environment, and the embodiment of the present application is described herein by taking the application to the server as an example. The defect positioning method may include:
step 201, acquiring an operation video of a program in a target time period and an operation log of the program in the target time period.
Step 202, processing the running log into a plurality of slice logs, wherein each slice log corresponds to at least one frame of image in the running video.
Step 203, obtaining the first operation instruction received by the program in the target time period and the first operation result of the first operation instruction according to the running log.
And step 204, inquiring a standard operation result of the operation instruction according to the operation instruction.
Step 205, according to the comparison result between the first operation result and the standard operation result, marking the slice log corresponding to the first operation result in the running log.
In summary, the embodiment of the present application provides a defect location method, where an operating video of a program in a target time period and an operating log of the target time period are obtained, and the operating log is processed into a plurality of slice logs, so that each slice log corresponds to one frame of image in the operating video, and a first operation instruction of the program, and a first operation result and a standard operation result corresponding to the first operation instruction may also be obtained, and a slice log corresponding to the first operation result is labeled according to a relationship between the first operation result and the standard operation result, so that a defect may be labeled in the operating video more easily and conveniently according to the slice logs. By the technical scheme, the problem that the defect positioning method is complex in the related technology is solved, and the effect of simplifying the defect positioning method is achieved.
Fig. 3 is a flowchart of another defect location method provided in this embodiment, where the defect location method may be applied to a server in the foregoing implementation environment, and this embodiment of this application is described herein by taking the application to the server as an example. As can be seen with reference to fig. 3, the defect localization method may include:
step 301, acquiring an operation video of the program in the target time period and an operation log of the program in the target time period.
The server may obtain a running video of the program in the target time period and a running log of the program in the target time period. The target time period may be a time period from a time when the program starts to run to a time when the program ends to run. The program may generate an operation log corresponding to the program during operation, and the operation log may record a time, which part of the code is executed at the time, an operation instruction received by the program, and an operation result corresponding to the operation instruction.
Before the software product is on line, a tester can run a program corresponding to the software product to perform testing, that is, the tester can run the program corresponding to the software product, the program can receive an operation instruction (the operation instruction can comprise clicking, sliding and other operations) of the tester to the software product, the terminal can record a running video of the program in a target time period, the terminal can also obtain a running log of the program in the target time period, and the server can obtain the running video of the program uploaded by the terminal in the target time period and the running log in the target time period. The tester can run the program and test multiple functions of the program, the tester can upload the running video to the server through the terminal, and the operator can watch the running video inserted with multiple slice logs obtained by using the defect positioning method provided by the embodiment of the application and analyze the running video so as to check whether the program has defects and the reasons for the defects.
Step 302, the running log is processed into a plurality of slice logs, and each slice log corresponds to at least one frame of image in the running video.
The server may process the run log into a plurality of slice logs, each slice log corresponding to at least one frame of image in the run video. The server may process the running log according to the number of frames per second of the running video to obtain a slice log, so that each slice log corresponds to one frame of image in the running video. Each slice log corresponds to one frame of image in the running video, and the server can process each frame of image according to the slice logs to highlight the operation area.
For example, the running video per second may be composed of 60 images, and the server may process the running log per second to obtain 60 slice logs, where each slice log corresponds to each frame image of the running video.
Step 303, obtaining the first operation instruction received by the program in the target time period and the first operation result of the first operation instruction according to the running log.
The server can obtain a first operation instruction received by the program in the target time period and a first operation result corresponding to the first operation instruction according to the running log. Before the server acquires the second operation instruction received by the program in the target time period according to the running log, the server may save the first operation instruction and a second operation result of the first operation instruction, so as to process the running log and the running video of the program before receiving the second operation instruction. The first operation instruction may be any operation instruction received by the server in the target time period according to the program acquired by the execution log, and the second operation instruction may be a next operation instruction after the first operation instruction.
The first operation instruction may be an operation instruction which is obtained by a program and sent by a tester through operating a software product, and the operation instruction may include a click operation, a slide operation, and the like.
For example, the first operation instruction may be a button for starting music playing, and the first operation result of the first operation instruction may be a music playing station.
And step 304, determining a corresponding operation area of the first operation instruction in the corresponding at least one frame of image.
The server can determine a corresponding operation area of the first operation instruction in the corresponding at least one frame of image. The server may obtain the first operation instruction received by the program in the target time period according to the operation log, may further obtain an identifier of the first operation instruction according to the operation log, and find image information of the first operation instruction in a code corresponding to the program according to the identifier of the first operation instruction, and the server may determine an operation area corresponding to the first operation instruction in the operation video according to the image information in the time period when the first operation instruction and the second operation instruction are received. When the first operation instruction is a click operation, the operation area may be an area where a clicked button is located. When the first operation instruction is a sliding operation, the operation area may be an area from the start to the end of the sliding operation.
Step 305, highlighting the operation area in at least one frame of image corresponding to the first operation instruction in the running video.
Wherein the highlighting includes: one or more of display in a color different from the other area than the operation area, display in a font different from the other area than the operation area, and display in a font size different from the other area than the operation area.
The server can highlight the operation area in at least one frame of image corresponding to the first operation instruction in the running video. That is, the server may highlight the operation area in the running video in the time period when the first operation instruction and the second operation instruction are received. The operation area is highlighted, so that when an operator watches the running video, the operator can conveniently know what operation is carried out on a certain area of the running program at a certain time.
Exemplarily, as shown in fig. 4, it is a schematic diagram of highlighting an operation area according to an embodiment of the present application. The first operation instruction may be a button for starting playing music, and thus, the server may mark the button for starting playing music with the mark box 401 in each frame of image corresponding to the first operation instruction, so that the operator can view the button.
And step 306, inquiring a standard operation result of the first operation instruction according to the first operation instruction.
The server can inquire the standard operation result of the first operation instruction according to the first operation instruction. The first operation instruction and the standard result of the first operation instruction may be pre-stored in a design task book by a tester, and the test task book may be stored in the server, so that the server may query the standard operation result of the first operation instruction according to the first operation instruction.
For example, the first operation instruction may be a button for starting music playing, and the standard operation result of the first operation instruction may be music playing.
And 307, when the first operation result is inconsistent with the standard operation result, marking a defect in the slice log corresponding to the first operation result in the running log.
The server may mark the defect in the running log from the slicing day to the slicing day corresponding to the first operation result when the first operation result is inconsistent with the standard operation result. The server may query a standard operation result of the first operation instruction in the design task book according to the first operation instruction, and when the standard operation result of the first operation instruction obtained by the server is inconsistent with the first operation result of the first operation instruction, the server may mark a defect in a slice log corresponding to the first operation result in the running log. When a defect is marked in the slicing log, the defect can be marked by using a color different from the color of a general character in the log.
Since the server may need a certain time to obtain the first operation result after obtaining the first operation instruction, that is, the first operation instruction and the first operation result may be in different slice logs, before receiving the second operation instruction, the server may correspond the standard result of the first operation instruction and the first operation instruction to at least one slice log corresponding to the first operation instruction, when the server detects that the slice log includes the first operation result corresponding to the first operation instruction, compare the first operation result with the standard operation result corresponding to the first operation instruction, and when the first operation result is inconsistent with the standard operation result, mark a defect in the slice log corresponding to the first operation result in the operation log.
For example, the first operation instruction may be a button for starting music playing by clicking, the standard operation result of the first operation instruction may be music playing, and when the first operation result of the first operation instruction is music playing, the server may mark a possible defect of the program in a slice log corresponding to the first operation result in the running log according to a difference between the standard operation result of the first operation and the first operation result.
The server can also mark the first operation instruction and the first operation result so as to be convenient for an operator to check.
And 308, respectively inserting the marked slice logs into each corresponding frame of image in the running video.
The server can insert the marked slice logs into each corresponding frame of image in the running video respectively. That is, the server may insert the marked slice logs into one frame of image corresponding to each slice log, and the server may insert the slice logs into a position that does not block the image display area.
Illustratively, as shown in fig. 5, it is a schematic diagram of inserting a slice log into a corresponding image according to an embodiment of the present application. The first operation instruction may be a button for starting playing music by clicking, and thus, the server may mark the button for starting playing music by using the mark box 401 in each frame of image corresponding to the first operation instruction, and the slice log corresponding to the first operation instruction is inserted into the image corresponding to the slice log, where the slice log should be located in an area where the image display is not blocked.
Step 309, playing the running video with the plurality of slice logs inserted.
The server can play the running video inserted with the plurality of slice logs, the running video not only comprises the running video of the program, but also comprises the slice logs corresponding to each frame image of the running video of the program, defects are marked in the slice logs, and the first operation instruction and a first operation result corresponding to the first operation instruction are marked. An operator can conveniently acquire an operation instruction corresponding to the operation video at each time, an operation result corresponding to the operation instruction and the defects marked by the server according to the operation video.
In step 310, an adjustment instruction is obtained.
The server can obtain an adjustment instruction, the adjustment instruction can be an instruction for adjusting the progress of running the video by an operator, and the server can obtain an adjustment instruction for adjusting the progress of running the video by the operator, so that the server can play the corresponding running video from the time that the operator wants to watch the running video.
And step 311, continuing to play the running video inserted with the plurality of slice logs from the time corresponding to the adjustment instruction.
The server can continue playing the running video inserted with the plurality of slice logs from the time corresponding to the adjustment instruction. When the running video is played, the slice log corresponding to each frame of image can be played, so that an operator can conveniently find and modify the actual defects according to the marked defects.
In summary, the embodiment of the present application provides a defect location method, where an operating video of a program in a target time period and an operating log of the target time period are obtained, and the operating log is processed into a plurality of slice logs, so that each slice log corresponds to one frame of image in the operating video, and a first operation instruction of the program, and a first operation result and a standard operation result corresponding to the first operation instruction may also be obtained, and a slice log corresponding to the first operation result is labeled according to a relationship between the first operation result and the standard operation result, so that a defect may be labeled in the operating video more easily and conveniently according to the slice logs. By the technical scheme, the problem that the defect positioning method is complex in the related technology is solved, and the effect of simplifying the defect positioning method is achieved.
In an exemplary embodiment, please refer to fig. 6, which is a schematic diagram illustrating operation steps of a defect location method according to an embodiment of the present application. The server may obtain an operating video of the program in the target time period and an operating log of the program in the target time period, and perform log slicing processing on the operating log to obtain a plurality of slice logs, where each slice log corresponds to one frame of image in the operating video. The server may obtain, according to the execution log, a first operation instruction received by the program in the target time period and a first operation result corresponding to the first operation instruction, and mark the first operation instruction and the first operation result, and the server may also query, according to the first operation instruction, a standard operation result of the first operation instruction, and mark a defect in the execution log on a slice date corresponding to the first operation result when the first operation result is inconsistent with the standard operation result. The server may obtain an identifier of the first operation instruction when obtaining the first operation instruction, and find image information of the first operation instruction in a code corresponding to the program according to the identifier of the first operation instruction, and the server may determine an operation area corresponding to the first operation instruction in at least one frame of image corresponding to the first operation instruction according to the image information, and highlight the operation area in at least one frame of image corresponding to the first operation instruction in the running video. The server may generate a marker image marked with the operation region and generate a marker slice log in which the marker is defective. The server may insert the annotation slice log into each corresponding frame of the marker image in the running video, that is, the server may merge the marker image and the annotation slice log and generate the marker video log.
After the server finishes the annotation, the server can play the running video inserted with the plurality of slice logs, that is, the server can play the marked video log. The server can obtain an adjustment instruction for adjusting the progress of the running video by an operator, and continuously play the running video inserted with the plurality of slice logs from the moment corresponding to the adjustment instruction.
Fig. 7 is a block diagram of a defect locating apparatus according to an embodiment of the present application. As can be seen with reference to fig. 7, the defect localization apparatus 700 may include:
an obtaining module 701, configured to obtain an operation video of a program in a target time period and an operation log of the program in the target time period.
A processing module 702, configured to process the running log into a plurality of slice logs, where each slice log corresponds to at least one frame of image in the running video.
The receiving module 703 is configured to obtain, according to the running log, a first operation instruction and a first operation result of the first operation instruction that are received by the program in the target time period.
And the query module 704 is used for querying a standard operation result of the operation instruction according to the operation instruction.
The labeling module 705 is configured to label, according to a comparison result between the first operation result and the standard operation result, a slice log corresponding to the first operation result in the running log.
In summary, the embodiment of the present application provides a defect location device, where the defect location device obtains a running video of a program in a target time period and a running log of the target time period, and processes the running log into a plurality of slice logs, so that each slice log corresponds to one frame of image in the running video, and may further obtain a first operation instruction of the program, and a first operation result and a standard operation result corresponding to the first operation instruction, and label the slice log corresponding to the first operation result according to a relationship between the first operation result and the standard operation result, so that a defect can be labeled in the running video more easily and conveniently according to the slice logs. By the technical scheme, the problem that the defect positioning method is complex in the related technology is solved, and the effect of simplifying the defect positioning method is achieved.
Fig. 8 is a schematic structural diagram of a defect locating apparatus 800 according to an embodiment of the present application, where the defect locating apparatus 800 may be a server. Illustratively, as shown in fig. 8, the defect locating apparatus 800 includes a Central Processing Unit (CPU) 801, a Memory 802, and a system bus 803 connecting the Memory 802 and the CPU 801, and the Memory 802 may include a computer readable medium (not shown) such as a hard disk or a Compact Disc Read-Only Memory (CD-ROM).
Without loss of generality, computer-readable storage media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical, magnetic, or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing.
The memory 802 further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU to implement the defect localization method provided by the embodiment of the present application.
The embodiment of the present application further provides a defect localization apparatus, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the defect localization method provided by the above method embodiment.
The present application further provides a computer storage medium, in which at least one instruction, at least one program, a code set, or an instruction set is stored, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the defect localization method provided by the above method embodiments.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of defect localization, the method comprising:
acquiring an operation video of a program in a target time period and an operation log of the target time period;
processing the running log into a plurality of slice logs, each slice log corresponding to at least one frame of image in the running video;
acquiring a first operation instruction received by the program in the target time period and a first operation result of the first operation instruction according to the running log;
inquiring a standard operation result of the first operation instruction according to the first operation instruction;
and marking the slice log corresponding to the first operation result in the running log according to the comparison result of the first operation result and the standard operation result.
2. The method according to claim 1, wherein the labeling, according to the comparison result between the first operation result and the standard operation result, in the slice log corresponding to the first operation result in the running log comprises:
and when the first operation result is inconsistent with the standard operation result, marking a defect in the slice log corresponding to the first operation result in the running log.
3. The method according to claim 1, wherein after the obtaining, according to the execution log, the first operation instruction received by the program in the target time period and the first operation result of the first operation instruction, the method further comprises:
and labeling the first operation instruction in at least one frame of image corresponding to the first operation instruction in the running video.
4. The method according to claim 3, wherein the labeling the first operation instruction in at least one frame of image corresponding to the first operation instruction in the running video comprises:
determining an operation area corresponding to the first operation instruction in the corresponding at least one frame of image;
and highlighting the operation area in at least one frame of image corresponding to the first operation instruction in the running video.
5. The method of claim 4, wherein the highlighting comprises: one or more of display in a color different from the other area than the operation area, display in a font different from the other area than the operation area, and display in a font size different from the other area than the operation area.
6. The method according to claim 1, wherein after the labeling is performed in the slice log corresponding to the first operation result in the running log according to the comparison result between the first operation result and the standard operation result, the method further comprises:
and respectively inserting the marked slice logs into each corresponding frame of image in the running video.
7. The method of claim 5, wherein after the inserting the marked slice logs into each corresponding frame of image in the running video, the method further comprises:
playing the running video inserted with the plurality of slice logs;
acquiring an adjusting instruction;
and continuing playing the running video inserted with the plurality of slice logs from the moment corresponding to the adjusting instruction.
8. A defect localization arrangement, characterized in that the defect localization arrangement comprises:
the acquisition module is used for acquiring an operation video of a program in a target time period and an operation log of the target time period;
the processing module is used for processing the running log into a plurality of slice logs, and each slice log corresponds to at least one frame of image in the running video;
the receiving module is used for acquiring a first operation instruction received by the program in the target time period and a first operation result of the first operation instruction according to the running log;
the query module is used for querying a standard operation result of the operation instruction according to the operation instruction;
and the marking module is used for marking the slice log corresponding to the first operation result in the running log according to the comparison result of the first operation result and the standard operation result.
9. A defect localization device comprising a processor and a memory, said memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, said at least one instruction, said at least one program, set of codes, or set of instructions being loaded and executed by said processor to implement the defect localization method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the defect localization method according to any one of claims 1 to 7.
CN202010550837.9A 2020-06-16 2020-06-16 Defect positioning method, device, equipment and computer readable storage medium Active CN111652180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010550837.9A CN111652180B (en) 2020-06-16 2020-06-16 Defect positioning method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010550837.9A CN111652180B (en) 2020-06-16 2020-06-16 Defect positioning method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111652180A true CN111652180A (en) 2020-09-11
CN111652180B CN111652180B (en) 2023-11-17

Family

ID=72347301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010550837.9A Active CN111652180B (en) 2020-06-16 2020-06-16 Defect positioning method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111652180B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080047261A (en) * 2006-11-23 2008-05-28 한국전자통신연구원 Anomaly malicious code detection method using process behavior prediction technique
JP2010157076A (en) * 2008-12-26 2010-07-15 Toshiba Corp Information processor and control program
US8041683B1 (en) * 2006-09-29 2011-10-18 Emc Corporation Methods and apparatus for locating network logs
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
CN104866420A (en) * 2015-04-27 2015-08-26 深圳市祈锦通信技术有限公司 Precisely recorded mobile phone software testing method
CN106294173A (en) * 2016-08-18 2017-01-04 北京创锐文化传媒有限公司 Data processing method, device and server
CN110109841A (en) * 2019-05-17 2019-08-09 深圳前海微众银行股份有限公司 Localization method, device, equipment and the computer readable storage medium of abnormal problem
CN110377441A (en) * 2019-06-04 2019-10-25 天津五八到家科技有限公司 Positioning problems method, apparatus, equipment and storage medium on application software of calling a taxi line
CN110430237A (en) * 2019-07-02 2019-11-08 北京梧桐车联科技有限责任公司 A kind of information processing method, device, the vehicles and storage medium
CN110618904A (en) * 2018-06-20 2019-12-27 广州优视网络科技有限公司 Stuck detection method and device
CN110750734A (en) * 2019-10-18 2020-02-04 腾讯数码(天津)有限公司 Weather display method and device, computer equipment and computer-readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041683B1 (en) * 2006-09-29 2011-10-18 Emc Corporation Methods and apparatus for locating network logs
KR20080047261A (en) * 2006-11-23 2008-05-28 한국전자통신연구원 Anomaly malicious code detection method using process behavior prediction technique
JP2010157076A (en) * 2008-12-26 2010-07-15 Toshiba Corp Information processor and control program
CN102314386A (en) * 2011-09-05 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for testing mobile terminal
CN104866420A (en) * 2015-04-27 2015-08-26 深圳市祈锦通信技术有限公司 Precisely recorded mobile phone software testing method
CN106294173A (en) * 2016-08-18 2017-01-04 北京创锐文化传媒有限公司 Data processing method, device and server
CN110618904A (en) * 2018-06-20 2019-12-27 广州优视网络科技有限公司 Stuck detection method and device
CN110109841A (en) * 2019-05-17 2019-08-09 深圳前海微众银行股份有限公司 Localization method, device, equipment and the computer readable storage medium of abnormal problem
CN110377441A (en) * 2019-06-04 2019-10-25 天津五八到家科技有限公司 Positioning problems method, apparatus, equipment and storage medium on application software of calling a taxi line
CN110430237A (en) * 2019-07-02 2019-11-08 北京梧桐车联科技有限责任公司 A kind of information processing method, device, the vehicles and storage medium
CN110750734A (en) * 2019-10-18 2020-02-04 腾讯数码(天津)有限公司 Weather display method and device, computer equipment and computer-readable storage medium

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
OSCAR CHAPARRO等: "Using bug descriptions to reformulate queries during text-retrieval-based bug localization", 《EMPIRICAL SOFTWARE ENGINEERING》, vol. 24, pages 2947, XP037080971, DOI: 10.1007/s10664-018-9672-z *
S. VARVARESSOS等: "Automated Bug Finding in Video Games: A Case Study for Runtime Monitoring", 《2014 IEEE SEVENTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION》 *
S. VARVARESSOS等: "Automated Bug Finding in Video Games: A Case Study for Runtime Monitoring", 《2014 IEEE SEVENTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION》, 4 April 2014 (2014-04-04), pages 143 - 152 *
唐俊杰: "面向Android系统中Intent通信机制的漏洞分析框架及其应用", 《中国优秀硕士学位论文全文数据库:信息科技辑》 *
唐俊杰: "面向Android系统中Intent通信机制的漏洞分析框架及其应用", 《中国优秀硕士学位论文全文数据库:信息科技辑》, no. 9, 15 September 2017 (2017-09-15), pages 138 - 192 *
聂森: "面向COTS软件的智能漏洞挖掘技术研究", 《中国优秀硕士学位论文全文数据库:信息科技辑》, no. 6, pages 1 - 90 *
高子欣等: "基于缺陷报告分析的软件缺陷定位方法", 《软件》, vol. 40, no. 5, pages 8 - 15 *

Also Published As

Publication number Publication date
CN111652180B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
CN107133165B (en) Browser compatibility detection method and device
CN107888978B (en) KEY code burning method and device and computer readable storage medium
WO2019227641A1 (en) Application testing method, apparatus, terminal device and medium
CN112423135B (en) Information processing method, apparatus, computer device and storage medium for video playback
CN102270149B (en) Navigation equipment management device and method
CN109446199B (en) Cell data processing method and device
CN111897740A (en) User interface testing method and device, electronic equipment and computer readable medium
CN112732587B (en) Automatic test log acquisition method and device, electronic equipment and storage medium
CN114490395A (en) Test processing method, device, equipment and medium
CN110765015A (en) Method for testing application to be tested and electronic equipment
CN112612690A (en) User interface information processing method and device, electronic equipment and storage medium
CN111813685A (en) Automatic testing method and device
CN112988583A (en) Method and device for testing syntax compatibility of database
CN114546881B (en) Application software testing method, electronic device and computer readable storage medium
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN111782514B (en) Test data comparison method and device
CN111897737B (en) Missing detection method and device for program test of micro-service system
CN111782869B (en) Video big data event library construction method and device and computer equipment
CN112667502A (en) Page testing method, device and medium
US20240103064A1 (en) Product line testing method and system
CN111652180A (en) Defect positioning method, device, equipment and computer readable storage medium
CN109144841B (en) Method and device for identifying advertisement application, computer equipment and storage medium
US20160140024A1 (en) Method and device for testing semiconductor manufacturing equipment automation program
CN106775701B (en) Client automatic evidence obtaining method and system

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