CN104965775B - Method for reconstructing, server and the terminal of application software fault in-situ - Google Patents

Method for reconstructing, server and the terminal of application software fault in-situ Download PDF

Info

Publication number
CN104965775B
CN104965775B CN201510197271.5A CN201510197271A CN104965775B CN 104965775 B CN104965775 B CN 104965775B CN 201510197271 A CN201510197271 A CN 201510197271A CN 104965775 B CN104965775 B CN 104965775B
Authority
CN
China
Prior art keywords
fault
operational order
data
application software
situ
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510197271.5A
Other languages
Chinese (zh)
Other versions
CN104965775A (en
Inventor
薛鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510197271.5A priority Critical patent/CN104965775B/en
Publication of CN104965775A publication Critical patent/CN104965775A/en
Application granted granted Critical
Publication of CN104965775B publication Critical patent/CN104965775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of method for reconstructing, server and the terminal of application software fault in-situ, belongs to field of computer technology.Including:Obtain the fault in-situ data for the operational order collection for including operation phase mark and running;Starting running status based on operation phase mark initialization to operation phase;Each input operation during starting running status to the failure appearance of operation phase is performed, until terminating when breaking down.Include the fault in-situ data of operation phase mark by obtaining, the starting running status of initialization operation phase is identified based on the operation phase, to realize the reconstruction that fault in-situ is proceeded by from the starting running status of application software any operation phase.Due to the quantity of the input operation since the starting running status of any operation phase, relative to from it is application software initiated when the quantity of all input operations greatly reduce, avoid and rebuild excessive input operation during fault in-situ, improve the efficiency for rebuilding fault in-situ.

Description

Method for reconstructing, server and the terminal of application software fault in-situ
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for reconstructing of application software fault in-situ, service Device and terminal.
Background technology
With developing rapidly for computer technology, there is increasing application software.In using for application software Cheng Zhong, due to user's misoperation or other reasons application software may be caused to break down.Because there is event in application software The reason for barrier, is related to the operation of user's progress before failure occurs and the data handled by application software etc., therefore, true When determining the reason for failure occurs, the number handled by the operation and application software that user is carried out before breaking down can be reduced According to realize the process of reconstruction of application software fault in-situ, consequently facilitating developer, which analyzes failure, there is reason.
In the fault in-situ of reconstruction application software, the method for generally use is correlation technique:Detecting application software After startup, all input operations of client records user;When application software breaks down, the recorded institute of client packing There is input operation, and submit it to server;Server performs each input behaviour successively according to the order of all input operations Make, with analog subscriber client operation, until application software break down when terminate.
During the present invention is realized, inventor has found that correlation technique at least has problems with:
Because user is in operation and application software, a variety of input operations can be carried out, therefore, the input behaviour of client records Have many, on this basis on, when server operates the reconstruction for carrying out fault in-situ according to all users recorded, The enormous amount of operation to be performed is needed, the efficiency comparison for causing fault in-situ to be rebuild is low.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of reconstruction side of application software fault in-situ Method, server and terminal.The technical scheme is as follows:
First aspect, there is provided a kind of method for reconstructing of application software fault in-situ, applied in server, the service Utensil has the function of operation application software, and methods described includes:
Whether real-time query terminal gets fault in-situ data, and it is determined that the terminal has got the failure shows During field data, the fault in-situ data are obtained from the terminal, the fault in-situ data include operation phase mark and transported The operational order collection of row process, the operation phase identify the operation rank residing for application software during for showing that failure occurs Section, the operation phase divide according to the function of the application software, and the operational order collection includes rising for any operation phase The operational order corresponding to input operation carried out when beginning running status to failure occurs to the application software, the operation refer to Order obtains after being encoded to the input operation, and the operational order includes action type and the institute of the input operation Operation data corresponding to action type is stated, and the operational order is digital form;
Based on the operation phase identify, initialize to the failure occur when the application software residing for operation phase Starting running status;
Each operational order that the operational order is concentrated is successively read, performs the starting running status of the operation phase Each input operation during occurring to failure, until terminating when breaking down.
Second aspect, there is provided a kind of method for reconstructing of application software fault in-situ, applied in terminal, methods described bag Include:
Fault in-situ data are obtained, the fault in-situ data include the operational order of operation phase mark and running Collection, the operation phase identify the operation phase residing for application software during for showing that failure occurs, the operation phase according to The function division of the application software, starting running status to the failure that the operational order collection includes any operation phase occur During to the application software carry out input operation corresponding to operational order, the operational order be to it is described input behaviour Obtained after being encoded, the operational order is included corresponding to action type and the action type of the input operation Operation data, and the operational order is digital form;
When whether terminal described in server lookup gets the fault in-situ data, the failure obtained is showed Field data is sent to the server, the server is identified based on the operation phase, initializes to the failure and occurs The starting running status of operation phase residing for Shi Suoshu application software, and it is successively read each behaviour that the operational order is concentrated Instruct, each input operation during starting running status to the failure appearance of the operation phase is performed, until occurring Terminate during failure;Wherein, the server has the function of running the application software, and described in the server real-time query Whether terminal gets the fault in-situ data.
The third aspect, there is provided a kind of server, the server have the function of operation application software, the server Including:
Acquisition module, fault in-situ data whether are got for real-time query terminal, and it is determined that the terminal has obtained When getting the fault in-situ data, the fault in-situ data are obtained from the terminal, the fault in-situ data include fortune The operational order collection of row order segment identification and running, the operation phase are identified for showing that the application is soft when failure occurs Operation phase residing for part, the operation phase divide according to the function of the application software, and the operational order collection includes appointing The operation corresponding to input operation carried out when starting running status to the failure of one operation phase occurs to the application software Instruction, the operational order obtain after being encoded to the input operation, and the operational order includes the input and grasped Operation data corresponding to the action type of work and the action type, and the operational order is digital form;
Initialization module, for based on the operation phase identify, initialize to the failure occur when it is described application it is soft The starting running status of operation phase residing for part;
Execution module, each operational order concentrated for being successively read the operational order, performs the operation phase Starting running status to failure occur during each input operation, until break down when terminate.
Fourth aspect, there is provided a kind of terminal, the terminal include:
Acquisition module, for obtaining fault in-situ data, the fault in-situ data include operation phase mark and run The operational order collection of process, the operation phase identify the operation phase residing for application software during for showing that failure occurs, institute The operation phase is stated according to the division of the function of the application software, the starting that the operational order collection includes any operation phase is run The operational order corresponding to input operation that state is carried out during occurring to failure to the application software, the operational order Obtained after being encoded to the input operation, the action type of the operational order including the input operation and described Operation data corresponding to action type, and the operational order is digital form;
Sending module, for when whether terminal described in server lookup gets the fault in-situ data, will obtain The fault in-situ data taken are sent to the server, the server is identified based on the operation phase, initialization The starting running status of operation phase when occurring to the failure residing for the application software, and be successively read the operation and refer to The each operational order concentrated is made, performs each input during starting running status to the failure appearance of the operation phase Operation, until terminating when breaking down;Wherein, the server has the function of running the application software, and the service Whether terminal described in device real-time query gets the fault in-situ data.
5th aspect, there is provided a kind of computer-readable recording medium, be stored with the computer-readable recording medium Program, described program are loaded by processor and performed to realize the reconstruction side of application software fault in-situ as described in relation to the first aspect Method, or the method for reconstructing of the application software fault in-situ as described in second aspect.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Include the fault in-situ data of operation phase mark and operational order collection by obtaining, and identified based on the operation phase The starting running status of operation phase is initialized, to realize to enter since the starting running status of application software any operation phase The reconstruction of row fault in-situ.Due to the quantity of corresponding input operation since the starting running status of any operation phase, Relative to from it is application software initiated when all input operations quantity for greatly reduce, avoid rebuild fault in-situ mistake Excessive input operation in journey, improve the efficiency for rebuilding fault in-situ.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the implementation ring involved by a kind of method for reconstructing for application software fault in-situ that one embodiment of the invention provides Border schematic diagram;
Fig. 2 is a kind of method for reconstructing flow chart for application software fault in-situ that another embodiment of the present invention provides;
Fig. 3 is a kind of method for reconstructing flow chart for application software fault in-situ that another embodiment of the present invention provides;
Fig. 4 is a kind of method for reconstructing flow chart for application software fault in-situ that another embodiment of the present invention provides;
Fig. 5 is the process schematic that a kind of terminal that another embodiment of the present invention provides obtains fault in-situ data;
Fig. 6 is a kind of structural representation for server that another embodiment of the present invention provides;
Fig. 7 is a kind of structural representation for server that another embodiment of the present invention provides;
Fig. 8 is a kind of structural representation for terminal that another embodiment of the present invention provides;
Fig. 9 is a kind of structural representation for terminal that another embodiment of the present invention provides;
Figure 10 is a kind of reconstructing system structural representation for application software fault in-situ that another embodiment of the present invention provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
As shown in figure 1, it illustrates involved by the method for reconstructing of application software fault in-situ provided in an embodiment of the present invention Implementation environment schematic diagram.As shown in figure 1, the implementation environment includes server 101 and terminal 102.Wherein, the He of server 101 Terminal 102 is connected by wireless network or cable network.
Specifically, application software can be run in terminal 102, and failure occurs in the running of application software. For the ease of determining failure cause, server 101 needs to rebuild fault in-situ.Server 101 when carrying out fault in-situ reconstruction, Fault in-situ data are first obtained, and are rebuild according to fault in-situ data.
The embodiment of the present invention assumes that server 101 can also run application software, and server 101 can exist as needed Switch between each different operation phase of application software, any one operation rank of application software can also be jumped directly to Section.Therefore, server 101 can be an equipment with virtual machine function.
Terminal 102 can be smart mobile phone, tablet personal computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 3) player, knee Mo(u)ld top half pocket computer and desktop computer and wearable smart machine, such as Intelligent bracelet.
Method for reconstructing each embodiment as described below of specific application software fault in-situ:
Fig. 2 is a kind of method for reconstructing flow chart of the application software fault in-situ provided according to an exemplary embodiment.With Exemplified by server performs method provided in an embodiment of the present invention, referring to Fig. 2, method flow provided in an embodiment of the present invention includes:
201st, fault in-situ data are obtained, fault in-situ data include the operational order of operation phase mark and running Collection, wherein, application software is carried out when starting running status to the failure that operational order collection includes any operation phase occurs Operational order corresponding to input operation.
202nd, identified, initialized to the starting running status of operation phase based on the operation phase.
203rd, be successively read each operational order of operational order concentration, perform the starting running status of operation phase to therefore Each input operation during barrier appearance, until terminating when breaking down.
Method provided in an embodiment of the present invention, the fault in-situ of operation phase mark and operational order collection is included by obtaining Data, and the starting running status for initializing the operation phase is identified based on the operation phase, to realize from any operation of application software The starting running status in stage proceeds by the reconstruction of fault in-situ.Due to since the starting running status of any operation phase The quantity of corresponding input operation, relative to from it is application software initiated when all input operations quantity for subtract significantly It is few, avoid and rebuild excessive input operation during fault in-situ, improve the efficiency for rebuilding fault in-situ.
In another embodiment, fault in-situ data are obtained, including:
Fault in-situ data are received, wherein, fault in-situ data are that each client encodes to initial site data Obtained data, initial site data for from the starting running status of operation phase to failure occur during to application software institute The each input operation carried out.
In another embodiment, fault in-situ data are obtained, including:
The initial site data that each client is got are received, wherein, initial site data are from starting running status The each input operation carried out during occurring to failure to application software;
Initial site data are encoded, obtain fault in-situ data.
Fig. 3 is a kind of method for reconstructing flow chart of the application software fault in-situ provided according to an exemplary embodiment.With Exemplified by terminal performs method provided in an embodiment of the present invention, referring to Fig. 3, method flow provided in an embodiment of the present invention includes:
301st, fault in-situ data are obtained, wherein, fault in-situ data include the behaviour of operation phase mark and running Make instruction set, operational order collection includes entering application software during starting running status to the failure appearance of any operation phase Operational order corresponding to capable input operation.
302nd, fault in-situ data are sent to server, server is identified based on the operation phase, initialization to operation The starting running status in stage, and each operational order of operational order concentration is successively read, perform the starting fortune of operation phase Each input operation during row state to failure appearance, until terminating when breaking down.
Method provided in an embodiment of the present invention, by obtaining and including to server transmission, the operation phase identifies and operation refers to The fault in-situ data of collection are made, server is identified the starting running status of initialization operation phase based on the operation phase, with reality Now the reconstruction of fault in-situ is proceeded by from the starting running status of application software any operation phase.Due to from any operation rank The starting running status of section starts the quantity of corresponding input operation, relative to from it is application software initiated when all inputs behaviour Greatly reduce for the quantity of work, avoid and rebuild excessive input operation during fault in-situ, improve reconstruction failure The efficiency at scene.
In another embodiment, fault in-situ data are obtained, including:
According to the operation phase of application software, record operation phase mark;
Since the starting running status of operation phase, each input operation to application software is recorded successively, until therefore When barrier occurs, all input operations recorded during occurring from the starting running status of operation phase to failure are as initial Field data;
Initial site data are encoded, obtain operational order collection;
According to operation phase mark and operational order collection, fault in-situ data are generated.
In another embodiment, initial site data are encoded, obtains operational order collection, including:
Each input operation in initial site data is encoded to the operational order of specified data format, wherein, each The operational order of specified format comprises at least operation data corresponding to the action type and action type of input operation;
According to the operational order of the specified format of each input operation, operational order collection is generated.
In another embodiment, initial site data are encoded, before obtaining operational order collection, in addition to:
According to given filter condition, the inessential input operation in all input operations in initial site data is determined;
Filter out inessential input operation.
Fig. 4 is a kind of method for reconstructing flow chart of the application software fault in-situ provided according to an exemplary embodiment.With Terminal and server are interacted to exemplified by realizing method provided in an embodiment of the present invention, and referring to Fig. 4, the embodiment of the present invention provides Method flow include:
401st, terminal obtains fault in-situ data, wherein, fault in-situ data include operation phase mark and running Operational order collection, the starting running status of operational order collection including any operation phase is soft to application during occurring to failure The operational order corresponding to input operation that part is carried out.
Generally, the function of connected applications software or other standards, the running of application software can be divided into multiple The different operation phase.For example, for game application software, the different outposts of the tax office can be divided into the different operation phase;It is right In social networking application software, its running is divided into by entry stage, chat stage, off-line phase etc. according to its function.
In embodiments of the present invention, during application software is run, terminal can be remembered respectively in the different operation phase Data involved in each operation phase operation application software running are recorded, and if in some operation phase using soft There is failure in part, then terminal can necessarily be handled the operation phase recorded data and obtain fault in-situ data, The process is the process that terminal obtains the fault in-situ data of any operation phase.
Wherein, when a fault has occurred, for the ease of determining which operation phase is failure come across, fault in-situ data include Operation phase identifies.Operation phase identify for show that failure occurs when, the operation phase residing for application software.For example, for Game application software, if its operation phase is identified as the first pass, show that application software event occurs when running the first pass Barrier.
In addition, in the running of application software, user can be carried out more by equipment such as mouse, keyboards to application software Individual input operation, in order in the process of reconstruction of fault in-situ, can determine that application software is transported from the starting of a certain operation phase When row state to failure occurs, which input operation user has carried out to application software, and can know for the ease of server The input operation that other user is carried out to application software, fault in-situ data also include operational order collection, operational order Ji Bao Include during the starting running status of any operation phase occurs to failure, each input operation that user is carried out to application software Corresponding operational order.Operational order corresponding to each input operation can be by carrying out respectively to each input operation Coding obtains.
With reference to the above, Fig. 5 is that a kind of process for terminal acquisition field data that another embodiment of the present invention provides is shown It is intended to.As shown in figure 5, terminal is when obtaining the fault in-situ data of any operation phase, including but not limited to by walking as follows Rapid 4011 realize to step 4014:
4011st, terminal is according to the operation phase of application software, record operation phase mark.
The embodiment of the present invention is realized when obtaining fault in-situ data based on each operation phase.Marked on the operation phase The content of knowledge, the embodiment of the present invention are not especially limited, and for different application software, the content of its operation phase mark is not Together.For example, for game application software, its operation phase mark can be checkpoint mark, outpost of the tax office grade, the game for providing service IP (Internet Protocol, Internet protocol) address of server etc..
Specifically, operation phase of the terminal in terminal according to application software, when the record operation phase identifies, end is often detected End runs to a new operation phase, then records the operation phase mark of the operation phase.
4012nd, terminal records each input behaviour to application software successively since the starting running status of operation phase Make, until when failure occurs, all inputs recorded during occurring from the starting running status of operation phase to failure are grasped It is used as initial site data.
When the starting running status of operation phase is that the application software run in terminal just arrives to the operation phase, application is soft The state of part.For example, for game application software, if its operation phase is the first pass, the first starting running status closed It can be state when terminal interface shows access into the first pass.For social networking application software, if its operation phase is login rank Section, then the starting running status of entry stage can be state when terminal shows login interface.
Wherein, since the starting running status of operation phase, user can carry out many input operations, example to application software Such as, by input through keyboard a line word, option etc. is chosen by mouse.Generally, there is reason and the input of user in failure Operation is related.Fault in-situ is rebuild for the ease of server, user's each pair application software carries out an input operation, terminal processes The input operation of user, and record successively since the starting running status of operation phase, user is entered to application software Capable each input operation, until when failure occurs, using each input operation recorded in the process as initial site number According to.Certainly, if not breaking down and being directly entered next operation phase for being divided in the operation phase application software, and Application software breaks down in next operation phase, then by since the starting running status of next operation phase to failure Recorded data is as initial site data during appearance.
The form of each input operation recorded on terminal, the embodiment of the present invention are not especially limited.For example, remembered Each input operation of record can be the input operation described with written form.For example, some input operation recorded is " one Enter (carriage return) key of input ".
In addition, the input operation accessed by the operation phase that failure occurs in the embodiment of the present invention is initial site number According to, i.e., if broken down in some operation phase, then the operation phase is recorded operation phase mark and each defeated It is initial condition data to enter operation, and is directed to operation phase mark and the input behaviour that the operation phase do not broken down is recorded Work is not initial site data.
Specifically, when the situation of abnormal interrupt or closing occurs in the process of running in application software, it may be determined that application Software breaks down.
4013rd, terminal-pair initial site data are encoded, and obtain operational order collection.
The each input operation carried out for the ease of server identification user to application software, the embodiment of the present invention will just Beginning field data is encoded to the operational order collection of certain forms, and server can be easily by identifying that the operational order is concentrated Operational order and determine the input operation that user is carried out.
Wherein, terminal-pair initial site data are encoded, can be as follows when obtaining operational order collection 4013.1 and step 4013.2 realize:
The 4013.1st, each input operation in initial site data is encoded to the operational order of specified data format, its In, the operational order of each specified format comprises at least operation data corresponding to the action type and action type of input operation.
On the concrete form for the operational order for specifying data format, there can be many kinds, ensure that server can identify This specifies the operational order of data format.For example, the operational order of the specified format can be action type+operand According to.Wherein, because the memory space shared by the data of digital form is smaller, therefore, this specifies the operation of data format to refer to Order can be digital form, e.g., binary form etc., and so that the data in operational order are fewer, it is empty to save storage Between.
Wherein, when the form and the operational order of specified data format of each input operation in initial field data differ During cause, when encoding each input operation, it is necessary to which each input operation in initial site data is converted into this specifies data The operational order of form.For example, when each input operation in initial field data be with written form describe input operation, And, it is necessary to which the input operation of each written form is encoded into digital shape when specifying the operational order of data format to be digital form The operational order of formula.
Alternatively, because certain some input operation in the initial site data that collect may be to follow-up fault in-situ Effect during reconstruction is not very big, or other reasons, terminal-pair initial site data encoded to obtain operational order collection it Before, can also be according to the inessential input operation determined in initial site data in all input operations, and filter out inessential defeated Enter operation.
Specifically, terminal can be pre-set inessential it is determined that during inessential input operation in fault in-situ data The given filter condition of input operation.When the given filter condition coupling of any one input operation and inessential input operation, Terminal determines that the input operation is inessential input operation.On the particular content of given filter condition, the embodiment of the present invention is not Make specific limit.For example, the given filter condition of unnecessary operations is input operation of a certain type etc..Now, terminal is obtaining After getting input operation, the type of the input operation is first determined, when type and the given filter condition of the input operation are limited Type it is consistent when, using the input operation as inessential input operation.
Furthermore it is also possible to inessential input operation is determined by user.Wherein, the user can be the exploit person of application software Member etc..When determining inessential input operation by user, terminal can detect the inessential input operation of user's determination, go forward side by side one Step filters out inessential input operation from all input operations.
The quantity of inessential input operation can be one, or multiple., can by filtering out inessential input operation To reduce the data volume of server required processing when rebuilding fault in-situ, so as to accelerate to rebuild the speed of fault in-situ, and then Improve the reconstruction efficiency of fault in-situ.
In addition, terminal is when encoding each input operation, and can be with the input operation of every acquisition user, will the input Operation is encoded to the operational order of specified data format, can also be when reaching fault in-situ, the initial site number that will get It is to specify data format according to Unified coding.
4013.2nd, according to the operational order of the specified format of each input operation, operational order collection is generated.
Specifically, after each input operation in initial site data is encoded to corresponding operational order by terminal, Can be to obtain the operational order collection.
4014th, terminal generates fault in-situ data according to operation phase mark and operational order collection.
Specifically, when generating fault in-situ data, operation phase mark pass corresponding with operational order collection can be established System.As shown in table 1, it illustrates a kind of data of fault in-situ data to illustrate table.
Table 1
Operation phase identifies Operational order collection
First stage Action type 1+ operation datas 1
Second stage Action type 2+ operation datas 2
…… ……
The N stages Action type n+ operation datas n
402nd, terminal sends fault in-situ data to server.
Terminal directly can send fault in-situ data to server after fault in-situ data are got, can also By fault in-situ data buffer storage in terminal local, and when the data acquisition for receiving server instructs, by the fault in-situ number According to transmission to server.
Wherein, can be by being connected between terminal and server when terminal sends fault in-situ data to server Communication interface is realized.
Further, interacted for the ease of terminal and server, the application software that server is run has control Function.By the control function, server can obtain the dependency number of application software from the terminal for be provided with the application software According to.On this basis, whether server can get fault in-situ data with real-time query terminal, and it is determined that terminal has obtained During to fault in-situ data, fault in-situ data are directly obtained from terminal by the control function, so that it is guaranteed that can obtain in time Fault in-situ data are obtained, to rebuild fault in-situ in time.
403rd, after server obtains fault in-situ data, identified, initialized to the starting of operation phase based on the operation phase Running status.
Wherein, fault in-situ data are identified including the operation phase, and server can be redirected directly according to operation phase mark To the operation phase corresponding to phase state data, so as to realize the reconstruction that fault in-situ is carried out since the operation phase, and nothing Fault in-situ need to be rebuild since application software initiated.For example, for game application software, if phase state data is the 5th Close, then server can jump directly to the 5th pass of game application software, to rebuild fault in-situ data since closing the 5th.
In addition, server is when obtaining fault in-situ data in this step, the failure that is sent by direct receiving terminal Field data is realized.However, server can also have the function that the input operation to user is encoded.If terminal is obtaining After getting initial condition data, directly the initial condition data is sent to server, then server can be by initial existing Field data is encoded, and obtains fault in-situ data.Wherein, server encodes to initial site data, obtains failure and shows With in above-mentioned steps 4013 and step 4014, terminal-pair initial site data are encoded the principle of field data, are obtained failure and are showed The principle of field data is consistent, for details, reference can be made to the content in above-mentioned steps 4013 and step 4014, here is omitted.
404th, server is successively read each operational order of operational order concentration, performs the starting operation shape of operation phase Each input operation during state to failure appearance, until terminating when breaking down.
In order to the process of analog subscriber operation and application software in terminal, server is carrying out fault in-situ reconstruction When, it is necessary to the starting running status for performing the operation phase successively occur to failure during each input operation, up to failure During appearance, server determines to complete the process of reconstruction of fault in-situ.In embodiments of the present invention, server is performing each input During operation, it can be realized according to operational order collection.Specifically, server can be successively read each operation of operational order concentration Instruction, and perform each input operation during starting running status to the failure appearance of read operation phase.
Wherein, each input operation of the server during the starting running status for performing the operation phase occurs to failure When, performed input operation is identical with the content of the input operation corresponding to the operational order that operational order is concentrated.For example, behaviour It is " choosing login button by mouse " to make content corresponding to some operational order in instruction set, then server, which performs, passes through mouse Mark chooses the operation of login button.
It should be noted that above-mentioned each step assumes that server 101 can run application software, and server 101 It can switch as needed between each different operation phase of application software, application software can also be jumped directly to Any one operation phase.However, if server 101 does not possess the function of operation application software, server 101 can be responsible for Fault in-situ data are obtained, and fault in-situ data are sent to other terminals.Other terminals can be in each of application software Switch between the individual different operation phase, can also jump directly to any one operation phase of application software.Therefore, Ke Yiyou Other terminals perform the method for reconstructing of fault in-situ by above-mentioned steps 403 and step 404.Wherein, other terminals can also It is configured a virtual machine.
Method provided in an embodiment of the present invention, being obtained by terminal and being sent to server includes operation phase mark and behaviour After making the fault in-situ data of instruction set, server identifies the starting running status of initialization operation phase based on the operation phase, To realize the reconstruction that fault in-situ is proceeded by from the starting running status of application software any operation phase.Due to from any fortune The starting running status of row order section starts the quantity of corresponding input operation, relative to from it is application software initiated when it is all defeated Enter and greatly reduce for the quantity of operation, avoid and rebuild excessive input operation during fault in-situ, improve reconstruction The efficiency of fault in-situ.
Fig. 6 is a kind of structural representation of the server provided according to an exemplary embodiment.The server is used to perform Above-mentioned Fig. 1 into embodiment illustrated in fig. 3 any embodiment provide application software fault in-situ method for reconstructing in server institute The function of execution.Referring to Fig. 6, the server includes:
Acquisition module 601, for obtaining fault in-situ data, wherein, fault in-situ data include the operation phase mark and The operational order collection of running, it is corresponding when starting running status to the failure that operational order collection includes any operation phase occurs The operational order corresponding to input operation carried out with software;
Initialization module 602, for being identified based on the operation phase, initialize to the starting running status of operation phase;
Execution module 603, for being successively read each operational order of operational order concentration, perform the starting of operation phase Each input operation during running status to failure appearance, until terminating when breaking down.
Server provided in an embodiment of the present invention, the failure that operation phase mark and operational order collection are included by obtaining show Field data, and the starting running status for initializing the operation phase is identified based on the operation phase, to realize from any fortune of application software The starting running status of row order section proceeds by the reconstruction of fault in-situ.Due to being opened from the starting running status of any operation phase Begin the quantity of corresponding input operation, relative to from it is application software initiated when all input operations quantity for subtract significantly It is few, avoid and rebuild excessive input operation during fault in-situ, improve the efficiency for rebuilding fault in-situ.
In another embodiment, acquisition module 601, for receiving fault in-situ data, wherein, fault in-situ data are The data that each client is encoded to obtain to initial site data, initial site data are to be run from the starting of operation phase Each input operation that state is carried out during occurring to failure to application software.
In another embodiment, acquisition module 601, the initial site data got for receiving each client, Wherein, initial site data are grasped for each input carried out during the appearance from starting running status to failure to application software Make;Initial site data are encoded, obtain fault in-situ data.
Fig. 7 is a kind of structural representation of server according to an exemplary embodiment, and the server is used to perform Above-mentioned Fig. 1 into embodiment illustrated in fig. 3 any embodiment provide application software fault in-situ method for reconstructing in server institute The function of execution.Reference picture 7, server 700 include processing component 722, and it further comprises one or more processors, and , can be by the instruction of the execution of processing component 722, such as using journey for storing as the memory resource representated by memory 732 Sequence.The application program stored in memory 732 can include it is one or more each correspond to the mould of one group of instruction Block.In addition, processing component 722 is configured as execute instruction, to perform above-mentioned Fig. 1 any embodiments into embodiment illustrated in fig. 3 Function in the method for reconstructing of the application software fault in-situ of offer performed by server.
Server 700 can also include a power supply module 726 and be configured as the power management of execute server 700, and one Individual wired or wireless network interface 750 is configured as server 700 being connected to network, and input and output (I/O) interface 758.Server 700 can be operated based on the operating system for being stored in memory 732, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Wherein, one or more than one program storage be in memory, and be configured to by one or more than one Computing device, one or more than one program bag contain the instruction for being used for being operated below:
Fault in-situ data are obtained, wherein, fault in-situ data include operation phase mark and the operation of running refers to Order collection, the input carried out when starting running status to the failure that operational order collection includes any operation phase occurs to application software The corresponding operational order of operation;
Identified, initialized to the starting running status of operation phase based on the operation phase;
Each operational order of operational order concentration is successively read, starting running status to the failure for performing the operation phase goes out Each input operation during existing, until terminating when breaking down.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, also included in the memory of server and be used to perform the instruction that operates below:
Fault in-situ data are obtained, including:
Fault in-situ data are received, wherein, fault in-situ data are that each client encodes to initial site data Obtained data, initial site data for from the starting running status of operation phase to failure occur during to application software institute The each input operation carried out.
In the third the possible embodiment provided based on the first possible embodiment, server In memory, also include and be used to perform the instruction operated below:
Fault in-situ data are obtained, including:
The initial site data that each client is got are received, wherein, initial site data are from starting running status The each input operation carried out during occurring to failure to application software;
Initial site data are encoded, obtain fault in-situ data.
Server provided in an embodiment of the present invention, the failure that operation phase mark and operational order collection are included by obtaining show Field data, and the starting running status for initializing the operation phase is identified based on the operation phase, to realize from any fortune of application software The starting running status of row order section proceeds by the reconstruction of fault in-situ.Due to being opened from the starting running status of any operation phase Begin the quantity of corresponding input operation, relative to from it is application software initiated when all input operations quantity for subtract significantly It is few, avoid and rebuild excessive input operation during fault in-situ, improve the efficiency for rebuilding fault in-situ.
Fig. 8 is a kind of structural representation of the terminal provided according to an exemplary embodiment.The terminal can be used for performing Above-mentioned Fig. 1 into embodiment illustrated in fig. 3, held in the method for reconstructing for the application software fault in-situ that any embodiment provides by terminal Capable function.Referring to Fig. 8, the terminal includes:
Acquisition module 801, for obtaining fault in-situ data, wherein, fault in-situ data include the operation phase mark and The operational order collection of running, operational order collection are included during starting running status to the failure appearance of any operation phase The operational order corresponding to input operation carried out to application software;
Sending module 802, for fault in-situ data to be sent to server, server is set to be identified based on the operation phase, Initialize to the starting running status of operation phase, and be successively read each operational order of operational order concentration, perform operation Each input operation during the starting running status in stage to failure appearance, until terminating when breaking down.
Terminal provided in an embodiment of the present invention, by obtaining and including to server transmission, the operation phase identifies and operation refers to After the fault in-situ data for making collection, server identifies the starting running status of initialization operation phase based on the operation phase, with reality Now the reconstruction of fault in-situ is proceeded by from the starting running status of application software any operation phase.Due to from any operation rank The starting running status of section starts the quantity of corresponding input operation, relative to from it is application software initiated when all inputs behaviour Greatly reduce for the quantity of work, avoid and rebuild excessive input operation during fault in-situ, improve reconstruction failure The efficiency at scene.
In another embodiment, acquisition module 801 includes:
First recording unit, for the operation phase according to application software, record operation phase mark;
Second recording unit, for since the starting running status of operation phase, recording successively to each of application software Individual input operation, until the institute that failure when occurring, will record from the starting running status of operation phase to failure during appearance There is input operation as initial site data;
Coding unit, for being encoded to initial site data, obtain operational order collection;
Generation unit, for according to operation phase mark and operational order collection, generating fault in-situ data.
In another embodiment, coding unit includes:
Coded sub-units, for each input operation in initial site data to be encoded to the operation of specified data format Instruction, wherein, the operational order of each specified format comprises at least to be grasped corresponding to the action type and action type of input operation Make data;
Subelement is generated, for the operational order of the specified format according to each input operation, generates operational order collection.
In another embodiment, acquisition module 801 also includes:
Determining unit, for according to given filter condition, determine in initial site data in all input operations it is non-must Want input operation;
Unit is filtered out, for filtering out inessential input operation.
Fig. 9 is refer to, it illustrates a kind of structural representation of terminal, the terminal can be used for implementing above-mentioned Fig. 1 to Fig. 3 Function in the method for reconstructing of the application software fault in-situ provided in illustrated embodiment performed by terminal.Specifically:
Terminal 900 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (Wireless Fidelity, Wireless Fidelity) module 170, include one or the processing of more than one processing core The part such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure shown in Fig. 9 is not formed pair The restriction of terminal, it can include than illustrating more or less parts, either combine some parts or different part cloth Put.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, transfer to one or more than one processor 180 is handled;In addition, it is sent to up data are related to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can store uses created number according to terminal 900 According to (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 access.
Input block 130 can be used for the numeral or character information for receiving input, and generation is set with user and function Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use Family on or near it touch operation (such as user using any suitable object or annex such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can reception processing device 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.Except touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user's input or be supplied to the information and terminal 900 of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on or near it After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in fig.9, touch sensitive surface 131 and display panel 141 are conducts Two independent parts come realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 with display Panel 141 is integrated and realizes input and output function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when terminal 900 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely The other sensors such as the gyroscope that can also configure in terminal 900, barometer, hygrometer, thermometer, infrared ray sensor, herein Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 900.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 161, sound is converted to by loudspeaker 161 by circuit 160 Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Voice data is converted to, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to such as another end End, or voice data is exported to memory 120 further to handle.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronicses by WiFi module 170 Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 9 is shown WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for terminal 900, can exist as needed completely Do not change in the essential scope of invention and omit.
Processor 180 is the control centre of terminal 900, utilizes various interfaces and each portion of connection whole mobile phone Point, by running or performing the software program and/or module that are stored in memory 120, and call and be stored in memory 120 Interior data, the various functions and processing data of terminal 900 are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 also includes the power supply 190 (such as battery) to all parts power supply, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., will not be repeated here.Specifically in this reality To apply in example, the display unit of terminal is touch-screen display, and terminal also includes memory, and one or more than one Program, one of them or more than one program storage are configured to by one or more than one processing in memory Device performs.One or more than one program bag, which contains, to be used to perform the instruction operated below:
Fault in-situ data are obtained, wherein, fault in-situ data include operation phase mark and the operation of running refers to Order collection, what starting running status of the operational order collection including any operation phase was carried out during occurring to failure to application software Operational order corresponding to input operation;
Fault in-situ data are sent to server, server is identified based on the operation phase, initializes to the operation phase Starting running status, and be successively read operational order concentration each operational order, perform the operation phase starting operation shape Each input operation during state to failure appearance, until terminating when breaking down.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, also included in the memory of terminal and be used to perform the instruction that operates below:
Fault in-situ data are obtained, including:
According to the operation phase of application software, record operation phase mark;
Since the starting running status of operation phase, each input operation to application software is recorded successively, until therefore When barrier occurs, all input operations recorded during occurring from the starting running status of operation phase to failure are as initial Field data;
Initial site data are encoded, obtain operational order collection;
According to operation phase mark and operational order collection, fault in-situ data are generated.
In the third the possible embodiment provided based on second of possible embodiment, terminal is deposited In reservoir, also include and be used to perform the instruction operated below:
Initial site data are encoded, obtain operational order collection, including:
Each input operation in initial site data is encoded to the operational order of specified data format, wherein, each The operational order of specified format comprises at least operation data corresponding to the action type and action type of input operation;
According to the operational order of the specified format of each input operation, operational order collection is generated.
In the 4th kind of possible embodiment provided based on second of possible embodiment, terminal is deposited Also included in reservoir and be used to perform the instruction operated below:
Initial site data are encoded, before obtaining operational order collection, in addition to:
According to given filter condition, the inessential input operation in all input operations in initial site data is determined;
Filter out inessential input operation.
Terminal provided in an embodiment of the present invention, by obtaining and including to server transmission, the operation phase identifies and operation refers to After the fault in-situ data for making collection, server identifies the starting running status of initialization operation phase based on the operation phase, with reality Now the reconstruction of fault in-situ is proceeded by from the starting running status of application software any operation phase.Due to from any operation rank The starting running status of section starts the quantity of corresponding input operation, relative to from it is application software initiated when all inputs behaviour Greatly reduce for the quantity of work, avoid and rebuild excessive input operation during fault in-situ, improve reconstruction failure The efficiency at scene.
The embodiments of the invention provide a kind of computer-readable recording medium, on the computer-readable recording medium can be State the computer-readable recording medium included in the memory in embodiment;Can also be individualism, without supplying terminal In computer-readable recording medium.The computer-readable recording medium storage has one or more than one program, this Either more than one program is used for performing the method for reconstructing of application software fault in-situ by one or more than one processor, This method includes:
Fault in-situ data are obtained, wherein, fault in-situ data include operation phase mark and the operation of running refers to Order collection, what starting running status of the operational order collection including any operation phase was carried out during occurring to failure to application software Operational order corresponding to input operation;
Fault in-situ data are sent to server, server is identified based on the operation phase, initializes to the operation phase Starting running status, and be successively read operational order concentration each operational order, perform the operation phase starting operation shape Each input operation during state to failure appearance, until terminating when breaking down.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, also included in the memory of terminal and be used to perform the instruction that operates below:
Fault in-situ data are obtained, including:
According to the operation phase of application software, record operation phase mark;
Since the starting running status of operation phase, each input operation to application software is recorded successively, until therefore When barrier occurs, all input operations recorded during occurring from the starting running status of operation phase to failure are as initial Field data;
Initial site data are encoded, obtain operational order collection;
According to operation phase mark and operational order collection, fault in-situ data are generated.
In the third the possible embodiment provided based on second of possible embodiment, terminal is deposited In reservoir, also include and be used to perform the instruction operated below:
Initial site data are encoded, obtain operational order collection, including:
Each input operation in initial site data is encoded to the operational order of specified data format, wherein, each The operational order of specified format comprises at least operation data corresponding to the action type and action type of input operation;
According to the operational order of the specified format of each input operation, operational order collection is generated.
In the 4th kind of possible embodiment provided based on second of possible embodiment, terminal is deposited Also included in reservoir and be used to perform the instruction operated below:
Initial site data are encoded, before obtaining operational order collection, in addition to:
According to given filter condition, the inessential input operation in all input operations in initial site data is determined;
Filter out inessential input operation.
Computer-readable recording medium provided in an embodiment of the present invention, include running rank by obtaining and sending to server After segment identification and the fault in-situ data of operational order collection, server identifies the starting of initialization operation phase based on the operation phase Running status, to realize the reconstruction that fault in-situ is proceeded by from the starting running status of application software any operation phase.By The quantity of corresponding input operation in the starting running status since any operation phase, relative to from application software initiated When all input operations quantity for greatly reduce, avoid and rebuild excessive input operation during fault in-situ, Improve the efficiency for rebuilding fault in-situ.
A kind of graphical user interface is provided in the embodiment of the present invention, the graphical user interface is with terminal, the terminal Including touch-screen display, memory and one or more than one place for performing an either more than one program Manage device;The graphical user interface includes:
Fault in-situ data are obtained, wherein, fault in-situ data include operation phase mark and the operation of running refers to Order collection, what starting running status of the operational order collection including any operation phase was carried out during occurring to failure to application software Operational order corresponding to input operation;
Fault in-situ data are sent to server, server is identified based on the operation phase, initializes to the operation phase Starting running status, and be successively read operational order concentration each operational order, perform the operation phase starting operation shape Each input operation during state to failure appearance, until terminating when breaking down.
Graphical user interface provided in an embodiment of the present invention, include operation phase mark by obtaining and being sent to server After the fault in-situ data of operational order collection, the starting that server identifies the initialization operation phase based on the operation phase runs shape State, to realize the reconstruction that fault in-situ is proceeded by from the starting running status of application software any operation phase.Due to from appoint The starting running status of one operation phase starts the quantity of corresponding input operation, relative to from it is application software initiated when institute Have and greatly reduce for the quantity of input operation, avoid and rebuild excessive input operation during fault in-situ, improve Rebuild the efficiency of fault in-situ.
Figure 10 is that a kind of structure of the reconstructing system of the application software fault in-situ provided according to an exemplary embodiment is shown It is intended to.Referring to Figure 10, the system includes server 1001 and terminal 1002, wherein:
Server in server 1001 such as above-mentioned Fig. 6 or embodiment illustrated in fig. 7, for details, reference can be made to above-mentioned Fig. 6 or Fig. 7 institutes Show content corresponding to embodiment, will not be repeated here;
Terminal in terminal 1002 such as above-mentioned Fig. 8 or embodiment illustrated in fig. 9, it for details, reference can be made to real shown in above-mentioned Fig. 8 or Fig. 9 Content corresponding to example is applied, will not be repeated here.
System provided in an embodiment of the present invention, being obtained by terminal and being sent to server includes operation phase mark and behaviour After making the fault in-situ data of instruction set, server identifies the starting running status of initialization operation phase based on the operation phase, To realize the reconstruction that fault in-situ is proceeded by from the starting running status of application software any operation phase.Due to from any fortune The starting running status of row order section starts the quantity of corresponding input operation, relative to from it is application software initiated when it is all defeated Enter and greatly reduce for the quantity of operation, avoid and rebuild excessive input operation during fault in-situ, improve reconstruction The efficiency of fault in-situ.
It should be noted that:The server and terminal that above-described embodiment provides are carrying out the reconstruction of application software fault in-situ When, only with the division progress of above-mentioned each functional module for example, in practical application, above-mentioned function can be divided as needed With by different functional module completions, i.e., the internal structure of equipment is divided into different functional modules, to complete above description All or part of function.In addition, server, terminal and system and application software fault in-situ that above-described embodiment provides Method for reconstructing embodiment belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (15)

1. a kind of method for reconstructing of application software fault in-situ, it is characterised in that applied in server, the server has The function of application software is run, methods described includes:
Whether real-time query terminal gets fault in-situ data, and it is determined that the terminal has got the fault in-situ number According to when, obtain the fault in-situ data from the terminal, the fault in-situ data include the operation phase and identify and ran The operational order collection of journey, the operation phase identify the operation phase residing for application software during for showing that failure occurs, The operation phase is divided according to the function of the application software, and the starting that the operational order collection includes any operation phase is transported The operational order corresponding to input operation carried out when row state to failure occurs to the application software, the operational order are Obtained after being encoded to the input operation, the operational order includes the action type of the input operation and the behaviour Make operation data corresponding to type, and the operational order is digital form;
Based on the operation phase identify, initialize to the failure occur when the application software residing for operation phase rise Beginning running status;
Be successively read each operational order that the operational order is concentrated, perform the starting running status of the operation phase to therefore Each input operation during barrier appearance, until terminating when breaking down.
2. according to the method for claim 1, it is characterised in that the acquisition fault in-situ data, including:
Fault in-situ data are received, each client of fault in-situ data is encoded to obtain to initial site data Data, the initial site data are to application software during occurring from the starting running status of the operation phase to failure The each input operation carried out.
3. according to the method for claim 1, it is characterised in that the acquisition fault in-situ data, including:
Receive the initial site data that each client is got, the initial site data be from the starting running status to Each input operation that failure is carried out during occurring to application software;
The initial site data are encoded, obtain fault in-situ data.
4. a kind of method for reconstructing of application software fault in-situ, it is characterised in that applied in terminal, methods described includes:
Fault in-situ data are obtained, the fault in-situ data include the operational order collection of operation phase mark and running, The operation phase identifies the operation phase residing for application software during for showing that failure occurs, and the operation phase is according to There is process in the function division of application software, starting running status to the failure that the operational order collection includes any operation phase In to the application software carry out input operation corresponding to operational order, the operational order is that the input operation is entered Obtained after row coding, the operational order includes action type and the corresponding operation of the action type of the input operation Data, and the operational order is digital form;
When whether terminal described in server lookup gets the fault in-situ data, the fault in-situ number that will obtain According to sending to the server, the server is identified based on the operation phase, initialize to the failure and when institute occur The starting running status of the operation phase residing for application software is stated, and is successively read each operation that the operational order is concentrated and refers to Order, each input operation during starting running status to the failure appearance of the operation phase is performed, until breaking down When terminate;Wherein, the server has the function of running the application software, and terminal described in the server real-time query Whether the fault in-situ data are got.
5. according to the method for claim 4, it is characterised in that the acquisition fault in-situ data, including:
According to the operation phase of application software, record operation phase mark;
Since the starting running status of the operation phase, each input operation to the application software is recorded successively, directly When occurring to failure, all input operations that record during occurring from the starting running status of the operation phase to failure As initial site data;
The initial site data are encoded, obtain the operational order collection;
According to operation phase mark and the operational order collection, fault in-situ data are generated.
6. according to the method for claim 5, it is characterised in that it is described that the initial site data are encoded, obtain The operational order collection, including:
Each input operation in the initial site data is encoded to the operational order of specified data format, wherein, each The operational order of specified format is including at least operation data corresponding to the action type of input operation and the action type;
According to the operational order of the specified format of each input operation, the operational order collection is generated.
7. according to the method for claim 5, it is characterised in that it is described that the initial site data are encoded, obtain Before the operational order collection, in addition to:
According to given filter condition, the inessential input operation in all input operations in the initial site data is determined;
Filter out the inessential input operation.
8. a kind of server, it is characterised in that the server has the function of operation application software, and the server includes:
Acquisition module, fault in-situ data whether are got for real-time query terminal, and it is determined that the terminal has been got During the fault in-situ data, the fault in-situ data are obtained from the terminal, the fault in-situ data include operation rank The operational order collection of segment identification and running, the operation phase are identified for showing application software institute when failure occurs The operation phase at place, the operation phase divide according to the function of the application software, and the operational order collection includes any fortune The operational order corresponding to input operation carried out when starting running status to the failure of row order section occurs to the application software, The operational order obtains after being encoded to the input operation, and the operational order includes the behaviour of the input operation Make operation data corresponding to type and the action type, and the operational order is digital form;
Initialization module, for based on the operation phase identify, initialize to the failure occur when the application software institute The starting running status of the operation phase at place;
Execution module, each operational order concentrated for being successively read the operational order, perform rising for the operation phase Each input operation during beginning running status to failure appearance, until terminating when breaking down.
9. server according to claim 8, it is characterised in that the acquisition module, for receiving fault in-situ data, The data that the fault in-situ data are encoded to obtain for each client to initial site data, the initial site data For each input operation carried out during the appearance from the starting running status of the operation phase to failure to application software.
10. server according to claim 8, it is characterised in that the acquisition module, obtained for receiving each client The initial site data got, the initial site data are to application during occurring from the starting running status to failure Each input operation that software is carried out;The initial site data are encoded, obtain fault in-situ data.
11. a kind of terminal, it is characterised in that the terminal includes:
Acquisition module, for obtaining fault in-situ data, the fault in-situ data include operation phase mark and running Operational order collection, the operation phase identifies the operation phase residing for application software during for showing that failure occurs, the fortune Row order section divides according to the function of the application software, and the operational order collection includes the starting running status of any operation phase The operational order corresponding to input operation carried out during occurring to failure to the application software, the operational order is pair What the input operation obtained after being encoded, the operational order includes the action type of the input operation and the operation Operation data corresponding to type, and the operational order is digital form;
Sending module, for when whether terminal described in server lookup gets the fault in-situ data, by what is obtained The fault in-situ data are sent to the server, the server is identified based on the operation phase, are initialized to institute The starting running status of operation phase when failure occurs residing for the application software is stated, and is successively read the operational order collection In each operational order, perform each input behaviour during the starting running status of the operation phase occurs to failure Make, until terminating when breaking down;Wherein, the server has the function of running the application software, and the server Whether terminal described in real-time query gets the fault in-situ data.
12. terminal according to claim 11, it is characterised in that the acquisition module includes:
First recording unit, for the operation phase according to application software, record operation phase mark;
Second recording unit, for since the starting running status of the operation phase, recording successively to the application software Each input operation, until failure is when occurring, during occurring from the starting running status of the operation phase to failure All input operations of record are as initial site data;
Coding unit, for being encoded to the initial site data, obtain the operational order collection;
Generation unit, for according to operation phase mark and the operational order collection, generating fault in-situ data.
13. terminal according to claim 12, it is characterised in that the coding unit includes:
Coded sub-units, for each input operation in the initial site data to be encoded to the operation of specified data format Instruction, wherein, the operational order of each specified format comprises at least the action type of input operation and the action type corresponds to Operation data;
Subelement is generated, for the operational order of the specified format according to each input operation, generates the operational order collection.
14. terminal according to claim 12, it is characterised in that the acquisition module also includes:
Determining unit, for according to given filter condition, determine in the initial site data in all input operations it is non-must Want input operation;
Unit is filtered out, for filtering out the inessential input operation.
A kind of 15. computer-readable recording medium, it is characterised in that had program stored therein in the computer-readable recording medium, Described program is loaded as processor and performed to realize the application software fault in-situ as described in any one of claims 1 to 3 Method for reconstructing, or the method for reconstructing of the application software fault in-situ as described in any one of claim 4 to 7.
CN201510197271.5A 2015-04-23 2015-04-23 Method for reconstructing, server and the terminal of application software fault in-situ Active CN104965775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510197271.5A CN104965775B (en) 2015-04-23 2015-04-23 Method for reconstructing, server and the terminal of application software fault in-situ

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510197271.5A CN104965775B (en) 2015-04-23 2015-04-23 Method for reconstructing, server and the terminal of application software fault in-situ

Publications (2)

Publication Number Publication Date
CN104965775A CN104965775A (en) 2015-10-07
CN104965775B true CN104965775B (en) 2018-02-23

Family

ID=54219810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510197271.5A Active CN104965775B (en) 2015-04-23 2015-04-23 Method for reconstructing, server and the terminal of application software fault in-situ

Country Status (1)

Country Link
CN (1) CN104965775B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437152B (en) * 2020-11-20 2022-05-17 北京百度网讯科技有限公司 Crash processing method and device, electronic equipment and storage medium
KR102392469B1 (en) * 2021-05-04 2022-04-29 에스디티 주식회사 Method for replicating a project server for trouble-shooting and a cloud development platform system using the same

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009104393A (en) * 2007-10-23 2009-05-14 Canon Inc Software trouble ticket management system and method, and program
JP2009223743A (en) * 2008-03-18 2009-10-01 Fujitsu Ltd Fault analysis support system and fault analysis support method
CN101493790B (en) * 2009-02-27 2015-08-05 北京中星微电子有限公司 Record playback system and record back method
JP2010205011A (en) * 2009-03-04 2010-09-16 Mitsubishi Electric Corp Failure reproduction system, failure reproduction method and communication reproduction device
CN102184138B (en) * 2011-05-19 2013-09-18 广东威创视讯科技股份有限公司 Method and system for automatically reproducing and positioning software error
CN104348658A (en) * 2013-08-08 2015-02-11 阿里巴巴集团控股有限公司 Fault report generation method and system thereof
CN103902454A (en) * 2014-04-08 2014-07-02 安一恒通(北京)科技有限公司 Method and device for locating software faults
CN104503910A (en) * 2014-12-22 2015-04-08 合一网络技术(北京)有限公司 Product test method by monitoring users' using behavior

Also Published As

Publication number Publication date
CN104965775A (en) 2015-10-07

Similar Documents

Publication Publication Date Title
CN104780164B (en) A kind of method and apparatus of running game client
CN104618217B (en) Share method, terminal, server and the system of resource
CN106933525B (en) A kind of method and apparatus showing image
CN104978176B (en) Application programming interfaces call method, device and computer readable storage medium
CN104683456B (en) Method for processing business, server and terminal
CN104133832B (en) The recognition methods of pirate application and device
CN104978115A (en) Content display method and device
CN104238893B (en) A kind of method and apparatus that video preview picture is shown
CN105243638B (en) A kind of method and apparatus uploading image
CN104036536B (en) The generation method and device of a kind of stop-motion animation
CN103631625B (en) A kind of method of data acquisition, user terminal, server and system
CN107168609A (en) status bar display method, device and terminal
CN107977272A (en) The method and device of application operation
CN104869465A (en) Video playing control method and device
CN104007887B (en) The method and terminal that floating layer is shown
CN105630846A (en) Head portrait updating method and apparatus
CN104267882A (en) Page suspension frame display method and device
CN107465802A (en) A kind of methods, devices and systems for showing communication message
CN107145386A (en) Data migration method, terminal device and computer-readable recording medium
CN108536388A (en) split screen processing method, device, storage medium and electronic equipment
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN103677944A (en) Method and device for manufacturing screen locking interface and terminal device
CN104636455B (en) The acquisition methods and device of application program map information
CN104965775B (en) Method for reconstructing, server and the terminal of application software fault in-situ
CN103631592A (en) Configuration method, calling method, device and equipment for displaying resources

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant