CN107688527B - Defect display method and device - Google Patents

Defect display method and device Download PDF

Info

Publication number
CN107688527B
CN107688527B CN201610640366.4A CN201610640366A CN107688527B CN 107688527 B CN107688527 B CN 107688527B CN 201610640366 A CN201610640366 A CN 201610640366A CN 107688527 B CN107688527 B CN 107688527B
Authority
CN
China
Prior art keywords
repair
defects
defect
track
displayed
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
CN201610640366.4A
Other languages
Chinese (zh)
Other versions
CN107688527A (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.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610640366.4A priority Critical patent/CN107688527B/en
Publication of CN107688527A publication Critical patent/CN107688527A/en
Application granted granted Critical
Publication of CN107688527B publication Critical patent/CN107688527B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3608Software analysis for verifying properties of programs using formal methods, e.g. model checking, abstract interpretation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a defect display method and a defect display device, which relate to the technical field of computers, and the method comprises the following steps: determining attribute information of the defect to be displayed according to the identification information of the defect to be displayed in the code and the corresponding relation between the preset identification information of the defect and the attribute information, wherein the attribute information comprises at least one of the defect grade of the defect to be displayed and the repair time consumption of the defect to be displayed, the repair time consumption is used for indicating the repair time consumption of the defect to be displayed, and the defect grade is used for indicating the severity of the defect to be displayed; determining a graph for indicating the attribute information of the defect to be displayed according to the attribute information of the defect to be displayed; the method and the device have the advantages that the graph corresponding to the defect to be displayed is displayed, the problem that the defect repairing effect is poor due to the fact that the user cannot determine the severity of the defect or the time consumed for repairing the defect and cannot determine which defects need to be repaired preferentially according to the severity of the defect or the time consumed for repairing the defect is solved, and the defect repairing effect is improved.

Description

Defect display method and device
Technical Field
The invention relates to the technical field of computers, in particular to a defect display method and device.
Background
After the user writes the code, the code can be checked by using a code checking tool, such as PMD, Checkstyle, Findbugs, JDepend, hp fortify, sonarqube, and the like. After the code inspection tool inspects the defect (bug), the inspected defect needs to be displayed.
When displaying the detected defects, the terminal will typically display the location of each defect in the code, and the type of each defect, such as: defect is in line 10 of the code, and the type of defect is that the variable is named incorrectly.
Because a user can only know the position of the defect in the code and the type of the defect, when the time for repairing the defect by the terminal is limited, and only part of the defect can be repaired, a reasonable repair plan cannot be made in time, and if the defect with low severity is repaired, the defect with high severity is not repaired, so that the problem of poor repair effect of the defect is caused.
Disclosure of Invention
The invention provides a defect display method and device, aiming at solving the problem that a terminal only displays the position of a defect in a code and the type of the defect, so that a user cannot repair the defect according to the severity of the defect or the time consumed for repairing the defect, and the defect repair effect is poor.
In a first aspect, a defect display method is provided, which includes: determining attribute information of the defect to be displayed according to the identification information of the defect to be displayed in the code and the corresponding relation between the preset identification information of the defect and the attribute information, determining a graph corresponding to the defect to be displayed according to the attribute information, and displaying the graph corresponding to the defect to be displayed; the graph corresponding to the defect to be displayed is used for indicating the attribute information of the defect to be displayed, the attribute information of the defect to be displayed comprises at least one of the defect grade of the defect to be displayed and the repair time consumption of the defect to be displayed, the repair time consumption of the defect to be displayed is used for indicating the repair time consumption of the defect to be displayed, and the defect grade of the defect to be displayed is used for indicating the severity of the defect to be displayed.
The defect repair time consumption for the defects to be displayed is used for indicating the time consumption for repairing the defects to be displayed, and the defect grade of the defects to be displayed is used for indicating the severity of the defects to be displayed, so that when the terminal displays a graph for indicating the repair time consumption of the defects to be displayed, a user can determine the repair time consumption of the defects to be displayed according to the graph; when the terminal displays the graph for indicating the defect level of the defect to be displayed, the user can determine the severity of the defect to be displayed corresponding to the graph according to the graph, and the problem that the defect repairing effect is poor due to the fact that the user cannot determine the severity of the defect or the time consumed for repairing the defect and cannot determine which defects need to be repaired preferentially according to the severity of the defect or the time consumed for repairing the defect is solved, and the defect repairing effect is improved.
With reference to the first aspect, in a first implementation of the first aspect, the repairing method of the defect to be displayed includes manual repairing, the attribute information of the defect to be displayed includes a defect level of the defect to be displayed, and determining a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed includes: determining a first graph according to the defect level of the defects to be displayed, wherein the graph comprises the first graph, the size of the first graph is used for indicating the defect level of the defects to be displayed, and the number of the first graph is equal to the number of the defects to be displayed; when the defects to be displayed comprise first defects, determining a second graph according to the defect levels of the first defects, wherein the repair mode of the first defects further comprises automatic repair, at the moment, the graphs further comprise second graphs, the size of the second graphs is used for indicating the defect levels of the first defects, and the number of the second graphs is equal to the number of the first defects; displaying a graph corresponding to the defect to be displayed, comprising: when the number of the defects to be displayed is at least two, displaying a manual repair quality track, wherein the manual repair quality track is formed by arranging the first graph; and when the number of the first defects is at least two, displaying an automatic repair quality track, wherein the automatic repair quality track is a track formed by arranging the second graph.
The first graph and the second graph are both circular, or the first graph and the second graph are both elliptical. When the first graph and the second graph are both circular, the size refers to the length of the radius of the circle; when the first pattern and the second pattern are both elliptical, the dimension refers to the length of the major axis and the minor axis of the ellipse, and at this time, the dimension of the first pattern being the same as the dimension of the second pattern means that the length of the major axis of the first pattern is equal to the length of the major axis of the second pattern, and the length of the minor axis of the first pattern is equal to the length of the minor axis of the second pattern.
Displaying a manual repair quality track formed by a first graph for indicating the defect grade of the defect to be displayed when the repair mode of the defect to be displayed comprises manual repair; when the defects to be displayed include the first defects which are automatically repaired and the repair mode, displaying an automatic repair quality track formed by a second graph used for indicating the defect level of the defects to be displayed, thus, the user can determine which defects can be repaired by adopting the manual repair mode and the automatic repair mode according to each first graph in the manual repair quality track and each second graph in the automatic repair quality track displayed by the terminal, and which defects can be repaired only by adopting the manual repair mode, thereby solving the problem that the terminal does not display the repair mode of the defects, so that the user selects an automatic repair mode to repair the defects after determining the defects needing to be repaired, and the defect repairing mode needing repairing does not include the automatic repairing, so that the defect can not be repaired, and the effect of improving the accuracy of the user for selecting the repairing mode is achieved.
Optionally, the size of the first graph is used for indicating the defect level of the defect to be displayed, specifically, the size of the first graph and the defect level of the defect to be displayed are in a positive correlation; the size of the second pattern is used for indicating the defect level of the first defect, and specifically, the size of the second pattern is in positive correlation with the defect level of the first defect.
The first graph and the second graph with larger sizes are arranged for the to-be-displayed defects with higher defect levels, and the first graph and the second graph with smaller sizes are arranged for the to-be-displayed defects with lower defect levels, so that a user can visually determine the defect levels of the to-be-displayed defects according to the sizes of the first graph and the second graph, and the efficiency of the user in determining the defect levels of the to-be-displayed defects is improved.
With reference to the first implementation of the first aspect, in a second implementation of the first aspect, the color of the first graphic is a first color, the color of the second graphic is a second color, and the first color is different from the second color.
By setting different colors for the first graph and the second graph, a user can visually determine the repair mode of the defect corresponding to each graph according to the colors of the first graph and the second graph, and the efficiency of determining the repair mode of the defect by the user is improved.
With reference to the second implementation of the first aspect, in a third implementation of the first aspect, the graphs further include a third graph, where a size of the third graph is used to indicate a defect level of a defect to be displayed, a number of the third graph is equal to a number of the defects to be displayed, the third graph includes at least one of a graph with a first color and a graph with a second color, a recommended repair manner of the defect represented by the graph with the first color is manual repair, a recommended repair manner of the defect represented by the graph with the second color is automatic repair, and a recommended repair manner of the defect to be displayed is one of repair manners included in the defect to be displayed; displaying a graph corresponding to the defect to be displayed, comprising: and displaying the comprehensive repair quality track, wherein the comprehensive repair quality track is formed by arranging the third graphs.
The first graph, the second graph and the third graph are all round, or the first graph, the second graph and the third graph are all oval.
The comprehensive repair quality track formed by the third graph used for indicating the defect level of the defect to be displayed is displayed, different colors are set for the third graph, different repair modes are represented by the different colors, so that a user can determine the repair mode recommended by the terminal for each defect according to the color of each third graph displayed in the comprehensive repair quality track, and reference is provided for the user to determine the repair mode of each defect.
With reference to the third implementation of the first aspect, in the fourth implementation of the first aspect, the track shapes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are circular, the track radiuses of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, the track circle center positions of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are the same, the gravity center position of the first graph, the gravity center position of the second graph, the gravity center position of the third graph and the track circle center position of the manual repair quality track are located on the same straight line, and the gravity center position of the first graph, the gravity center position of the second graph and the gravity center position of the third graph are located on the same side of the track circle center position of the manual repair quality track.
As an alternative implementation of the fourth implementation of the first aspect, the track shapes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are elliptical, the track major axes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, the track minor axes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, the track gravity center positions of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are the same, the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are not intersected with each other, the gravity center position of the first graph, the gravity center position of the second graph, the gravity center position of the third graph and the track gravity center position of the manual repair quality track are on the same straight line, and the gravity center position of the first graph, the gravity center position of the third graph and the track, The center of gravity position of the second graph and the center of gravity position of the third graph are on the same side of the track center of gravity position of the artificial restoration quality track.
By setting different sizes and the same track gravity center position for the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track, and the gravity center position of the first graph, the gravity center position of the second graph, the gravity center position of the third graph and the track gravity center position of the manual repair quality track corresponding to the same defect to be displayed are arranged on the same straight line, and the gravity center position of the first graph, the gravity center position of the second graph and the gravity center position of the third graph are arranged on the same side of the track gravity center position of the manual repair quality track, so that the user can select one of the plurality of first graphics, the plurality of second graphics and the plurality of third graphics displayed by the terminal, the first graph, the second graph and the third graph corresponding to the same defect are visually determined, and the efficiency of determining the first graph, the second graph and the third graph corresponding to each defect by a user is improved.
With reference to the third implementation of the first aspect or the fourth implementation of the first aspect, in a fifth implementation of the first aspect, at least one of a manual repair control, an automatic repair control, and a comprehensive repair control is displayed; when a manual repair control is displayed and a selection operation acting on the manual repair control is detected, displaying the total manual repair quality of the defects corresponding to the graphs in the manual repair quality track, wherein the manual repair quality is a value obtained by dividing the defect level of the defects corresponding to the graphs in the manual repair quality track by the code line number of the code; when an automatic repair control is displayed and a selection operation acting on the automatic repair control is detected, displaying the sum of automatic repair qualities of defects corresponding to the graph in an automatic repair quality track, wherein the automatic repair qualities are values obtained by dividing the defect levels of the defects corresponding to the graph in the automatic repair quality track by the code line number of the code; when the comprehensive repair control is displayed and the selection operation acting on the comprehensive repair control is detected, receiving a quality expected value input by a user, and starting the repair operation of the to-be-repaired defect in the defect corresponding to the graph in the comprehensive repair quality track according to the quality expected value, wherein the quality expected value is the upper limit of the sum of the comprehensive repair quality of the to-be-repaired defect, the comprehensive repair quality is the value obtained by dividing the defect grade of the to-be-repaired defect by the code line number of the code, and the number of the to-be-repaired defects is less than or equal to the total number of the defects corresponding to the graph in the comprehensive repair quality track.
When a user triggers the manual repair control, displaying the total of the manual repair quality; when a user triggers the automatic repair control, the sum of the automatic repair qualities is displayed, so that the user can determine the repair quality which can be achieved by the defects corresponding to the graphs in the manual repair quality track according to the sum of the manual repair qualities, and determine the repair quality which can be achieved by the defects corresponding to the graphs in the automatic repair quality track according to the sum of the automatic repair qualities, so that the repair mode is selected according to the repair quality expected to be achieved by the user, and reference is provided for the user to determine the repair mode of the defects.
When a user triggers the comprehensive repair control, the quality expected value input by the user is received, and then the terminal starts the repair operation of the to-be-repaired defect in the defect corresponding to the graph in the comprehensive repair quality track according to the quality expected value, so that the terminal can repair the to-be-repaired defect according to the repair quality expected by the user and the recommended repair mode of each defect, the user does not need to select the to-be-repaired defect and the repair mode of each to-be-repaired defect according to the repair quality expected to be achieved, and the efficiency of repairing the defect is improved.
With reference to the fifth implementation of the first aspect, in a sixth implementation of the first aspect, the receiving a user-input expected quality value includes: a display mass slider; receiving an instruction of a user for adjusting the position of the mass slider, and acquiring the adjusted position of the mass slider; and determining the quality expected value corresponding to the adjusted position according to the adjusted position.
The quality expected value is input by displaying the quality slider so that a user can adjust the position of the quality slider, the problem that the user consumes longer time when manually inputting the quality expected value is solved, and the convenience degree of inputting the quality expected value by the user is improved.
Optionally, after receiving the expected quality value, the terminal displays the value of the expected quality value or the level of the expected quality value, where the level of the expected quality value is a level determined according to the value of the expected quality value.
By displaying the value of the expected quality value or the level of the expected quality value, the terminal is provided with a plurality of modes for displaying the expected quality value, and the user can know whether the input expected quality value is correct or not.
With reference to the first aspect and any one of the first to sixth implementations of the first aspect, in a seventh implementation of the first aspect, the repairing manner of the defect to be displayed includes manual repairing, the attribute information of the defect to be displayed includes time consumed for repairing the defect to be displayed, and the time consumed for repairing the defect to be displayed includes time consumed for manual repairing the defect to be displayed; determining a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed, wherein the graph comprises the following steps: determining a fourth graph according to the manual repair time consumption of the defects to be displayed, wherein the graphs comprise the fourth graph, the size of the fourth graph is used for indicating the manual repair time consumption of the defects to be displayed, and the number of the fourth graphs is equal to that of the defects to be displayed; when the defects to be displayed comprise the repairing mode and the automatically repaired second defects, the time consumed for repairing the second defects also comprises the time consumed for automatically repairing the second defects, a fifth graph is determined according to the time consumed for automatically repairing the second defects, the graph also comprises a fifth graph, the size of the fifth graph is used for indicating the time consumed for automatically repairing the second defects, and the number of the fifth graph is equal to the number of the second defects.
The size of the fourth graph is used for indicating the time consumed by manual repair of the defect to be displayed; the size of the fifth graphic is used to indicate that the automatic repair of the defect to be displayed is time consuming. The manual repair time is the time consumed for manually repairing the defect to be displayed, and the automatic repair time is the time consumed for automatically repairing the defect to be displayed. The fourth and fifth patterns are circular or the fourth and fifth patterns are elliptical.
The fourth graph is determined according to the manual repair consumed time, the fifth graph is determined according to the automatic repair consumed time, so that when the terminal displays the fourth graph and the fifth graph, a user can determine the consumed time for manually repairing the defect to be displayed and the consumed time for automatically repairing the defect to be displayed according to the fourth graph and the fifth graph, the repair mode of the defect to be displayed is determined according to the repaired consumed time, and reference is provided for the user to determine the repair mode of the defect to be displayed.
Optionally, the size of the fourth graph is used to indicate the manual repair time of the defect to be displayed, specifically, the size of the fourth graph and the manual repair time are in a positive correlation; the size of the fifth graph is used for indicating the time consumed for automatic repair of the defect to be displayed, and specifically means that the size of the fifth graph and the time consumed for automatic repair are in a positive correlation.
Setting a fourth graph with a larger size for manually repairing the defect to be displayed with longer time consumption, and setting a fifth graph with a larger size for automatically repairing the defect to be displayed with longer time consumption; the method comprises the steps of setting a fourth graph with a smaller size for manually repairing the to-be-displayed defect with shorter time consumption, setting a fifth graph with a smaller size for automatically repairing the to-be-displayed defect with shorter time consumption, enabling a user to visually determine the time consumption for manually repairing the to-be-displayed defect according to the size of the fourth graph, visually determine the time consumption for automatically repairing the to-be-displayed defect according to the size of the fifth graph, and improving the time consumption efficiency for determining the repair of the to-be-displayed defect by the user.
With reference to the seventh implementation of the first aspect, in an eighth implementation of the first aspect, displaying a graph corresponding to a defect to be displayed includes: when the number of the defects to be displayed is at least two, displaying a manual repair time-consuming track, wherein the manual repair time-consuming track is a track formed by arranging the fourth graph; and when the number of the second defects is at least two, displaying an automatic repair time-consuming track, wherein the automatic repair time-consuming track is a track formed by arranging the fifth graph.
Displaying the manual repair time-consuming track formed by each fourth graph and the automatic repair time-consuming track formed by each fifth graph, thus, the user can determine which defects can be repaired by adopting the repairing mode of manual repair or the repairing mode of automatic repair according to each fourth graph in the manual repair time-consuming track and each fifth graph in the automatic repair time-consuming track displayed by the terminal, and which defects can be repaired only by adopting the repairing mode of manual repair, thereby solving the problem that the terminal does not display the repairing mode of the defects, after the user determines the defect to be repaired, if the user selects an automatic repairing mode to repair the defect, and the defect repairing mode needing repairing does not include the problem of poor defect repairing effect caused by automatic repairing, so that the effect of improving the accuracy of the user for selecting the repairing mode is achieved.
With reference to the seventh implementation or the eighth implementation of the first aspect, in a ninth implementation of the first aspect, the color of the fourth graphic is a third color, the color of the fifth graphic is a fourth color, and the third color is different from the fourth color.
By setting different colors for the fourth graph and the fifth graph, a user can visually determine the repair mode of the defect corresponding to each graph according to the colors of the fourth graph and the fifth graph, and the efficiency of determining the repair mode of the defect by the user is improved.
With reference to the ninth implementation of the first aspect, in a tenth implementation of the first aspect, the graphics further include a sixth graphic, the number of the sixth graphs is equal to the number of the defects to be displayed, the sixth graphs comprise at least one of graphs with the third color and graphs with the fourth color, the recommended repair mode of the defects represented by the graphs with the third color is manual repair, the recommended repair mode of the defects represented by the graphs with the fourth color is automatic repair, the size of the graphs with the third color is used for indicating that the manual repair of the defects represented by the graphs with the third color is time-consuming, the size of the fourth color graphic is used to indicate that the automatic repair of the defect represented by the fourth color graphic is time consuming, the recommended repair mode of the defect to be displayed is one of the repair modes included in the defect to be displayed; displaying a graph corresponding to the defect to be displayed, comprising: and displaying a comprehensive repair time-consuming track, wherein the comprehensive repair time-consuming track is a track formed by arranging the sixth graph.
The fourth graph, the fifth graph and the sixth graph are all round, or the fourth graph, the fifth graph and the sixth graph are all oval.
The comprehensive repair time-consuming track formed by a sixth graph used for indicating the repair time-consuming of the defects to be displayed is displayed, and different colors of the sixth graph represent different repair modes, so that a user can determine the repair mode recommended by the terminal for each defect according to the color of each sixth graph displayed in the comprehensive repair time-consuming track, determine the repair time-consuming of repairing the corresponding defects to be displayed by adopting the recommended repair mode according to the size of the sixth graph, and provide reference for the user to determine the repair mode of each defect.
With reference to the tenth implementation of the first aspect, in the eleventh implementation of the first aspect, the track shapes of the manual repair time-consuming track, the automatic repair time-consuming track, and the comprehensive repair time-consuming track are circular, the track radii of the manual repair time-consuming track, the automatic repair time-consuming track, and the comprehensive repair time-consuming track are different, the track circle center positions of the manual repair time-consuming track, the automatic repair time-consuming track, and the comprehensive repair time-consuming track are the same, the center of gravity position of the fourth graph, the center of gravity position of the fifth graph, the center of gravity position of the sixth graph, and the track circle center position of the manual repair time-consuming track are located on the same straight line, and the center of gravity position of the fourth graph, the center of gravity position of the fifth graph, and the center of gravity position of the sixth.
As a replaceable implementation of the eleventh implementation of the first aspect, the trajectory shapes of the manual repair time-consuming trajectory, the automatic repair time-consuming trajectory, and the comprehensive repair time-consuming trajectory are elliptical, the trajectory major axes of the manual repair time-consuming trajectory, the automatic repair time-consuming trajectory, and the comprehensive repair time-consuming trajectory are different, and the trajectory minor axes of the manual repair time-consuming trajectory, the automatic repair time-consuming trajectory, and the comprehensive repair time-consuming trajectory are different; the track gravity center positions of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are the same, the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are not intersected, the gravity center position of the fourth graph, the gravity center position of the fifth graph, the gravity center position of the sixth graph and the track gravity center position of the manual repair time-consuming track are located on the same straight line, and the gravity center position of the fourth graph, the gravity center position of the fifth graph and the gravity center position of the sixth graph are located on the same side of the track gravity center position of the manual repair time-consuming track.
By setting different sizes and the same track gravity center position for the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track, and the gravity center position of a fourth graph, the gravity center position of a fifth graph, the gravity center position of a sixth graph and the track gravity center position of the time-consuming track of manual repair which correspond to the same defect to be displayed are arranged on the same straight line, and the gravity center position of the fourth graph, the gravity center position of the fifth graph and the gravity center position of the sixth graph are positioned on the same side of the gravity center position of the track of the manual repair time-consuming track, so that the user can select one of the plurality of fourth graphics, the plurality of fifth graphics and the plurality of sixth graphics displayed by the terminal, the fourth graph, the fifth graph and the sixth graph corresponding to the same defect are visually determined, and the efficiency of determining the fourth graph, the fifth graph and the sixth graph corresponding to each defect by a user is improved.
With reference to the tenth implementation or the eleventh implementation of the first aspect, in a twelfth implementation of the first aspect, the method further includes: when the manual repair control is displayed and the selection operation acting on the manual repair control is detected, displaying the total manual repair time consumption of the defects corresponding to the graphs in the manual repair time consumption track; when the automatic repair control is displayed and the selection operation acting on the automatic repair control is detected, displaying the sum of the automatic repair time consumption of the defects corresponding to the graphs in the automatic repair time consumption track; when the comprehensive repair control is displayed and the selection operation acting on the comprehensive repair control is detected, receiving a time-consuming expected value input by a user, and starting the repair operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair time-consuming track according to the time-consuming expected value, wherein the time-consuming expected value is the upper limit of the sum of the comprehensive repair time-consuming of the defects in the to-be-repaired defect, the comprehensive repair time-consuming time.
When a user triggers the manual repair control, displaying the sum of the time consumed by manual repair; when the user triggers the automatic repair control, the sum of the time consumed by automatic repair is displayed, so that the user can determine the time consumed by repair of the defects corresponding to the graphs in the manual repair time-consuming track according to the sum of the time consumed by manual repair, and determine the time consumed by repair of the defects corresponding to the graphs in the automatic repair time-consuming track according to the sum of the time consumed by automatic repair, so that the repair mode is selected according to the repair time consumed by the user, and reference is provided for the user to determine the repair mode of the defects.
The time-consuming expected value input by the user is received when the user triggers the comprehensive repair control, then the terminal starts the repair operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair time-consuming track according to the time-consuming expected value, so that the terminal can repair the to-be-repaired defect according to the repair time-consuming value expected by the user and the recommended repair mode of each defect, the user does not need to select the to-be-repaired defect and the repair mode of each to-be-repaired defect according to the repair time-consuming value expected to be reached by the user, and the efficiency of repairing the defect is improved.
With reference to the twelfth implementation of the first aspect, in a thirteenth implementation of the first aspect, the receiving a time-consuming expected value input by a user includes: displaying a time-consuming slider; receiving an instruction of a user for adjusting the position of the time-consuming slider, and acquiring the adjusted position of the time-consuming slider; and determining a time-consuming expected value corresponding to the adjusted position according to the adjusted position.
The time-consuming expected value is input by the user through displaying the time-consuming slider so that the user can adjust the position of the time-consuming slider, the problem that the time consumed by the user is long when the user manually inputs the time-consuming expected value is solved, and the convenience degree of inputting the time-consuming expected value by the user is improved.
Optionally, after receiving the expected time consumption value, the terminal displays the value of the expected time consumption value or the level of the expected time consumption value, where the level of the expected time consumption value is a level determined according to the value of the expected time consumption value.
By displaying the value of the time-consuming expected value or the level of the time-consuming expected value, a plurality of modes for displaying the time-consuming expected value are provided for the terminal, and the user can know whether the time-consuming expected value input by the user is correct or not.
With reference to the twelfth implementation or the thirteenth implementation of the first aspect, in a fourteenth implementation of the first aspect, at least one of a speed priority control and a quality priority control is displayed; when the selection operation acting on the speed priority control is detected, determining the defects to be repaired according to the quality expected value and the time consumption expected value, wherein the comprehensive repair time consumption of each defect to be repaired is less than or equal to the comprehensive repair time consumption of each defect except the defect to be repaired in the defects corresponding to the graph in the comprehensive repair time consumption track; and when the selection operation acted on the quality priority control element is detected, determining the defects to be repaired according to the quality expected value and the time-consuming expected value, wherein the defect level of each defect to be repaired is greater than or equal to the defect level of each defect except the defects to be repaired in the defects corresponding to the graphs in the comprehensive repair time-consuming track.
When a user triggers the speed priority control, the defect with small comprehensive repair time consumption is preferentially selected as the defect to be repaired, so that the terminal can repair the defect as fast as possible on the premise that the repair quality after repairing the defect to be repaired meets the expected quality value and the repair time after repairing the defect to be repaired meets the expected time consumption value, and the repair speed of the defect is improved; when a user triggers the quality priority control, the defect with the larger defect level is preferentially selected as the defect to be repaired, so that the terminal preferentially repairs the defect with the high defect level on the premise that the repair quality after repairing the defect to be repaired meets the quality expected value and the repair time after repairing the defect to be repaired meets the time-consuming expected value.
With reference to the fourteenth implementation of the first aspect, in a fifteenth implementation of the first aspect, when a selection operation acting on the speed priority control is detected, determining the defect to be repaired according to the expected quality value and the expected time consumption value includes: if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is automatic repair, sequencing the defects of which the recommended repair mode is automatic repair according to the sequence of automatic repair time-consuming from small to large; if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is manual repair, the defects of which the recommended repair mode is manual repair are sorted from small to large according to the time-consuming manual repair, and if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is automatic repair, the defects of which the recommended repair mode is manual repair are sorted after the defects of which the time-consuming automatic repair is the largest according to the time-consuming manual repair from small to large; adding the comprehensive repair qualities of the first m sequenced defects to obtain the sum of the comprehensive repair qualities of the first m defects; adding the sorted comprehensive repair time consumptions of the first m defects to obtain the sum of the comprehensive repair time consumptions of the first m defects; adding the comprehensive repair qualities of the first m +1 sequenced defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects; the sum of the comprehensive repair time consumption of the first m defects is less than or equal to a time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to a quality expected value, and the sum of the comprehensive repair time consumption of the first m +1 defects is greater than the time consumption expected value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired, wherein m is a positive integer and is less than the total number of the defects corresponding to the graph in the comprehensive repair time consumption track.
With reference to the fourteenth implementation or the fifteenth implementation of the first aspect, in a sixteenth implementation of the first aspect, when a selection operation acting on the quality priority control is detected, determining the defect to be repaired according to the expected time consumption value includes: sequencing the defects corresponding to the graphs in the comprehensive repair time-consuming track according to the sequence of the defect levels from high to low; adding the comprehensive repair qualities of the first m sequenced defects to obtain the sum of the comprehensive repair qualities of the first m defects; adding the sorted comprehensive repair time consumptions of the first m defects to obtain the sum of the comprehensive repair time consumptions of the first m defects; adding the comprehensive repair qualities of the first m +1 sequenced defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects; the sum of the comprehensive repair time consumption of the first m defects is less than or equal to a time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to a quality expected value, and the sum of the comprehensive repair time consumption of the first m +1 defects is greater than the time consumption expected value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired, wherein m is a positive integer and is less than the total number of the defects corresponding to the graph in the comprehensive repair time consumption track.
With reference to the first aspect, or any one implementation of the first to sixteenth implementations of the first aspect, in a seventeenth implementation of the first aspect, when the attribute information of the defect to be displayed includes time consumed for manual repair and time consumed for automatic repair, the repair manner of the defect to be displayed includes manual repair and automatic repair; when the attribute information of the defect to be displayed includes time consumed for manual repair and does not include time consumed for automatic repair, the repair mode of the defect to be displayed includes manual repair but does not include automatic repair.
With reference to the first aspect, or any one implementation of the first to the seventeenth implementation of the first aspect, in an eighteenth implementation of the first aspect, when the repair manner of the defect to be displayed includes manual repair and automatic repair, the recommended repair manner of the defect to be displayed is automatic repair; when the repair mode of the defect to be displayed comprises manual repair and does not comprise automatic repair, the recommended repair mode of the defect to be displayed is manual repair.
In a second aspect, a defect display apparatus is provided, the apparatus comprising at least one unit for implementing the defect display method provided in the first aspect or at least one implementation of the first aspect.
In a third aspect, a terminal is provided, where the apparatus includes: a processor, a display coupled to the processor;
the display is configured to be controlled by a processor for implementing the defect display method provided in the first aspect or at least one implementation of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 a terminal structure according to an exemplary embodiment of the present invention;
FIG. 2 is a flow chart of a defect display method provided by an exemplary embodiment of the present invention;
FIG. 3 is a schematic diagram of a manual repair quality trajectory, an automatic repair quality, and a composite repair quality trajectory provided by an exemplary embodiment of the present invention;
FIG. 4 is a schematic diagram of a mass slide provided by an exemplary embodiment of the present invention;
FIG. 5 is a diagram illustrating a manual repair time-consuming trace, an automatic time-consuming quality, and a comprehensive repair time-consuming trace provided by an exemplary embodiment of the present invention;
FIG. 6 is a schematic view of a time consuming slider provided in accordance with an exemplary embodiment of the present invention;
FIG. 7 is a diagram of a quality priority option and a time-consuming priority option provided by an exemplary embodiment of the present invention;
fig. 8 is a block diagram of a defect display apparatus according to an exemplary embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Reference herein to "a unit" is to a logically partitioned functional structure, and the "unit" may be implemented by pure hardware or a combination of hardware and software.
Referring to fig. 1, a schematic structural diagram of a terminal 100 according to an exemplary embodiment of the present invention is shown. The terminal 100 may be a mobile phone (cellphone), a smart phone (smartphone), a computer (computer), a tablet computer (tablet computer), a wearable device (wearable device), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), an electronic book reader (e-book reader), and the like, which are equipped with a display.
The terminal 100 includes: a processor 120, and a display 140 coupled to the processor 120.
The processor 120 is a control center of gravity of the terminal, and the processor 120 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP, the processor 120 may further include a hardware chip, which may be an application-specific integrated circuit (ASIC), a programmable logic device (P L D), or a combination thereof, the P L D may be a complex programmable logic device (CP L D), a field-programmable gate array (FPGA), a general array logic (GA L), or any combination thereof.
The terminal 100 may further include a memory 160, wherein the memory 160 is connected to the processor 120 by a bus or other means, and is configured to store a code written by a user, and the processor 120 determines at least one defect to be displayed and attribute information corresponding to each defect to be displayed according to the code. The memory 160 may be a volatile memory (hereinafter, referred to as a volatile memory), a non-volatile memory (hereinafter, referred to as a non-volatile memory), or a combination thereof. The volatile memory may be a random-access memory (RAM), such as a static random-access memory (SRAM) or a Dynamic Random Access Memory (DRAM). The nonvolatile memory may be a Read Only Memory (ROM), such as a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), and an Electrically Erasable Programmable Read Only Memory (EEPROM). The non-volatile memory may also be a flash memory, a magnetic memory, such as a magnetic tape, a floppy disk, or a hard disk. The non-volatile memory may also be an optical disc.
The display 140 is used for displaying a graph corresponding to each defect determined according to the attribute information of each defect under the control of the processor 120, which is described in detail in the following step 204.
Referring to fig. 2, a flowchart of a defect display method according to an exemplary embodiment of the invention is shown. The embodiment is exemplified by using the method in the terminal as shown in fig. 1, and the method includes the following steps:
step 201, obtaining the identification information of the defect to be displayed in the code.
The terminal detects the codes written by the user through a preset detection algorithm to obtain the identification information of the defects included in the codes, and determines the identification information of the defects to be displayed from the identification information of the defects included in the codes. The manner in which the terminal determines the identification information of the defect to be displayed from the identification information of the defect included in the code includes, but is not limited to, the following implementation manners. In one implementation mode, the terminal selects identification information of part of defects through a random algorithm and determines the identification information as identification information of the defects to be displayed; in another implementation manner, the terminal determines the identification information of all the defects as the identification information of the defects to be displayed. The identification information may be a serial number of the defect, a name of the defect, a location of the defect in the code, etc., and this embodiment is not limited thereto, and the following description will take the identification information as the name of the defect as an example.
In step 202, the attribute information of the defect to be displayed is determined according to the identification information of the defect to be displayed and the corresponding relationship between the preset identification information of the defect and the attribute information.
When the terminal obtains the identification information of the plurality of defects included in the code, the terminal also obtains the attribute information of each defect and the corresponding relationship between the identification information of each defect and each attribute information. And after the terminal determines the identification information of the defect to be displayed, determining the attribute information corresponding to the identification information of the defect to be displayed according to the corresponding relation. The attribute information of the defect to be displayed comprises at least one of a defect level and repair time consumption of the defect to be displayed, wherein the defect level of the defect to be displayed is used for indicating the severity of the defect to be displayed, and the repair time consumption of the defect to be displayed is used for indicating the repair time consumption of the defect to be displayed.
Wherein, the defect level can be classified into crisis (critical) level, serious (serious) level, normal (normal) level, and prompt (prompt) level; alternatively, the defect levels may be further classified into other levels, such as level 0, level 1, level 2, and level 3, and the name of the defect level and the number of the levels are not limited in this embodiment. In this embodiment, the terminal quantizes the defect level and then represents the defect level in a score manner, and the more serious the defect level is, the higher the score after quantization is. For example, the score after the critical level quantization is 10 points; the score after the serious level quantization is 3; the score after the normal level quantization is 1 score; the score after quantization of the prompt level is 0.1, and the numerical value of the score after quantization of the defect level is not limited in this embodiment.
The repair time consumption comprises manual repair time consumption and automatic repair time consumption, or the repair time consumption comprises manual repair time consumption. And the time consumed for manual repair is the time consumed for the terminal to repair the defects to be displayed according to the preset detection algorithm. Since the repair quality after manually repairing the defect is generally high, the repair time of each defect in this embodiment includes the repair time of the manual repair. The automatic repair time is the time length of automatically repairing the defect to be displayed, which is predicted by the terminal according to a preset detection algorithm, and the automatic repair is a repair mode that the terminal can automatically repair the defect without manual participation. Because the repair quality of the terminal after automatically repairing the defect is different, therefore, the defect with the automatic repair quality higher than the preset quality standard can be screened out by the preset detection algorithm, only the terminal is allowed to automatically repair the defects, and the terminal is not allowed to repair the defect with the automatic repair quality lower than the preset quality standard.
Assuming that the terminal determines six defects to be displayed in the code, the correspondence between the identification information of the six defects to be displayed and the attribute information of the six defects to be displayed is shown in the following table a, where the attribute information corresponding to the bug2, the bug3 and the bug4 includes defect level, consumed manual repair time and consumed automatic repair time, and the attribute information corresponding to the bug1, the bug5 and the bug6 includes defect level and consumed manual repair time, but does not include consumed automatic repair time.
Table one:
Figure GDA0002437635190000151
Figure GDA0002437635190000161
step 203, determining a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed, wherein the graph corresponding to the defect to be displayed is used for indicating the attribute information of the defect to be displayed.
In one implementation manner, when the repair method of the defect to be displayed includes manual repair and the attribute information includes a defect level of the defect to be displayed, the terminal determines a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed, including: determining first graphs according to the defect levels of the defects to be displayed, wherein the graphs comprise the first graphs, the size of the first graphs is used for indicating the defect levels of the defects to be displayed, and the number of the first graphs is equal to that of the defects to be displayed; when the defects to be displayed comprise first defects, determining a second graph according to the defect levels of the first defects, wherein the first defects refer to the defects to be displayed, the repair mode of which also comprises automatically repaired defects, at the moment, the graphs corresponding to the defects to be displayed also comprise second graphs, the size of the second graphs is used for indicating the defect levels of the first defects, and the number of the second graphs is equal to that of the first defects.
The size of the first graph is used for indicating the defect level of the defect to be displayed, specifically, the size of the first graph is in positive correlation with the defect level of the defect to be displayed, the size of the second graph is used for indicating the defect level of the first defect, and specifically, the size of the second graph is in positive correlation with the defect level of the first defect.
In this embodiment, the terminal sets the first graph and the second graph with larger sizes for the to-be-displayed defect with higher defect level, and sets the first graph and the second graph with smaller sizes for the to-be-displayed defect with lower defect level, so that a user can visually determine the defect level of the to-be-displayed defect according to the sizes of the first graph and the second graph, and the efficiency of the user in determining the defect level of the to-be-displayed defect is improved.
Optionally, the color of the first graphic is a first color, the color of the second graphic is a second color, and the first color is different from the second color.
Optionally, the graphs corresponding to the defects to be displayed further include third graphs, the size of the third graphs is used for indicating the defect levels of the defects to be displayed, the number of the third graphs is equal to the number of the defects to be displayed, the third graphs include at least one of graphs with the first color and graphs with the second color, the recommended repair mode of the defects represented by the graphs with the first color is manual repair, and the recommended repair mode of the defects represented by the graphs with the second color is automatic repair, where the recommended repair mode of the defects to be displayed is one of the repair modes included by the defects to be displayed.
Optionally, the first figure, the second figure and the third figure may all be circular; or both may be elliptical; other closed figures are also possible, such as: rectangular, pentagonal, triangular, etc., and the present embodiment is not limited thereto. When the first graph, the second graph and the third graph are all round, the size refers to the length of the radius of the round; when the first pattern, the second pattern and the third pattern are all elliptical, the dimension refers to the length of the major axis and the minor axis of the ellipse, and at this time, the dimension of the third pattern is the same as that of the first pattern, and the description of the dimension of the third pattern being the same as that of the second pattern is the same as that of the third pattern and that of the first pattern, which is not repeated herein.
The method for the terminal to determine the repair of the defect to be displayed includes, but is not limited to, the following implementation manners. In a first implementation manner, the terminal determines the repair mode of the defect to be displayed by the repair time consumption of the defect to be displayed: when the attribute information of the defect to be displayed comprises manual repair time consumption and automatic repair time consumption, the repair mode of the defect to be displayed comprises manual repair and automatic repair; when the attribute information of the defect to be displayed comprises manual repair time consumption and automatic repair time consumption, the repair mode of the defect to be displayed comprises manual repair but not automatic repair; in a second implementation manner, the terminal determines the repair manner of the defect to be displayed according to the defect level of the defect to be displayed: when the defect level of the defect to be displayed is lower than the preset level, the repairing mode of the defect to be displayed comprises manual repairing and automatic repairing; when the defect level of the defect to be displayed is higher than the preset level, the repairing mode of the defect to be displayed comprises manual repairing but does not comprise automatic repairing; in a third implementation manner, the terminal determines a repairing manner of the defect to be displayed according to the type of the defect to be displayed: when the defect type of the defect to be displayed is a preset type, the repairing mode of the defect to be displayed comprises manual repairing and automatic repairing; when the type of the defect to be displayed is not the preset type, the repairing mode of the defect to be displayed comprises manual repairing, but does not comprise automatic repairing. In a third implementation, the terminal further needs to determine the type of each defect through a preset algorithm and record the predetermined type. In this embodiment, a method for determining the repair of the defect to be displayed through the repair time of the defect to be displayed by the terminal is described as an example.
Assuming that the six defects to be displayed determined by the terminal are shown in the table one, and it can be known from the table one that the attribute information of the bug2, the bug3 and the bug4 includes time consumed for manual repair and time consumed for automatic repair, the repair modes of the bug2, the bug3 and the bug4 include manual repair and automatic repair; when the attribute information of the bug1, the bug5 and the bug6 includes time consumed for manual repair, the repair modes of the bug1, the bug5 and the bug6 include manual repair.
Because when the defect is repaired automatically to the terminal, can reduce the operation that the user repaired the defect to improve the convenient degree of repairing the defect, consequently, in this embodiment, the terminal confirms that the recommendation repair mode of waiting to show the defect includes: when the repairing mode of the defect to be displayed comprises manual repairing and automatic repairing, the recommended repairing mode of the defect to be displayed is automatic repairing; when the repair mode of the defect to be displayed comprises manual repair and does not comprise automatic repair, the recommended repair mode of the defect to be displayed is manual repair.
In another implementation manner, when the repair mode of the defect to be displayed includes manual repair, and the attribute information of the defect to be displayed includes repair elapsed time of the defect to be displayed, the repair elapsed time of the defect to be displayed includes repair elapsed time of the defect to be displayed, at this time, a graph corresponding to the defect to be displayed is determined according to the attribute information of the defect to be displayed, including: determining fourth graphs according to the manual repair time consumption of the defects to be displayed, wherein the graphs comprise the fourth graphs, the size of the fourth graphs is used for indicating the manual repair time consumption of the defects to be displayed, and the number of the fourth graphs is equal to that of the defects to be displayed; when the defects to be displayed comprise the repairing modes and automatically repaired second defects, the repairing time consumption of the second defects also comprises the automatic repairing time consumption of the second defects, a fifth graph is determined according to the automatic repairing time consumption of the second defects, the graph also comprises a fifth graph, the size of the fifth graph is used for indicating the automatic repairing time consumption of the second defects, and the number of the fifth graph is equal to the number of the second defects.
The size of the fourth graph is used for indicating the manual repair time consumption of the defect to be displayed, and specifically means that the size of the fourth graph and the manual repair time consumption are in a positive correlation; the size of the fifth graph is used for indicating the time consumed for automatic repair of the defect to be displayed, and specifically means that the size of the fifth graph and the time consumed for automatic repair are in a positive correlation.
In the embodiment, the terminal sets a fourth graph with a larger size for manually repairing the defect to be displayed which consumes longer time, and sets a fifth graph with a larger size for automatically repairing the defect to be displayed which consumes longer time; the method comprises the steps of setting a fourth graph with a smaller size for manually repairing the to-be-displayed defect with shorter time consumption, setting a fifth graph with a smaller size for automatically repairing the to-be-displayed defect with shorter time consumption, enabling a user to visually determine the time consumption for manually repairing the to-be-displayed defect according to the size of the fourth graph, visually determine the time consumption for automatically repairing the to-be-displayed defect according to the size of the fifth graph, and improving the time consumption efficiency for determining the repair of the to-be-displayed defect by the user.
Optionally, the color of the fourth graphic is a third color, the color of the fifth graphic is a fourth color, and the third color is different from the fourth color.
Optionally, the graphs corresponding to the defects to be displayed further include sixth graphs, the number of the sixth graphs is equal to the number of the defects to be displayed, the sixth graphs include at least one of a graph with a third color and a graph with a fourth color, the recommended repair manner of the defects represented by the graph with the third color is manual repair, the recommended repair manner of the defects represented by the graph with the fourth color is automatic repair, the size of the graph with the third color is used to indicate that the manual repair of the defects represented by the graph with the third color is time-consuming, and the size of the graph with the fourth color is used to indicate that the automatic repair of the defects represented by the graph with the fourth color is time-consuming.
Optionally, the fourth, fifth and sixth patterns may all be circular; or both may be elliptical; other closed figures are also possible, such as: rectangular, pentagonal, triangular, etc., and the present embodiment is not limited thereto. When the fourth graph, the fifth graph and the sixth graph are all round, the size refers to the length of the radius of the round; when the fourth pattern, the fifth pattern and the sixth pattern are all elliptical, the dimension refers to the length of the major axis and the minor axis of the ellipse, and at this time, the dimension of the sixth pattern is the same as that of the fourth pattern, and the description of the dimension of the sixth pattern being the same as that of the fifth pattern is the same as that of the sixth pattern and that of the fourth pattern, which is not described herein again.
It should be noted that the terminal may simultaneously determine the first graph, the second graph, the third graph, the fourth graph, the fifth graph, and the sixth graph corresponding to each defect to be displayed, may also only determine the first graph, the second graph, and the third graph corresponding to each defect to be displayed, or only determine the fourth graph, the fifth graph, and the sixth graph corresponding to each defect to be displayed, which is not limited in this embodiment.
In step 204, a graph corresponding to the defect to be displayed is displayed.
When the terminal determines a first graph corresponding to each defect to be displayed and a second graph corresponding to the first defect in the defects to be displayed, the terminal displays the graphs corresponding to the defects to be displayed, and the method comprises the following steps: when the number of the defects to be displayed is at least two, displaying a manual repair quality track, wherein the manual repair quality track is formed by arranging the first graph; and when the number of the first defects is at least two, displaying an automatic repair quality track, wherein the automatic repair quality track is formed by arranging the second graph.
Optionally, when the terminal further determines a third graph corresponding to each defect to be displayed, the terminal displays a comprehensive repair quality track, where the comprehensive repair quality track is a track formed by arranging the third graphs.
The track shapes of the manual restoration quality track, the automatic restoration quality track and the comprehensive restoration quality track are circular, the track radiuses of the manual restoration quality track, the automatic restoration quality track and the comprehensive restoration quality track are different, and the track circle centers of the manual restoration quality track, the automatic restoration quality track and the comprehensive restoration quality track are the same. In order to improve the efficiency of determining a first graph, a second graph and a third graph corresponding to the same defect by a user, the center of gravity position of the first graph, the center of gravity position of the second graph, the center of gravity position of the third graph and the center of circle position of the track of the artificial repair quality track corresponding to the same defect to be displayed are arranged on the same straight line by the terminal, and the center of gravity position of the first graph, the center of gravity position of the second graph and the center of gravity position of the third graph are on the same side of the center of circle position of the track of the artificial repair quality track.
Optionally, the track shapes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are elliptical, the track major axes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, the track minor axes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, the track gravity center positions of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are the same, the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are not intersected with each other, the gravity center position of the first graph, the gravity center position of the second graph, the gravity center position of the third graph and the track gravity center position of the manual repair quality track corresponding to the same defect to be displayed are located on the same straight line, and the gravity center position of the first graph, the gravity center position of the second graph and the gravity center position of the third graph are located on the same gravity center position of the track of the manual repair And (3) side.
Optionally, the track shapes of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are square, the track diagonals of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, the track gravity center positions of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are the same, the gravity center position of the first graph, the gravity center position of the second graph and the gravity center position of the third graph corresponding to the same defect to be displayed are located on the same straight line as the track gravity center position of the manual repair quality track, and the gravity center position of the first graph, the gravity center position of the second graph and the gravity center position of the third graph are located on the same side of the track gravity center position of the manual repair quality track.
It should be noted that the track shapes of the manual repair quality track, the automatic repair quality track, and the comprehensive repair quality track may be other regular figures besides the circular, elliptical, and square figures, such as: straight lines, regular hexagons, rectangles, triangles, etc., and the present embodiment is not limited. In this embodiment, the track shapes of the manual repair quality track, the automatic repair quality track, and the comprehensive repair quality track are illustrated as circles.
Optionally, the distance between the gravity center positions of two adjacent first graphs on the manual repair quality track is kept constant. Because the gravity center position of the first graph and the gravity center position of the third graph corresponding to the same defect to be displayed and the track gravity center position of the manual repair quality track are on the same straight line, and the gravity center position of the first graph and the gravity center position of the third graph are on the same side of the track gravity center position of the manual repair quality track, the distance between the gravity center positions of two adjacent third graphs on the comprehensive repair quality track is also kept unchanged.
Assuming that the identification information of six defects to be displayed and the attribute information corresponding to the identification information of each defect to be displayed, which are determined by the terminal, are shown in table one, the terminal obtains a manual repair quality track 31, an automatic repair quality track 32 and a comprehensive repair quality track 33 shown in fig. 3 according to the attribute information of each defect to be displayed. The track center positions of the manual repair quality track 31, the automatic repair quality track 32 and the comprehensive repair quality track 33 are the same. The gravity center position of the first graph 35, the gravity center position of the second graph 36, the gravity center position of the third graph 37 and the track center position of the manual repair quality track 31 corresponding to the same defect to be displayed are on the same straight line, and are on the same side of the track center position of the manual repair quality track 31, and the first graph 35, the second graph 36 and the third graph 37 are the same in size. All the first patterns are black, and all the second patterns are white.
Optionally, the terminal may further display at least one of a manual repair control, an automatic repair control, and a comprehensive repair control.
When the manual repair control is displayed and a selection operation acting on the manual repair control is detected, the terminal generates a first trigger instruction according to the selection operation and displays the total manual repair quality of the defects corresponding to the graphs in the manual repair quality track according to the first trigger instruction, wherein the manual repair quality is a value obtained by dividing the defect level of the defects corresponding to the graphs in the manual repair quality track by the code line number of the code. Such as: the number of code lines is 10, and the bug1 in table one includes a defect level of 1, so that the manual repair quality of the bug1 is 1/10 equal to 0.1. The terminal may display a value of the sum of the quality of the manual repair, such as: the numerical values displayed at the track center positions of the artificially repaired quality tracks in fig. 3; the level of the total quality of the manual repair may also be displayed, where the level of the total quality of the manual repair is determined according to the numerical value of the total quality of the manual repair, and the level of the total quality of the manual repair may be represented by the number of the patterns, for example, 5 stars indicate that the level is high, 4 stars indicate that the level is high, or by words, such as the level is high or the level is high. The terminal can display the total sum of the quality of the manual repair at the position of the circle center of the track of the quality of the manual repair, and can also display the total sum of the quality of the manual repair at other positions of the current display interface, which is not limited in this embodiment.
When the automatic repair control is displayed and the selection operation acting on the automatic repair control is detected, the terminal generates a second trigger instruction according to the selection operation and displays the sum of the automatic repair quality of the defects corresponding to the graphs in the automatic repair quality track according to the second trigger instruction, wherein the automatic repair quality is the value obtained by dividing the defect level of the defects corresponding to the graphs in the automatic repair quality track by the code line number of the code. Such as: the number of code lines is 10, the attribute information of the bug2 in the table i includes time consumed for manual repair and time consumed for automatic repair, the automatic repair quality track includes a second graph corresponding to the bug2, the defect level of the bug2 is 1, and the automatic repair quality of the bug2 is 1/10 which is 0.1. The description of the sum of the automatic repair quality displayed by the terminal is the same as the description of the sum of the manual repair quality displayed by the terminal, and is not repeated herein.
When the comprehensive repair control is displayed and a selection operation acting on the comprehensive repair control is detected, the terminal generates a third trigger instruction according to the selection operation, receives a quality expected value input by a user according to the third trigger instruction, and starts a repair operation on a defect to be repaired in the defect corresponding to the graph in the comprehensive repair quality track according to the quality expected value, wherein the quality expected value is an upper limit of the sum of the comprehensive repair qualities of the defect to be repaired, the comprehensive repair quality is a value obtained by dividing a defect level of the defect in the defect to be repaired by a code line number of the code, and the number of the defects to be repaired is less than or equal to the total number of the defects corresponding to the graph in the comprehensive repair quality track.
The method for receiving the quality expected value input by the user by the terminal includes, but is not limited to, the following methods: in one implementation mode, the terminal receives a numerical value of the quality expected value input by a user in an input window of the quality expected value; in another implementation, the terminal displays a quality slider; receiving an instruction of a user for adjusting the position of the mass slider, and acquiring the adjusted position of the mass slider; and determining the quality expected value corresponding to the adjusted position according to the adjusted position. The terminal can display the quality slider on the comprehensive repair quality track and hide each third graph on the comprehensive repair quality track, at the moment, the initial display position of the quality slider on the comprehensive repair quality track corresponds to the minimum value of the quality expected value, and the position of the quality slider sliding for 360 degrees according to the comprehensive repair quality track corresponds to the maximum value of the quality expected value.
Referring to fig. 4, assuming that the terminal displays the comprehensive repair control 41 and detects a selection operation acting on the comprehensive repair control 41, the terminal hides each third graph in the comprehensive repair quality track, displays a quality slider 42 on the comprehensive repair quality track, and obtains a position 43 after the quality slider is adjusted when the terminal receives an instruction of adjusting the position of the quality slider by a user; and determining the expected quality value 44 corresponding to the adjusted position according to the adjusted position.
Optionally, the terminal displays the quality expected value input by the user, and the display position of the quality expected value may be the position of the center of the track of the comprehensive repair quality track, or may be other positions of the current display interface of the terminal, which is not limited in this embodiment. The manner in which the terminal displays the expected value of quality includes, but is not limited to, the following: in one implementation, the terminal displays a value of the expected quality value; in another implementation manner, the terminal displays the level of the expected quality value, where the level of the expected quality value is a grade determined according to a numerical value of the expected quality value, and the grade may be represented by the number of the same patterns or by words, which is not limited in this embodiment.
Assume that the terminal displays the level of the expected quality value, and the corresponding relationship between the value of the expected quality value and the level is shown in table two below. Table two shows the level of expected quality values in terms of the number of stars.
Table two:
Figure GDA0002437635190000221
Figure GDA0002437635190000231
the terminal starts the repairing operation of the to-be-repaired defect in the defects corresponding to the graphs in the comprehensive repairing quality track according to the quality expected value, namely, the terminal automatically repairs the to-be-repaired defect with the recommended repairing mode being automatic repairing, and displays the to-be-repaired defect with the recommended repairing mode being manual repairing so that the user can manually repair the to-be-repaired defect with the recommended repairing mode being manual repairing.
Optionally, after receiving the expected quality value input by the user, the terminal does not immediately start the repair operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair quality track, but after receiving the instruction for confirming repair input by the user, starts the repair operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair quality track, so as to improve the accuracy of the timing for determining to start the repair operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair quality track. The repair confirmation instruction input by the user may be generated after the user triggers a repair confirmation control displayed by the terminal, or may be input by the user through voice, which is not limited in this embodiment.
When the terminal determines a fourth graph corresponding to each defect to be displayed and a fifth graph corresponding to a second defect in the defects to be displayed, displaying the graphs corresponding to the defects to be displayed, including: when the number of the defects to be displayed is at least two, displaying a manual repair time-consuming track, wherein the manual repair time-consuming track is a track formed by arranging the fourth graph; and when the number of the second defects is at least two, displaying an automatic repair time-consuming track, wherein the automatic repair time-consuming track is a track formed by arranging the fifth graph.
Optionally, when the terminal further determines a sixth graph corresponding to each defect to be displayed, the terminal displays a comprehensive repair time-consuming track, where the comprehensive repair time-consuming track is a track formed by arranging the sixth graphs.
The track shape of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track is circular, the track radius of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track is different, and the track circle center positions of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are the same. In order to improve the efficiency of determining the fourth graph, the fifth graph and the sixth graph corresponding to the same defect by the user, in this embodiment, the terminal sets the center of gravity position of the fourth graph, the center of gravity position of the fifth graph, the center of gravity position of the sixth graph and the center of circle position of the trajectory of the manual repair time-consuming trajectory corresponding to the same defect to be displayed on the same straight line, and the center of gravity position of the fourth graph, the center of gravity position of the fifth graph and the center of gravity position of the sixth graph are on the same side of the center of circle position of the trajectory of the manual repair time-consuming trajectory.
Optionally, the track shapes of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are elliptical, the track major axes of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are different, and the track minor axes of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are different; the track gravity center positions of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are the same, the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are not intersected, the gravity center position of a fourth graph, the gravity center position of a fifth graph and the gravity center position of a sixth graph corresponding to the same defect to be displayed are located on the same straight line with the track gravity center position of the manual repair time-consuming track, and the gravity center position of the fourth graph, the gravity center position of the fifth graph and the gravity center position of the sixth graph are located on the same side of the track gravity center position of the manual repair time-consuming track.
Optionally, the track shape of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track is square, the track diagonals of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are different, the track gravity center positions of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are the same, the same gravity center position of a fourth graph corresponding to the defect to be displayed, the gravity center position of a fifth graph, the gravity center position of a sixth graph and the track gravity center position of the manual repair time-consuming track are located on the same straight line, and the gravity center position of the fourth graph, the gravity center position of the fifth graph and the gravity center position of the sixth graph are located on the same side.
It should be noted that the track shapes of the manual repair time-consuming track, the automatic repair time-consuming track, and the comprehensive repair time-consuming track may be other regular graphs besides the circles, ellipses, and squares listed herein, such as: straight lines, regular hexagons, rectangles, triangles, etc., and the present embodiment is not limited. In this embodiment, the track shapes of the manual repair time-consuming track, the automatic repair time-consuming track, and the comprehensive repair time-consuming track are illustrated as circles.
Optionally, the distance between the gravity center positions of two adjacent fourth graphs on the manual repair time-consuming track is kept constant. Because the gravity center position of the fourth graph and the gravity center position of the sixth graph corresponding to the same defect to be displayed are on the same straight line with the track gravity center position of the manual repair time-consuming track, and the gravity center position of the fourth graph and the gravity center position of the sixth graph are on the same side of the track gravity center position of the manual repair time-consuming track, the distance between the gravity center positions of two adjacent sixth graphs on the comprehensive repair time-consuming track is also kept unchanged.
Assuming that the identification information of six defects to be displayed and the attribute information corresponding to the identification information of each defect to be displayed, which are determined by the terminal, are shown in table one, the terminal obtains a manual repair time-consuming track 51, an automatic repair time-consuming track 52 and a comprehensive repair time-consuming track 53 shown in fig. 5 according to the attribute information of each defect to be displayed. The track circle centers of the manual repair time-consuming track 51, the automatic repair time-consuming track 52 and the comprehensive repair time-consuming track 53 are the same. The gravity center position of the fourth graph 55, the gravity center position of the fifth graph 56, the gravity center position of the sixth graph 57 and the track center position of the manual repair time-consuming track 51 corresponding to the same defect to be displayed are on the same straight line, and are on the same side of the track center position of the manual repair time-consuming track 51, and the fourth graph 55, the fifth graph 56 and the sixth graph 57 have the same size. All the fourth patterns are black, and all the fifth patterns are white.
Optionally, when the terminal displays the manual repair control and detects a selection operation acting on the manual repair control, the terminal generates a fourth trigger instruction according to the selection operation, and displays a total manual repair time consumption of the defects corresponding to the graph in the manual repair time consumption trajectory according to the fourth trigger instruction. The terminal may display the value of the sum of the time taken for manual repair, such as: the numerical value displayed by the center of the track circle center position of the time-consuming track manually repaired in FIG. 5; the level of the total consumed time for manual repair may also be displayed, where the level of the total consumed time for manual repair is determined according to the numerical value of the total consumed time for manual repair, and the level of the total consumed time for manual repair may be represented by the number of patterns, for example, 5 stars indicate that the level is high, 4 stars indicate that the level is high, or by text, such as the level is high or the level is high. The terminal can display the total sum consumed by manual repair at the position of the circle center of the track consumed by manual repair, and can also display the total sum consumed by manual repair at other positions of the current display interface, which is not limited in this embodiment.
When the automatic repair control is displayed and the selection operation acting on the automatic repair control is detected, the terminal generates a fifth trigger instruction according to the selection operation and displays the sum of the automatic repair time consumption of the defects corresponding to the graphs in the automatic repair time consumption track according to the fifth trigger instruction. The description of the total amount of time consumed for the terminal to display the automatic repair is the same as the description of the total amount of time consumed for the terminal to display the manual repair, and is not repeated herein.
When the comprehensive repair control is displayed and a selection operation acting on the comprehensive repair control is detected, a terminal generates a sixth trigger instruction according to the selection operation, receives a time-consuming expected value input by a user according to the sixth trigger instruction, and starts a repair operation on a defect to be repaired in the defects corresponding to the graph in the comprehensive repair time-consuming track according to the time-consuming expected value, wherein the time-consuming expected value is an upper limit of the sum of the comprehensive repair time-consuming values of the defects to be repaired, the comprehensive repair time-consuming value is consumed for manual repair when a recommended repair mode corresponding to the defect to be repaired is manual repair, the recommended repair mode corresponding to the defect to be repaired is consumed for automatic repair when the recommended repair mode is automatic repair, and the number of the defects to be repaired is less than or equal to the total number of the defects corresponding to the graph in the comprehensive repair.
The method for the terminal to receive the time consumption expected value input by the user includes, but is not limited to, the following methods: in one implementation mode, the terminal receives a value of a time-consuming expected value input by a user in an input window of the time-consuming expected value; in another implementation, the terminal displays a time-consuming slider; receiving an instruction of a user for adjusting the position of the time-consuming slider, and acquiring the adjusted position of the time-consuming slider; and determining a time-consuming expected value corresponding to the adjusted position according to the adjusted position. The terminal can display the time-consuming slider on the comprehensive repair time-consuming track and hide each sixth graph on the comprehensive repair time-consuming track, at this time, the initial display position of the time-consuming slider on the comprehensive repair time-consuming track corresponds to the minimum value of the time-consuming expected value, and the position of the time-consuming slider after sliding for 360 degrees according to the comprehensive repair time-consuming track corresponds to the maximum value of the time-consuming expected value.
Referring to fig. 6, assuming that the terminal displays a comprehensive repair control 61 and detects a selection operation acting on the comprehensive repair control, the terminal hides each third graph in the comprehensive repair time-consuming trajectory, displays a time-consuming slider 62 on the comprehensive repair time-consuming trajectory, and obtains an adjusted position 63 of the time-consuming slider when the terminal receives an instruction of adjusting the position of the time-consuming slider by a user; and determining a time-consuming expected value 64 corresponding to the adjusted position according to the adjusted position.
Optionally, the terminal displays the time-consuming expected value input by the user, where the display position of the time-consuming expected value may be a position of a circle center of a track of the comprehensive repair time-consuming track, or may be other positions of a current display interface of the terminal, and this embodiment is not limited. The manner in which the terminal displays the expected time consumption value includes, but is not limited to, the following manners: in one implementation, the terminal displays a value of the expected time-consuming value; in another implementation manner, the terminal displays a level of the expected time consumption value, where the level of the expected time consumption value is a level determined according to a numerical value of the expected time consumption value, and the level may be represented by the number of the same patterns or by characters, which is not limited in this embodiment.
Assume that the terminal displays a level of the expected time consumption value, and the corresponding relationship between the value of the expected time consumption value and the level is shown in table three below. Table three represents the level of time-consuming expectation in terms of the number of stars.
Table three:
expected time consumption value Rank of
[90,100) ★★★★★
[70,90) ★★★★
[50,70) ★★★
[30,50) ★★
[10,30)
The terminal starts the repairing operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repairing quality track according to the time-consuming expected value, and the description of the repairing operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repairing quality track, which is started by the terminal according to the time-consuming expected value, is the same, and is not repeated herein.
It should be noted that the terminal can simultaneously display a manual repair quality track, an automatic repair quality track, a comprehensive repair quality track, a manual repair time-consuming track, an automatic repair time-consuming track, and a comprehensive repair time-consuming track; or only displaying the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track; the time-consuming track of manual repair, the time-consuming track of automatic repair, and the time-consuming track of comprehensive repair may be displayed, which is not limited in this embodiment.
Optionally, the terminal further displays at least one of a speed priority control and a quality priority control. The speed priority control is used for indicating the terminal to repair the defects as fast as possible on the premise that the repair quality after repairing the defects to be repaired meets the expected quality value and the repair quality after repairing the defects to be repaired meets the expected time consumption value, so that the repair speed of the defects included in the codes is improved; the speed priority control element may be displayed in a display area surrounded by the comprehensive repair time-consuming trajectory, or may be displayed at other positions in the current display interface, which is not limited in this embodiment. The quality priority control part is used for indicating the terminal to preferentially repair the defect with high defect level on the premise that the repair quality after repairing the defect to be repaired meets the quality expected value and the repair quality after repairing the defect to be repaired meets the time-consuming expected value so as to improve the repair quality of the defect; the quality priority control element may be displayed in a display area surrounded by the comprehensive repair quality trajectory, or may be displayed at other positions in the current display interface, which is not limited in this embodiment.
The method for determining the defect to be repaired by the terminal includes, but is not limited to, the following determination modes.
In a first implementation manner, when a selection operation acting on the speed priority control is detected, the terminal determines the defects to be repaired according to the expected quality value and the expected time consumption value, and the comprehensive repair time consumption of each defect to be repaired is less than or equal to the comprehensive repair time consumption of each defect except the defects to be repaired in the defects corresponding to the graph in the comprehensive repair time consumption track.
Optionally, when the terminal detects a selection operation acting on the speed priority control, a selection mark may be displayed in the speed priority control to prompt that the user has triggered the speed priority control.
Referring to fig. 7, it is assumed that the terminal simultaneously displays the quality priority control 71 and the speed priority control 72, and the user triggers the speed priority control 72, at which time, the terminal displays a check in the speed priority control 72.
When the selection operation acting on the speed priority control is detected, the terminal determines the defect to be repaired according to the expected quality value and the expected time consumption value, and the method comprises the following steps: if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is automatic repair, sequencing the defects of which the recommended repair mode is automatic repair according to the sequence of automatic repair time-consuming from small to large; if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is manual repair, the defects of which the recommended repair mode is manual repair are sorted from small to large according to the time-consuming manual repair, and if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is automatic repair, the defects of which the recommended repair mode is manual repair are sorted after the defects of which the time-consuming automatic repair is the largest according to the time-consuming manual repair from small to large; adding the comprehensive repair qualities of the first m sequenced defects to obtain the sum of the comprehensive repair qualities of the first m defects; adding the sorted comprehensive repair time consumptions of the first m defects to obtain the sum of the comprehensive repair time consumptions of the first m defects; adding the comprehensive repair qualities of the first m +1 sequenced defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects; the sum of the comprehensive repair time consumption of the first m defects is less than or equal to a time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to a quality expected value, and the sum of the comprehensive repair time consumption of the first m +1 defects is greater than the time consumption expected value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired, wherein m is a positive integer and is less than the total number of the defects corresponding to the graph in the comprehensive repair time consumption track. Of course, when the expected time-consuming values of the expected quality values input by the user are all maximum values, the value of m may also be equal to the total number of defects corresponding to the graph in the comprehensive repair time-consuming track.
Assuming that six defects in the code and attribute information corresponding to each defect are as shown in the first table, if the number of lines of the code is 10 and the user selects the speed priority in fig. 7, at least two sorted defects are as shown in the fourth table, when m is 1, the terminal calculates that the sum of the comprehensive repair time consumption of the first defect is 0.72 mm, and the sum of the comprehensive repair quality is 1/10 is 0.1; calculating the sum of the total repair time consumption of the first two defects to be 0.72mim +1mim to 1.72mim, the sum of the comprehensive repair quality to be (1+0.1)/10 to 0.11, determining that 0.72 is smaller than the expected time consumption value, 0.1 is smaller than the expected quality value, 1.72 is smaller than the expected time consumption value, 0.11 is smaller than the expected quality value by the terminal, updating the terminal m to be 2, and continuing to execute the steps until the sum of the comprehensive repair time consumption of the first m defects is smaller than or equal to the expected time consumption value, the sum of the comprehensive repair quality of the first m defects is smaller than or equal to the expected quality value, and the sum of the comprehensive repair time consumption of the first m +1 defects is larger than the expected time consumption value; or stopping when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, and determining the first m defects as the defects to be repaired.
Table four:
Figure GDA0002437635190000281
Figure GDA0002437635190000291
in a second implementation, when a selection operation acting on the speed priority control is detected, the terminal determines the defect to be repaired according to the expected quality value.
The terminal determines the defects to be repaired according to the expected quality value, and the method comprises the following steps: if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is automatic repair, sequencing the defects of which the recommended repair mode is automatic repair according to the sequence of automatic repair time-consuming from small to large; if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is manual repair, the defects of which the recommended repair mode is manual repair are sorted from small to large according to the time-consuming manual repair, and if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is automatic repair, the defects of which the recommended repair mode is manual repair are sorted after the defects of which the time-consuming automatic repair is the largest according to the time-consuming manual repair from small to large; acquiring the comprehensive repair total quality of the sequenced first m defects; acquiring the comprehensive repair total mass of the sequenced first m +1 defects; and when the total comprehensive repair mass of the first m defects is less than or equal to the expected quality value and the total comprehensive repair mass of the first m +1 defects is greater than the expected quality value, determining the first m defects to be repaired.
In a third implementation manner, when a selection operation acting on the quality priority control element is detected, the terminal determines the defects to be repaired according to the expected quality value and the expected time consumption value, and the defect level of each defect to be repaired is greater than or equal to the defect level of each defect except the defect to be repaired in the defects corresponding to the graph in the comprehensive repair time consumption track.
Optionally, when the terminal detects a selection operation acting on the quality priority control, a selection mark may be displayed in the quality priority control to prompt the user that the quality priority control has been triggered.
Wherein, when detecting the selection operation acting on the quality priority control element, determining the defect to be repaired according to the expected time-consuming value, comprising: sequencing the defects corresponding to the graphs in the comprehensive repair time-consuming track according to the sequence of the defect levels from high to low; adding the comprehensive repair qualities of the first m sequenced defects to obtain the sum of the comprehensive repair qualities of the first m defects; adding the sorted comprehensive repair time consumptions of the first m defects to obtain the sum of the comprehensive repair time consumptions of the first m defects; adding the comprehensive repair qualities of the first m +1 sequenced defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects; the sum of the comprehensive repair time consumption of the first m defects is less than or equal to a time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to a quality expected value, and the sum of the comprehensive repair time consumption of the first m +1 defects is greater than the time consumption expected value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired, wherein m is a positive integer and is less than the total number of the defects corresponding to the graph in the comprehensive repair time consumption track. Of course, when the expected time-consuming values of the expected quality values input by the user are all maximum values, the value of m may also be equal to the total number of defects corresponding to the graph in the comprehensive repair time-consuming track.
Assuming that six defects in the code and attribute information corresponding to each defect are as shown in the above table one, if the number of lines of the code is 10, the user selects the quality priority in fig. 7, and the six sorted defects are as shown in the following table five, when m is 1, the terminal calculates that the total sum of the comprehensive repair time consumption of the first defect is 20mim, and the total sum of the comprehensive repair quality is 10/10 is 1; calculating the sum of the total repair time consumption of the first two defects to be 20mim +6mim to 26mim, the sum of the comprehensive repair quality to be (10+3)/10 to 1.3, determining that 20 is less than the time consumption expected value, 1 is less than the quality expected value, 26 is less than the time consumption expected value and 1.3 is less than the quality expected value by the terminal, updating the terminal m to be 2, and continuing to execute the steps until the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value and the sum of the comprehensive repair time consumption of the first m +1 defects is greater than the time consumption expected value; or stopping when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, and determining the first m defects as the defects to be repaired.
Table five:
Figure GDA0002437635190000301
in a fourth implementation, when a selection operation acting on the quality priority control is detected, the defect to be repaired is determined according to the expected time-consuming value.
The method for determining the defects to be repaired by the terminal according to the time-consuming expected value comprises the following steps: sequencing the defects corresponding to the graphs in the comprehensive repair time-consuming track according to the sequence of the defect levels from high to low; acquiring the total time for comprehensively repairing the ordered first m defects; acquiring the total time consumed by comprehensively repairing the sequenced first m +1 defects; and when the total time consumption of the comprehensive repair of the first m defects is less than or equal to the time consumption expected value and the total time consumption of the comprehensive repair of the first m +1 defects is greater than the time consumption expected value, determining the first m defects as the defects to be repaired.
Optionally, when the terminal does not receive the selection operation of the user on the speed priority option and the selection operation of the user on the quality priority option, the method for the terminal to determine the defect to be repaired includes, but is not limited to, the following methods: in one mode, the terminal randomly selects the defects to be repaired according to the expected quality value and the expected time consumption value; in another mode, the terminal selects the defect which is preferentially detected as the defect to be repaired according to the expected quality value and the expected time consumption value.
In summary, in the defect display method provided in this embodiment, since the repair time consumption of the defect to be displayed is used to indicate the repair time consumption of the defect to be displayed, and the defect level of the defect to be displayed is used to indicate the severity of the defect to be displayed, when the terminal displays a graph indicating the repair time consumption of the defect to be displayed, the user can determine the repair time consumption of the defect to be displayed according to the graph; when the terminal displays the graph for indicating the defect level of the defect to be displayed, the user can determine the severity of the defect to be displayed corresponding to the graph according to the graph, and the problem that the defect repairing effect is poor due to the fact that the user cannot determine the severity of the defect or the time consumed for repairing the defect according to the severity of the defect or the time consumed for repairing the defect and can not determine which defects need to be repaired preferentially is solved.
In addition, when the user triggers the comprehensive repair control, the quality expected value input by the user is received, and then the terminal starts the repair operation on the to-be-repaired defect in the defect corresponding to the graph in the comprehensive repair quality track according to the quality expected value, so that the terminal can repair the to-be-repaired defect according to the repair quality expected to be achieved by the user and the recommended repair mode of each defect, the user is not required to select the to-be-repaired defect and the repair mode of each to-be-repaired defect according to the repair quality expected to be achieved, and the efficiency of repairing the defect is improved.
The time-consuming expected value input by the user is received when the user triggers the comprehensive repair control, then the terminal starts the repair operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair time-consuming track according to the time-consuming expected value, so that the terminal can repair the to-be-repaired defect according to the repair time-consuming value expected by the user and the recommended repair mode of each defect, the user does not need to select the to-be-repaired defect and the repair mode of each to-be-repaired defect according to the repair time-consuming value expected to be reached by the user, and the efficiency of repairing the defect is improved.
In addition, when the user triggers the speed priority control, the defect with small comprehensive repair time consumption is preferentially selected as the defect to be repaired, so that the terminal can repair the defect as fast as possible on the premise that the repair quality after repairing the defect to be repaired meets the quality expected value and the repair time after repairing the defect to be repaired meets the time consumption expected value, and the repair speed of the defect is improved; when a user triggers the quality priority control, the defect with the larger defect level is preferentially selected as the defect to be repaired, so that the terminal preferentially repairs the defect with the high defect level on the premise that the repair quality after repairing the defect to be repaired meets the quality expected value and the repair time after repairing the defect to be repaired meets the time-consuming expected value.
Referring to fig. 8, a block diagram of a defect display apparatus according to an embodiment of the invention is shown. The defect display means may be implemented as all or a part of the terminal by software, hardware or a combination of both. The defect display device may include: an obtaining unit 810, a determining unit 820, a displaying unit 830, a receiving unit 840, a repairing unit 850, a sorting unit 860 and a calculating unit 870.
An obtaining unit 810, configured to implement the function of step 201.
A determining unit 820, configured to implement the function of step 203, where the sum of the comprehensive repair time consumptions of the first m defects in step 204 is less than or equal to the expected time consumption value, the sum of the comprehensive repair qualities of the first m defects is less than or equal to the expected quality value, and the sum of the comprehensive repair time consumptions of the first m +1 defects is greater than the expected time consumption value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the functions of the defects to be repaired.
And a display unit 830 for implementing the functions of step 204.
A receiving unit 840, configured to implement the function of receiving the expected quality value and the expected time consumption value input by the user in step 204;
and a repairing unit 850, configured to implement the function of, in the above step 204, starting a repairing operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair quality track according to the expected quality value, and starting a repairing operation on the to-be-repaired defect in the defects corresponding to the graph in the comprehensive repair time-consuming track according to the expected time-consuming value.
A sorting unit 860, configured to, when the defects corresponding to the graph in the comprehensive repair time-consuming trajectory include a defect whose recommended repair manner is automatic repair, sort the defects whose recommended repair manner is automatic repair according to a sequence from small to large of automatic repair time-consuming in the step 204; when the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects recommended to be repaired manually, the defects recommended to be repaired manually are sorted from small to large according to the time-consuming of manual repair, and when the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects recommended to be repaired automatically, the defects recommended to be repaired manually are arranged behind the defects automatically repaired with the largest time-consuming in the order from small to large according to the time-consuming of manual repair; and sequencing the defects corresponding to the graphs in the comprehensive repair time-consuming track from high to low according to the defect level.
A calculating unit 870, configured to add the sorted comprehensive repair qualities of the first m defects in step 204 to obtain a total sum of the comprehensive repair qualities of the first m defects; adding the sorted comprehensive repair time consumptions of the first m defects to obtain the sum of the comprehensive repair time consumptions of the first m defects; adding the sorted comprehensive repair qualities of the first m +1 defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; and adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the function of the sum of the comprehensive repair time consumptions of the first m +1 defects.
The relevant details may be combined with the method embodiment described with reference to fig. 2.
It should be noted that the obtaining unit 810, the determining unit 820, the receiving unit 840, the repairing unit 850, the sorting unit 860 and the calculating unit 870 may be implemented by a processor in a terminal; the above-described display unit 830 may be implemented by a display under the control of a processor in the terminal.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatuses and units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should be understood that the apparatus and method disclosed in the embodiments provided in the present application may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (32)

