CN116028359A - Rail transit software defect management platform and method - Google Patents

Rail transit software defect management platform and method Download PDF

Info

Publication number
CN116028359A
CN116028359A CN202211731645.3A CN202211731645A CN116028359A CN 116028359 A CN116028359 A CN 116028359A CN 202211731645 A CN202211731645 A CN 202211731645A CN 116028359 A CN116028359 A CN 116028359A
Authority
CN
China
Prior art keywords
target
defect
module
software
defects
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.)
Pending
Application number
CN202211731645.3A
Other languages
Chinese (zh)
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.)
Traffic Control Technology TCT Co Ltd
Beijing MTR Construction Administration Corp
Original Assignee
Traffic Control Technology TCT Co Ltd
Beijing MTR Construction Administration Corp
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 Traffic Control Technology TCT Co Ltd, Beijing MTR Construction Administration Corp filed Critical Traffic Control Technology TCT Co Ltd
Priority to CN202211731645.3A priority Critical patent/CN116028359A/en
Publication of CN116028359A publication Critical patent/CN116028359A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention provides a rail transit software defect management platform and a method, wherein the management platform comprises the following components: the device comprises a defect acquisition module, a defect analysis module and a rule generation module; the defect acquisition module is used for acquiring target defects and sending the target defects to the defect analysis module, and the target types are predetermined based on each sample defect and a preset metric element which appear in sample software; the defect analysis module is used for acquiring reasons for each target defect, determining target reasons among the reasons and sending the target reasons to the rule generation module; the rule generation module is used for generating code writing rules corresponding to the target reasons based on the target reasons. The invention provides a track traffic software defect management platform and a track traffic software defect management method, which can provide technical guidance for technicians in subsequent software development work, so that the technicians can write codes based on the code writing rules, the quality of the subsequently developed software can be improved, and the track traffic software defect management platform and the track traffic software defect management method have lower limitation and higher practicability.

Description

