WO2017124808A1 - Fault information reproduction method and reproduction apparatus - Google Patents

Fault information reproduction method and reproduction apparatus Download PDF

Info

Publication number
WO2017124808A1
WO2017124808A1 PCT/CN2016/103891 CN2016103891W WO2017124808A1 WO 2017124808 A1 WO2017124808 A1 WO 2017124808A1 CN 2016103891 W CN2016103891 W CN 2016103891W WO 2017124808 A1 WO2017124808 A1 WO 2017124808A1
Authority
WO
WIPO (PCT)
Prior art keywords
fault
log
information
data
reproducing
Prior art date
Application number
PCT/CN2016/103891
Other languages
French (fr)
Chinese (zh)
Inventor
沈中平
Original Assignee
上海斐讯数据通信技术有限公司
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 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Publication of WO2017124808A1 publication Critical patent/WO2017124808A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback

Definitions

  • the present invention relates to the field of mobile devices, and in particular, to a method and a reproducing apparatus for reproducing fault information.
  • the fault log of the mobile device in a certain period of time is collected through the field indicating the fault in the log, and sent to the server that collects the fault.
  • a method for reproducing fault information comprises the following steps:
  • the fault log and the fault data are debugged to reproduce the fault information of the client.
  • the method for determining a fault log of a client includes:
  • the method for determining fault data associated with the fault log according to the fault log comprises:
  • the fault data associated therewith is determined according to the path recorded in the fault log.
  • the path of the installation fault log of the present invention determines the fault data that is expected to be associated with each other, and the operation steps in the user mobile device during the fault process are acquired during the debugging process.
  • the method for obtaining the fault log and fault data includes:
  • the method for debugging the fault log and the fault data to reproduce the fault information of the client includes:
  • the content of the client operation step is extracted in the fault log.
  • the process of reversing the user's mobile device is reproduced when the specific content of the operation steps of the client at the time of the failure is extracted.
  • the method further includes:
  • the fault information is repaired by the fault log and the fault data, and repair information is generated. After the failed fault log and fault data are repaired, the root cause of the fault is resolved, preventing such faults from occurring in later versions.
  • the fault information is repaired again until the fault information is not reproduced;
  • the invention further tests the repaired information content to ensure that such fault information has been repaired.
  • reproducing apparatus for fault information, wherein the reproducing apparatus comprises the following:
  • Means for debugging the fault log and fault data to reproduce fault information of the client Means for debugging the fault log and fault data to reproduce fault information of the client.
  • the means for determining the fault log of the client is configured to:
  • the means for determining fault data associated with the fault log based on the fault log is configured to:
  • the fault data associated therewith is determined according to the path recorded in the fault log.
  • the means for obtaining the fault log and fault data is configured to:
  • the means for debugging the fault log and fault data to reproduce the fault information of the client is configured to:
  • the content of the client operation step is extracted in the fault log.
  • the reproducing apparatus further comprises means for repairing the fault information and generating fault information through the fault log and fault data.
  • the reproducing apparatus further comprises means for detecting whether the repair information reproduces the fault information;
  • the fault information is repaired again until the fault information is not reproduced;
  • fault information may occur, such as: flashback, black screen, crash, etc.; in the prior art, when the fault information is solved, the fault information is generally acquired first.
  • the mobile device causes the faulty information to be analyzed so that such a fault no longer occurs in a later new version of the mobile device.
  • the specific solution is to collect the fault log in a period of time in the mobile device running log to identify the fault, send the fault log to the server, and reproduce the fault information according to the fault log, and the fault information is conveniently analyzed.
  • the specific cause of the failure and it is convenient to repair this fault.
  • the present invention Compared with the prior art, the present invention has the following advantages: the present invention first determines a fault log of a client, and determines fault data associated with the fault log according to the fault log, that is, determines a fault in the user mobile device running log.
  • the fault log of the field and the fault data associated with the fault log; the server side acquires the fault log and the fault data at the same time, and debugs the fault log and the fault data to reproduce the fault information of the client. Since the invention extracts the fault data associated with the fault information before acquiring the fault log, the combination of the fault log and the fault data facilitates debugging, and thus the fault information of the client is easily reproduced, that is, the user is easily re-appeared by debugging.
  • the failure of the mobile device in turn, it is convenient to analyze the fault information that is faulty, so as to repair the fault information and prevent such faults from occurring in the new version of the mobile device.
  • FIG. 1 is a schematic flow chart of a method for reproducing fault information according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for reproducing fault information according to another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a device for reproducing fault information according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a device for reproducing fault information according to another embodiment of the present invention.
  • Computer device also referred to as “computer” in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two.
  • Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
  • the computer device includes a user device and a network device.
  • the user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.
  • the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud computing based computer Or a cloud composed of a network server, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the computer device can be operated separately to implement the present invention, and can also access the network and implement the present invention by interacting with other computer devices in the network.
  • the network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
  • the user equipment, the network equipment, the network, and the like are merely examples, and other existing or future possible computer equipment or networks, such as those applicable to the present invention, are also included in the scope of the present invention. It is included here by reference.
  • the methods discussed below can be implemented in hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof.
  • the serial code or code segments can be stored in a machine or computer readable medium such as a storage medium.
  • the processor(s) can perform the necessary tasks.
  • FIG. 1 is a schematic flowchart diagram of a method for reproducing fault information according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a device for reproducing fault information according to an embodiment of the present invention.
  • the method of reproducing the failure information includes step S101, step S102, step S103, and step S104 performed by the reproducing apparatus in FIG.
  • the method for reproducing fault information in this embodiment is mainly implemented by a network device and a user equipment debugger;
  • the user equipment debugger includes but is not limited to a PC, a tablet, a smart phone, a PDA, etc.;
  • the network device Including but not limited to a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of computers or network servers, wherein cloud computing is a kind of distributed computing, consisting of a group of loose A super virtual computer consisting of a set of coupled computers.
  • the debugger in this embodiment is described by taking a mobile phone as an example, and the network device is described by taking a server as an example.
  • the user equipment mobile phone is only an example, and other existing or future network devices and user equipment may be applicable to the present invention, and are also included in the scope of the present invention and are included by reference. herein.
  • the method according to the present embodiment includes step S101, step S102, step S103, and step S104.
  • step S101 the reproducing apparatus first determines the failure log of the client.
  • the replay device runs in the background of the user's client and automatically collects the fault log.
  • the client in this embodiment is described by taking a user's mobile phone as an example.
  • the replay device automatically scans the running log of the user client, and when a field indicating the error (for example, Fatal Exception) appears in the running log of the scan, the log in the preset time period is automatically collected, and is defined as a fault log. Error.log); and store this fault log in a file.
  • a field indicating the error for example, Fatal Exception
  • step S102 the reproducing device determines the fault date according to the fault log.
  • the replay device After the replay device automatically collects the fault log, the data associated with the fault is collected according to the content in the fault log, and is defined as fault data herein;
  • the automatically collected log in the preset time period may be: obtaining the last loaded interface name from the running log (for example: Compose Message Activity).
  • the user operation information is further printed, and the fault data includes the user operation information, and the fault data includes information of the user operation during the fault occurrence, so that the fault is easily reproduced by the debugger.
  • the fault data may further include path information recorded in the fault log. It should be noted that the fault data of this embodiment is not limited to the path information and the user operation information, and may also include other information associated with the fault log. Of course, the fault data of this embodiment may also include user operation information alone or separately include path information.
  • step S103 the reproducing device acquires the fault log and fault data
  • the reproducing device determines the fault log and the fault data
  • the fault log and the fault data are sent to the server.
  • the fault log and the fault data are packaged into a folder, compressed, and the compressed folder is sent to the server, and the compressed folder is sent to the server when the network is unblocked.
  • this is only a specific example of obtaining the fault log and the fault data by the reproducing device.
  • the embodiment is not limited thereto, and other methods may be obtained, such as: not compressing and packaging, directly confirming The fault log and fault data are sent to the server.
  • step S104 the reproducing device debugs the fault log and the fault data to reproduce the fault information of the client.
  • the content of the operation step of the client is reflected in the fault log.
  • the processing software automatically imports the user data into the corresponding directory in the debugging mobile phone connected to the PC according to the path recorded in the collected data file description (Collect.log); And extract and display the contents of the user operation steps reflected in the fault log (error.log).
  • the mobile device will have fault information during use, such as flashback, black screen, crash and the like.
  • the information caused by the fault of the user mobile device is generally first analyzed, so that such a fault does not occur in the new version of the mobile device.
  • the specific solution is to collect the fault log in a period of time in the mobile device running log to identify the fault, send the fault log to the server, and reproduce the fault information according to the fault log, and the fault information is conveniently analyzed.
  • the specific cause of the failure and it is convenient to repair this fault.
  • the fault log of the client is first determined, and the fault data associated with the fault log is determined according to the fault log, that is, the fault log of the field indicating the fault in the user mobile device running log is determined and related to the fault log.
  • the fault data of the joint the server side obtains the fault log and the fault data at the same time, and debugs the fault log and the fault data to reproduce the fault information of the client. Because the fault data associated with the fault information is extracted before the fault log is obtained, the combination of the fault log and the fault data facilitates debugging, and thus the fault information of the client is easily reproduced, that is, it is easy to reappear through debugging.
  • the failure of the user's mobile device in turn, it is convenient to analyze the faulty fault information in order to repair the fault information and prevent such faults from occurring in the new version of the mobile device.
  • FIG. 2 is a schematic flowchart diagram of a method for reproducing fault information according to another embodiment of the present invention.
  • the method of the present embodiment is mainly implemented by a reproducing apparatus, wherein any description of the reproducing apparatus in the embodiment shown in Fig. 1 is incorporated herein by reference.
  • the method according to the present embodiment includes step S201, step S202, step S203, step 204, step 205, and step 206.
  • step S201 can refer to step S101 in FIG. 1
  • step S202 can refer to step S102 in FIG. 1
  • step S203 can refer to step S103 in FIG. 1
  • step S204 can refer to step S104 in FIG. 1 .
  • the embodiment in 1 has been described in detail and will not be described herein.
  • the embodiment shown in FIG. 2 differs from that in FIG. 1 in that the embodiment shown in FIG. 2 further includes step S205 and step S206.
  • step S205 after the fault log and the fault data are debugged to reproduce the fault information of the client, the method further includes:
  • the fault information is repaired by the fault log and the fault data, and repair information is generated.
  • step S206 detecting whether the repair information reproduces the fault information
  • the fault information is repaired again until the fault information is not reproduced;
  • the fault information is repaired again until the fault information is not reproduced.
  • the repaired information is further checked and confirmed. If the fault information that has occurred is reproduced, the process returns to step S205 to continue repairing the fault information, and another new repair information is generated. Until the information to ensure that the repair is complete does not reproduce the fault. Make sure that the repaired information no longer has this type of failure.
  • FIG. 3 is a schematic structural diagram of a device for reproducing fault information according to an embodiment of the present invention.
  • the apparatus for reproducing fault information includes means for determining a fault log of the client (hereinafter referred to as “first fault log determining means 301") for determining according to the fault log a device for fault data associated with the fault log (hereinafter referred to as “first fault data confirming device 302"), a device for acquiring the fault log and fault data (hereinafter referred to as “first acquiring device 303”), And means for debugging the fault log and the fault data to reproduce the fault information of the client (hereinafter referred to as "the first debug device 304").
  • the first fault log confirming device 301 is configured to confirm the fault log of the client user.
  • the first fault log confirming device 301 runs in the background of the user's client and automatically collects the fault log.
  • the client in this embodiment is described by taking a user's mobile phone as an example.
  • the first fault log confirming device 301 automatically scans the running log of the user client, and automatically collects the log in the preset time period when a field indicating the error (for example, Fatal Exception) appears in the running log of the scan, and is defined herein. Is the fault log (error.log); and stores this fault log in a file.
  • a field indicating the error for example, Fatal Exception
  • the first failure data confirming means 302 determines the fault data associated with the fault log based on the fault log.
  • the data associated with the fault is collected according to the content in the fault log, and is defined as fault data herein;
  • the automatically collected log in the preset time period may be: from the running log. Get the last loaded interface name (for example: Compose Message Activity).
  • the user operation information is further printed, and the fault data includes the user operation information, and the fault data includes information of the user operation during the fault occurrence, so that the fault is easily reproduced by the debugger.
  • the fault data may further include path information recorded in the fault log. It should be noted that the fault data of this embodiment is not limited to the path information and the user operation information, and may also include other information associated with the fault log. Of course, the fault data of this embodiment may also include user operation information alone or separately include path information.
  • the first obtaining means 303 acquires the fault log and fault data.
  • the fault log and the fault data are sent to the server.
  • the fault log and the fault data are packaged into a folder, compressed, and the compressed folder is sent to the server, and the compressed folder is sent to the server when the network is unblocked.
  • this is only a specific example of obtaining the fault log and the fault data by the first acquiring device.
  • the embodiment is not limited thereto, and other obtaining manners may be used, for example, the compression and packaging are not performed, and the confirmation is directly performed.
  • the fault log and fault data are sent to the server.
  • the first debugging device 304 debugs the fault log and the fault data to reproduce the fault information of the client.
  • the content of the operation step of the client is reflected in the fault log.
  • the processing software automatically imports the user data into the corresponding directory in the debugging mobile phone connected to the PC according to the path recorded in the collected data file description (Collect.log); and the fault log ( The content of the user operation steps reflected in error.log) is extracted and displayed.
  • the mobile device will have fault information during use, such as flashback, black screen, crash and the like.
  • the information caused by the fault of the user mobile device is generally first analyzed, so that such a fault does not occur in the new version of the mobile device.
  • the specific solution is to collect the fault log in a period of time in the mobile device running log to identify the fault, send the fault log to the server, and reproduce the fault information according to the fault log, and the fault information is conveniently analyzed.
  • the specific cause of the failure and it is convenient to repair this fault.
  • the fault log of the client is first determined, and the fault data associated with the fault log is determined according to the fault log, that is, the fault log of the field indicating the fault in the user mobile device running log is determined and related to the fault log.
  • the fault data of the joint the server side obtains the fault log and the fault data at the same time, and debugs the fault log and the fault data to reproduce the fault information of the client. Since the embodiment extracts the fault data associated with the fault information before acquiring the fault log, the combination of the fault log and the fault data facilitates debugging, and thus the fault information of the client is easily reproduced, that is, the user is easily re-appeared by debugging.
  • the failure of the mobile device in turn, it is convenient to analyze the fault information that is faulty, so as to repair the fault information and prevent such faults from occurring in the new version of the mobile device.
  • the device for reproducing fault information includes a fault for determining a client.
  • a device for logging hereinafter referred to as “second failure log determining device 401" for determining association with the failure log according to the failure log Device for fault data (hereinafter referred to as “second fault data confirming device 402"), means for acquiring the fault log and fault data (hereinafter referred to as “second acquiring device 403"), for using the fault log
  • second debug device 404 means for repairing the fault information by the fault log and fault data, and generating repair information
  • the "repair device 405") means for detecting whether the repair information reproduces the fault information
  • second determining device 402 a device for information
  • second transmitting device 403 an application entry control area for pushing the information to be sent to an application of the client A device for displaying a line
  • first personal information device 404 a device for establishing a personal information file based on registration information and usage information of the application.
  • the second fault log determining device 401 can refer to the first fault log determining device 301 in FIG. 3, and the second fault data confirming device 402 can refer to the first fault data confirming device 302 in FIG. 3, and the second acquiring device. 403 can refer to the first obtaining device 303 in FIG. 3, and the second debugging device 404 can refer to the first debugging device 304 in FIG. 3.
  • the embodiment in FIG. 3 has been described in detail, and details are not described herein again.
  • the embodiment shown in FIG. 4 differs from that in FIG. 3 in that the embodiment shown in FIG. 4 further includes a repairing device and a detecting device.
  • the repairing device repairs the fault information through the fault log and the fault data, and generates repair information.
  • the fault information is repaired again until the fault information is not reproduced;
  • the fault information is repaired again until the fault information is not reproduced.
  • the present embodiment further confirms the repaired information, and if the fault information appears, the fault information is further repaired, and another new repair information is generated until the detection and repair is ensured. The completed information no longer reproduces the fault. Make sure that the repaired information no longer has this type of failure.
  • the reproducing apparatus of this embodiment may not include the detecting device, and may be repaired only by the repairing device.
  • the reproducing apparatus may include a log mobile phone module, a process retrieval module, and a data storage module.
  • the log collection module collects the log of the mobile phone running and stores it in a file, and the content of the scan log is incorrectly represented by Fatal Exception.
  • the last loaded interface name (such as ComposeMessageActivity) and some user operation information printed afterwards are obtained from the log, and the content is passed to the process retrieval module.
  • the process retrieval module may include a database for recording the process (Process) of the client running log, the current interface name (ScreenName), and the data file (CollectFile) and the data path (CollectDir) stored in the mobile phone involved in the interface.
  • Some interfaces need to collect more data for certain operations. There are additional fields to store the operations involved in the log. This information is used to determine the data to be packaged and passed to the data storage module.
  • Table 1 the table records in this database are shown in Table 1 below:
  • the reproducing device may further comprise a data collecting module and a data sending module:
  • the Collect.log file format can be:
  • the purpose is to enable the PC-side software to read and import the collected files into the corresponding directory (target directory) of the debug phone.
  • the log collection module scans the faulty keyword FATAL EXCEPTION, and then searches up the last load interface keyword Load screen and process Process, finds the last loaded interface name as ComposeMessageActivity, and the process name is com.android.mms, finds the data table.
  • the record with the id of 1 corresponds to the data/data/com.providers.telephony/mmssms.db file and the path data/data/com.providers.telephony/app_parts to be collected according to the requirements of this record.
  • the data collection module and the data sending module, the data collection module and the data sending module copy the files and folders in the user's mobile phone, generate a Collect.log file, and write the path of the collected files and folders, and then The log file is intercepted for a certain period of time as the fault log error.log.
  • These files are packaged and compressed and sent to the server.
  • the R&D personnel put it in the corresponding directory of the PC software of the system.
  • the PC software first imports the mmssms.db file and the app_parts folder into the debug phone according to the contents recorded in the Collect.log.
  • the ComposeMessageActivity interface is operated on this interface according to the Operation content displayed by the PC software, in order to reproduce the user's fault. After recurring the fault, try to analyze how to modify the program. After the modification, import the new apk and verify the modification result on this debugging machine.
  • the present invention can be implemented in software and/or a combination of software and hardware.
  • the various devices of the present invention can be implemented using an application specific integrated circuit (ASIC) or any other similar hardware device.
  • the software program of the present invention may be executed by a processor to implement the steps or functions described above.
  • the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like.
  • some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A fault information reproduction method and reproduction apparatus, used for reproducing a fault so as to solve the fault. The reproduction method comprises: the step of determining a fault log of a client (S101); the step of determining fault data associated with the fault log according to the fault log (S102); the step of acquiring the fault log and the fault data (S103); and the step of debugging the fault log and the fault data so as to reproduce fault information about the client (S104). It is convenient to debug by means of a fault log and fault data, hence, the reproduction of a fault of a client is facilitated, thereby facilitating the analysis and repair of this fault.

