CN111652180B - 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
CN111652180B
CN111652180B CN202010550837.9A CN202010550837A CN111652180B CN 111652180 B CN111652180 B CN 111652180B CN 202010550837 A CN202010550837 A CN 202010550837A CN 111652180 B CN111652180 B CN 111652180B
Authority
CN
China
Prior art keywords
log
instruction
operation instruction
slice
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.)
Active
Application number
CN202010550837.9A
Other languages
Chinese (zh)
Other versions
CN111652180A (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

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, device and 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, wherein each slice log corresponds to at least one frame of image in the running video; acquiring a first operation instruction and a first operation result of the first operation instruction received by a program in a target time period according to a running log; inquiring a standard operation result of the first operation instruction according to the first operation instruction; and marking in a slice 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. The technical scheme solves the problem that the defect positioning method in the related technology is complex, and achieves the effect of simplifying the defect positioning method.

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 defect positioning method, device, apparatus, and computer readable storage medium.
Background
The program generates a corresponding log when running, and the log can record the corresponding operation of the program. When the program runs, defects such as parameter errors or function call errors can 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 (i.e., 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 the operator analyzes the log to determine which operation step the defect is generated from and which part of the program of the operation step the defect is generated from.
However, the defect localization method is complicated.
Disclosure of Invention
The embodiment of the application provides a defect positioning method, device, 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 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, wherein each slice log corresponds 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 operation log;
inquiring a standard operation result of the operation instruction according to the operation instruction;
and marking in a slice 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.
Optionally, the marking in 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 includes:
and when the first operation result is inconsistent with the standard operation result, marking a defect in a slice log corresponding to the first operation result in the operation 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 operation log, the method further includes:
and marking the first operation instruction in at least one frame of image corresponding to the first operation instruction in the operation video.
Optionally, the marking the first operation instruction in at least one frame of image corresponding to the first operation instruction in the operation video includes:
determining a corresponding operation area of the first operation instruction in at least one corresponding frame of image;
and highlighting the operation area in at least one frame of image corresponding to the first operation instruction in the operation video.
Optionally, the highlighting includes: one or more of displaying with a color different from the other area than the operation area, displaying with a font different from the other area than the operation area, and displaying with a font size different from the other area than the operation area.
Optionally, after the marking is performed in the slice 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, the method further includes:
and respectively inserting the marked plurality of slice logs into each corresponding frame of image in the running video.
Optionally, after the noted plurality of slice logs are respectively inserted into each corresponding frame image in the running video, the method further includes:
playing the operation video inserted with the plurality of slice logs;
acquiring an adjustment instruction;
and continuing to play the operation video inserted with the plurality of slice logs from the moment corresponding to the adjustment instruction.
In another aspect, there is provided a defect localization apparatus including:
the system comprises an acquisition module, a processing module and a processing module, wherein 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 operation log;
the query module is used for querying a standard operation result of the operation instruction according to the operation instruction;
and the labeling module is used for labeling the slice 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.
In yet another aspect, a defect localization apparatus is provided, the defect localization apparatus comprising a processor and a memory, the memory storing at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the defect localization method according to the first aspect.
In yet another aspect, a computer storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions loaded and executed by a processor to implement the defect localization method as described in the first aspect is provided.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
the defect positioning method comprises the steps of obtaining 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 operation log into a plurality of slice logs, enabling each slice log to correspond to one frame of image in the operation video, obtaining a first operation instruction of the program, a first operation result and a standard operation result which correspond to the first operation instruction, and marking the slice log corresponding to the first operation result according to the relation between the first operation result and the standard operation result, so that defects can be marked in the operation video more simply according to the slice logs. The technical scheme solves the problem that the defect positioning method in the related technology is complex, and achieves the effect of simplifying the defect positioning method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment of a defect localization method according to an embodiment of the present application;
FIG. 2 is a flow chart of a defect localization method according to an embodiment of the present application;
FIG. 3 is a flowchart of another defect localization method according to an embodiment of the present application;
FIG. 4 is a schematic view of a highlighting operation region according to an embodiment of the present application;
FIG. 5 is a schematic diagram of inserting a slice log into a corresponding image according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating operation steps of a defect locating method according to an embodiment of the present application;
FIG. 7 is a block diagram of a defect localization apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a defect positioning device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
In one defect positioning method, a terminal may record an operation video (i.e., an operation interface video) of a program when the program is operated, watch the video by an operator, record each operation step in the video and a time corresponding to each operation step, check a log corresponding to the time according to the time corresponding to the operation step, analyze the log by the operator, 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 defect localization method is complicated.
The embodiment of the application provides a defect positioning method, device, equipment and a computer readable storage medium.
Fig. 1 is a schematic diagram of an implementation environment of a defect localization method according to 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 terminals. The terminal 12 may be connected to the server by wire or wirelessly (fig. 1 shows the case of a connection made wirelessly). An operator can control the server 11 through the terminal 12, so that the server 11 performs the defect positioning method provided by the embodiment of the present application.
Fig. 2 is a flowchart of a defect positioning method according to an embodiment of the present application. The defect positioning method can be applied to the server in the implementation environment, and the embodiment of the application is described herein by taking the application to the server as an example. The defect localization method may include:
step 201, acquiring a running video of a program in a target time period and a running log of 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 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 operation log.
Step 204, inquiring the standard operation result of the operation instruction according to the operation instruction.
And 205, marking in a slice 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.
In summary, the embodiment of the present application provides a defect positioning method, where the defect positioning method obtains an operation video of a program in a target time period and an operation log of the target time period, and processes the operation log into a plurality of slice logs, so that each slice log corresponds to a frame of image in the operation video, and further obtains a first operation instruction of the program, a first operation result and a standard operation result corresponding to the first operation instruction, and marks the slice log corresponding to the first operation result according to a relation between the first operation result and the standard operation result, so that a defect can be marked in the operation video more simply according to the slice log. The technical scheme solves the problem that the defect positioning method in the related technology is complex, and achieves the effect of simplifying the defect positioning method.
Fig. 3 is a flowchart of another defect locating method according to an embodiment of the present application, where the defect locating method can be applied to the server in the above-mentioned implementation environment, and the embodiment of the present application is described herein by taking 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 a running video of a program in a target time period and a running log of the target time period.
The server may acquire a video of the program running in the target period of time and a log of the program running in the target period of time. The target time period may be a time period between a time when the program starts to run and a time when the program ends to run. The program can generate a running log corresponding to the program when running, and the running log can record time at which part of codes are executing at the time, operation instructions received by the program and operation results corresponding to the operation instructions.
Before the software product is online, a tester can run a program corresponding to the software product for testing, namely, 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 on the software product, the terminal can record an operation video of the program in a target time period, the terminal can also acquire an operation log of the program in the target time period, and the server can acquire the operation video of the program uploaded by the terminal in the target time period and the operation log of the program 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 which is obtained by using the defect positioning method provided by the embodiment of the application and is inserted with multiple slice logs, and analyze the running video to check whether the program has defects and the reasons for the defects.
Step 302, 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.
The server may process the running log into a plurality of slice logs, each slice log corresponding to at least one frame of image in the running video. The server may process the running log according to the number of frames per second of the running video to obtain slice logs, 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 may process each frame of image according to the slice log to highlight the operation region.
For example, the running video per second may be composed of 60 frames of images, and the server may process the running log per second to obtain 60 slice logs, each slice log corresponding to each frame of images of the running video.
Step 303, obtaining a first operation instruction and a first operation result of the first operation instruction, which are received by the program in the target time period, according to the operation log.
The server may obtain, according to the first operation instruction received by the running log obtaining program in the target time period and a first operation result corresponding to the first operation instruction. The server may save the first operation instruction and the second operation result of the first operation instruction before acquiring the second operation instruction received by the program in the target period according to the operation log, so as to process the operation log and the operation 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 operation 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 sent by a tester acquired by the program through an operation software product, where the operation instruction may include a click operation, a sliding operation, and the like.
For example, the first operation instruction may be clicking a button for starting playing music, and the first operation result of the first operation instruction may be playing a music station.
Step 304, determining a corresponding operation area of the first operation instruction in the corresponding at least one frame of image.
The server may determine a corresponding operation region of the first operation instruction in the corresponding at least one frame of image. The server can acquire a first operation instruction received by the program in a target time period according to the operation log, can acquire an identification of the first operation instruction according to the operation log, can find image information of the first operation instruction in a code corresponding to the program according to the identification of the first operation instruction, and can determine an operation area corresponding to the first operation instruction in an operation video according to the image information in the time period of receiving the first operation instruction and the second operation instruction. When the first operation instruction is a click operation, the operation area may be an area where the 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.
In step 305, the operation area is highlighted in at least one frame of image corresponding to the first operation instruction in the operation video.
Wherein highlighting comprises: one or more of displaying with a color other than the operation region, displaying with a font other than the operation region, and displaying with a font size other than the operation region.
The server may highlight the operation region 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 region in the running video during the period in which the first operation instruction and the second operation instruction are received. Highlighting the operating region can facilitate an operator to easily learn what is being performed on a region of the operating program at a time when viewing the operating video.
Exemplary, as shown in fig. 4, a schematic diagram of highlighting an operation area according to an embodiment of the present application is shown. The first operation instruction may be to click on a button for starting playing music, so that the server may use the labeling frame 401 to label the button for starting playing music in each frame of image corresponding to the first operation instruction, so as to facilitate the operator to view.
Step 306, inquiring the standard operation result of the first operation instruction according to the first operation instruction.
The server may query a 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 stored in a design task book in advance by a tester, and the test task book may be stored in a 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 clicking a button to start playing music, and the standard operation result of the first operation instruction may be playing music.
And 307, marking a defect in a slice log corresponding to the first operation result in the operation log when the first operation result is inconsistent with the standard operation result.
And the server can mark the defect in the slice day corresponding to the first operation result in the operation log when the first operation result is inconsistent with the standard operation result. The server can query a standard operation result of the first operation instruction in the design task book according to the first operation instruction, and when the server obtains that the standard operation result of the first operation instruction is inconsistent with the first operation result of the first operation instruction, the server can mark defects in a slice log corresponding to the first operation result in the operation log. When a defect is marked in the slice log, the defect can be marked by using a color different from the color of the common characters in the log.
Because 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, the server compares 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, marks a defect in the slice log corresponding to the first operation result in the running log.
For example, the first operation instruction may be a button for clicking to start playing music, the standard operation result of the first operation instruction may be playing music, and when the first operation result of the first operation instruction is a playing music platform, 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 step 308, respectively inserting the marked plurality of slice logs into each corresponding frame of image in the operation video.
The server can insert the marked plurality of slice logs into each corresponding frame of image in the running video respectively. That is, the server may insert the plurality of marked slice logs into a frame of image corresponding to each slice log, and the server may insert the slice log into a position where the image display area is not blocked.
Exemplary, as shown in fig. 5, a schematic diagram of inserting a slice log into a corresponding image according to an embodiment of the present application is shown. The first operation instruction may be clicking a button for starting playing music, so the server may label the button for starting playing music in each frame of image corresponding to the first operation instruction by using the label box 401, 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, play the running video with the plurality of slice logs inserted.
The server can play the operation video inserted with the plurality of slice logs, wherein the operation video not only comprises the operation video of the program but also comprises the slice log corresponding to each frame of image of the operation video of the program, and the slice log is marked with defects, a first operation instruction and a first operation result corresponding to the first operation instruction. An operator can easily obtain an operation instruction corresponding to the operation video at each time according to the operation video, an operation result corresponding to the operation instruction and defects marked by the server.
In step 310, an adjustment instruction is obtained.
The server can acquire an adjustment instruction, wherein the adjustment instruction can be an instruction for adjusting the progress of the operation video by an operator, and the server can acquire an adjustment instruction for adjusting the progress of the operation video by the operator, so that the server plays the corresponding operation video from the time the operator wants to watch.
And 311, continuing to play the operation video inserted with the plurality of slice logs from the moment corresponding to the adjustment instruction.
The server can continue playing the operation video with the plurality of slice logs inserted from the moment corresponding to the adjustment instruction. When the operation video is played, the slice log corresponding to each frame of image can be played, so that an operator can easily find out the actual defect according to the marked defect and modify the actual defect.
In summary, the embodiment of the present application provides a defect positioning method, where the defect positioning method obtains an operation video of a program in a target time period and an operation log of the target time period, and processes the operation log into a plurality of slice logs, so that each slice log corresponds to a frame of image in the operation video, and further obtains a first operation instruction of the program, a first operation result and a standard operation result corresponding to the first operation instruction, and marks the slice log corresponding to the first operation result according to a relation between the first operation result and the standard operation result, so that a defect can be marked in the operation video more simply according to the slice log. The technical scheme solves the problem that the defect positioning method in the related technology is complex, and achieves the effect of simplifying the defect positioning method.
In an exemplary embodiment, please refer to fig. 6, which is a schematic diagram illustrating operation steps of a defect positioning method according to an embodiment of the present application. The server can acquire the running video of the program in the target time period and the running log of the program in the target time period, and perform log slicing processing on the running log to obtain a plurality of slice logs, wherein each slice log corresponds to one frame of image in the running video. The server can acquire a first operation instruction and a first operation result corresponding to the first operation instruction in a target time period according to the operation log, mark the first operation instruction and the first operation result, inquire a standard operation result of the first operation instruction according to the first operation instruction, and mark a defect from a slice day corresponding to the first operation result to a slice day corresponding to the first operation result in the operation log when the first operation result is inconsistent with the standard operation result. The server can acquire the identification of the first operation instruction when acquiring the first operation instruction, find the image information of the first operation instruction in the code corresponding to the program according to the identification of the first operation instruction, determine the 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 marked image marked with the operational area and generate a marked slice log marked with the defect. The server can insert the label slice log into each corresponding frame of label image in the running video respectively, that is, the server can combine the label image and the label slice log and generate a label video log.
After the labeling is completed, the server can play the running video with the plurality of slice logs inserted, namely, the server can play the labeled video log. The server can acquire an adjusting instruction for adjusting the progress of the operation video by an operator, and continuously play the operation video inserted with the plurality of slice logs from the moment corresponding to the adjusting instruction.
Fig. 7 is a block diagram of a defect positioning 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 acquiring module 701, configured to acquire a running video of a program in a target time period and a running log of the target time period.
The processing module 702 is 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 operation log, the first operation instruction received by the program in the target time period and a first operation result of the first operation instruction.
And the query module 704 is configured to query standard operation results of the operation instruction according to the operation instruction.
And the labeling module 705 is configured to label in a slice log corresponding to the first operation result in the running log according to a comparison result of the first operation result and the standard operation result.
In summary, the embodiment of the present application provides a defect positioning device, where the defect positioning device obtains an operation video of a program in a target time period and an operation log of the target time period, and processes the operation log into a plurality of slice logs, so that each slice log corresponds to a frame of image in the operation video, and further obtains a first operation instruction of the program, a first operation result and a standard operation result corresponding to the first operation instruction, and marks 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 marked in the operation video more simply according to the slice log. The technical scheme solves the problem that the defect positioning method in the related technology is complex, and achieves the effect of simplifying the defect positioning method.
Fig. 8 is a schematic structural diagram of a defect positioning device 800 according to an embodiment of the present application, where the defect positioning device 800 may be a server. By way of example, as shown in fig. 8, the defect localization apparatus 800 includes a central processing unit (Central Processing Unit, CPU) 801, a Memory 802, and a system bus 803 connecting the Memory 802 and the central processing unit 801, and the Memory 802 may include a computer readable medium (not shown) such as a hard disk or compact disc-read Only Memory (CD-ROM).
Computer readable storage media may include computer storage media and communication media without loss of generality. 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 (Random Access Memory, RAM), read-Only Memory (ROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash Memory or other solid state Memory technology, CD-ROM, digital versatile disks (Digital Versatile Disc, DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that computer storage media are not limited to the ones described above.
The memory 802 further includes one or more programs, where the one or more programs are stored in the memory and configured to be executed by the CPU to implement the defect localization method according to the embodiment of the present application.
The embodiment of the application also provides defect positioning equipment, which comprises a processor and a memory, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the defect positioning method provided by the embodiment of the method.
The present application also provides a computer storage medium having stored therein at least one instruction, at least one program, a code set, or a set of instructions, the at least one instruction, the at least one program, the code set, or the set of instructions being loaded and executed by a processor to implement the defect localization method as provided in the above-described method embodiments.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed as limited to the appended claims.

Claims (7)

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, wherein each slice log corresponds to 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 operation log;
acquiring the identification of the first operation instruction according to the operation log;
finding out the image information of the first operation instruction in the code corresponding to the program according to the identification of the first operation instruction;
determining an operation area corresponding to the first operation instruction in the operation video in a time period of receiving the first operation instruction and a second operation instruction according to the image information, wherein the second operation instruction is the next operation instruction after the first operation instruction;
highlighting the operation area in at least one frame of image corresponding to the first operation instruction in the operation video;
marking the first operation instruction and the first operation result in the operation log;
inquiring a standard operation result of the first operation instruction in a task design book according to the first operation instruction, wherein the first operation instruction and the standard result of the first operation instruction are stored in the task design book;
marking in a slice 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;
and respectively inserting the marked plurality of slice logs into each corresponding frame of image in the running video, wherein the slice logs are positioned in the area where the images are not blocked.
2. The method according to claim 1, wherein the marking in the slice 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 includes:
and when the first operation result is inconsistent with the standard operation result, marking a defect in a slice log corresponding to the first operation result in the operation log.
3. The method of claim 1, wherein the highlighting comprises: one or more of displaying with a color different from the other area than the operation area, displaying with a font different from the other area than the operation area, and displaying with a font size different from the other area than the operation area.
4. The method of claim 3, wherein after the noted plurality of slice logs are respectively inserted into each corresponding frame of image in the running video, the method further comprises:
playing the operation video inserted with the plurality of slice logs;
acquiring an adjustment instruction;
and continuing to play the operation video inserted with the plurality of slice logs from the moment corresponding to the adjustment instruction.
5. A defect localization apparatus, characterized in that the defect localization apparatus comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein 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 one frame of image in the running video;
the receiving module is used for obtaining a first operation instruction and a first operation result of the first operation instruction received by the program in the target time period according to the operation log, and marking the first operation instruction and the first operation result in the operation log;
the processing module is further used for acquiring the identification of the first operation instruction according to the operation log; finding out the image information of the first operation instruction in the code corresponding to the program according to the identification of the first operation instruction; determining an operation area corresponding to the first operation instruction in the operation video in a time period of receiving the first operation instruction and a second operation instruction according to the image information, wherein the second operation instruction is the next operation instruction after the first operation instruction; highlighting the operation area in at least one frame of image corresponding to the first operation instruction in the operation video;
the query module is used for querying a standard operation result of the operation instruction in a task design book according to the first operation instruction, wherein the first operation instruction and the standard result of the first operation instruction are stored in the task design book;
the labeling module is used for labeling the slice 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; and respectively inserting the marked plurality of slice logs into each corresponding frame of image in the running video, wherein the slice logs are positioned in the area where the images are not blocked.
6. A defect localization apparatus comprising a processor and a memory having stored therein at least one instruction, at least one program, code set or instruction set, the at least one instruction, at least one program, code set or instruction set being loaded and executed by the processor to implement the defect localization method of any one of claims 1 to 4.
7. 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, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by a processor to implement the defect localization method of any one of claims 1 to 4.
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 CN111652180A (en) 2020-09-11
CN111652180B true 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 (5)

* Cited by examiner, † Cited by third party
Title
Automated Bug Finding in Video Games: A Case Study for Runtime Monitoring;S. Varvaressos等;《2014 IEEE Seventh International Conference on Software Testing, Verification and Validation》;20140404;143-152 *
Using bug descriptions to reformulate queries during text-retrieval-based bug localization;Oscar Chaparro等;《Empirical Software Engineering》;第24卷;2947–3007 *
基于缺陷报告分析的软件缺陷定位方法;高子欣等;《软件》;第40卷(第5期);8-15 *
面向Android系统中Intent通信机制的漏洞分析框架及其应用;唐俊杰;《中国优秀硕士学位论文全文数据库:信息科技辑》;20170915(第9期);I138-192 *
面向COTS软件的智能漏洞挖掘技术研究;聂森;《中国优秀硕士学位论文全文数据库:信息科技辑》(第6期);1-90 *

Also Published As

Publication number Publication date
CN111652180A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN110198486B (en) Method for previewing video material, computer equipment and readable storage medium
CN110764945A (en) Crash log processing method, device, equipment and storage medium
CN108920380A (en) Test method, device, server, equipment and the storage medium of the software compatibility
CN106840209B (en) Method and apparatus for testing navigation applications
CN112423135B (en) Information processing method, apparatus, computer device and storage medium for video playback
CN112118395A (en) Video processing method, terminal and computer readable storage medium
CN113159212A (en) OCR recognition model training method, device and computer readable storage medium
CN109446199B (en) Cell data processing method and device
CN111601154B (en) Video processing method and related equipment
US20210012075A1 (en) Method for intelligent inspections, electronic device using method, and non-transitory storage medium
CN111294608A (en) Television program list processing method and device and readable storage medium
CN111652180B (en) Defect positioning method, device, equipment and computer readable storage medium
CN114546881A (en) Application software testing method, electronic device and computer readable storage medium
CN112161984B (en) Wine positioning method, wine information management method, device, equipment and storage medium
CN111860122B (en) Method and system for identifying reading comprehensive behaviors in real scene
CN110674171A (en) Script generation method and device and data processing method and device
CN110569429A (en) method, device and equipment for generating content selection model
CN111327745B (en) Method and equipment for testing silencing key of mobile terminal
CN111782869B (en) Video big data event library construction method and device and computer equipment
CN114546939A (en) Conference summary generation method and device, electronic equipment and readable storage medium
CN111256609B (en) Method and device for detecting USB interface depth
CN113382283B (en) Video title identification method and system
CN112559362A (en) Automatic testing method and testing device for dynamic user interface
CN106777369B (en) System and method for adding bookmark to audio book
CN111353562A (en) Electronic tag weighing method

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