Rail transit software defect management platform and method
Technical Field
The invention relates to the technical field of rail transit, in particular to a rail transit software defect management platform and method.
Background
Rail transit has become an integral part of modern life. Along with the development of intelligent technology, various intelligent software is widely applied to the operation and maintenance of rail transit.
In general, any minor defect in the rail transit software may create a great potential safety hazard in the operation and/or maintenance of rail transit, and the demands of users in the technical field of rail transit are becoming variable and diversified. Therefore, how to efficiently distribute high-quality and high-safety rail transit software has become a research hotspot in the technical field of rail transit.
The defect management platform in the prior art can only count and record defects, has strong limitation and low practicability. Therefore, how to reduce the limitation of the defect management platform, thereby improving the practicability of the defect management platform is a technical problem to be solved in the field.
Disclosure of Invention
The invention provides a defect management platform and a defect management method for rail transit software, which are used for solving the defects of strong limitation and low practicability of the defect management platform in the prior art, and reducing the limitation of the defect management platform so as to improve the practicability of the defect management platform.
The invention provides a rail transit software defect management platform, which comprises: the device comprises a defect acquisition module, a defect analysis module and a rule generation module;
the defect acquisition module is used for acquiring target defects, and sending the target defects to the defect analysis module, wherein the target defects are defects with the defect types of target types in defects in rail transit software to be managed, the number of the target defects is a plurality of, and the target types are predetermined based on sample defects and preset metric elements in sample software;
the defect analysis module is used for acquiring reasons for each target defect under the condition that the target defect is received, determining target reasons among the reasons, and sending the target reasons to the rule generation module;
the rule generation module is used for generating a code writing rule corresponding to the target reason based on the target reason under the condition that the target reason is received.
The invention provides a defect management platform for rail transit software, which further comprises: the system comprises a user interaction interface, a defect scanning module and a quality evaluation module;
The rule generation module is further used for sending the code writing rule to the user interaction interface after the code writing rule is generated;
the user interaction interface is used for displaying the code writing rule under the condition that the code writing rule is received;
the defect scanning module is used for acquiring the probability of occurrence of defects of a target type in a target period of rail transit software to be evaluated and sending the probability to the quality evaluation module;
the quality evaluation module is used for performing quality evaluation on the rail traffic software to be evaluated based on the probability under the condition that the probability is received, and obtaining a quality evaluation result of the rail traffic software to be evaluated;
the starting time of the target period is a time of a preset duration from the time of displaying the code writing rule by the user interaction interface.
According to the track traffic software defect management platform provided by the invention, the user interaction interface is further used for sending a first instruction to the defect acquisition module under the condition that a first input of a user is received, wherein the first input and the first instruction both carry the target type;
The defect acquisition module is used for responding to the first instruction under the condition that the first instruction is received, and acquiring the target defect by utilizing a web crawler technology based on the target type.
The invention provides a defect management platform for rail transit software, which further comprises: the data query module and the data storage module;
the data storage module is used for storing defect information of the target defect;
the user interaction interface is further used for sending a second instruction to the data query module under the condition that a second input of a user is received, and displaying the query result under the condition that the query result sent by the data query module is received, wherein the second input and the second instruction both carry query conditions;
and the data query module is used for responding to the second instruction under the condition of receiving the second instruction, performing data query in the data storage module based on the query condition, acquiring the query result and sending the query result to the user interaction interface.
The invention provides a defect management platform for rail transit software, which further comprises: a data modification module;
The user interaction interface is further configured to send a third instruction to the data modification module when a third input of a user is received, where the third input and the third instruction both carry modification information, or the third input and the third instruction both carry deletion information;
the data modification module is configured to, when receiving the third instruction, respond to the third instruction, modify information corresponding to the modification information in the data storage module based on the modification information carried in the third instruction, or delete information corresponding to the deletion information in the data storage module based on the deletion information carried in the third instruction.
According to the track traffic software defect management platform provided by the invention, after receiving the target defects, the defect analysis module is specifically configured to determine a preset reason with highest matching degree with each target defect among preset reasons as a reason for causing each target defect to occur, and further determine a target reason among the reasons for causing each target defect to occur based on distribution conditions of each preset reason among the reasons.
The invention provides a defect management platform for rail transit software, which further comprises: a defect type extraction module;
the defect type extraction module is used for determining the target type based on the preset metric element and each sample defect occurring in sample software.
The invention also provides a rail transit software defect management method based on the rail transit software defect management platform, which comprises the following steps:
the invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the rail transit software defect management method according to any one of the above when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a rail transit software defect management method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a rail transit software defect management method as described in any one of the above.
According to the track traffic software defect management platform and the track traffic software defect management method, the defect acquisition module can acquire the defect with the defect type being the target type from defects in track traffic software to be managed as the target defect, the defect analysis module can acquire the reasons for the occurrence of the target defect, the target reasons are determined among the reasons, and the code writing rule corresponding to the target reasons can be generated based on the rule generation module, so that technical guidance can be provided for technicians in subsequent software development work, the technicians can write codes based on the code writing rule, defects in the software to be developed subsequently can be reduced, the quality of the software to be developed subsequently can be improved, the track traffic software defect management platform has lower limitation and higher practicability, the user requirements can be met better, and the user perception is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a defect management platform for rail transit software according to the present invention;
FIG. 2 is a schematic flow chart of a defect management method of rail transit software provided by the invention;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the invention, it should be noted that, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
Fig. 1 is a schematic structural diagram of a defect management platform for rail transit software provided by the invention. The defect management platform of the rail transit software provided by the invention is described below with reference to fig. 1. As shown in fig. 1, the track traffic software defect management platform includes: a defect acquisition module 101, a defect analysis module 102, and a rule generation module 103;
the defect obtaining module 101 is configured to obtain target defects, and send the target defects to the defect analyzing module 102, where the target defects are defects with a target type among defects in the rail transit software to be managed, the number of target defects is multiple, and the target type is predetermined based on each sample defect in the sample software and a preset metric.
Specifically, the rail transit software to be managed in the embodiment of the present invention may be predetermined based on priori knowledge and/or actual conditions. Based on the defect management platform of the rail transit software provided by the invention, the rail transit software to be managed can be subjected to defect management.
Alternatively, the above-described rail transit software to be managed may be determined based on project management requirements.
It will be appreciated that the number of rail transit software to be managed may be one or more.
The defect obtaining module 101 in the embodiment of the present invention may obtain, from among defects occurring in the rail transit software to be managed, a defect whose defect type is a target type, and may determine the defect as a target defect. For example: the method comprises the steps that a web crawler technology can be utilized to obtain all defects in rail transit software to be managed, and then the defects with the defect types of target types in all defects can be obtained through condition judgment to serve as target defects; or, based on the input of the user, the defect with the defect type of the target type in the defects in the rail transit software to be managed can be obtained and used as the target defect. The specific manner in which the defect obtaining module 101 obtains the target defect is not limited in the embodiment of the present invention.
It should be noted that the metric element may be used to describe the software and may be used to make a software defect prediction. The metrics can be divided into code metrics and process metrics. The code metrics may describe the size and complexity of the software. For evolving software, code changes generated in the software evolution process are main reasons for generating defects, and the process metric element can reflect the complexity of software development processes such as software code changes and the like. Different process metrics may reflect information about the software development process from different angles, and the different process metrics are not as capable of reflecting defects.
The preset metrics in embodiments of the present invention may include code metrics and/or process metrics. The predetermined metric may be determined based on a priori knowledge and/or actual conditions. The preset metrics are not limited in the embodiment of the present invention.
It should be noted that, based on priori knowledge and/or actual conditions, the sample software may also be determined, and further, the target type may be determined based on each sample defect occurring in the sample software and a preset metric element.
Alternatively, the software identical to or similar to the dimension of the rail transit software to be managed may be determined as the sample software based on the software type, the software function, the development language of the software, the project to which the software belongs, and the like.
It should be noted that, the sample software may be track traffic software or non-track traffic software.
In the embodiment of the invention, the target type can be determined in various modes based on each sample defect in the sample software and the preset metric element. The determination of the type of object based on each sample defect occurring in the sample software and the preset metrics is described below by way of one example.
In this example, the preset metrics may include test version, defect type, defect severity, and priority.
Based on the preset measuring elements, the sample defect distribution condition corresponding to each preset measuring element can be determined. For example: the sample defect distribution conditions corresponding to the test version metric element comprise: the number of defects with the test version A and the test version B in the defects of each sample is a, and the number of defects with the test version A and the test version B is B; the sample defect distribution condition corresponding to the defect type metric element comprises: the number of defects of type C among the defects of each sample is C, the data of type D is D, and so on.
Based on the sample defect distribution situation corresponding to each preset metric element, the sample defect distribution situation corresponding to each preset metric element can be counted based on preset dimensions by a defect arrival analysis method and an orthogonal defect classification method (Orthogonal Defect Classification, ODC), so that the target type can be determined based on a counting result.
The preset dimensions may include the number S of occurrence of the preset type of defect, the defect density d, and the thousand-line code defect rate S in a unit time period.
Defect density d=d of functional point 1 /F 1 ,D 1 Representing the number of defects of each sample, F 1 Representing the number of functional points in the sample software.
Thousand-line code defect rate s=d 2 *S 1 /1000,D 2 Representing the number of defects per thousand lines of code in the sample software, S 1 Indicating the number of lines of code modification.
Optionally, based on the preset dimensions, counting the sample defect distribution situation corresponding to each preset metric element, after obtaining a statistical result, performing normal distribution statistics on the statistical result based on the preset weights corresponding to each preset dimension, obtaining a discrete distribution situation of the statistical result, and obtaining a standard deviation and a variance of the statistical result, and further determining the target type based on the discrete distribution situation and the standard deviation and the variance.
It should be noted that the statistical result and/or the discrete distribution condition may be displayed in a chart or the like.
It will be appreciated that the number of object types in embodiments of the present invention may be one or more. Accordingly, the number of target defects may be plural.
The defect acquiring module 101 acquires, as a target defect, a defect whose defect type is a target type among defects occurring in the rail transit software to be managed, and then sends the target defect to the defect analyzing module 102.
The defect analysis module 102 is configured to, when receiving the target defects, obtain a cause of each target defect, determine a target cause among the causes, and send the target cause to the rule generation module 103.
Specifically, the defect analysis module 102 may acquire the cause of occurrence of each target defect in a variety of ways in the case of receiving the target defect transmitted from the defect acquisition module 101. For example: the defect analysis module 102 may obtain the cause of each target defect by means of mathematical statistics, big data analysis, condition judgment, deep learning technique, and the like. The specific manner in which the defect analysis module 102 obtains the cause of each target defect is not limited in the embodiment of the present invention.
It should be noted that, the reasons for causing the defects in the embodiments of the present invention may include, but are not limited to, the following.
The array is out of range. If the array has defined a fixed data length and the protection determination is not performed on the subscript of the incoming parameter before use, the incoming parameter may be larger than the fixed length of the array, and direct use may cause the subscript to cross the boundary, resulting in abnormal data acquisition.
The data type conversion is inconsistent. Defining the device ID type as a big data type, if a small data type is used for acceptance, the risk of data truncation exists, and the device ID acquisition is wrong.
And (5) circulating operation boundary processing. The loop control variable is judged to be smaller than or equal to the actual service requirement.
The floating point data type determines an error. If the floating point data is directly judged whether to think, the precision is lost, and the judgment is inaccurate.
It is determined that no data is received within the configuration period. If it is determined that no data is received within the configuration period, the device communication is interrupted.
Fault-directed safety side handling. In the actual application process, the function return value is set to be successful, and if the function implementation error exists and the return function default value is successful, the dangerous measurement is guided.
Misjudgment of safety testing scene. When designing the safety function, the scene on the unsafe side needs to be researched and judged, and the rest abnormal scenes output the safe side and meanwhile need to be annotated and explained.
Priority handles errors. In the multi-condition judgment or operation, brackets are required to be used for carrying out priority classification, and if the priority processing is wrong, the code implementation is inconsistent with the design.
The data following fails. The main data and the standby data are followed, and the data with changed equipment state are needed to be followed, otherwise, the data are easy to fail to follow, and equipment downtime is caused.
Special scene cut point data transfer errors. In the practical application process, there is one centralized area of the control command device, the execution command device is in the other centralized area, the two centralized areas are physically isolated, if the control command is transmitted and sent in error, the response failure of the execution command device can be caused.
After the defect analysis module 102 obtains the cause for each target defect, the target cause may be further determined among the above causes in a plurality of ways;
for example: the defect analysis module 102 may count the number of defects with the same cause in each piece of software to be managed, and determine the most number of the same causes in each piece of software to be managed as the target cause, or determine the same causes with the number exceeding the first preset value as the target cause;
for another example, the defect analysis module 102 may also count the number of defects with the same cause in all the software to be managed, and determine the most number of the same causes in all the software to be managed as the target cause, or determine the same cause with the number exceeding the second preset value as the target cause;
For another example, the defect analysis module 102 may determine the target cause for the cause corresponding to the error unguided security (unguarded processing) according to a functional security level corresponding to the cause, where the functional security level may be used to describe an effect of the defect caused by the cause on the software functional security, and the functional security level includes not affecting the software functional security (having a safeguard measure) and not having an error unguarded (unguarded processing).
The specific manner in which the defect analysis module 102 determines the target cause among the above causes is not limited in the embodiment of the present invention.
After acquiring the target cause causing the occurrence of the target defect, the defect analysis module 102 may send the cause to the rule generation module 103.
It will be appreciated that the number of target causes may be one or more.
The rule generating module 103 is configured to generate, when receiving the target reason, a code writing rule corresponding to the target reason based on the target reason.
Specifically, when the target cause sent by the defect analysis module 102 is received, the rule generation module 103 may generate, based on the target cause, a code writing rule corresponding to the target cause based on a MirsC rule or a preset encoding rule.
After the rule generating module 103 generates the code writing rule corresponding to the target reason, the code writing rule can be output, so that a technician can write the code based on the code writing rule in subsequent software development work, thereby reducing defects in the subsequently developed software and improving the quality of the subsequently developed software.
The track traffic software defect management platform in the embodiment of the invention can acquire the defect with the defect type being the target type from the defects in the track traffic software to be managed as the target defect based on the defect acquisition module, can acquire the reason for the occurrence of the target defect based on the defect analysis module, can determine the target reason among the reasons, and can generate the code writing rule corresponding to the target reason based on the rule generation module, thereby providing technical guidance for technicians in subsequent software development work, enabling the technicians to write the code based on the code writing rule, reducing the defects in the subsequently developed software, improving the quality of the subsequently developed software, and the track traffic software defect management platform has lower limitation and higher practicability, can better meet the user requirements and improve the user perception.
Based on the foregoing content of each embodiment, the track traffic software defect management platform further includes: the system comprises a user interaction interface, a defect scanning module and a quality evaluation module;
the rule generating module 103 is further configured to send the code writing rule to the user interaction interface after generating the code writing rule;
the user interaction interface is used for displaying the code writing rule under the condition that the code writing rule is received;
the defect scanning module is used for acquiring the probability of occurrence of the defects of the target type in the target period of the rail transit software to be evaluated and sending the probability to the quality evaluation module;
the quality evaluation module is used for performing quality evaluation on the rail transit software to be evaluated based on the probability under the condition that the probability is received, and obtaining a quality evaluation result of the rail transit software to be evaluated;
the starting time of the target time period is a time of a preset duration from the time of displaying the code writing rule on the user interaction interface.
Specifically, after the rule generating module 103 generates the code writing rule corresponding to the target reason, the code writing rule may be sent to the user interaction interface.
The user interaction interface may display the code composition rule for viewing by the user after receiving the code composition rule sent by the rule generation module 103.
It will be appreciated that after looking up the code writing rules through the user interaction interface, the user may perform subsequent software development work based on the code writing rules. The defect scanning module in the embodiment of the invention can evaluate the quality of the subsequently developed software after the code writing rule is displayed on the user interaction interface.
According to the embodiment of the invention, the software which needs to be judged whether the quality is improved or not can be determined as the rail transit software to be evaluated according to the actual requirements.
It can be appreciated that the number of rail transit software to be evaluated in the embodiment of the present invention may be one or more.
The defect scanning module in the embodiment of the invention can obtain the probability of occurrence of the defects of the target type in the target period of the rail transit software to be evaluated in various modes, for example: the defect scanning module can acquire the number of all defects of the to-be-detected traffic software in the target period through a static scanning tool C++ text, determine the number of which the defect type is the target defect in all the defects through the modes of condition judgment, deep learning technology and the like, and further acquire the probability of the occurrence of the defects of the target type in the target period of the to-be-evaluated track traffic software through numerical calculation based on the number of all the defects and the number of which the defect type is the target defect. In the embodiment of the invention, the specific mode of acquiring the probability of occurrence of the target type defect of the rail transit software to be evaluated in the target period by the defect scanning module is not limited.
It should be noted that, the starting time of the target period is a time of a preset duration from a time of displaying the code writing rule on the user interaction interface, and the ending time of the target period may be a time of a second preset duration from the starting time. The preset duration and the second preset duration may be determined according to priori knowledge and/or actual conditions, which is not limited in the embodiment of the present invention.
After the defect scanning module obtains the probability that the rail transit software to be evaluated has the defects of the target type in the target period, the probability can be sent to the quality evaluation module.
The quality evaluation module may evaluate the quality of the rail traffic software to be evaluated based on the probability under the condition that the probability is received, by various modes, to obtain a quality evaluation result of the rail traffic software to be evaluated, for example: and the quality evaluation module can determine the information representing the quality of the rail traffic software to be evaluated as a quality evaluation result of the rail traffic software to be evaluated under the condition that the probability is lower than the preset probability. In the embodiment of the invention, the specific mode for evaluating the quality of the rail transit software to be evaluated based on the probability by the quality evaluation module is not limited.
Optionally, after the preset time, the defect scanning module in the embodiment of the present invention may be further configured to periodically obtain a probability that the rail traffic software to be evaluated has a target type of defect in a unit duration, and send the probability obtained in each period to the quality evaluation module.
The quality evaluation module may evaluate the quality of the rail traffic software to be evaluated based on the probability acquired in each period, to obtain a quality evaluation result of the rail traffic software to be evaluated, for example: in the case that the quality evaluation module determines that the probability acquired in each period converges, information indicating that the quality of the rail transit software to be evaluated is superior may be determined as a quality evaluation result of the rail transit software to be evaluated.
It should be noted that, the preset time may be a time of a third preset duration from a time when the user interaction interface displays the code writing rule. The third preset duration may be determined according to priori knowledge and/or actual conditions. In the embodiment of the present invention, the specific value of the third preset duration is not limited.
After the defect scanning module obtains the probability that the rail transit software to be evaluated has the defects of the target type in the target period, the probability can be sent to the user interaction interface.
The user interaction interface may display the probabilities after receiving the probabilities.
After the quality evaluation module obtains the quality evaluation result of the rail transit software to be evaluated, the quality evaluation result can be sent to the user interaction interface.
The user interaction interface may display the quality assessment result after receiving the quality assessment result.
The track traffic software defect management platform in the embodiment of the invention can display the code writing rule based on the user interaction interface, can acquire the probability of occurrence of the target type defect of the track traffic software to be evaluated in the target period based on the defect scanning module, can perform quality evaluation on the track traffic software to be evaluated based on the probability based on the quality evaluation module, and can acquire the quality evaluation result of the track traffic software to be evaluated, can verify the realization effect of the code writing rule, can realize closed-loop management of the defect, and can further improve the practicability of the track traffic software defect management platform.
Based on the content of the above embodiments, the user interaction interface is further configured to send a first instruction to the defect obtaining module 101 when receiving a first input of a user, where the first input and the first instruction both carry a target type;
The defect acquisition module 101 is configured to, in response to the first instruction, acquire the target defect using a web crawler technology based on the target type.
Specifically, the user interaction interface may send the first instruction carrying the target type to the defect acquisition module 101 after receiving the first input of the user carrying the target type.
It should be noted that, the first input of the user may be represented as a touch output to the user interaction interface, and the touch output may include, but is not limited to, a click input, a slide input, a press input, and the like. The first input of the user may also be represented as a physical key input corresponding to the user interaction interface. The first input of the user may also be represented as a voice input.
It is to be understood that each of the above listed inputs is an exemplary list, i.e., embodiments of the present application include, but are not limited to, each of the above listed inputs. In practical implementation, the first input of the user may further include any other possible input, which may be specifically determined according to the actual use requirement, and the embodiment of the present application is not limited.
The defect obtaining module 101 may obtain the target defect using a web crawler technology based on the target type in response to the first instruction when receiving the first instruction.
Optionally, in response to the first quality, the defect obtaining module 101 may splice URL addresses according to a target type, and then implement data transmission and data obtaining by using a web crawler technology based on the URL addresses, so as to obtain the target data.
In the embodiment of the invention, the user interaction interface sends the first instruction carrying the target type to the defect acquisition module under the condition of receiving the first input carrying the target type, and the defect acquisition module responds to the first quality and acquires the target defect by utilizing the web crawler technology based on the target type, so that the efficiency and the accuracy for acquiring the target defect can be improved.
Based on the foregoing content of each embodiment, the track traffic software defect management platform further includes: the data query module and the data storage module;
the data storage module is used for storing defect information of the target defect;
the user interaction interface is further used for sending a second instruction to the data query module under the condition that a second input of a user is received, and displaying the query result under the condition that the query result sent by the data query module is received, wherein the second input and the second instruction both carry query conditions;
And the data query module is used for responding to the second instruction under the condition of receiving the second instruction, performing data query in the data storage module based on the query condition, acquiring a query result and sending the query result to the user interaction interface.
Specifically, the rail transit software defect management platform in the embodiment of the invention also has a query function.
After receiving the second input of the user carrying the query condition, the user interaction interface may send a second instruction carrying the query condition to the data query module.
It should be noted that the second input of the user may be represented as a touch output to the user interaction interface, and the touch output may include, but is not limited to, a click input, a slide input, a press input, and the like. The second input of the user can also be represented as a physical key input corresponding to the user interaction interface. The second input of the user may also be represented as a voice input.
It is to be understood that each of the above listed inputs is an exemplary list, i.e., embodiments of the present application include, but are not limited to, each of the above listed inputs. In practical implementation, the second input of the user may further include any other possible input, which may be specifically determined according to the actual use requirement, and the embodiment of the present application is not limited.
When the data query module receives the second instruction, the data query module may respond to the second instruction and perform data query in the data storage module storing the defect information of the target defect based on the query condition, so as to obtain a query result corresponding to the query condition.
It should be noted that, the defect information in the embodiment of the present invention may include, but is not limited to, version information, belonging software, defect type, defect identifier, test tag, issue code, issue description, corrected code, defect type, and focus point.
After obtaining the query result corresponding to the query condition, the data query module may send the query result to the user interaction interface.
The user interaction interface may display the query result when the query result is received.
The track traffic software defect management platform provided by the embodiment of the invention can realize the storage of defect information of target defects based on the data storage module, can perform data query based on the data query module, can further improve the practicability of the track traffic software defect management platform, can better meet the requirements of users, and improves the perception of users.
Based on the content of the above embodiments, further comprising: a data modification module;
the user interaction interface is further used for sending a third instruction to the data modification module under the condition that a third input of a user is received, wherein the third input and the third instruction carry modification information, or the third input and the third instruction carry deletion information;
the data modification module is used for responding to the third instruction under the condition that the third instruction is received, modifying information corresponding to the modification information in the data storage module based on the modification information carried in the third instruction, or deleting information corresponding to the deletion information in the data storage module based on the deletion information carried in the third instruction.
Specifically, the rail transit software defect management platform in the embodiment of the invention also has the functions of modification and deletion.
After receiving the third input of the user carrying the modification information or the deletion information, the user interaction interface may send a third instruction carrying the modification information or the deletion information to the data modification module.
It should be noted that the third input of the user may be represented as a touch output to the user interaction interface, and the touch output may include, but is not limited to, a click input, a slide input, a press input, and the like. The third input of the user may also be represented as a physical key input corresponding to the user interaction interface. The third input of the user may also be represented as a voice input.
It is to be understood that each of the above listed inputs is an exemplary list, i.e., embodiments of the present application include, but are not limited to, each of the above listed inputs. In practical implementation, the third input of the user may further include any other possible input, which may be specifically determined according to the actual use requirement, and the embodiment of the present application is not limited.
When the data modification module receives the third instruction, the data modification module may modify information corresponding to the modification information in the data storage module based on the modification information carried by the third instruction in response to the third instruction, or may delete information corresponding to the deletion information in the data storage module based on the deletion information carried by the third instruction in response to the third instruction.
The defect management platform for the rail transit software in the embodiment of the invention can realize the modification and deletion of the defect information stored in the data storage module based on the data modification module, can further improve the practicability of the defect management platform for the rail transit software, can better meet the requirements of users and improves the perception of the users.
Based on the foregoing embodiments, after receiving the target defects, the defect analysis module 102 is specifically configured to determine, as a cause for each target defect, a preset cause having a highest matching degree with each target defect from among the preset causes, and further determine, based on a distribution of each preset cause among the causes, a target cause among the causes for each target defect.
Specifically, after receiving the target defects sent by the defect acquisition module 101, the defect analysis module 102 may acquire the matching degree between each preset cause and each target defect by means of numerical calculation, mathematical statistics, condition judgment, or deep learning technology.
It should be noted that, the preset reason in the embodiment of the present invention may be predetermined according to priori knowledge and/or actual situations. For example: the preset reasons may include some or all of "array out-of-range", "inconsistent data type conversion", "loop operation boundary processing", "floating point data type determination error", "no data received in the determination configuration period", "fault-oriented safety side processing", "safety test scene misjudgment", "priority processing error", "data following failure", "special scene demarcation point data transfer error".
After the defect analysis module 102 obtains the matching degree between each preset cause and each target defect, the preset cause with the highest matching degree with each target defect in the preset causes may be determined as the cause for each target defect.
The cause of any target defect is a certain preset cause. After determining the cause of each target defect, the defect analysis module 102 may obtain, through mathematical statistics, a distribution of each preset cause among the causes of each target defect, for example, the distribution may include a preset cause a of 50%, a preset cause B of 20% and a preset cause C of 30% among the causes of each target defect.
After the defect analysis module 102 obtains the distribution situation of each preset reason among the reasons for causing each target defect to occur, the preset reason with the largest occurrence number may be determined as the target reason, or the target reason may be determined after performing numerical calculation on the distribution situation based on the preset weight.
The defect distribution module in the embodiment of the invention determines the cause of each target defect by determining the preset cause with the highest matching degree with each target defect in the preset causes, and further determines the target cause in the causes of each target defect more accurately and more efficiently based on the distribution condition of each preset cause in the causes.
Based on the content of the above embodiments, further comprising: a defect type extraction module;
the defect type extraction module is used for determining the target type based on a preset metric element and each sample defect occurring in sample software.
Specifically, the defect type extraction module in the embodiment of the present invention may determine the target type based on a preset metric and each sample defect occurring in the sample software.
It should be noted that, the specific example of determining the target type by the defect type extraction module based on the preset metrics and each sample defect occurring in the sample software may be referred to the above embodiment, and will not be described in detail in the embodiment of the present invention.
Optionally, the defect type extracting module in the embodiment of the present invention may be further configured to obtain each sample defect occurring in the sample software. For example, the defect type extraction module may obtain the sample defects based on user input. The input of the user may include defect type, defect identifier, test label, issue code, issue description, corrected code, defect type, and focus point.
The rail transit software defect management platform in the embodiment of the invention can determine the target type based on the defect type extraction model, and can improve the efficiency of determining the target type.
Fig. 2 is a schematic flow chart of a defect management method of rail transit software provided by the invention. The defect management method of the rail transit software of the present invention is described below with reference to fig. 2. As shown in fig. 2, the method includes: step 201, obtaining target defects, wherein the target defects are defects with the defect types of target types in defects in rail transit software to be managed, the number of the target defects is multiple, and the target types are predetermined based on the sample defects in sample software and preset measuring elements;
step 202, acquiring reasons for each target defect, and determining target reasons among the reasons;
And 203, generating a code writing rule corresponding to the target reason based on the target reason.
Specifically, the invention also provides a defect management method of the rail transit software, which is realized based on the defect management platform of the rail transit software.
It should be noted that, specific steps and implementation manners of the defect management method for rail transit software in the embodiment of the present invention may be referred to the content of each embodiment, and the embodiments of the present invention are not repeated.
According to the embodiment of the invention, after the target defects are obtained, the reasons for each target defect are obtained, the target reasons are determined in the reasons, and then the code writing rules corresponding to the target reasons are generated based on the target reasons, so that technical guidance can be provided for technicians in subsequent software development work, the technicians can write the codes based on the code writing rules, defects in the subsequently developed software can be reduced, the quality of the subsequently developed software can be improved, the rail transit software defect management platform has lower limitation and higher practicability, the user requirements can be better met, and the user perception is improved.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to perform a rail transit software defect management method comprising: acquiring target defects, wherein the target defects are defects with the defect types of target types in defects in rail transit software to be managed, the number of the target defects is multiple, and the target types are predetermined based on sample defects and preset measuring elements in sample software; acquiring reasons for each target defect, and determining the target reason among the reasons; and generating code writing rules corresponding to the target reasons based on the target reasons.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the rail transit software defect management method provided by the above methods, the method comprising: acquiring target defects, wherein the target defects are defects with the defect types of target types in defects in rail transit software to be managed, the number of the target defects is multiple, and the target types are predetermined based on sample defects and preset measuring elements in sample software; acquiring reasons for each target defect, and determining the target reason among the reasons; and generating code writing rules corresponding to the target reasons based on the target reasons.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method of rail transit software defect management provided by the above methods, the method comprising: acquiring target defects, wherein the target defects are defects with the defect types of target types in defects in rail transit software to be managed, the number of the target defects is multiple, and the target types are predetermined based on sample defects and preset measuring elements in sample software; acquiring reasons for each target defect, and determining the target reason among the reasons; and generating code writing rules corresponding to the target reasons based on the target reasons.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A rail transit software defect management platform, comprising: the device comprises a defect acquisition module, a defect analysis module and a rule generation module;
the defect acquisition module is used for acquiring target defects, and sending the target defects to the defect analysis module, wherein the target defects are defects with the defect types of target types in defects in rail transit software to be managed, the number of the target defects is a plurality of, and the target types are predetermined based on sample defects and preset metric elements in sample software;
the defect analysis module is used for acquiring reasons for each target defect under the condition that the target defect is received, determining target reasons among the reasons, and sending the target reasons to the rule generation module;
The rule generation module is used for generating a code writing rule corresponding to the target reason based on the target reason under the condition that the target reason is received.
2. The rail transit software defect management platform of claim 1, further comprising: the system comprises a user interaction interface, a defect scanning module and a quality evaluation module;
the rule generation module is further used for sending the code writing rule to the user interaction interface after the code writing rule is generated;
the user interaction interface is used for displaying the code writing rule under the condition that the code writing rule is received;
the defect scanning module is used for acquiring the probability of occurrence of defects of a target type in a target period of rail transit software to be evaluated and sending the probability to the quality evaluation module;
the quality evaluation module is used for performing quality evaluation on the rail traffic software to be evaluated based on the probability under the condition that the probability is received, and obtaining a quality evaluation result of the rail traffic software to be evaluated;
the starting time of the target period is a time of a preset duration from the time of displaying the code writing rule by the user interaction interface.
3. The rail transit software defect management platform of claim 2, wherein the user interaction interface is further configured to send a first instruction to the defect acquisition module if a first input is received from a user, the first input and the first instruction both carrying the target type;
the defect acquisition module is used for responding to the first instruction under the condition that the first instruction is received, and acquiring the target defect by utilizing a web crawler technology based on the target type.
4. The rail transit software defect management platform of claim 2, further comprising: the data query module and the data storage module;
the data storage module is used for storing defect information of the target defect;
the user interaction interface is further used for sending a second instruction to the data query module under the condition that a second input of a user is received, and displaying the query result under the condition that the query result sent by the data query module is received, wherein the second input and the second instruction both carry query conditions;
and the data query module is used for responding to the second instruction under the condition of receiving the second instruction, performing data query in the data storage module based on the query condition, acquiring the query result and sending the query result to the user interaction interface.
5. The rail transit software defect management platform of claim 2, further comprising: a data modification module;
the user interaction interface is further configured to send a third instruction to the data modification module when a third input of a user is received, where the third input and the third instruction both carry modification information, or the third input and the third instruction both carry deletion information;
the data modification module is configured to, when receiving the third instruction, respond to the third instruction, modify information corresponding to the modification information in the data storage module based on the modification information carried in the third instruction, or delete information corresponding to the deletion information in the data storage module based on the deletion information carried in the third instruction.
6. The track traffic software defect management platform according to claim 1, wherein the defect analysis module is configured to determine, after receiving the target defect, a preset cause having a highest matching degree with each target defect among preset causes as a cause for each target defect, and further determine, based on a distribution of preset causes among the causes, a target cause among causes for each target defect.
7. The rail transit software defect management platform of any of claims 1 to 6, further comprising: a defect type extraction module;
the defect type extraction module is used for determining the target type based on the preset metric element and each sample defect occurring in sample software.
8. A rail transit software defect management method implemented based on a rail transit software defect management platform as claimed in any one of claims 1 to 7, comprising:
obtaining target defects, wherein the target defects are defects with the defect types of target types in defects in rail transit software to be managed, the number of the target defects is multiple, and the target types are predetermined based on sample defects and preset measuring elements in sample software;
acquiring reasons for each target defect, and determining a target reason among the reasons;
and generating a code writing rule corresponding to the target reason based on the target reason.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the rail transit software defect management method of claim 8 when the program is executed by the processor.
10. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the rail transit software defect management method of claim 8.
CN202211731645.3A 2022-12-30 2022-12-30 Rail transit software defect management platform and method Pending CN116028359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211731645.3A CN116028359A (en) 2022-12-30 2022-12-30 Rail transit software defect management platform and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211731645.3A CN116028359A (en) 2022-12-30 2022-12-30 Rail transit software defect management platform and method

