CN102306119A - System for capturing global exception and method - Google Patents
System for capturing global exception and method Download PDFInfo
- Publication number
- CN102306119A CN102306119A CN201110183332A CN201110183332A CN102306119A CN 102306119 A CN102306119 A CN 102306119A CN 201110183332 A CN201110183332 A CN 201110183332A CN 201110183332 A CN201110183332 A CN 201110183332A CN 102306119 A CN102306119 A CN 102306119A
- Authority
- CN
- China
- Prior art keywords
- abnormality processing
- application program
- processing module
- module
- parameter
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a system for capturing global exception and relates to the technical field of application and development of mobile phones. The system comprises an exception processing control module and also comprises at least one exception processing module which is connected with the exception processing control module; the exception processing control module is used for obtaining corresponding parameters when uncaught exception is generated by an application and sending the parameters to the exception processing module; and the exception processing module is used for performing corresponding processing after the parameters are received. The uncaught exception is correspondingly processed by setting the exception processing control module and the exception processing module, so that exceptions which cannot be captured in a development process and a testing process can be obtained under the condition that users do not feed back; and then the global exception in the application can be obtained.
Description
Technical field
The invention belongs to mobile phone application development technique field, particularly a kind of system and method for catching global abnormal.
Background technology
Android uses and has set foot in a lot of fields at present; Comprise browser, instant messaging (Instant Messaging; IM), consulting and various business softwares or the like; Bring great convenience for our user; But in application and development, have bugs unavoidably and cause software crash; And these defectives when taking place the software developer can't learn that also causing can't very first time repair-deficiency, brought bad experience to the user.Mainly lean on exploit person and tester's continuous test and user's active feedback to find and fix the defect at present on the Android operating system.
Existing scheme has following defective:
1, exploitation and tester can not guarantee test coverage very.
2, user's feedback is a passive behavior, and all initiatively feedbacks of user when unusual can not the assurance program take place.
Summary of the invention
(1) technical matters that will solve
The technical matters that the present invention will solve is: how under the situation that the user does not feed back, obtain in the development& testing process, can't catch unusual, to realize obtaining the global abnormal in the application program.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of system that catches global abnormal, said system comprises: the abnormality processing control module, also comprise at least one the abnormality processing module that is connected with said abnormality processing control module,
Said abnormality processing control module is used for when catching exception takes place not application program, obtaining relevant parameters, and said parameter is sent to said abnormality processing module;
Said abnormality processing module, be used to receive said parameter after, carry out handled.
Preferably, said abnormality processing module comprises: unusual collection module, said unusual collection module is used for when receiving said parameter, collects the abnormal information of said application program.
Preferably; Said unusual collection module; Also be used for earlier said abnormal information being stored to local file or database; When run application next time; Detect the local abnormal information of not sending that whether has; If have, then the said abnormal information of not uploading is sent to said application program corresponding server.
Preferably, said abnormality processing module also comprises: the collapse processing module, and when said collapse processing module is used to receive said parameter, obtains the last operation of said application program, and said last operation is sent to said application program corresponding server.
Preferably, said application program is loaded in the mobile phone operating system.
The invention discloses a kind ofly, may further comprise the steps based on said method of catching the system of global abnormal:
S1: when catching exception took place not application program, the abnormality processing control module obtained relevant parameters, and said parameter is sent to the abnormality processing module;
S2: after said abnormality processing module receives said parameter, carry out handled.
Preferably, also comprise step before the step S1:
S0: the abnormality processing control module is registered in the application program, and the abnormality processing module is registered in the said abnormality processing control module.
Preferably, comprise among the step S2:
S201: unusual collection module is collected the abnormal information of said application program when receiving said parameter.
Preferably, comprise after the step S201:
S202: earlier said abnormal information is stored in the local file or database; When run application next time; Detect the local abnormal information of not sending that whether has,, then the said abnormal information of not uploading is sent to said application program corresponding server as if having.
Preferably, comprise after the step S201:
S203: when the collapse processing module receives said parameter, obtain the last operation of said application program, and said last operation is sent to said application program corresponding server.
(3) beneficial effect
The present invention carries out handled through abnormality processing control module and abnormality processing module are set to catching exception not; Make under the situation that the user does not feed back; Obtain in the development& testing process, can't catch unusual, to realize obtaining the global abnormal in the application program.Avoided in application and development because of there being bugs to cause software crash, also avoided software developer when these defectives take place, and cause can not very first time repair-deficiency, bring the problem of bad experience to the user owing to can't learn.
Description of drawings
Fig. 1 is the structured flowchart according to the system that catches global abnormal of one embodiment of the present invention;
Fig. 2 is based on the process flow diagram of the method for the system that catches global abnormal shown in Figure 1.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail.Following examples are used to illustrate the present invention, but are not used for limiting scope of the present invention.
Referring to Fig. 1; This embodiment illustrates the present invention with the system that comprises three abnormality processing modules, but does not limit scope of the present invention, and said system comprises: the abnormality processing control module; Also comprise three abnormality processing modules that are connected with said abnormality processing control module
Said abnormality processing control module is used for when catching exception takes place not application program, obtaining relevant parameters; And said parameter is sent to said abnormality processing module; Preferably, the said application program of this embodiment is loaded in the mobile phone operating system, particularly in the Android operating system;
Said abnormality processing module, be used to receive said parameter after, carry out handled, said not catching exception is in the prior art, it is unusual that application program can't be caught in the development& testing process, for example: application crash.
The abnormality processing module can be provided with according to concrete demand, and for example, said abnormality processing module can comprise: unusual collection module, said unusual collection module is used for when receiving said parameter, collects the abnormal information of said application program.
Said unusual collection module; Also be used for earlier said abnormal information being stored to local file or database, when run application next time, detect the local abnormal information of not sending that whether has; If have, then the said abnormal information of not uploading is sent to said application program corresponding server.
Said abnormality processing module also can comprise: the collapse processing module; When said collapse processing module is used to receive said parameter; Obtain the last operation of said application program (in this embodiment; The function point operating position that can adopt record to be used for application programs comes function point is added up; To realize obtaining the last operation of said application program), and said last operation is sent to said application program corresponding server.
The invention also discloses a kind ofly,, may further comprise the steps with reference to Fig. 2 based on said method of catching the system of global abnormal:
S1: when catching exception took place not application program, the abnormality processing control module obtained relevant parameters, and said parameter is sent to the abnormality processing module;
S2: after said abnormality processing module receives said parameter, carry out handled.
Because all corresponding Application of each application program of Android operating system; Application is responsible for the management of application program global resource; Its life cycle is exactly the life cycle of whole application program; So when Application creates, register said abnormality processing control module; Preferably, also comprise step before the step S1:
S0: the abnormality processing control module is registered in the application program, and the abnormality processing module is registered in the said abnormality processing control module; Said abnormality processing module can be divided into N according to the division of function, decides according to concrete demand, when the abnormality processing module is used, is in Observer Pattern, and the abnormality processing module is registered in the said abnormality processing control module.
Comprise among the step S2:
S201: unusual collection module is collected the abnormal information of said application program when receiving said parameter.
Comprise among the step S2:
S202: earlier said abnormal information is stored in the local file or database; When run application next time; Detect the local abnormal information of not sending that whether has,, then the said abnormal information of not uploading is sent to said application program corresponding server as if having.
Comprise after the step S202:
S203: when the collapse processing module receives said parameter, obtain the last operation of said application program, and said last operation is sent to said application program corresponding server.
Above embodiment only is used to illustrate the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field; Under the situation that does not break away from the spirit and scope of the present invention; Can also make various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (10)
1. a system that catches global abnormal is characterized in that, said system comprises: the abnormality processing control module, also comprise at least one the abnormality processing module that is connected with said abnormality processing control module,
Said abnormality processing control module is used for when catching exception takes place not application program, obtaining relevant parameters, and said parameter is sent to said abnormality processing module;
Said abnormality processing module, be used to receive said parameter after, carry out handled.
2. the system that catches global abnormal as claimed in claim 1 is characterized in that, said abnormality processing module comprises: unusual collection module, said unusual collection module is used for when receiving said parameter, collects the abnormal information of said application program.
3. the system that catches global abnormal as claimed in claim 2; It is characterized in that; Said unusual collection module; Also be used for earlier said abnormal information being stored to local file or database; When run application next time; Detect the local abnormal information of not sending that whether has,, then the said abnormal information of not uploading is sent to said application program corresponding server as if having.
4. the system that catches global abnormal as claimed in claim 2; It is characterized in that; Said abnormality processing module also comprises: the collapse processing module; When said collapse processing module is used to receive said parameter; Obtain the last operation of said application program, and said last operation is sent to said application program corresponding server.
5. like each described system that catches global abnormal of claim 1~4, it is characterized in that said application program is loaded in the mobile phone operating system.
6. one kind based on each said method of catching the system of global abnormal of claim 1~5, it is characterized in that, may further comprise the steps:
S1: when catching exception took place not application program, the abnormality processing control module obtained relevant parameters, and said parameter is sent to the abnormality processing module;
S2: after said abnormality processing module receives said parameter, carry out handled.
7. method as claimed in claim 6 is characterized in that, also comprises step before the step S1:
S0: the abnormality processing control module is registered in the application program, and the abnormality processing module is registered in the said abnormality processing control module.
8. method as claimed in claim 6 is characterized in that, comprises among the step S2:
S201: unusual collection module is collected the abnormal information of said application program when receiving said parameter.
9. method as claimed in claim 8 is characterized in that, comprises after the step S201:
S202: earlier said abnormal information is stored in the local file or database; When run application next time; Detect the local abnormal information of not sending that whether has,, then the said abnormal information of not uploading is sent to said application program corresponding server as if having.
10. method as claimed in claim 8 is characterized in that, comprises after the step S201:
S203: when the collapse processing module receives said parameter, obtain the last operation of said application program, and said last operation is sent to said application program corresponding server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110183332A CN102306119A (en) | 2011-06-30 | 2011-06-30 | System for capturing global exception and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110183332A CN102306119A (en) | 2011-06-30 | 2011-06-30 | System for capturing global exception and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102306119A true CN102306119A (en) | 2012-01-04 |
Family
ID=45379984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110183332A Pending CN102306119A (en) | 2011-06-30 | 2011-06-30 | System for capturing global exception and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102306119A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544071A (en) * | 2012-07-17 | 2014-01-29 | 阿里巴巴集团控股有限公司 | Processing method, device and system of collapse information |
CN103914387A (en) * | 2014-04-23 | 2014-07-09 | 广东欧珀移动通信有限公司 | Method and device for eliminating abnormal interference in Android mobile phone automated testing process |
CN104216811A (en) * | 2013-05-30 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Log collecting method and system of application program |
CN104809030A (en) * | 2015-05-19 | 2015-07-29 | 上海斐讯数据通信技术有限公司 | Android-based exception handling system and method |
CN105159832A (en) * | 2015-09-29 | 2015-12-16 | 北京奇虎科技有限公司 | Method, apparatus and system for collecting application exception information in application test |
CN106021358A (en) * | 2016-05-10 | 2016-10-12 | 深圳云之家网络有限公司 | Abnormal information recording method and system |
CN106681900A (en) * | 2015-11-10 | 2017-05-17 | 北京搜狗科技发展有限公司 | Collapse processing method for target software and device |
CN108334415A (en) * | 2017-01-20 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | A kind of fault-tolerance processing method, device, terminal and storage medium |
CN109712622A (en) * | 2018-12-28 | 2019-05-03 | 苏州思必驰信息科技有限公司 | The configuration method and system of interactive voice abnormality processing for voice dialogue platform |
CN110597737A (en) * | 2019-08-22 | 2019-12-20 | 腾讯音乐娱乐科技(深圳)有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1731368A (en) * | 2004-08-05 | 2006-02-08 | 国际商业机器公司 | Method for analyzing data obtained from crash and data processing system |
CN101114253A (en) * | 2006-07-26 | 2008-01-30 | 腾讯科技(深圳)有限公司 | Program crashing information report method and system thereof |
CN101140562A (en) * | 2007-02-14 | 2008-03-12 | 中兴通讯股份有限公司 | Method for realizing user-defined report forms |
CN101201770A (en) * | 2006-12-15 | 2008-06-18 | 大唐移动通信设备有限公司 | Method and system for storing important information before system collapse |
CN101425037A (en) * | 2008-11-20 | 2009-05-06 | 金蝶软件(中国)有限公司 | GUI performance log generating system, method and GUI performance analyzing method |
CN101593147A (en) * | 2009-04-15 | 2009-12-02 | 卡斯柯信号有限公司 | Abnormal information dump method based on symbol file |
CN101645032A (en) * | 2009-08-31 | 2010-02-10 | 金蝶软件(中国)有限公司 | Performance analysis method of application server and application server |
CN101923508A (en) * | 2009-06-12 | 2010-12-22 | 中兴通讯股份有限公司 | Exception handling method and device in embedded system |
-
2011
- 2011-06-30 CN CN201110183332A patent/CN102306119A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1731368A (en) * | 2004-08-05 | 2006-02-08 | 国际商业机器公司 | Method for analyzing data obtained from crash and data processing system |
CN101114253A (en) * | 2006-07-26 | 2008-01-30 | 腾讯科技(深圳)有限公司 | Program crashing information report method and system thereof |
CN101201770A (en) * | 2006-12-15 | 2008-06-18 | 大唐移动通信设备有限公司 | Method and system for storing important information before system collapse |
CN101140562A (en) * | 2007-02-14 | 2008-03-12 | 中兴通讯股份有限公司 | Method for realizing user-defined report forms |
CN101425037A (en) * | 2008-11-20 | 2009-05-06 | 金蝶软件(中国)有限公司 | GUI performance log generating system, method and GUI performance analyzing method |
CN101593147A (en) * | 2009-04-15 | 2009-12-02 | 卡斯柯信号有限公司 | Abnormal information dump method based on symbol file |
CN101923508A (en) * | 2009-06-12 | 2010-12-22 | 中兴通讯股份有限公司 | Exception handling method and device in embedded system |
CN101645032A (en) * | 2009-08-31 | 2010-02-10 | 金蝶软件(中国)有限公司 | Performance analysis method of application server and application server |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544071B (en) * | 2012-07-17 | 2017-02-15 | 阿里巴巴集团控股有限公司 | Processing method, device and system of collapse information |
CN103544071A (en) * | 2012-07-17 | 2014-01-29 | 阿里巴巴集团控股有限公司 | Processing method, device and system of collapse information |
CN104216811A (en) * | 2013-05-30 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Log collecting method and system of application program |
CN104216811B (en) * | 2013-05-30 | 2018-07-20 | 腾讯科技(深圳)有限公司 | The log collecting method and system of application program |
CN103914387A (en) * | 2014-04-23 | 2014-07-09 | 广东欧珀移动通信有限公司 | Method and device for eliminating abnormal interference in Android mobile phone automated testing process |
CN103914387B (en) * | 2014-04-23 | 2016-08-17 | 广东欧珀移动通信有限公司 | The method and apparatus getting rid of abnormal interference in Android phone automatic test course |
CN104809030A (en) * | 2015-05-19 | 2015-07-29 | 上海斐讯数据通信技术有限公司 | Android-based exception handling system and method |
CN105159832A (en) * | 2015-09-29 | 2015-12-16 | 北京奇虎科技有限公司 | Method, apparatus and system for collecting application exception information in application test |
CN106681900A (en) * | 2015-11-10 | 2017-05-17 | 北京搜狗科技发展有限公司 | Collapse processing method for target software and device |
CN106021358A (en) * | 2016-05-10 | 2016-10-12 | 深圳云之家网络有限公司 | Abnormal information recording method and system |
CN108334415A (en) * | 2017-01-20 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | A kind of fault-tolerance processing method, device, terminal and storage medium |
CN109712622A (en) * | 2018-12-28 | 2019-05-03 | 苏州思必驰信息科技有限公司 | The configuration method and system of interactive voice abnormality processing for voice dialogue platform |
CN109712622B (en) * | 2018-12-28 | 2021-03-05 | 苏州思必驰信息科技有限公司 | Configuration method and system for voice interaction exception handling of voice conversation platform |
CN110597737A (en) * | 2019-08-22 | 2019-12-20 | 腾讯音乐娱乐科技(深圳)有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102306119A (en) | System for capturing global exception and method | |
CN107948744B (en) | Interface detection method, interface detection device, and computer-readable storage medium | |
CN109614313A (en) | Automated testing method, device and computer readable storage medium | |
US10146658B2 (en) | User device power consumption monitoring and analysis | |
US8489941B2 (en) | Automatic documentation of ticket execution | |
CN103049373B (en) | A kind of localization method of collapse and device | |
CN107861864A (en) | Automated testing method, system and computer-readable recording medium | |
JP5198154B2 (en) | Fault monitoring system, device, monitoring apparatus, and fault monitoring method | |
US20200117587A1 (en) | Log File Analysis | |
CN102831035A (en) | Information backup method and device | |
CN106991046B (en) | Application testing method and device | |
CN103678124B (en) | Video surveillance platform auto-test method and device based on continuous integrated environment | |
US8694831B2 (en) | Automatic bug reporting tool | |
CN106339273A (en) | Application program restoration method, terminal and server | |
CN110647471A (en) | Interface test case generation method, electronic device and storage medium | |
CN102752770B (en) | Method and device for polling service system | |
CN111881014A (en) | System test method, device, storage medium and electronic equipment | |
CN104346279A (en) | Method and device for software testing | |
CN115664939A (en) | Comprehensive operation and maintenance method and device based on automation technology and storage medium | |
JP2012230451A (en) | Network terminal failure handling system, terminal device, server device, network terminal failure handling method and program | |
CN107102938B (en) | Test script updating method and device | |
EP3304249B1 (en) | User device power consumption monitoring and analysis | |
CN104102583A (en) | High-availability cluster software distributed automated testing framework | |
CN114385258A (en) | Automatic testing method and device, electronic equipment and storage medium | |
CN105740141B (en) | A kind of automated detection method and its device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120104 |