1. A defect display method, comprising:
acquiring identification information of a defect to be displayed in the code, wherein the repair mode of the defect to be displayed comprises manual repair;
determining attribute information of the defects to be displayed according to the identification information of the defects to be displayed and the corresponding relation between preset identification information of the defects and attribute information of the defects, wherein the attribute information of the defects to be displayed comprises defect levels of the defects to be displayed, and the defect levels of the defects to be displayed are used for indicating the severity of the defects to be displayed;
determining a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed, wherein the graph corresponding to the defect to be displayed is used for indicating the attribute information of the defect to be displayed;
displaying a graph corresponding to the defect to be displayed;
determining a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed, wherein the determining comprises the following steps: determining first graphs according to the defect levels of the defects to be displayed, wherein the graphs comprise the first graphs, the size of the first graphs is used for indicating the defect levels of the defects to be displayed, and the number of the first graphs is equal to that of the defects to be displayed; when the defects to be displayed comprise first defects, determining a second graph according to the defect levels of the first defects, wherein the repair mode of the first defects further comprises automatic repair, the graphs further comprise the second graphs, the size of the second graphs is used for indicating the defect levels of the first defects, and the number of the second graphs is equal to the number of the first defects;
the displaying the graph corresponding to the defect to be displayed comprises the following steps: displaying a manual repair quality track when the number of the defects to be displayed is at least two, wherein the manual repair quality track is formed by arranging the first graph; and when the number of the first defects is at least two, displaying an automatic repair quality track, wherein the automatic repair quality track is formed by arranging the second graphs.
2. The method of claim 1, wherein the color of the first graphic is a first color and the color of the second graphic is a second color, the first color being different from the second color.
3. The method according to claim 2, wherein the graphics further comprise a third graphic, the size of the third graphic is used for indicating the defect level of the defect to be displayed, the number of the third graphic is equal to the number of the defect to be displayed, the third graphic comprises at least one of a graphic with the color of the first color and a graphic with the color of the second color, the recommended repair mode of the defect represented by the graphic with the color of the first color is manual repair, the recommended repair mode of the defect represented by the graphic with the color of the second color is automatic repair, and the recommended repair mode of the defect to be displayed is one of the repair modes included by the defect to be displayed;
the displaying the graph corresponding to the defect to be displayed comprises the following steps:
and displaying a comprehensive repair quality track, wherein the comprehensive repair quality track is formed by arranging the third graphs.
4. The method of claim 3, wherein the trajectory shapes of the manual repair mass trajectory, the automatic repair mass trajectory, and the composite repair mass trajectory are circular, the track radii of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, and the track circle centers of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are the same in position, the gravity center position of the first graph, the gravity center position of the second graph, the gravity center position of the third graph and the track circle center position of the manual repair quality track are positioned on the same straight line, and the gravity center position of the first graph, the gravity center position of the second graph and the gravity center position of the third graph are positioned on the same side of the center of the track of the manual repair quality track.
5. The method of claim 3, further comprising:
displaying at least one of a manual repair control, an automatic repair control and a comprehensive repair control;
when the manual repair control is displayed and a selection operation acting on the manual repair control is detected, displaying the total manual repair quality of the defects corresponding to the graphs in the manual repair quality track, wherein the manual repair quality is a value obtained by dividing the defect level of the defects corresponding to the graphs in the manual repair quality track by the code line number of the code;
when the automatic repair control is displayed and a selection operation acting on the automatic repair control is detected, displaying the sum of automatic repair qualities of the defects corresponding to the graphs in the automatic repair quality track, wherein the automatic repair qualities are values obtained by dividing the defect levels of the defects corresponding to the graphs in the automatic repair quality track by the code line number of the code;
when the comprehensive repair control is displayed and a selection operation acting on the comprehensive repair control is detected, receiving a quality expected value input by a user, and starting a repair operation on a defect to be repaired in the defect corresponding to the graph in the comprehensive repair quality track according to the quality expected value, wherein the quality expected value is an upper limit of the sum of the comprehensive repair qualities of the defect to be repaired, the comprehensive repair quality is a value obtained by dividing the defect level of the defect in the defect to be repaired by the code line number of the code, and the number of the defects to be repaired is less than or equal to the total number of the defects corresponding to the graph in the comprehensive repair quality track.
6. The method of claim 5, wherein receiving the user input of the desired value of quality comprises:
a display mass slider;
receiving an instruction of a user for adjusting the position of the mass slider, and acquiring the adjusted position of the mass slider;
and determining the expected quality value corresponding to the adjusted position according to the adjusted position.
7. The method according to any one of claims 1 to 6, wherein the repair manner of the defect to be displayed comprises manual repair, the attribute information of the defect to be displayed further comprises repair elapsed time of the defect to be displayed, and the repair elapsed time of the defect to be displayed comprises the repair elapsed time of the defect to be displayed; determining a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed, wherein the determining comprises the following steps:
determining fourth graphs according to the manual repair time consumption of the defects to be displayed, wherein the graphs comprise the fourth graphs, the size of the fourth graphs is used for indicating the manual repair time consumption of the defects to be displayed, and the number of the fourth graphs is equal to the number of the defects to be displayed;
when the defects to be displayed comprise repair modes and automatically repaired second defects, the repair time consumption of the second defects further comprises the automatic repair time consumption of the second defects, a fifth graph is determined according to the automatic repair time consumption of the second defects, the graph further comprises the fifth graph, the size of the fifth graph is used for indicating the automatic repair time consumption of the second defects, and the number of the fifth graphs is equal to the number of the second defects.
8. The method according to claim 7, wherein the displaying the graph corresponding to the defect to be displayed comprises:
when the number of the defects to be displayed is at least two, displaying a manual repair time-consuming track, wherein the manual repair time-consuming track is a track formed by arranging the fourth graph; and when the number of the second defects is at least two, displaying an automatic repair time-consuming track, wherein the automatic repair time-consuming track is a track formed by arranging the fifth graph.
9. The method of claim 8, wherein the color of the fourth graphic is a third color, the color of the fifth graphic is a fourth color, and the third color is different from the fourth color.
10. The method according to claim 9, wherein the graphics further comprise sixth graphics, the number of the sixth graphics is equal to the number of the defects to be displayed, the sixth graphics comprise at least one of graphics with the third color and graphics with the fourth color, the recommended repair manner of the defects represented by the graphics with the third color is manual repair, the recommended repair manner of the defects represented by the graphics with the fourth color is automatic repair, the size of the graphics with the third color is used for indicating that the manual repair of the defects represented by the graphics with the third color is time-consuming, the size of the graphics with the fourth color is used for indicating that the automatic repair of the defects represented by the graphics with the fourth color is time-consuming, and the recommended repair manner of the defects to be displayed is one of the repair manners included by the defects to be displayed;
the displaying the graph corresponding to the defect to be displayed comprises the following steps:
and displaying a comprehensive repair time-consuming track, wherein the comprehensive repair time-consuming track is a track formed by arranging the sixth graph.
11. The method according to claim 10, wherein the trajectory shapes of the manual repair elapsed time trajectory, the automatic repair elapsed time trajectory and the comprehensive repair elapsed time trajectory are circular, the track radiuses of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are different, and the circle centers of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are the same, the gravity center position of the fourth graph, the gravity center position of the fifth graph, the gravity center position of the sixth graph and the track circle center position of the manual repair time-consuming track are positioned on the same straight line, and the gravity center position of the fourth graph, the gravity center position of the fifth graph and the gravity center position of the sixth graph are on the same side of the circle center position of the track of the manual repair time-consuming track.
12. The method according to claim 10 or 11, characterized in that the method further comprises:
when a manual repair control is displayed and a selection operation acting on the manual repair control is detected, displaying the total manual repair time consumption of the defects corresponding to the graph in the manual repair time consumption track;
displaying the sum of the automatic repair elapsed time of the defects corresponding to the graphs in the automatic repair elapsed time trajectory when the automatic repair control is displayed and the selection operation acting on the automatic repair control is detected;
when a comprehensive repair control is displayed and a selection operation acting on the comprehensive repair control is detected, receiving a time-consuming expected value input by a user, and starting a repair operation on a to-be-repaired defect in defects corresponding to a graph in a comprehensive repair time-consuming track according to the time-consuming expected value, wherein the time-consuming expected value is an upper limit of a total sum of comprehensive repair time-consuming of the defects in the to-be-repaired defect, the comprehensive repair time-consuming time is consumed for manual repair when a recommended repair mode corresponding to the defect in the to-be-repaired defect is manual repair, the comprehensive repair time-consuming time is consumed for automatic repair when the recommended repair mode corresponding to the defect in the to-be-repaired defect is automatic repair, and the number of the to-be-repaired defects is less than or equal to the total number of the defects corresponding to the graph.
13. The method of claim 12, wherein receiving the user input of the expected elapsed time value comprises:
displaying a time-consuming slider;
receiving an instruction of a user for adjusting the position of the time-consuming slider, and acquiring the adjusted position of the time-consuming slider;
and determining the time-consuming expected value corresponding to the adjusted position according to the adjusted position.
14. The method according to claim 12, characterized in that the defect to be repaired is obtained according to the following way:
displaying at least one of a speed priority control and a quality priority control;
when the selection operation acting on the speed priority control is detected, determining the defects to be repaired according to a quality expected value and the time-consuming expected value, wherein the comprehensive repair time consumption of each defect to be repaired is less than or equal to the comprehensive repair time consumption of each defect except the defects to be repaired in the defects corresponding to the graph in the comprehensive repair time-consuming track, the quality expected value is the upper limit of the sum of the comprehensive repair quality of the defects to be repaired input by a user, and the comprehensive repair quality is a value obtained by dividing the defect level of the defects to be repaired by the code line number of the code;
and when the selection operation acted on the quality priority control is detected, determining the defects to be repaired according to the quality expected value and the time-consuming expected value, wherein the defect level of each defect in the defects to be repaired is greater than or equal to the defect level of each defect except the defects to be repaired in the defects corresponding to the graphs in the comprehensive repair time-consuming track.
15. The method of claim 14, wherein the determining the defect to be repaired according to the expected quality value and the expected time consumption value when the selection operation acting on the speed priority control is detected comprises:
if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects recommended to be automatically repaired, sequencing the defects recommended to be automatically repaired according to the automatic repair time-consuming sequence from small to large;
if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is manual repair, the defects of which the recommended repair mode is manual repair are sorted from small to large according to the time-consuming manual repair, and if the defects corresponding to the graphs in the comprehensive repair time-consuming track comprise the defects of which the recommended repair mode is automatic repair, the defects of which the recommended repair mode is manual repair are sorted after the defects of which the time-consuming automatic repair is the largest according to the time-consuming manual repair from small to large;
adding the comprehensive repair qualities of the first m sequenced defects to obtain the sum of the comprehensive repair qualities of the first m defects; adding the sorted comprehensive repair time consumption of the first m defects to obtain the sum of the comprehensive repair time consumption of the first m defects, wherein m is a positive integer and is less than the total number of defects corresponding to the graph in the comprehensive repair time consumption track;
adding the comprehensive repair qualities of the first m +1 sequenced defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects;
when the sum of the comprehensive repair time consumption of the first m defects is smaller than or equal to the expected time consumption value, the sum of the comprehensive repair quality of the first m defects is smaller than or equal to the expected quality value, and the sum of the comprehensive repair time consumption of the first m +1 defects is larger than the expected time consumption value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired.
16. The method of claim 14, wherein the determining the defect to be repaired according to the expected time-consuming value when the selection operation acting on the quality priority control is detected comprises:
sequencing the defects corresponding to the graphs in the comprehensive repair time-consuming track according to the sequence of the defect levels from high to low;
adding the comprehensive repair qualities of the first m sequenced defects to obtain the sum of the comprehensive repair qualities of the first m defects; adding the sorted comprehensive repair time consumption of the first m defects to obtain the sum of the comprehensive repair time consumption of the first m defects, wherein m is a positive integer and is less than the total number of defects corresponding to the graph in the comprehensive repair time consumption track;
adding the comprehensive repair qualities of the first m +1 sequenced defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects;
when the sum of the comprehensive repair time consumption of the first m defects is smaller than or equal to the expected time consumption value, the sum of the comprehensive repair quality of the first m defects is smaller than or equal to the expected quality value, and the sum of the comprehensive repair time consumption of the first m +1 defects is larger than the expected time consumption value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired.
17. A defect display device, comprising:
the device comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring identification information of defects to be displayed in codes, and the repair mode of the defects to be displayed comprises manual repair;
the determining unit is used for determining the attribute information of the defect to be displayed according to the identification information of the defect to be displayed and the corresponding relation between the preset identification information of the defect and the attribute information of the defect, wherein the attribute information of the defect to be displayed comprises the defect grade of the defect to be displayed, and the defect grade of the defect to be displayed is used for indicating the severity of the defect to be displayed;
the determining unit is further configured to determine a graph corresponding to the defect to be displayed according to the attribute information of the defect to be displayed, where the graph corresponding to the defect to be displayed is used to indicate the attribute information of the defect to be displayed;
the display unit is used for displaying the graph corresponding to the defect to be displayed determined by the determining unit;
wherein the determining unit is configured to: determining first graphs according to the defect levels of the defects to be displayed, wherein the graphs comprise the first graphs, the size of the first graphs is used for indicating the defect levels of the defects to be displayed, and the number of the first graphs is equal to that of the defects to be displayed; when the defects to be displayed comprise first defects, determining a second graph according to the defect levels of the first defects, wherein the repair mode of the first defects further comprises automatic repair, the graphs further comprise the second graphs, the size of the second graphs is used for indicating the defect levels of the first defects, and the number of the second graphs is equal to the number of the first defects;
the display unit is used for: displaying a manual repair quality track when the number of the defects to be displayed is at least two, wherein the manual repair quality track is formed by arranging the first graph; and when the number of the first defects is at least two, displaying an automatic repair quality track, wherein the automatic repair quality track is formed by arranging the second graphs.
18. The apparatus of claim 17, wherein the color of the first graphic is a first color and the color of the second graphic is a second color, the first color being different from the second color.
19. The apparatus according to claim 18, wherein the graphics further comprise a third graphic, the size of the third graphic is used for indicating the defect level of the defect to be displayed, the number of the third graphic is equal to the number of the defect to be displayed, the third graphic comprises at least one of a graphic with the color of the first color and a graphic with the color of the second color, the recommended repair manner of the defect represented by the graphic with the color of the first color is manual repair, the recommended repair manner of the defect represented by the graphic with the color of the second color is automatic repair, and the recommended repair manner of the defect to be displayed is one of the repair manners included by the defect to be displayed;
the display unit is used for:
and displaying a comprehensive repair quality track, wherein the comprehensive repair quality track is formed by arranging the third graphs.
20. The apparatus of claim 19, wherein the trajectory shapes of the manual repair mass trajectory, the automatic repair mass trajectory, and the composite repair mass trajectory are circular, the track radii of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are different, and the track circle centers of the manual repair quality track, the automatic repair quality track and the comprehensive repair quality track are the same in position, the gravity center position of the first graph, the gravity center position of the second graph, the gravity center position of the third graph and the track circle center position of the manual repair quality track are positioned on the same straight line, and the gravity center position of the first graph, the gravity center position of the second graph and the gravity center position of the third graph are positioned on the same side of the center of the track of the manual repair quality track.
21. The apparatus of claim 19, wherein the display unit is configured to:
displaying at least one of a manual repair control, an automatic repair control and a comprehensive repair control;
when the manual repair control is displayed and a selection operation acting on the manual repair control is detected, displaying the total manual repair quality of the defects corresponding to the graphs in the manual repair quality track, wherein the manual repair quality is a value obtained by dividing the defect level of the defects corresponding to the graphs in the manual repair quality track by the code line number of the code;
when the automatic repair control is displayed and a selection operation acting on the automatic repair control is detected, displaying the sum of automatic repair qualities of the defects corresponding to the graphs in the automatic repair quality track, wherein the automatic repair qualities are values obtained by dividing the defect levels of the defects corresponding to the graphs in the automatic repair quality track by the code line number of the code;
the device further comprises:
the receiving unit is used for receiving a quality expected value input by a user when the comprehensive repair control is displayed and a selection operation acting on the comprehensive repair control is detected;
the repairing unit is used for starting repairing operation on the defects to be repaired in the defects corresponding to the graphs in the comprehensive repairing quality track according to the quality expected value received by the receiving unit;
the quality expected value is an upper limit of the sum of comprehensive repair qualities of the defects to be repaired, the comprehensive repair qualities are values obtained by dividing defect levels of the defects to be repaired by the number of code lines of the codes, and the number of the defects to be repaired is smaller than or equal to the total number of the defects corresponding to the graphs in the comprehensive repair quality track.
22. The apparatus of claim 21,
the display unit is used for displaying the quality slider;
the receiving unit is used for receiving an instruction of a user for adjusting the position of the mass slider and acquiring the adjusted position of the mass slider;
and the determining unit is used for determining the expected quality value corresponding to the adjusted position according to the adjusted position.
23. The apparatus according to any one of claims 17 to 22, wherein the repair method of the defect to be displayed comprises manual repair, the attribute information of the defect to be displayed further comprises repair elapsed time of the defect to be displayed, and the repair elapsed time of the defect to be displayed comprises repair elapsed time of the defect to be displayed; the determining unit is configured to:
determining fourth graphs according to the manual repair time consumption of the defects to be displayed, wherein the graphs comprise the fourth graphs, the size of the fourth graphs is used for indicating the manual repair time consumption of the defects to be displayed, and the number of the fourth graphs is equal to the number of the defects to be displayed;
when the defects to be displayed comprise repair modes and automatically repaired second defects, the repair time consumption of the second defects further comprises the automatic repair time consumption of the second defects, a fifth graph is determined according to the automatic repair time consumption of the second defects, the graph further comprises the fifth graph, the size of the fifth graph is used for indicating the automatic repair time consumption of the second defects, and the number of the fifth graphs is equal to the number of the second defects.
24. The apparatus of claim 23, wherein the display unit is configured to:
when the number of the defects to be displayed is at least two, displaying a manual repair time-consuming track, wherein the manual repair time-consuming track is a track formed by arranging the fourth graph; and when the number of the second defects is at least two, displaying an automatic repair time-consuming track, wherein the automatic repair time-consuming track is a track formed by arranging the fifth graph.
25. The apparatus of claim 24, wherein the color of the fourth graphic is a third color, the color of the fifth graphic is a fourth color, and the third color is different from the fourth color.
26. The apparatus according to claim 25, wherein the graphics further comprise sixth graphics, the number of the sixth graphics is equal to the number of the defects to be displayed, the sixth graphics comprises at least one of a graphic with a color of the third color and a graphic with a color of the fourth color, the recommended repair manner of the defects represented by the graphic with the color of the third color is manual repair, the recommended repair manner of the defects represented by the graphic with the color of the fourth color is automatic repair, the size of the graphic with the color of the third color is used to indicate that the manual repair of the defects represented by the graphic with the color of the third color is time-consuming, the size of the graphic with the color of the fourth color is used to indicate that the automatic repair of the defects represented by the graphic with the color of the fourth color is time-consuming, and the recommended repair manner of the defects to be displayed is one of the repair manners included in the defects to be displayed;
the display unit is used for:
and displaying a comprehensive repair time-consuming track, wherein the comprehensive repair time-consuming track is a track formed by arranging the sixth graph.
27. The apparatus according to claim 26, wherein the trajectory shapes of the manual repair elapsed time trajectory, the automatic repair elapsed time trajectory and the comprehensive repair elapsed time trajectory are circular, the track radiuses of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are different, and the circle centers of the manual repair time-consuming track, the automatic repair time-consuming track and the comprehensive repair time-consuming track are the same, the gravity center position of the fourth graph, the gravity center position of the fifth graph, the gravity center position of the sixth graph and the track circle center position of the manual repair time-consuming track are positioned on the same straight line, and the gravity center position of the fourth graph, the gravity center position of the fifth graph and the gravity center position of the sixth graph are on the same side of the circle center position of the track of the manual repair time-consuming track.
28. The apparatus of claim 26 or 27,
the display unit is used for:
when a manual repair control is displayed and a selection operation acting on the manual repair control is detected, displaying the total manual repair time consumption of the defects corresponding to the graph in the manual repair time consumption track;
displaying the sum of the automatic repair elapsed time of the defects corresponding to the graphs in the automatic repair elapsed time trajectory when the automatic repair control is displayed and the selection operation acting on the automatic repair control is detected;
the device further comprises:
the device comprises a receiving unit, a judging unit and a judging unit, wherein the receiving unit is used for receiving a time-consuming expected value input by a user when a comprehensive repair control is displayed and a selection operation acting on the comprehensive repair control is detected;
the repairing unit is used for starting repairing operation on the defects to be repaired in the defects corresponding to the graphs in the comprehensive repairing time-consuming track according to the time-consuming expected value of the receiving unit; the time-consuming expected value is an upper limit of a sum of comprehensive repair time-consuming values of the defects to be repaired, the comprehensive repair time-consuming values are manual repair time-consuming values when a recommended repair mode corresponding to the defects in the defects to be repaired is manual repair, the comprehensive repair time-consuming values are automatic repair time-consuming values when the recommended repair mode corresponding to the defects in the defects to be repaired is automatic repair, and the number of the defects to be repaired is smaller than or equal to the total number of the defects corresponding to the graphs in the comprehensive repair time-consuming track.
29. The apparatus of claim 28,
the display unit is used for displaying the time-consuming slider;
the receiving unit is used for receiving an instruction of a user for adjusting the position of the time-consuming slider and acquiring the adjusted position of the time-consuming slider;
and the determining unit is used for determining the time-consuming expected value corresponding to the adjusted position according to the adjusted position.
30. The apparatus of claim 28,
the display unit is used for displaying at least one of the speed priority control and the quality priority control;
the determining unit is configured to determine, when a selection operation acting on the speed priority control is detected, the defects to be repaired according to a quality expected value and the time-consuming expected value, where the comprehensive repair time-consuming of each defect in the defects to be repaired is less than or equal to the comprehensive repair time-consuming of each defect, other than the defect to be repaired, in a defect corresponding to a graph in the comprehensive repair time-consuming trajectory, the quality expected value is an upper limit of a sum of comprehensive repair qualities of the defects to be repaired, which are input by a user, and the comprehensive repair quality is a value obtained by dividing a defect level of the defect in the defects to be repaired by a number of code lines of the code;
and the determining unit is used for determining the defects to be repaired according to the quality expected value and the time-consuming expected value when the selection operation acting on the quality priority control is detected, wherein the defect level of each defect to be repaired is greater than or equal to the defect level of each defect except the defects to be repaired in the defects corresponding to the graphs in the comprehensive repair time-consuming track.
31. The apparatus of claim 30, wherein upon detecting a selection operation acting on the speed priority control,
the device further comprises:
the sorting unit is used for sorting the defects with the recommended repair mode being automatic repair according to the sequence of automatic repair time consumption from small to large when the defects corresponding to the graphs in the comprehensive repair time consumption track comprise the defects with the recommended repair mode being automatic repair; the sorting unit is further configured to sort the defects whose recommended repair manner is manual repair according to the manual repair time consumption from small to large when the defects corresponding to the graphs in the comprehensive repair time consumption trajectory include the defects whose recommended repair manner is manual repair, and sort the defects whose recommended repair manner is manual repair according to the manual repair time consumption from small to large after the defects whose automatic repair time consumption is the largest when the defects corresponding to the graphs in the comprehensive repair time consumption trajectory include the defects whose recommended repair manner is automatic repair;
the calculation unit is used for adding the comprehensive repair quality of the first m sequenced defects to obtain the sum of the comprehensive repair quality of the first m defects; adding the sorted comprehensive repair time consumption of the first m defects to obtain the sum of the comprehensive repair time consumption of the first m defects, wherein m is a positive integer and is less than the total number of defects corresponding to the graph in the comprehensive repair time consumption track; the computing unit is further configured to add the sorted comprehensive repair qualities of the first m +1 defects to obtain a total sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects;
the determining unit is configured to determine that the total of the comprehensive repair time consumptions of the first m defects is less than or equal to the expected time consumption value, the total of the comprehensive repair qualities of the first m defects is less than or equal to the expected quality value, and the total of the comprehensive repair time consumptions of the first m +1 defects is greater than the expected time consumption value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired.
32. The apparatus of claim 30, wherein when a selection operation on the quality priority control is detected,
the device further comprises:
the sorting unit is used for sorting the defects corresponding to the graphs in the comprehensive repair time-consuming track from high to low according to the defect levels;
the calculation unit is used for adding the comprehensive repair quality of the first m sequenced defects to obtain the sum of the comprehensive repair quality of the first m defects; adding the sorted comprehensive repair time consumption of the first m defects to obtain the sum of the comprehensive repair time consumption of the first m defects, wherein m is a positive integer and is less than the total number of defects corresponding to the graph in the comprehensive repair time consumption track; the computing unit is further configured to: adding the comprehensive repair qualities of the first m +1 sequenced defects to obtain the sum of the comprehensive repair qualities of the first m +1 defects; adding the sorted comprehensive repair time consumptions of the first m +1 defects to obtain the sum of the comprehensive repair time consumptions of the first m +1 defects;
the determining unit is configured to determine that the total of the comprehensive repair time consumptions of the first m defects is less than or equal to the expected time consumption value, the total of the comprehensive repair qualities of the first m defects is less than or equal to the expected quality value, and the total of the comprehensive repair time consumptions of the first m +1 defects is greater than the expected time consumption value; or when the sum of the comprehensive repair time consumption of the first m defects is less than or equal to the time consumption expected value, the sum of the comprehensive repair quality of the first m defects is less than or equal to the quality expected value, and the sum of the comprehensive repair quality of the first m +1 defects is greater than the quality expected value, determining the first m defects as the defects to be repaired.
CN201610640366.4A 2016-08-05 2016-08-05 Defect display method and device Active CN107688527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610640366.4A CN107688527B (en) 2016-08-05 2016-08-05 Defect display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610640366.4A CN107688527B (en) 2016-08-05 2016-08-05 Defect display method and device