Publications (1)

Publication Number Publication Date
CN116028359A true CN116028359A (en) 2023-04-28

Family

ID=86081402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211731645.3A Pending CN116028359A (en) 2022-12-30 2022-12-30 Rail transit software defect management platform and method

Country Status (1)

Country Link
CN (1) CN116028359A (en)

Similar Documents

Publication Publication Date Title
CN112162878B (en) Database fault discovery method and device, electronic equipment and storage medium
CN108427632B (en) Automatic test method and device
CN109359277B (en) Data monitoring method, device and computer storage medium
CN110634471B (en) Voice quality inspection method and device, electronic equipment and storage medium
CN112087334A (en) Alarm root cause analysis method, electronic device and storage medium
CN110457349B (en) Information outflow monitoring method and monitoring device
CN113891342A (en) Base station inspection method and device, electronic equipment and storage medium
CN112039907A (en) Automatic testing method and system based on Internet of things terminal evaluation platform
WO2023224764A1 (en) Multi-modality root cause localization for cloud computing systems
CN116028359A (en) Rail transit software defect management platform and method
CN113791860B (en) Information conversion method, device and storage medium
US11815989B2 (en) Automated methods and systems for identifying problems in data center objects
CN114881112A (en) System anomaly detection method, device, equipment and medium
CN115186738A (en) Model training method, device and storage medium
CN113535458A (en) Abnormal false alarm processing method and device, storage medium and terminal
CN111191239B (en) Process detection method and system for application program
CN113052509A (en) Model evaluation method, model evaluation apparatus, electronic device, and storage medium
US8538995B2 (en) Device and method for automatically detecting an unclear description
CN111722977A (en) System inspection method and device and electronic equipment
CN111815442B (en) Link prediction method and device and electronic equipment
CN114756401B (en) Abnormal node detection method, device, equipment and medium based on log
CN116755910B (en) Host machine high availability prediction method and device based on cold start and electronic equipment
KR102470364B1 (en) A method for generating security event traning data and an apparatus for generating security event traning data
CN113780597B (en) Influence propagation relation model construction and alarm influence evaluation method, computer equipment and storage medium
CN117785625A (en) Method, device, equipment and storage medium for predicting server performance

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