Method for code failure prediction in smartphone application and development

A smart phone and application development technology, which is applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as time-consuming and cost-consuming, relying on personal experience, and a large number of manual interventions, to achieve auxiliary defect finding and correction, The effect of strong versatility and scalability, and simple calculation

Active Publication Date: 2017-03-15
NANJING UNIV
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, defect code search is mainly based on empirical judgment, and interactive debugging tools are mostly used, which requires a lot of manual intervention and manual positioning, which consumes a lot of time and cost, relies on personal experience and cannot be repeated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for code failure prediction in smartphone application and development
  • Method for code failure prediction in smartphone application and development
  • Method for code failure prediction in smartphone application and development

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] figure 1 Shown is the general framework of code defect prediction methods in smartphone application development. The input of the method is the source code files, historical repair records and defect reports of other smartphone applications, the source code files of the target smartphone application, the historical repair records and defect reports of the target smartphone application. The output of the method is code units sorted from largest to smallest defect probability. The method of the present invention comprises the following five steps: 1) arrange code units, distinguish label sets and target sets, define feature indicators, and extract feature vectors; 2) assign weights to label set code units based on feature vectors; 3) train weighted classifiers , to calculate the defect probability and non-defect probability of the code unit of the target set; 4) Use the self-learning strategy to calibrate the prediction results, and repeat the above steps until the predi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for code failure prediction in smartphone application and development. The method comprises a step 1) of tidying code units, distinguishing a label set and a target set, defining characteristic indexes, and extracting characteristic vectors; a step 2) of endowing weights to the code units of the label set based on the characteristic vectors; a step 3) of training a weighted classifier, and calculating the defectiveness probability and no-defect probability of the code units of the target set; a step 4) of adopting a self-learning strategy to correct predicted results, and repeating the steps until prediction results calculated in a preceding time and a subsequent time are similar to or reach given iteration times; and a step 5) of outputting the code units with a high suspiciousness ratio in the target set. According to the method, data of historical versions of target smartphone applications and other smartphone applications is used, the characteristic indexes are defined in the code unit level, a machining learning technology is applied, the code units which possibly contain defects are predicted, and defective code units in the smartphone applications are positioned quickly and accurately. The method has simplicity in calculation, defective codes can be positioned quickly and effectively, and the method is suitable for development and maintenance of the smartphone applications.

Description

technical field [0001] The present invention relates to the field of smart phone application program development, specifically a method for predicting code defects in smart phone application development. The method predicts whether smart phone application code units contain defects based on massive open source codes and defect information, thereby quickly locating defects The code unit can effectively improve the efficiency of defect repair and code quality of smart phone applications. Background technique [0002] With the development of science and technology, smartphones have become an important tool for people to connect with each other, entertain and understand current affairs, and are indispensable for modern people. As a result, the number of smart phone applications has also increased rapidly, and the functions have gradually diversified. As of 2016, the number of smartphone applications has exceeded 3 million, and there are still a large number of smartphone applic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3608
Inventor 李政亮顾庆陈道蓄
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products