Publications (2)

Publication Number Publication Date
CN107688527A CN107688527A (en) 2018-02-13
CN107688527B true CN107688527B (en) 2020-08-07

Family

ID=61151237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610640366.4A Active CN107688527B (en) 2016-08-05 2016-08-05 Defect display method and device

Country Status (1)

Country Link
CN (1) CN107688527B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829576A (en) * 2018-04-14 2018-11-16 温州职业技术学院 A kind of software defect detection method and its detection system
CN109726123A (en) * 2018-12-20 2019-05-07 北京每日优鲜电子商务有限公司 The detection system and detection method of code quality

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101785009A (en) * 2007-08-20 2010-07-21 恪纳腾公司 Computer-implemented methods for determining if actual defects are potentially systematic defects or potentially random defects
CN103294598A (en) * 2013-05-28 2013-09-11 华为技术有限公司 Method and device for source code inspection
CN103309804A (en) * 2013-04-08 2013-09-18 中国电子科技集团公司第十研究所 Automatic code rule checking platform
CN103577318A (en) * 2012-08-07 2014-02-12 腾讯科技(深圳)有限公司 Code detection method and device
CN103970657A (en) * 2014-05-09 2014-08-06 中国联合网络通信集团有限公司 Software defect detection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2774575A1 (en) * 2011-04-19 2012-10-19 Monoidics Ltd. System and method for display of software quality

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101785009A (en) * 2007-08-20 2010-07-21 恪纳腾公司 Computer-implemented methods for determining if actual defects are potentially systematic defects or potentially random defects
CN103577318A (en) * 2012-08-07 2014-02-12 腾讯科技(深圳)有限公司 Code detection method and device
CN103309804A (en) * 2013-04-08 2013-09-18 中国电子科技集团公司第十研究所 Automatic code rule checking platform
CN103294598A (en) * 2013-05-28 2013-09-11 华为技术有限公司 Method and device for source code inspection
CN103970657A (en) * 2014-05-09 2014-08-06 中国联合网络通信集团有限公司 Software defect detection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
使用IBM Rational ClearQuest创建缺陷分析报告图;王黎;《http://www.51testing.com/html/03/n-83303.html》;20080528;全文 *

