Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for detecting and positioning abnormal throwing processing defects

A technology for locating exceptions and exceptions, applied in the field of testing, can solve problems such as difficulty in the correctness of exception handling codes, difficulty in verifying the correctness of exception handling modules, etc., and achieve the effect of reducing the positioning range and improving the positioning efficiency

Active Publication Date: 2020-04-24
NANJING UNIV
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it is very difficult to verify the correctness of exception handling modules in Android applications, especially when it comes to exception handling codes related to operations related to external resources, it is even more difficult to measure the correctness of exception handling codes

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 and device for detecting and positioning abnormal throwing processing defects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention will be described in further detail in combination below.

[0039] A method for detecting and locating exception throwing processing defects of the present invention includes the following steps: an insertion processing step, an exception type extraction step, a suspicious exception trigger test step and a context combination exception trigger test step. The aforementioned step S1 of obtaining the program to be tested and the test script indicates that the input of the present invention is the program to be tested and the test script. The instrumentation processing step, the exception type extraction step, the suspicious exception trigger test step and the context combination exception trigger test step correspond to the aforementioned steps S2, S3, S4 and S5 respectively.

[0040] The test script is used to test the program to be tested. The program under test can be executed by the machine under the control of the test script. Those skilled in ...

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 and a device for detecting and positioning abnormal ejection processing defects. The method comprises the following steps: firstly, inserting a program to be tested, inserting a control code before a method which possibly throws an exception, so that after the program to be tested is executed, outputting inserted method information and calling information through the control code, and determining whether the exception is thrown or not and what exception is thrown through matching of exception triggering configuration information; then obtaining a possible triggered exception type set according to the inserted method list; performing suspicious exception triggering test on each exception type according to the exception type set to obtain a suspicious methodexception information set; finally, performing a context combination exception trigger test on each piece of suspicious method exception information in the suspicious method exception information setto obtain exception throwing defect positioning information. According to the invention, through filtering of suspicious exception triggering tests, the exception throwing processing defect positioning range is greatly reduced, so that the positioning efficiency is greatly improved.

Description

technical field [0001] The invention relates to testing technology, in particular to testing of exception throwing processing defects. Background technique [0002] Exception handling (Exception Handling) is a mechanism in high-level programming languages ​​to deal with abnormal conditions that occur in software or information systems. Exception handling is usually a measure taken to prevent unknown errors. It provides an effective method for dealing with certain types of errors, which can improve programming efficiency and program robustness. In Android applications, there are two ways to handle exceptions. One is to use the throws keyword in the method signature to throw exceptions, and the other is to use try and catch modules to handle exceptions that occur in the program. However, it is very difficult to verify the correctness of the exception handling module of an Android application, especially when it involves exception handling code related to external resource ope...

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
IPC IPC(8): G06F11/36
CPCG06F11/3668
Inventor 潘敏学张天陆璐谢琳娜
Owner NANJING UNIV