Description

一种故障信息的重现方法和重现装置Method for reproducing fault information and reproducing device 技术领域Technical field
本发明涉及移动设备领域,尤其涉及一种故障信息的重现方法和重现装置。The present invention relates to the field of mobile devices, and in particular, to a method and a reproducing apparatus for reproducing fault information.
背景技术Background technique
近年来,市面上出现了许多基于安卓系统的智能手机,这些手机发布到市场后往往被客户反映使用的过程中有闪退,黑屏,崩溃之类的故障。这些故障往往是不能复现的,只有用户使用的那台设备出现了那种现象。In recent years, many Android-based smartphones have appeared on the market. After being released to the market, these mobile phones are often reflected by customers in the process of flashback, black screen, crashes and the like. These faults are often not reproducible, and only the one used by the user has that phenomenon.
研发人员接到报告后往往无法重现这种故障现象,现有技术中,就需要收集用户手机中引起故障的信息来分析,以期在新版本的软件中避免或改善此问题。具体是通过日志中表征故障的字段收集移动设备在某一时段内的故障日志,并发送给收集故障的服务器。R&D personnel often cannot reproduce this fault phenomenon after receiving the report. In the prior art, it is necessary to collect the information causing the fault in the user's mobile phone for analysis, in order to avoid or improve the problem in the new version of the software. Specifically, the fault log of the mobile device in a certain period of time is collected through the field indicating the fault in the log, and sent to the server that collects the fault.
然而,在软件系统越来越复杂的今天,往往要加载和处理大容量数据,由于不易将可能引发故障的故障日志全部打印出来,因此研发人员仅从部分故障日志还是无法准确地定位出问题来。However, in today's increasingly complex software systems, large-capacity data is often loaded and processed. Since it is not easy to print out the fault logs that may cause failures, the R&D personnel cannot accurately locate the problems from only part of the fault logs. .
发明内容Summary of the invention
本发明的目的是提供一种故障信息的重现方法和重现装置,用于重现故障以便解决此故障问题。It is an object of the present invention to provide a method and a reproducing apparatus for reproducing fault information for reproducing a fault to solve the fault problem.
根据本发明的一个方面,提供一种故障信息的重现方法,其中,该方法包括以下步骤:According to an aspect of the present invention, a method for reproducing fault information is provided, wherein the method comprises the following steps:
确定客户端的故障日志;Determine the fault log of the client;
根据所述故障日志确定与所述故障日志相关联的故障数据;Determining fault data associated with the fault log according to the fault log;
获取所述故障日志和故障数据; Obtaining the fault log and fault data;
将所述故障日志和故障数据进行调试以重现所述客户端的故障信息。The fault log and the fault data are debugged to reproduce the fault information of the client.
优选的,所述确定客户端的故障日志的方法包括:Preferably, the method for determining a fault log of a client includes:
扫描客户端运行日志中是否有表征错误的故障关键字,若有,则在预设的时间段内确定所述表征错误的故障关键字对应的故障日志。Scan the client running log for fault keywords that indicate errors. If yes, determine the fault log corresponding to the faulty keyword that indicates the fault within a preset period of time.
优选的,所述根据所述故障日志确定与所述故障日志相关联的故障数据的方法包括:Preferably, the method for determining fault data associated with the fault log according to the fault log comprises:
按照所述故障日志所记载的路径确定与其相关联的故障数据。本发明安装故障日志的路径确定预期相互关联的故障数据,在调试过程中以便通过路径信息获取故障过程中的用户移动设备中的操作步骤。The fault data associated therewith is determined according to the path recorded in the fault log. The path of the installation fault log of the present invention determines the fault data that is expected to be associated with each other, and the operation steps in the user mobile device during the fault process are acquired during the debugging process.
优选的,所述获取所述故障日志和故障数据的方法包括:Preferably, the method for obtaining the fault log and fault data includes:
获取将所述故障日志和故障数据打包压缩后的打包压缩文件。Obtain a packaged compressed file that is packaged and compressed by the fault log and the fault data.
优选的,所述将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的方法包括:Preferably, the method for debugging the fault log and the fault data to reproduce the fault information of the client includes:
提取所述故障日志中反映出客户端操作步骤的内容。提取出发生故障时客户端的操作步骤的具体内容时就实现了将用户移动设备发生故障的过程重现。The content of the client operation step is extracted in the fault log. The process of reversing the user's mobile device is reproduced when the specific content of the operation steps of the client at the time of the failure is extracted.
优选的,在将所述故障日志和故障数据进行调试以重现所述客户端的故障信息后,所述重现方法还包括:Preferably, after the fault log and the fault data are debugged to reproduce the fault information of the client, the method further includes:
通过所述故障日志和故障数据修复所述故障信息,并生成修复信息。将发生故障的故障日志和故障数据修复后,也就解决了发生故障的根源,从而防止在后期版本中出现此类故障。The fault information is repaired by the fault log and the fault data, and repair information is generated. After the failed fault log and fault data are repaired, the root cause of the fault is resolved, preventing such faults from occurring in later versions.
优选的,检测所述修复信息是否再重现所述故障信息,Preferably, detecting whether the repair information reproduces the fault information,
若重现所述故障信息,则再次修复所述故障信息直至不再重现所述故障信息;If the fault information is reproduced, the fault information is repaired again until the fault information is not reproduced;
若不再重现所述故障信息,则确认故障信息修复完成。本发明对修复后的信息内容做进一步的检测,从而确保此类故障信息已经完成修复。 If the fault information is not reproduced, it is confirmed that the fault information is repaired. The invention further tests the repaired information content to ensure that such fault information has been repaired.
根据本发明的另一个方面,还提供了一种故障信息的重现装置,其中,该重现装置包括以下装置:According to another aspect of the present invention, there is also provided a reproducing apparatus for fault information, wherein the reproducing apparatus comprises the following:
用于确定客户端的故障日志的装置;Means for determining a fault log of the client;
用于根据所述故障日志确定与所述故障日志相关联的故障数据的装置;Means for determining fault data associated with the fault log based on the fault log;
用于获取所述故障日志和故障数据的装置;Means for obtaining the fault log and fault data;
用于将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的装置。Means for debugging the fault log and fault data to reproduce fault information of the client.
优选的,用于确定客户端的故障日志的装置被配置为:Preferably, the means for determining the fault log of the client is configured to:
扫描客户端运行日志中是否有表征错误的故障关键字,若有,则在预设的时间段内确定所述表征错误的故障关键字对应的故障日志。Scan the client running log for fault keywords that indicate errors. If yes, determine the fault log corresponding to the faulty keyword that indicates the fault within a preset period of time.
优选的,用于根据所述故障日志确定与所述故障日志相关联的故障数据的装置被配置为:Preferably, the means for determining fault data associated with the fault log based on the fault log is configured to:
按照所述故障日志所记载的路径确定与其相关联的故障数据。The fault data associated therewith is determined according to the path recorded in the fault log.
优选的,用于获取所述故障日志和故障数据的装置被配置为:Preferably, the means for obtaining the fault log and fault data is configured to:
获取将所述故障日志和故障数据打包压缩后的打包压缩文件。Obtain a packaged compressed file that is packaged and compressed by the fault log and the fault data.
优选的,用于将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的装置被配置为:Preferably, the means for debugging the fault log and fault data to reproduce the fault information of the client is configured to:
提取所述故障日志中反映出客户端操作步骤的内容。The content of the client operation step is extracted in the fault log.
优选的,所述重现装置还包括用于通过所述故障日志和故障数据修复所述故障信息并生成故障信息的装置。Preferably, the reproducing apparatus further comprises means for repairing the fault information and generating fault information through the fault log and fault data.
优选的,所述重现装置还包括用于检测所述修复信息是否再重现所述故障信息的装置;Preferably, the reproducing apparatus further comprises means for detecting whether the repair information reproduces the fault information;
若检测到重现所述故障信息,则再次修复所述故障信息直至不再重现所述故障信息;If the fault information is detected to be reproduced, the fault information is repaired again until the fault information is not reproduced;
若检测到不再重现所述故障信息,则确认故障信息修复完成。If it is detected that the fault information is not reproduced, it is confirmed that the fault information is repaired.
移动设备在使用过程中会出现故障信息,比如:闪退,黑屏,崩溃之类的故障;现有技术中,在解决此故障信息时一般都是先获取用 户移动设备引起故障的信息来分析,以便在后新版本的移动设备中不再出现此类故障。具体解决方案是通过用户移动设备运行日志中表征故障的字段收集其在一时段内的故障日志,将此故障日志发送到服务器,根据此故障日志来重现故障信息,故障信息重现就方便分析故障的具体原因,且方便修复此故障。然而,仅依靠故障日志分析很难重现故障信息,进而就无从修复此故障,这样就无法使后期新版本的移动设备改善此类故障问题。During the use of the mobile device, fault information may occur, such as: flashback, black screen, crash, etc.; in the prior art, when the fault information is solved, the fault information is generally acquired first. The mobile device causes the faulty information to be analyzed so that such a fault no longer occurs in a later new version of the mobile device. The specific solution is to collect the fault log in a period of time in the mobile device running log to identify the fault, send the fault log to the server, and reproduce the fault information according to the fault log, and the fault information is conveniently analyzed. The specific cause of the failure, and it is convenient to repair this fault. However, it is difficult to reproduce the fault information only by relying on the fault log analysis, and thus it is impossible to fix the fault, so that the new version of the mobile device cannot be improved in the later stage.
与现有技术相比,本发明具有以下优点:本发明先确定客户端的故障日志,且根据此故障日志确定与该故障日志相关联的故障数据,也即是确定用户移动设备运行日志中表征故障的字段的故障日志和与该故障日志相关联的故障数据;服务器端同时获取此故障日志和故障数据,并将此故障日志和故障数据进行调试以重现客户端的故障信息。由于本发明在获取故障日志之前还提取了与此故障信息相互关联的故障数据,通过此故障日志和故障数据的结合就方便调试,进而容易重现客户端的故障信息,即容易通过调试重新出现用户移动设备出现的故障;进而也就方便对发生故障的故障信息进行分析,以便修复此故障信息,防止新版本的移动设备中再次出现此类故障。Compared with the prior art, the present invention has the following advantages: the present invention first determines a fault log of a client, and determines fault data associated with the fault log according to the fault log, that is, determines a fault in the user mobile device running log. The fault log of the field and the fault data associated with the fault log; the server side acquires the fault log and the fault data at the same time, and debugs the fault log and the fault data to reproduce the fault information of the client. Since the invention extracts the fault data associated with the fault information before acquiring the fault log, the combination of the fault log and the fault data facilitates debugging, and thus the fault information of the client is easily reproduced, that is, the user is easily re-appeared by debugging. The failure of the mobile device; in turn, it is convenient to analyze the fault information that is faulty, so as to repair the fault information and prevent such faults from occurring in the new version of the mobile device.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present invention will become more apparent from the Detailed Description of Description
图1为本发明一个实施例的故障信息的重现方法的流程示意图;1 is a schematic flow chart of a method for reproducing fault information according to an embodiment of the present invention;
图2为本发明另一个实施例的故障信息的重现方法的流程示意图;2 is a schematic flowchart of a method for reproducing fault information according to another embodiment of the present invention;
图3为本发明一个实施例的故障信息的重现装置的结构示意图;3 is a schematic structural diagram of a device for reproducing fault information according to an embodiment of the present invention;
图4为本发明另一个实施例的故障信息的重现装置的结构示意图。FIG. 4 is a schematic structural diagram of a device for reproducing fault information according to another embodiment of the present invention.
附图中相同或相似的附图标记代表相同或相似的部件。 The same or similar reference numerals in the drawings denote the same or similar components.
具体实施方式detailed description
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe various operations as a sequential process, many of the operations can be implemented in parallel, concurrently or concurrently. In addition, the order of operations can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
在上下文中所称“计算机设备”,也称为“电脑”,是指可以通过运行预定程序或指令来执行数值计算和/或逻辑计算等预定处理过程的智能电子设备,其可以包括处理器与存储器,由处理器执行在存储器中预存的存续指令来执行预定处理过程,或是由ASIC、FPGA、DSP等硬件执行预定处理过程,或是由上述二者组合来实现。计算机设备包括但不限于服务器、个人电脑、笔记本电脑、平板电脑、智能手机等。By "computer device", also referred to as "computer" in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two. Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
所述计算机设备包括用户设备与网络设备。其中,所述用户设备包括但不限于电脑、智能手机、PDA等;所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量计算机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。其中,所述计算机设备可单独运行来实现本发明,也可接入网络并通过与网络中的其他计算机设备的交互操作来实现本发明。其中,所述计算机设备所处的网络包括但不限于互联网、广域网、城域网、局域网、VPN网络等。The computer device includes a user device and a network device. The user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.; the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud computing based computer Or a cloud composed of a network server, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. Wherein, the computer device can be operated separately to implement the present invention, and can also access the network and implement the present invention by interacting with other computer devices in the network. The network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
需要说明的是,所述用户设备、网络设备和网络等仅为举例,其他现有的或今后可能出现的计算机设备或网络如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。It should be noted that the user equipment, the network equipment, the network, and the like are merely examples, and other existing or future possible computer equipment or networks, such as those applicable to the present invention, are also included in the scope of the present invention. It is included here by reference.
后面所讨论的方法(其中一些通过流程图示出)可以通过硬件、软件、固件、中间件、微代码、硬件描述语言或者其任意组合来实施。当用软件、固件、中间件或微代码来实施时,用以实施必要任务的程 序代码或代码段可以被存储在机器或计算机可读介质(比如存储介质)中。(一个或多个)处理器可以实施必要的任务。The methods discussed below, some of which are illustrated by flowcharts, can be implemented in hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. The process used to perform the necessary tasks when implemented in software, firmware, middleware, or microcode. The serial code or code segments can be stored in a machine or computer readable medium such as a storage medium. The processor(s) can perform the necessary tasks.
这里所公开的具体结构和功能细节仅仅是代表性的,并且是用于描述本发明的示例性实施例的目的。但是本发明可以通过许多替换形式来具体实现,并且不应当被解释成仅仅受限于这里所阐述的实施例。The specific structural and functional details disclosed are merely representative and are for the purpose of describing exemplary embodiments of the invention. The present invention may, however, be embodied in many alternative forms and should not be construed as being limited only to the embodiments set forth herein.
应当理解的是,虽然在这里可能使用了术语“第一”、“第二”等等来描述各个单元,但是这些单元不应当受这些术语限制。使用这些术语仅仅是为了将一个单元与另一个单元进行区分。举例来说,在不背离示例性实施例的范围的情况下,第一单元可以被称为第二单元,并且类似地第二单元可以被称为第一单元。这里所使用的术语“和/或”包括其中一个或更多所列出的相关联项目的任意和所有组合。It should be understood that although the terms "first," "second," etc. may be used herein to describe the various elements, these elements should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, a first unit could be termed a second unit, and similarly a second unit could be termed a first unit, without departing from the scope of the exemplary embodiments. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
应当理解的是,当一个单元被称为“连接”或“耦合”到另一单元时,其可以直接连接或耦合到所述另一单元,或者可以存在中间单元。与此相对,当一个单元被称为“直接连接”或“直接耦合”到另一单元时,则不存在中间单元。应当按照类似的方式来解释被用于描述单元之间的关系的其他词语(例如“处于...之间”相比于“直接处于...之间”,“与...邻近”相比于“与...直接邻近”等等)。It will be understood that when a unit is referred to as "connected" or "coupled" to another unit, it can be directly connected or coupled to the other unit, or an intermediate unit can be present. In contrast, when a unit is referred to as being "directly connected" or "directly coupled" to another unit, there is no intermediate unit. Other words used to describe the relationship between the units should be interpreted in a similar manner (eg "between" and "directly between" and "adjacent to" Than "directly adjacent to", etc.).
这里所使用的术语仅仅是为了描述具体实施例而不意图限制示例性实施例。除非上下文明确地另有所指,否则这里所使用的单数形式“一个”、“一项”还意图包括复数。还应当理解的是,这里所使用的术语“包括”和/或“包含”规定所陈述的特征、整数、步骤、操作、单元和/或组件的存在,而不排除存在或添加一个或更多其他特征、整数、步骤、操作、单元、组件和/或其组合。The terminology used herein is for the purpose of describing the particular embodiments, The singular forms "a", "an", It is also to be understood that the terms "comprising" and """ Other features, integers, steps, operations, units, components, and/or combinations thereof.
还应当提到的是,在一些替换实现方式中,所提到的功能/动作可以按照不同于附图中标示的顺序发生。举例来说,取决于所涉及的功能/动作,相继示出的两幅图实际上可以基本上同时执行或者有时可以按照相反的顺序来执行。 It should also be noted that, in some alternative implementations, the functions/acts noted may occur in a different order than that illustrated in the drawings. For example, two figures shown in succession may in fact be executed substantially concurrently or sometimes in the reverse order, depending on the function/acts involved.
下面结合附图对本发明作进一步详细描述。The invention is further described in detail below with reference to the accompanying drawings.
图1为本发明一个实施例的故障信息的重现方法的流程示意图。图3为本发明一个实施例的故障信息的重现装置的结构示意图。所述故障信息的重现方法包括由图3中的重现装置执行的步骤S101、步骤S102、步骤S103和步骤S104。FIG. 1 is a schematic flowchart diagram of a method for reproducing fault information according to an embodiment of the present invention. FIG. 3 is a schematic structural diagram of a device for reproducing fault information according to an embodiment of the present invention. The method of reproducing the failure information includes step S101, step S102, step S103, and step S104 performed by the reproducing apparatus in FIG.
其中,本实施例的故障信息的重现方法主要通过网络设备和用户设备调试机来实现;所述用户设备调试机包括但不限于PC机、平板电脑、智能手机、PDA等;所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量计算机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。而本实施例的调试机依手机为例进行说明,以及网络设备依服务器为例进行说明。The method for reproducing fault information in this embodiment is mainly implemented by a network device and a user equipment debugger; the user equipment debugger includes but is not limited to a PC, a tablet, a smart phone, a PDA, etc.; the network device Including but not limited to a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of computers or network servers, wherein cloud computing is a kind of distributed computing, consisting of a group of loose A super virtual computer consisting of a set of coupled computers. The debugger in this embodiment is described by taking a mobile phone as an example, and the network device is described by taking a server as an example.
需要说明的是,所述用户设备手机仅为举例,其他现有的或今后可能出现的网络设备和用户设备如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。It should be noted that the user equipment mobile phone is only an example, and other existing or future network devices and user equipment may be applicable to the present invention, and are also included in the scope of the present invention and are included by reference. herein.
根据本实施例的方法包括步骤S101、步骤S102、步骤S103和步骤S104。The method according to the present embodiment includes step S101, step S102, step S103, and step S104.
在步骤S101中,重现装置首先确定客户端的故障日志。In step S101, the reproducing apparatus first determines the failure log of the client.
其中,重现装置在用户的客户端中后台运行,并自动收集故障日志。本实施例的客户端依用户手机为例进行说明。The replay device runs in the background of the user's client and automatically collects the fault log. The client in this embodiment is described by taking a user's mobile phone as an example.
具体的,重现装置自动扫描用户客户端的运行日志,当扫描的运行日志中出现表征错误的字段(比如:Fatal Exception)时,自动收集预设时间段内的日志,在此定义为故障日志(error.log);并将此故障日志存储到一文件中。Specifically, the replay device automatically scans the running log of the user client, and when a field indicating the error (for example, Fatal Exception) appears in the running log of the scan, the log in the preset time period is automatically collected, and is defined as a fault log. Error.log); and store this fault log in a file.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何客户端确定故障日志的方法,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any method for determining the fault log by the client should be included in the scope of the present invention. Inside.
在步骤S102中,重现装置根据所述故障日志确定与所述故障日 志相关联的故障数据。In step S102, the reproducing device determines the fault date according to the fault log. The fault data associated with the Zhi.
其中,当重现装置自动收集故障日志后,根据故障日志中的内容收集和此故障相互关联的数据,在此定义为故障数据;After the replay device automatically collects the fault log, the data associated with the fault is collected according to the content in the fault log, and is defined as fault data herein;
具体的,该预设时间段内自动收集的日志可以是:从运行日志中获取最后一个加载的界面名称(比如:Compose Message Activity)。进而打印出用户操作信息,该故障数据包括此用户操作信息,此故障数据包括在故障发生过程中用户操作的信息,这样就方便通过调试机重现故障。Specifically, the automatically collected log in the preset time period may be: obtaining the last loaded interface name from the running log (for example: Compose Message Activity). The user operation information is further printed, and the fault data includes the user operation information, and the fault data includes information of the user operation during the fault occurrence, so that the fault is easily reproduced by the debugger.
此外,该故障数据还可以包括故障日志中所记载的路径信息。需要说明的,本实施例的故障数据并不限于路径信息及用户操作信息,还可以包括有其他与故障日志关联的信息。当然,本实施例的故障数据也可单独包括用户操作信息或单独包括路径信息。In addition, the fault data may further include path information recorded in the fault log. It should be noted that the fault data of this embodiment is not limited to the path information and the user operation information, and may also include other information associated with the fault log. Of course, the fault data of this embodiment may also include user operation information alone or separately include path information.
在步骤S103中,重现装置获取所述故障日志和故障数据;In step S103, the reproducing device acquires the fault log and fault data;
其中,重现装置确定故障日志和故障数据后,将此故障日志和故障数据发送到服务器。After the reproducing device determines the fault log and the fault data, the fault log and the fault data are sent to the server.
具体的,将故障日志和故障数据打包到一个文件夹内,并进行压缩,将压缩后的文件夹发送到服务器端,而且是在网络畅通时将此压缩后的文件夹发送给服务器。需要说明的是,此仅为重现装置获取故障日志和故障数据的一种具体举例方式,本实施例并不限于此,还可以有其他获取方式,比如:不进行压缩打包,直接将确认的故障日志和故障数据发送到服务器端。Specifically, the fault log and the fault data are packaged into a folder, compressed, and the compressed folder is sent to the server, and the compressed folder is sent to the server when the network is unblocked. It should be noted that this is only a specific example of obtaining the fault log and the fault data by the reproducing device. The embodiment is not limited thereto, and other methods may be obtained, such as: not compressing and packaging, directly confirming The fault log and fault data are sent to the server.
在步骤S104中,重现装置将所述故障日志和故障数据进行调试以重现所述客户端的故障信息。In step S104, the reproducing device debugs the fault log and the fault data to reproduce the fault information of the client.
其中,提取所述故障日志中反映出客户端操作步骤的内容。The content of the operation step of the client is reflected in the fault log.
具体的,从服务器上获取打包压缩后的文件夹后,解压此压缩文件夹,并打开这些文件,从而获取故障日志和故障数据,将故障日志和故障数据放到PC上的处理软件相关目录下,并将调试手机和此PC相连,此处理软件按照收集数据文件描述(Collect.log)所记载的路径把用户数据自动导入到和PC相连的调试手机中相应的目录下;以 及将故障日志(error.log)中反映出的用户操作步骤的内容提取并显示出来。从而实现了重现此故障,进而就方便分析并找到故障原因,以便在后期过程中修改程序,且可以将新的apk导入手机中,防止新版本手机再出现此类故障。Specifically, after obtaining the packaged compressed folder from the server, extract the compressed folder, and open the files to obtain the fault log and the fault data, and put the fault log and the fault data into the processing software related directory on the PC. And connecting the debugging mobile phone to the PC, the processing software automatically imports the user data into the corresponding directory in the debugging mobile phone connected to the PC according to the path recorded in the collected data file description (Collect.log); And extract and display the contents of the user operation steps reflected in the fault log (error.log). This makes it possible to reproduce this fault, which in turn facilitates analysis and finds the cause of the fault, so that the program can be modified in the later process, and the new apk can be imported into the mobile phone to prevent such a fault from occurring in the new version of the mobile phone.
移动设备在使用过程中会出现故障信息,比如:闪退,黑屏,崩溃之类的故障。The mobile device will have fault information during use, such as flashback, black screen, crash and the like.
现有技术中,在解决此故障信息时一般都是先获取用户移动设备引起故障的信息来分析,以便在后新版本的移动设备中不再出现此类故障。具体解决方案是通过用户移动设备运行日志中表征故障的字段收集其在一时段内的故障日志,将此故障日志发送到服务器,根据此故障日志来重现故障信息,故障信息重现就方便分析故障的具体原因,且方便修复此故障。然而,仅依靠故障日志分析很难重现故障信息,进而就无从修复此故障,这样就无法使后期新版本的移动设备改善此类故障问题。In the prior art, when the fault information is solved, the information caused by the fault of the user mobile device is generally first analyzed, so that such a fault does not occur in the new version of the mobile device. The specific solution is to collect the fault log in a period of time in the mobile device running log to identify the fault, send the fault log to the server, and reproduce the fault information according to the fault log, and the fault information is conveniently analyzed. The specific cause of the failure, and it is convenient to repair this fault. However, it is difficult to reproduce the fault information only by relying on the fault log analysis, and thus it is impossible to fix the fault, so that the new version of the mobile device cannot be improved in the later stage.
而本实施例先确定客户端的故障日志,且根据此故障日志确定与该故障日志相关联的故障数据,也即是确定用户移动设备运行日志中表征故障的字段的故障日志和与该故障日志相关联的故障数据;服务器端同时获取此故障日志和故障数据,并将此故障日志和故障数据进行调试以重现客户端的故障信息。由于本实施例在获取故障日志之前还提取了与此故障信息相互关联的故障数据,通过此故障日志和故障数据的结合就方便调试,进而容易重现客户端的故障信息,即容易通过调试重新出现用户移动设备出现的故障;进而也就方便对发生故障的故障信息进行分析,以便修复此故障信息,防止新版本的移动设备中再次出现此类故障。In this embodiment, the fault log of the client is first determined, and the fault data associated with the fault log is determined according to the fault log, that is, the fault log of the field indicating the fault in the user mobile device running log is determined and related to the fault log. The fault data of the joint; the server side obtains the fault log and the fault data at the same time, and debugs the fault log and the fault data to reproduce the fault information of the client. Because the fault data associated with the fault information is extracted before the fault log is obtained, the combination of the fault log and the fault data facilitates debugging, and thus the fault information of the client is easily reproduced, that is, it is easy to reappear through debugging. The failure of the user's mobile device; in turn, it is convenient to analyze the faulty fault information in order to repair the fault information and prevent such faults from occurring in the new version of the mobile device.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何通过获取故障日志和与故障日志相互关联的故障数据来重现故障信息的方法,均应包含在本发明的范围内。 It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any of the fault data obtained by acquiring the fault log and the fault log is reproduced. The method of fault information should be included in the scope of the present invention.
图2为本发明另一个实施例的故障信息的重现方法的流程示意图。本实施例的方法主要由重现装置来实现,其中,参照图1所示实施例中对重现装置所做的任何说明,均以引用的方式包含于此。FIG. 2 is a schematic flowchart diagram of a method for reproducing fault information according to another embodiment of the present invention. The method of the present embodiment is mainly implemented by a reproducing apparatus, wherein any description of the reproducing apparatus in the embodiment shown in Fig. 1 is incorporated herein by reference.
根据本实施例的方法包括步骤S201、步骤S202、步骤S203、步骤204、步骤205和步骤206。The method according to the present embodiment includes step S201, step S202, step S203, step 204, step 205, and step 206.
其中,所述步骤S201可参照图1中的步骤S101,步骤S202可以参照图1中的步骤S102,步骤S203可以参照图1中的步骤S103,以及步骤S204可以参照图1中的步骤S104,图1中的实施例已予以详述,在此不再赘述。The step S201 can refer to step S101 in FIG. 1 , step S202 can refer to step S102 in FIG. 1 , step S203 can refer to step S103 in FIG. 1 , and step S204 can refer to step S104 in FIG. 1 . The embodiment in 1 has been described in detail and will not be described herein.
也即图2所示的实施例与图1中的区别在于:图2示出的实施例还包括有步骤S205和步骤S206。That is, the embodiment shown in FIG. 2 differs from that in FIG. 1 in that the embodiment shown in FIG. 2 further includes step S205 and step S206.
在步骤S205中,在将所述故障日志和故障数据进行调试以重现所述客户端的故障信息后,所述重现方法还包括:In step S205, after the fault log and the fault data are debugged to reproduce the fault information of the client, the method further includes:
通过所述故障日志和故障数据修复所述故障信息,并生成修复信息。The fault information is repaired by the fault log and the fault data, and repair information is generated.
其中,通过重现此故障,分析并找到故障原因,然后修改程序将新的apk导入手机中,从而实现了对故障的修复。Among them, by recreating this fault, analyzing and finding the cause of the fault, and then modifying the program to import the new apk into the mobile phone, thereby realizing the repair of the fault.
在步骤S206中,检测所述修复信息是否再重现所述故障信息,In step S206, detecting whether the repair information reproduces the fault information,
若重现所述故障信息,则再次修复所述故障信息直至不再重现所述故障信息;If the fault information is reproduced, the fault information is repaired again until the fault information is not reproduced;
若不再重现所述故障信息,则确认故障信息修复完成。If the fault information is not reproduced, it is confirmed that the fault information is repaired.
即:当检测所述修复信息不再重现所述故障信息时确认故障信息修复完成;That is, when it is detected that the repair information does not reproduce the fault information, it is confirmed that the fault information is repaired;
当检测所述修复信息重现所述故障信息时,再次修复所述故障信息直至不再重现所述故障信息。When the repair information is detected to reproduce the fault information, the fault information is repaired again until the fault information is not reproduced.
其中,也即是:本实施例通过对修复后的信息进行进一步的检测确认,若重现出现过的故障信息则返回到步骤S205中继续对故障信息进行修复,并生成另一个新的修复信息,直至确保检测修复完成的信息不再重现故障为止。确保修复后的信息不再出现此类故障。 That is, in this embodiment, the repaired information is further checked and confirmed. If the fault information that has occurred is reproduced, the process returns to step S205 to continue repairing the fault information, and another new repair information is generated. Until the information to ensure that the repair is complete does not reproduce the fault. Make sure that the repaired information no longer has this type of failure.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何客户端的用户信对重现的故障进行修复的方法以及对修复后的信息进行检测的方法息,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any client user's letter repairs the recurring faults and repairs The method of detecting the subsequent information should be included in the scope of the present invention.
图3为本发明一个实施例的故障信息的重现装置的结构示意图。该用于重现故障信息的装置(以下简称“重现装置”)包括用于确定客户端的故障日志的装置(以下简称“第一故障日志确定装置301”)、用于根据所述故障日志确定与所述故障日志相关联的故障数据的装置(以下简称“第一故障数据确认装置302”)、用于获取所述故障日志和故障数据的装置(以下简称“第一获取装置303”)、以及用于将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的装置(以下简称“第一调试装置304”)。FIG. 3 is a schematic structural diagram of a device for reproducing fault information according to an embodiment of the present invention. The apparatus for reproducing fault information (hereinafter referred to as "reproducing apparatus") includes means for determining a fault log of the client (hereinafter referred to as "first fault log determining means 301") for determining according to the fault log a device for fault data associated with the fault log (hereinafter referred to as "first fault data confirming device 302"), a device for acquiring the fault log and fault data (hereinafter referred to as "first acquiring device 303"), And means for debugging the fault log and the fault data to reproduce the fault information of the client (hereinafter referred to as "the first debug device 304").
第一故障日志确认装置301,用于确认客户端用户的故障日志。The first fault log confirming device 301 is configured to confirm the fault log of the client user.
其中,第一故障日志确认装置301在用户的客户端中后台运行,并自动收集故障日志。本实施例的客户端依用户手机为例进行说明。The first fault log confirming device 301 runs in the background of the user's client and automatically collects the fault log. The client in this embodiment is described by taking a user's mobile phone as an example.
具体的,第一故障日志确认装置301自动扫描用户客户端的运行日志,当扫描的运行日志中出现表征错误的字段(比如:Fatal Exception)时,自动收集预设时间段内的日志,在此定义为故障日志(error.log);并将此故障日志存储到一文件中。Specifically, the first fault log confirming device 301 automatically scans the running log of the user client, and automatically collects the log in the preset time period when a field indicating the error (for example, Fatal Exception) appears in the running log of the scan, and is defined herein. Is the fault log (error.log); and stores this fault log in a file.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何客户端确定故障日志的装置,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any device for determining the fault log by the client should be included in the scope of the present invention. Inside.
第一故障数据确认装置302,根据所述故障日志确定与所述故障日志相关联的故障数据。The first failure data confirming means 302 determines the fault data associated with the fault log based on the fault log.
其中,当第一故障日志确认装置301自动收集故障日志后,根据故障日志中的内容收集和此故障相互关联的数据,在此定义为故障数据;After the first fault log confirming device 301 automatically collects the fault log, the data associated with the fault is collected according to the content in the fault log, and is defined as fault data herein;
具体的,该预设时间段内自动收集的日志可以是:从运行日志中 获取最后一个加载的界面名称(比如:Compose Message Activity)。进而打印出用户操作信息,该故障数据包括此用户操作信息,此故障数据包括在故障发生过程中用户操作的信息,这样就方便通过调试机重现故障。Specifically, the automatically collected log in the preset time period may be: from the running log. Get the last loaded interface name (for example: Compose Message Activity). The user operation information is further printed, and the fault data includes the user operation information, and the fault data includes information of the user operation during the fault occurrence, so that the fault is easily reproduced by the debugger.
此外,该故障数据还可以包括故障日志中所记载的路径信息。需要说明的,本实施例的故障数据并不限于路径信息及用户操作信息,还可以包括有其他与故障日志关联的信息。当然,本实施例的故障数据也可单独包括用户操作信息或单独包括路径信息。In addition, the fault data may further include path information recorded in the fault log. It should be noted that the fault data of this embodiment is not limited to the path information and the user operation information, and may also include other information associated with the fault log. Of course, the fault data of this embodiment may also include user operation information alone or separately include path information.
第一获取装置303,获取所述故障日志和故障数据。The first obtaining means 303 acquires the fault log and fault data.
其中,第一故障日志确认装置及第一故障数据确认装置分别确定故障日志和故障数据后,将此故障日志和故障数据发送到服务器。After the first fault log confirming device and the first fault data confirming device respectively determine the fault log and the fault data, the fault log and the fault data are sent to the server.
具体的,将故障日志和故障数据打包到一个文件夹内,并进行压缩,将压缩后的文件夹发送到服务器端,而且是在网络畅通时将此压缩后的文件夹发送给服务器。需要说明的是,此仅为第一获取装置获取故障日志和故障数据的一种具体举例方式,本实施例并不限于此,还可以有其他获取方式,比如:不进行压缩打包,直接将确认的故障日志和故障数据发送到服务器端。Specifically, the fault log and the fault data are packaged into a folder, compressed, and the compressed folder is sent to the server, and the compressed folder is sent to the server when the network is unblocked. It should be noted that this is only a specific example of obtaining the fault log and the fault data by the first acquiring device. The embodiment is not limited thereto, and other obtaining manners may be used, for example, the compression and packaging are not performed, and the confirmation is directly performed. The fault log and fault data are sent to the server.
第一调试装置304,将所述故障日志和故障数据进行调试以重现所述客户端的故障信息。The first debugging device 304 debugs the fault log and the fault data to reproduce the fault information of the client.
其中,提取所述故障日志中反映出客户端操作步骤的内容。The content of the operation step of the client is reflected in the fault log.
具体的,从服务器上获取打包压缩后的文件夹后,解压此压缩文件夹,并打开这些文件,从而获取故障日志和故障数据,将故障日志和故障数据放到PC上的处理软件相关目录下,并将调试手机和此PC相连,此处理软件按照收集数据文件描述(Collect.log)所记载的路径把用户数据自动导入到和PC相连的调试手机中相应的目录下;以及将故障日志(error.log)中反映出的用户操作步骤的内容提取并显示出来。从而实现了重现此故障,进而就方便分析并找到故障原因,以便在后期过程中修改程序,且可以将新的apk导入手机中,防止新版本手机再出现此类故障。 Specifically, after obtaining the packaged compressed folder from the server, extract the compressed folder, and open the files to obtain the fault log and the fault data, and put the fault log and the fault data into the processing software related directory on the PC. And connecting the debugging mobile phone to the PC, the processing software automatically imports the user data into the corresponding directory in the debugging mobile phone connected to the PC according to the path recorded in the collected data file description (Collect.log); and the fault log ( The content of the user operation steps reflected in error.log) is extracted and displayed. This makes it possible to reproduce this fault, which in turn facilitates analysis and finds the cause of the fault, so that the program can be modified in the later process, and the new apk can be imported into the mobile phone to prevent such a fault from occurring in the new version of the mobile phone.
移动设备在使用过程中会出现故障信息,比如:闪退,黑屏,崩溃之类的故障。The mobile device will have fault information during use, such as flashback, black screen, crash and the like.
现有技术中,在解决此故障信息时一般都是先获取用户移动设备引起故障的信息来分析,以便在后新版本的移动设备中不再出现此类故障。具体解决方案是通过用户移动设备运行日志中表征故障的字段收集其在一时段内的故障日志,将此故障日志发送到服务器,根据此故障日志来重现故障信息,故障信息重现就方便分析故障的具体原因,且方便修复此故障。然而,仅依靠故障日志分析很难重现故障信息,进而就无从修复此故障,这样就无法使后期新版本的移动设备改善此类故障问题。In the prior art, when the fault information is solved, the information caused by the fault of the user mobile device is generally first analyzed, so that such a fault does not occur in the new version of the mobile device. The specific solution is to collect the fault log in a period of time in the mobile device running log to identify the fault, send the fault log to the server, and reproduce the fault information according to the fault log, and the fault information is conveniently analyzed. The specific cause of the failure, and it is convenient to repair this fault. However, it is difficult to reproduce the fault information only by relying on the fault log analysis, and thus it is impossible to fix the fault, so that the new version of the mobile device cannot be improved in the later stage.
而本实施例先确定客户端的故障日志,且根据此故障日志确定与该故障日志相关联的故障数据,也即是确定用户移动设备运行日志中表征故障的字段的故障日志和与该故障日志相关联的故障数据;服务器端同时获取此故障日志和故障数据,并将此故障日志和故障数据进行调试以重现客户端的故障信息。由于实施例在获取故障日志之前还提取了与此故障信息相互关联的故障数据,通过此故障日志和故障数据的结合就方便调试,进而容易重现客户端的故障信息,即容易通过调试重新出现用户移动设备出现的故障;进而也就方便对发生故障的故障信息进行分析,以便修复此故障信息,防止新版本的移动设备中再次出现此类故障。In this embodiment, the fault log of the client is first determined, and the fault data associated with the fault log is determined according to the fault log, that is, the fault log of the field indicating the fault in the user mobile device running log is determined and related to the fault log. The fault data of the joint; the server side obtains the fault log and the fault data at the same time, and debugs the fault log and the fault data to reproduce the fault information of the client. Since the embodiment extracts the fault data associated with the fault information before acquiring the fault log, the combination of the fault log and the fault data facilitates debugging, and thus the fault information of the client is easily reproduced, that is, the user is easily re-appeared by debugging. The failure of the mobile device; in turn, it is convenient to analyze the fault information that is faulty, so as to repair the fault information and prevent such faults from occurring in the new version of the mobile device.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何通过获取故障日志和与故障日志相互关联的故障数据来重现故障信息的装置,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any of the fault data obtained by acquiring the fault log and the fault log is reproduced. The means for fault information should be included in the scope of the present invention.
图4为本发明另一个实施例的故障信息的重现推送装置的结构示意图,结合图3,该用于重现故障信息的装置(以下简称“重现装置”)包括用于确定客户端的故障日志的装置(以下简称“第二故障日志确定装置401”)、用于根据所述故障日志确定与所述故障日志相关联 的故障数据的装置(以下简称“第二故障数据确认装置402”)、用于获取所述故障日志和故障数据的装置(以下简称“第二获取装置403”)、用于将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的装置(以下简称“第二调试装置404”)、用于通过所述故障日志和故障数据修复所述故障信息并生成修复信息的装置(以下简称“修复装置405”)、以及用于检测所述修复信息是否再重现所述故障信息的装置(以下简称“检测装置406”)该用于推送重现故障信息的装置(以下简称“推送装置”“重现装置”)包括用于获取客户端的用户信息的装置(以下简称“第二获取装置401”)、用于根据所述客户端的用户信息确定与所述用户信息匹配的待发送信息的装置(以下简称“第二确定装置402”)、用于将所述待发送信息推送到客户端的应用程序的应用入口控件区域进行显示的装置(以下简称“第二发送装置403”)、以及根据注册信息和应用程序的使用信息建立个人信息档案的装置(以下简称“第一个人信息装置404”)。4 is a schematic structural diagram of a replaying push device for fault information according to another embodiment of the present invention. In conjunction with FIG. 3, the device for reproducing fault information (hereinafter referred to as "reproducing device") includes a fault for determining a client. a device for logging (hereinafter referred to as "second failure log determining device 401") for determining association with the failure log according to the failure log Device for fault data (hereinafter referred to as "second fault data confirming device 402"), means for acquiring the fault log and fault data (hereinafter referred to as "second acquiring device 403"), for using the fault log And means for debugging the fault data to reproduce the fault information of the client (hereinafter referred to as "second debug device 404"), means for repairing the fault information by the fault log and fault data, and generating repair information ( Hereinafter, the "repair device 405"), and means for detecting whether the repair information reproduces the fault information (hereinafter referred to as "detection device 406") means for pushing the recurring fault information (hereinafter referred to as " The push device "reproducing device" includes means for acquiring user information of the client (hereinafter referred to as "second obtaining device 401"), and is configured to determine, according to the user information of the client, a to-be-sent that matches the user information. a device for information (hereinafter referred to as "second determining device 402"), an application entry control area for pushing the information to be sent to an application of the client A device for displaying a line (hereinafter referred to as "second transmitting device 403") and a device for establishing a personal information file based on registration information and usage information of the application (hereinafter referred to as "first personal information device 404").
其中,所述第二故障日志确定装置401可参照图3中的第一故障日志确定装置301,第二故障数据确认装置402可以参照图3中的第一故障数据确认装置302,第二获取装置403可以参照图3中的第一获取装置303,以及第二调试装置404可以参照图3中的第一调试装置304,图3中的实施例已予以详述,在此不再赘述。The second fault log determining device 401 can refer to the first fault log determining device 301 in FIG. 3, and the second fault data confirming device 402 can refer to the first fault data confirming device 302 in FIG. 3, and the second acquiring device. 403 can refer to the first obtaining device 303 in FIG. 3, and the second debugging device 404 can refer to the first debugging device 304 in FIG. 3. The embodiment in FIG. 3 has been described in detail, and details are not described herein again.
也即图4所示的实施例与图3中的区别在于:图4示出的实施例还包括有修复装置和检测装置。That is, the embodiment shown in FIG. 4 differs from that in FIG. 3 in that the embodiment shown in FIG. 4 further includes a repairing device and a detecting device.
修复装置,通过所述故障日志和故障数据修复所述故障信息,并生成修复信息。The repairing device repairs the fault information through the fault log and the fault data, and generates repair information.
其中,通过重现此故障,分析并找到故障原因,然后修改程序将新的apk导入手机中,从而实现了对故障的修复。Among them, by recreating this fault, analyzing and finding the cause of the fault, and then modifying the program to import the new apk into the mobile phone, thereby realizing the repair of the fault.
修复装置,检测所述修复信息是否再重现所述故障信息,Repairing the device, detecting whether the repair information reproduces the fault information,
若重现所述故障信息,则再次修复所述故障信息直至不再重现所述故障信息; If the fault information is reproduced, the fault information is repaired again until the fault information is not reproduced;
若不再重现所述故障信息,则确认故障信息修复完成。If the fault information is not reproduced, it is confirmed that the fault information is repaired.
即:当检测所述修复信息不再重现所述故障信息时确认故障信息修复完成;That is, when it is detected that the repair information does not reproduce the fault information, it is confirmed that the fault information is repaired;
当检测所述修复信息重现所述故障信息时,再次修复所述故障信息直至不再重现所述故障信息。When the repair information is detected to reproduce the fault information, the fault information is repaired again until the fault information is not reproduced.
其中,也即是:本实施例通过对修复后的信息进行进一步的检测确认,若重现出现过的故障信息则继续对故障信息进行修复,并生成另一个新的修复信息,直至确保检测修复完成的信息不再重现故障为止。确保修复后的信息不再出现此类故障。In this case, the present embodiment further confirms the repaired information, and if the fault information appears, the fault information is further repaired, and another new repair information is generated until the detection and repair is ensured. The completed information no longer reproduces the fault. Make sure that the repaired information no longer has this type of failure.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何客户端的用户信对重现的故障进行修复的装置以及对修复后的信息进行检测的装置,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any client user's letter repairs the recurring faults and repairs. The means for detecting the subsequent information should be included in the scope of the present invention.
另外,本实施例的重现装置也可以不包括检测装置,仅通过修复装置修复完成即可。In addition, the reproducing apparatus of this embodiment may not include the detecting device, and may be repaired only by the repairing device.
本发明中,重现装置可以包含一个日志手机模块、进程检索模块和数据存储模块,此日志收集模块收集手机运行的日志存储到一文件中,扫描日志的内容当出现Fatal Exception这类表征错误的字段时,从日志中获取最后一个加载的界面名称(如ComposeMessageActivity)和之后打印出的一些用户操作信息,将这些内容传给进程检索模块。进程检索模块可以包含一个数据库,用于记录客户端运行日志的进程(Process),当前界面名称(ScreenName),此界面涉及的存储在手机中的数据文件(CollectFile)和数据路径(CollectDir),对于某些界面,进行某些操作时需要收集更多数据,会有额外的字段存储日志中涉及的操作(Operation),通过这些信息确定要打包保存的数据,并传给数据存储模块。In the present invention, the reproducing apparatus may include a log mobile phone module, a process retrieval module, and a data storage module. The log collection module collects the log of the mobile phone running and stores it in a file, and the content of the scan log is incorrectly represented by Fatal Exception. In the field, the last loaded interface name (such as ComposeMessageActivity) and some user operation information printed afterwards are obtained from the log, and the content is passed to the process retrieval module. The process retrieval module may include a database for recording the process (Process) of the client running log, the current interface name (ScreenName), and the data file (CollectFile) and the data path (CollectDir) stored in the mobile phone involved in the interface. Some interfaces need to collect more data for certain operations. There are additional fields to store the operations involved in the log. This information is used to determine the data to be packaged and passed to the data storage module.
例如:此数据库中的表格记录下表1所示:For example: the table records in this database are shown in Table 1 below:
表1 Table 1
Figure PCTCN2016103891-appb-000001
Figure PCTCN2016103891-appb-000001
重现装置还可以包含数据收集模块和数据发送模块:The reproducing device may further comprise a data collecting module and a data sending module:
找到进程检索模块中传来的要收集的文件路径和文件夹复制过来,再生成一个收集文件描述文件Collect.log,然后将这些文件和此次故障日志信息打包压缩到某一文件夹下,当网络畅通时发送给服务器。Find the file path and folder to be collected from the process retrieval module, and then generate a collection file description file Collect.log, and then package these files and the fault log information into a folder, when Sent to the server when the network is unblocked.
Collect.log文件格式可以为:The Collect.log file format can be:
目标目录                                     本地目录Target directory local directory
data/data/com.providers.contacts/databases   databaseData/data/com.providers.contacts/databases database
data/data/com.providers.contacts/files       filesData/data/com.providers.contacts/files files
目的是让PC端的软件能够读取后把收集的文件导入到调试手机相应的目录(目标目录)下。The purpose is to enable the PC-side software to read and import the collected files into the corresponding directory (target directory) of the debug phone.
下面以一个收集到的短信模块的crash日志为例来说明一下检索 过程:Let's take a crash log of the collected SMS module as an example to illustrate the search. process:
Figure PCTCN2016103891-appb-000002
Figure PCTCN2016103891-appb-000002
日志收集模块扫描到表征故障的关键字FATAL EXCEPTION,然后向上检索最后一个加载界面的关键字Load screen和进程Process,找到最后加载的界面名称为ComposeMessageActivity,进程名为com.android.mms,找到数据表格中id为1的记录与之对应,则根据这条记录的要求把要收集的data/data/com.providers.telephony/mmssms.db文件和路径data/data/com.providers.telephony/app_parts发给数据收集模块和数据发送模块,数据收集模块和数据发送模块会将用户手机中的这些文件和文件夹拷贝出来,并生成Collect.log文件,将收集的文件和文件夹的路径写入其中,再截取日志文件一定时间内的log作为故障日志error.log,将这些文件打包压缩后发给服务器。研发人员从服务器上获取此故障文件包后,放到此系统PC端软件相应目录下,PC端软件先按照Collect.log中记载的内容将mmssms.db文件和app_parts文件夹导入到调试手机对应的目录下,然后读取error.log中内容,将过滤出的用户操作的内容显示在界面上,研发人员按照显示的操作步骤(观察关键字Load Screen,Operation)进入 ComposeMessageActivity界面,再按照PC端软件显示的Operation内容在这个界面上操作,以期能重现用户的故障。重现故障后设法分析出如何修改程序,修改好以后将新的apk导入并在此调试机器上验证修改结果。The log collection module scans the faulty keyword FATAL EXCEPTION, and then searches up the last load interface keyword Load screen and process Process, finds the last loaded interface name as ComposeMessageActivity, and the process name is com.android.mms, finds the data table. The record with the id of 1 corresponds to the data/data/com.providers.telephony/mmssms.db file and the path data/data/com.providers.telephony/app_parts to be collected according to the requirements of this record. The data collection module and the data sending module, the data collection module and the data sending module copy the files and folders in the user's mobile phone, generate a Collect.log file, and write the path of the collected files and folders, and then The log file is intercepted for a certain period of time as the fault log error.log. These files are packaged and compressed and sent to the server. After obtaining the fault file package from the server, the R&D personnel put it in the corresponding directory of the PC software of the system. The PC software first imports the mmssms.db file and the app_parts folder into the debug phone according to the contents recorded in the Collect.log. In the directory, then read the contents of error.log, display the contents of the filtered user operation on the interface, and the developer enters according to the displayed operation steps (observation keyword Load Screen, Operation). The ComposeMessageActivity interface is operated on this interface according to the Operation content displayed by the PC software, in order to reproduce the user's fault. After recurring the fault, try to analyze how to modify the program. After the modification, import the new apk and verify the modification result on this debugging machine.
需要注意的是,本发明可在软件和/或软件与硬件的组合体中被实施,例如,本发明的各个装置可采用专用集成电路(ASIC)或任何其他类似硬件设备来实现。在一个实施例中,本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。It should be noted that the present invention can be implemented in software and/or a combination of software and hardware. For example, the various devices of the present invention can be implemented using an application specific integrated circuit (ASIC) or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Likewise, the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like. Additionally, some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。It is apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in the present invention. Any reference signs in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the system claims can also be implemented by a unit or device by software or hardware. The first, second, etc. words are used to denote names and do not denote any particular order.
虽然前面特别示出并且描述了示例性实施例,但是本领域技术人员将会理解的是,在不背离权利要求书的精神和范围的情况下,在其形式和细节方面可以有所变化。这里所寻求的保护在所附权利要求书中做了阐述。在下列编号条款中规定了各个实施例的这些和其他方面: While the invention has been shown and described with reference to the embodiments of the embodiments of the invention The protection sought herein is set forth in the appended claims. These and other aspects of various embodiments are set forth in the following numbering clauses:

Claims (14)

  1. 一种故障信息的重现方法,其特征在于,所述重现方法包括以下步骤:A method for reproducing fault information, characterized in that the method for reproducing comprises the following steps:
    确定客户端的故障日志;Determine the fault log of the client;
    根据所述故障日志确定与所述故障日志相关联的故障数据;Determining fault data associated with the fault log according to the fault log;
    获取所述故障日志和故障数据;Obtaining the fault log and fault data;
    将所述故障日志和故障数据进行调试以重现所述客户端的故障信息。The fault log and the fault data are debugged to reproduce the fault information of the client.
  2. 如权利要求1所述的故障信息的重现方法,其特征在于,所述确定客户端的故障日志的方法包括:The method for reproducing fault information according to claim 1, wherein the method for determining a fault log of the client comprises:
    扫描客户端运行日志中是否有表征错误的故障关键字,若有,则在预设的时间段内确定所述表征错误的故障关键字对应的故障日志。Scan the client running log for fault keywords that indicate errors. If yes, determine the fault log corresponding to the faulty keyword that indicates the fault within a preset period of time.
  3. 如权利要求1所述的故障信息的重现方法,其特征在于,所述根据所述故障日志确定与所述故障日志相关联的故障数据的方法包括:The method for reproducing fault information according to claim 1, wherein the method for determining fault data associated with the fault log according to the fault log comprises:
    按照所述故障日志所记载的路径确定与其相关联的故障数据。The fault data associated therewith is determined according to the path recorded in the fault log.
  4. 如权利要求1所述的手机故障的重现方法,其特征在于,所述获取所述故障日志和故障数据的方法包括:The method for reproducing a fault of a mobile phone according to claim 1, wherein the method for acquiring the fault log and the fault data comprises:
    获取将所述故障日志和故障数据打包压缩后的打包压缩文件。Obtain a packaged compressed file that is packaged and compressed by the fault log and the fault data.
  5. 如权利要求1所述的故障信息的重现方法,其特征在于,所述将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的方法包括:The method for reproducing fault information according to claim 1, wherein the method for debugging the fault log and the fault data to reproduce the fault information of the client includes:
    提取所述故障日志中反映出客户端操作步骤的内容。The content of the client operation step is extracted in the fault log.
  6. 如权利要求1所述的故障信息的重现方法,其特征在于,在将所述故障日志和故障数据进行调试以重现所述客户端的故障信息后,所述重现方法还包括:The method for reproducing fault information according to claim 1, wherein after the fault log and the fault data are debugged to reproduce the fault information of the client, the method further includes:
    通过所述故障日志和故障数据修复所述故障信息,并生成修复信息。The fault information is repaired by the fault log and the fault data, and repair information is generated.
  7. 如权利要求6所述的故障信息的重现方法,其特征在于,检测所 述修复信息是否再重现所述故障信息,A method for reproducing fault information according to claim 6, wherein the detecting station Whether the repair information reproduces the fault information,
    若重现所述故障信息,则再次修复所述故障信息直至不再重现所述故障信息;If the fault information is reproduced, the fault information is repaired again until the fault information is not reproduced;
    若不再重现所述故障信息,则确认故障信息修复完成。If the fault information is not reproduced, it is confirmed that the fault information is repaired.
  8. 一种故障信息的重现装置,其特征在于,所述重现装置包括以下装置:A reproducing device for fault information, characterized in that the reproducing device comprises the following devices:
    用于确定客户端的故障日志的装置;Means for determining a fault log of the client;
    用于根据所述故障日志确定与所述故障日志相关联的故障数据的装置;Means for determining fault data associated with the fault log based on the fault log;
    用于获取所述故障日志和故障数据的装置;Means for obtaining the fault log and fault data;
    用于将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的装置。Means for debugging the fault log and fault data to reproduce fault information of the client.
  9. 如权利要求8所述的故障信息的重现装置,其特征在于,用于确定客户端的故障日志的装置被配置为:The apparatus for reproducing fault information according to claim 8, wherein the means for determining the fault log of the client is configured to:
    扫描客户端运行日志中是否有表征错误的故障关键字,若有,则在预设的时间段内确定所述表征错误的故障关键字对应的故障日志。Scan the client running log for fault keywords that indicate errors. If yes, determine the fault log corresponding to the faulty keyword that indicates the fault within a preset period of time.
  10. 如权利要求书8所述的故障信息的重现装置,其特征在于,用于根据所述故障日志确定与所述故障日志相关联的故障数据的装置被配置为:The apparatus for reproducing fault information according to claim 8, wherein the means for determining fault data associated with the fault log based on the fault log is configured to:
    按照所述故障日志所记载的路径确定与其相关联的故障数据。The fault data associated therewith is determined according to the path recorded in the fault log.
  11. 如权利要求书8所述的故障信息的重现装置,其特征在于,用于获取所述故障日志和故障数据的装置被配置为:The apparatus for reproducing fault information according to claim 8, wherein the means for acquiring the fault log and the fault data is configured to:
    获取将所述故障日志和故障数据打包压缩后的打包压缩文件。Obtain a packaged compressed file that is packaged and compressed by the fault log and the fault data.
  12. 如权利要求书8所述的故障信息的重现装置,其特征在于,用于将所述故障日志和故障数据进行调试以重现所述客户端的故障信息的装置被配置为:The apparatus for reproducing fault information according to claim 8, wherein the means for debugging the fault log and the fault data to reproduce the fault information of the client is configured to:
    提取所述故障日志中反映出客户端操作步骤的内容。The content of the client operation step is extracted in the fault log.
  13. 如权利要求书8所述的故障信息的重现装置,其特征在于,所 述重现装置还包括用于通过所述故障日志和故障数据修复所述故障信息并生成故障信息的装置。A reproducing apparatus for fault information according to claim 8, wherein The reproducing apparatus further includes means for repairing the fault information and generating fault information by the fault log and fault data.
  14. 如权利要求书13所述的故障信息的重现装置,其特征在于,所述重现装置还包括用于检测所述修复信息是否再重现所述故障信息的装置;The apparatus for reproducing fault information according to claim 13, wherein said reproducing means further comprises means for detecting whether said repair information reproduces said fault information;
    若检测到重现所述故障信息,则再次修复所述故障信息直至不再重现所述故障信息;If the fault information is detected to be reproduced, the fault information is repaired again until the fault information is not reproduced;
    若检测到不再重现所述故障信息,则确认故障信息修复完成。 If it is detected that the fault information is not reproduced, it is confirmed that the fault information is repaired.
PCT/CN2016/103891 2016-01-20 2016-10-29 Fault information reproduction method and reproduction apparatus WO2017124808A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610037376.9 2016-01-20
CN201610037376.9A CN105718354A (en) 2016-01-20 2016-01-20 Fault information reproducing method and device

Publications (1)

Publication Number Publication Date
WO2017124808A1 true WO2017124808A1 (en) 2017-07-27

Family

ID=56148002

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103891 WO2017124808A1 (en) 2016-01-20 2016-10-29 Fault information reproduction method and reproduction apparatus

Country Status (2)

Country Link
CN (1) CN105718354A (en)
WO (1) WO2017124808A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741396A (en) * 2021-09-06 2021-12-03 华帝股份有限公司 Intelligent household appliance test recording system
CN114567543A (en) * 2022-02-28 2022-05-31 湖南快乐阳光互动娱乐传媒有限公司 Problem interface positioning method and device, electronic equipment and storage medium

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718354A (en) * 2016-01-20 2016-06-29 上海斐讯数据通信技术有限公司 Fault information reproducing method and device
CN107085549B (en) * 2016-02-16 2020-02-28 腾讯科技(深圳)有限公司 Method and device for generating fault information
CN106250471A (en) * 2016-07-29 2016-12-21 东北大学 A kind of data for train ATP automatically extract and store system and method
CN106383759A (en) * 2016-08-31 2017-02-08 福建联迪商用设备有限公司 Method and apparatus convenient for tracking and locating fault of payment terminal
CN107844412A (en) * 2016-09-19 2018-03-27 东华软件股份公司 Method and apparatus for program debugging
CN106506243A (en) * 2016-12-19 2017-03-15 武汉虹信通信技术有限责任公司 A kind of webmaster method for diagnosing faults based on daily record data
CN108270832B (en) * 2016-12-30 2020-11-06 华为技术有限公司 Fault replaying method and device
CN106874391B (en) * 2017-01-12 2019-12-10 无线生活(杭州)信息科技有限公司 deadlock processing method and device
CN107094097B (en) * 2017-05-12 2021-03-12 深圳前海茂佳软件科技有限公司 Fault information remote reproduction method and device
CN107391357A (en) * 2017-08-17 2017-11-24 杭州师范大学 Application crashes replay method, device and mobile terminal
CN107621989A (en) * 2017-09-13 2018-01-23 联想(北京)有限公司 A kind of information processing method and device
CN107872367B (en) * 2017-10-31 2021-07-23 努比亚技术有限公司 Black screen detection method, mobile terminal and computer readable storage medium
CN108199901B (en) * 2018-01-24 2021-06-29 郑州云海信息技术有限公司 Hardware repair reporting method, system, device, hardware management server and storage medium
CN109189638A (en) * 2018-08-20 2019-01-11 郑州云海信息技术有限公司 A kind of GPU driving detection method, device, terminal and storage medium
CN109361531B (en) * 2018-09-04 2021-11-19 瑞斯康达科技发展股份有限公司 Method, system and equipment for reproducing problem of communication equipment which is difficult to reproduce
CN112765111A (en) * 2019-10-21 2021-05-07 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for processing data
CN114490257B (en) * 2022-01-13 2022-10-21 星河智联汽车科技有限公司 Method, device and equipment for collecting logs of vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887393A (en) * 2010-07-01 2010-11-17 中兴通讯股份有限公司 Equipment fault reproduction method and system based on para-virtualization technique
CN102184138A (en) * 2011-05-19 2011-09-14 广东威创视讯科技股份有限公司 Method and system for automatically reproducing and positioning software error
US20130173964A1 (en) * 2010-08-27 2013-07-04 Fujitsu Limited Method of managing failure, system for managing failure, failure management device, and computer-readable recording medium having stored therein failure reproducing program
CN105718354A (en) * 2016-01-20 2016-06-29 上海斐讯数据通信技术有限公司 Fault information reproducing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10467693B2 (en) * 2013-11-07 2019-11-05 Chicago Mercantile Exchange Inc. Transactionally deterministic high speed financial exchange having improved, efficiency, communication, customization, performance, access, trading opportunities, credit controls, and fault tolerance
CN104640138B (en) * 2013-11-13 2018-10-23 中国移动通信集团广东有限公司 A kind of method and device of orientation problem terminal
CN104331372B (en) * 2014-11-27 2017-08-25 北京奇艺世纪科技有限公司 A kind of method and device that long-range positioning problems are carried out to application program
CN105025318B (en) * 2015-06-30 2018-07-17 北京奇艺世纪科技有限公司 A kind of feedback method and device of the abnormal log information of application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887393A (en) * 2010-07-01 2010-11-17 中兴通讯股份有限公司 Equipment fault reproduction method and system based on para-virtualization technique
US20130173964A1 (en) * 2010-08-27 2013-07-04 Fujitsu Limited Method of managing failure, system for managing failure, failure management device, and computer-readable recording medium having stored therein failure reproducing program
CN102184138A (en) * 2011-05-19 2011-09-14 广东威创视讯科技股份有限公司 Method and system for automatically reproducing and positioning software error
CN105718354A (en) * 2016-01-20 2016-06-29 上海斐讯数据通信技术有限公司 Fault information reproducing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741396A (en) * 2021-09-06 2021-12-03 华帝股份有限公司 Intelligent household appliance test recording system
CN114567543A (en) * 2022-02-28 2022-05-31 湖南快乐阳光互动娱乐传媒有限公司 Problem interface positioning method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105718354A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
WO2017124808A1 (en) Fault information reproduction method and reproduction apparatus
KR102268355B1 (en) Cloud deployment infrastructure validation engine
US10606731B2 (en) Code component debugging in an application program
US20200201699A1 (en) Unified error monitoring, alerting, and debugging of distributed systems
US8140905B2 (en) Incremental problem determination and resolution in cloud environments
US7698691B2 (en) Server application state
US8813039B2 (en) Method and system for software defect reporting
CN102736978B (en) A kind of method and device detecting the installment state of application program
US20110107307A1 (en) Collecting Program Runtime Information
US20220050765A1 (en) Method for processing logs in a computer system for events identified as abnormal and revealing solutions, electronic device, and cloud server
US20080141221A1 (en) Using recorder technology to find defects in software applications
US9697107B2 (en) Testing applications
CN112241370B (en) API interface class checking method, system and device
US20100306593A1 (en) Automatic bug reporting tool
US9658948B2 (en) Workload mapper for potential problem areas using modules and defect data
CN105468511A (en) Web page script error positioning method and apparatus
CN112199277A (en) Browser-based defect reproduction method, device, equipment and storage medium
JP6238221B2 (en) Apparatus, method and program for monitoring execution of software
CN111309606A (en) Page exception handling method and device, computer equipment and storage medium
CN116048962A (en) Test report generation method, device, computer equipment and storage medium
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support
CN110008114B (en) Configuration information maintenance method, device, equipment and readable storage medium
CN115964282A (en) Test scene recording method and device and electronic equipment
CN114253846A (en) Automatic test exception positioning method, device and equipment and readable storage medium
CN114328189A (en) Fault recurrence method, device, terminal and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16886068

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16886068

Country of ref document: EP

Kind code of ref document: A1