Also Published As

Publication number Publication date
CN107688527A (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN109767419A (en) Data generating device, data creation method and storage medium
CN113780691B (en) Data testing method and device, electronic equipment and storage medium
CN110610197A (en) Method and device for mining difficult sample and training model and electronic equipment
CN111259772A (en) Image annotation method, device, equipment and medium
CN111915549A (en) Defect detection method, electronic device and computer readable storage medium
CN110166991A (en) For the method for Positioning Electronic Devices, unit and storage medium
CN111950738A (en) Machine learning model optimization effect evaluation method and device, terminal and storage medium
CN107688527B (en) Defect display method and device
CN111340054A (en) Data labeling method and device and data processing equipment
CN109446095A (en) A kind of test method, device and the electronic equipment of page presentation speed
CN113504935A (en) Software development quality evaluation method and device, electronic equipment and readable storage medium
CN115861153A (en) Image detection method, computer device and storage medium
US20140241618A1 (en) Combining Region Based Image Classifiers
CN115576828A (en) Test case generation method, device, equipment and storage medium
CN113742069A (en) Capacity prediction method and device based on artificial intelligence and storage medium
CN110297764A (en) Loophole test model training method and device
CN105068924A (en) Method and apparatus for testing performance of application
CN112633689A (en) Object grade display method and device, electronic equipment and readable storage medium
CN111784053A (en) Transaction risk detection method, device and readable storage medium
CN101673233A (en) Scheduling method of test items and scheduling system thereof
CN111311393A (en) Credit risk assessment method, device, server and storage medium
CN107423488B (en) Automatic generating system and method for plane jig frame diagram
CN112712119B (en) Method and device for determining detection accuracy of target detection model
CN110955548A (en) Data processing method and device
CN113902457B (en) Method and device for evaluating reliability of house source information, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210421

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right