A kind of operation playback system and method and mobile terminalTechnical field
The present invention relates to technical field of mobile terminals more particularly to a kind of operation playback system and method and movements eventuallyEnd.
Background technique
In the prior art, for the confirmation of running of mobile terminal process operational motion, it usually needs carry out some operate backThe operation put.So-called operation playback, refers to after executing multiple operational motions with certain execution sequence, or executeIt after certain specific operational motions, needs to play back these operational motions, to reappear operation scenario and shifting at that timeThe operational process of dynamic terminal at that time, facilitates tester and/or user of service to analyze the operational process of mobile terminal.
The playback technology of operational motion is supported in the prior art, it usually needs has the participation of control terminal (computer terminal), i.e.,Tester and/or user of service realize the playback operation of operational motion in control terminal, correspondingly to the recording of operational motionOperation is also carried out in control terminal, and the control process of entire recording and playback is comparatively laborious, is not suitable for using mobile terminal outsideThe case where.
Summary of the invention
According to problems of the prior art, a kind of skill for operating playback system and method and mobile terminal is now providedArt scheme, it is intended to operation playback function be expanded into mobile terminal side, while being supplied to the operation log of user's textual formRecord.
Above-mentioned technical proposal specifically includes:
A kind of operation playback system is suitable for mobile terminal;Wherein, comprising:
Recording elements are used for during the running of mobile terminal, according to the mobile terminal in bottom functional moduleThe operational motion of upper progress generates corresponding first and records record;
Converting unit connects the recording elements, for that will pass through the operation during running of mobile terminalIt acts the corresponding interface operation being converted into record in the form of text, records record to obtain corresponding second;
Storage unit is separately connected the recording elements and the converting unit, records record for saving described firstRecord is recorded with described second
Playback unit connects the storage unit, is used for according to externally input play-back command, corresponding according to what is be savedDescribed first record record and control the mobile terminal execution operational motion accordingly, with play back the mobile terminal itThe process of preceding operation;
It checks unit, connects the storage unit, for checking instruction according to externally input, show and protected to userCorresponding described second deposited records record.
Preferably, operation playback system, wherein the interface operation includes:
The control clicking operation that corresponding control in the operation interface of the mobile terminal is clicked;And/or
Switch the forms handover operation of the operation interface of the mobile terminal.
Preferably, the operation playback system, wherein further include:
Inspection unit, is separately connected the playback unit and the storage unit, and the inspection unit is used for according toSecond records record, records record to one corresponding described first that current playback finishes and checks, and correspondingDescribed first with failure records record output playback failure news.
Preferably, the operation playback system, wherein further include:
Inspection unit, is separately connected the playback unit and the storage unit, and the inspection unit is used for according toSecond records record, records record to one corresponding described first that current playback finishes and checks, and correspondingDescribed first with failure records record output playback failure news;
Start unit connects the inspection unit, for starting the checklist according to externally input enabled instructionMember.
Preferably, operation playback system, wherein in the recording elements further include:
First integrates module, for the set according to the operational motion with preset execution sequence, by corresponding generationA plurality of institute described first records recording integrating and forms a playback file, to be stored in the storage unit, for described mobile wholeEnd is played back.
Preferably, operation playback system, wherein in the converting unit further include:
Second integrates module, for the set according to the interface operation with corresponding execution sequence, by corresponding generationThe a plurality of second recording recording integrating forms a journal file and is checked with being stored in the storage unit for user.
Preferably, operation playback system, wherein include: in the playback unit
Setup module, when setting playback number and/or this playback of this playback for user the operational motion itBetween interval time.
Preferably, operation playback system, wherein described first records record is indicated with binary data stream.
A kind of operation back method is suitable for mobile terminal;Wherein, comprising:
It is enterprising in the functional module of bottom according to the mobile terminal during step S1, Yu Suoshu running of mobile terminalCapable operational motion generates corresponding first and records record;
The corresponding interface operation being converted by the operational motion is recorded in the form of text, is obtained simultaneously by step S2It saves corresponding second and records record;
After step S3, Yu Suoshu running of mobile terminal, according to externally input play-back command, according to first recordSystem record controls the mobile terminal execution operational motion accordingly, to play back the operation before the mobile terminalJourney;And/or
Instruction is checked according to externally input, shows that described second by integration records record to user.
Preferably, operation back method, wherein the interface operation includes:
The control clicking operation that corresponding control in the operation interface of the mobile terminal is clicked;And/or
Switch the forms handover operation of the operation interface of the mobile terminal.
Preferably, operation back method, wherein in the step S1:
According to the set of the operational motion with preset execution sequence, a plurality of first record that will accordingly generateRecording integrating processed forms playback file output, so that the mobile terminal is played back.
Preferably, test back method, wherein in the step S1:
According to the set of the interface operation with corresponding execution sequence, by corresponding a plurality of second record generatedRecording integrating processed forms journal file output, so that user checks.
Preferably, operation back method, wherein in the step S2:
Record is recorded according to corresponding described second, and matching inspection is carried out to the first recording record that every playback finishesIt looks into, and exports corresponding described first when it fails to match and record record playback failure news;And/or
It records record according to described second according to externally input enabled instruction starting and is recorded to corresponding described first and rememberRecord the process checked.
Preferably, the operation back method, wherein before executing the step S2, the playback number of this playback is preset,And/or interval time when this playback between the operational motion.
Preferably, operation back method, wherein described first records record is indicated with binary data stream.
A kind of mobile terminal, wherein including above-mentioned operation playback system.
A kind of mobile terminal, wherein use above-mentioned operation back method.
The beneficial effect of above-mentioned technical proposal is:
1) it is detached from control end side and realizes that mobile terminal side independently executes the function of operation playback, promote the spirit of operation playbackActivity;
2) it provides user readable operation log recording, convenient for users to checking operating process, promotes usage experience;
3) a kind of operation back method that can be achieved in operation playback system is provided, realizes that user of service's operation is corresponding and movesThe convenience of dynamic terminal.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram for operating playback system in preferred embodiment of the invention;
Fig. 2 is a kind of flow diagram for operating back method in preferred embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all itsHis embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phaseMutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
In the prior art, operation playback is carried out to the operational process of mobile terminal to usually require to use at control terminal (end PC)Special software is just able to achieve, and correspondingly also uses the specific software at the end PC to be just able to achieve the recording operation on playback basis,Therefore the mobile terminal that field testing can not be adapted for carrying out or used independently of control terminal.Operation is recorded simultaneouslyWhen, the data of unreadable formula are only recorded as, tester or user of service can not be directly viewable the data to analyze and surveyExamination movement.
Based on the above-mentioned problems in the prior art, a kind of technical solution operating playback system is now provided, is suitable forMobile terminal.In preferred embodiment of the invention, the structure of aforesaid operations playback system is specifically as shown in Figure 1, comprising:
Recording elements 1.In preferred embodiment of the invention, recording elements 1 are used for root during running of mobile terminalCorresponding first, which is generated, in the operational motion carried out in bottom functional module according to mobile terminal records record.
In preferred embodiment of the invention, mobile terminal is in the process of running, dynamic for one of them preset operationThe execution of work is usually expressed as: then anti-first according to the corresponding functional module operation of operational order control bottom issuedThe corresponding application module on upper layer, as corresponding interface operation should be arrived.In preferred embodiment of the invention, so-called interface behaviourMake, refers to the control clicking operation that the corresponding control in the operation interface to mobile terminal is clicked;And/or switching movementThe forms handover operation of the operation interface of terminal and/or other operations, such as the operation etc. of manipulation physical button.In other words, originallyIn the preferred embodiment of invention, mobile terminal controls its bottom functional module first and executes operation, which reacts after executingWhat it is to upper application module is corresponding control clicking operation perhaps forms handover operation or other such as physical buttonsInput operation etc..
In preferred embodiment of the invention, above-mentioned recording elements 1 are respectively formed a phase to the operational motion of each bottomFirst answered records record, i.e., each first, which records record, corresponds to an operational motion to bottom functional module.Such as it movesDynamic terminal executes the operational motion of a dialing, then for the operational motion, recording elements 1 form corresponding one first recordingRecord;Or the operational motion that one short message of mobile terminal execution is sent, then for the operational motion, the formation of recording elements 1One corresponding first is recorded record.
Specifically, in preferred embodiment of the invention, still as shown in Figure 1, including: in above-mentioned recording elements 1
First integrates module 11.In preferred embodiment of the invention, first integrates module 11 holds according to presetThe set of the operational motion of row sequence records recording integrating for be correspondingly formed a plurality of first and forms a playback file.
For example, in an automatic test course, mobile terminal carries out speaking test first and (such as dials words-connection electricityTalk about-checking that talking state-is hung up the telephone-and check talking state), then carry out short message receiving-transmitting test (such as send short message-check it is shortLetter transmission state-reception short message-checks short message reception state), then it above-mentioned first integrates module 11 and is held according to the aboveAbove-mentioned corresponding first recording recording integrating is formed this corresponding automatic test mistake by row sequence (short message receiving-transmitting again of first conversing)The playback file of journey checks that talking state-is hung up the telephone-check talking state-transmission short message-according to dialling words-connection phone-Check that short message sending status-reception short message-checks that the sequence integration of short message reception state is associated with this automatic test (operationProcess) in generate it is corresponding it is a plurality of first record record.
In preferred embodiment of the invention, above-mentioned first recording is recorded as binary data stream.In other words, of the inventionIn preferred embodiment, above-mentioned first recording record is unreadable record for user.
In preferred embodiment of the invention, in aforesaid operations playback system further include:
Converting unit 2.In preferred embodiment of the invention, converting unit 2 is used in the operational process of mobile terminal,The corresponding interface operation being converted by operational motion is recorded in the form of text, records record to obtain corresponding second.Specifically, in preferred embodiment of the invention, as mentioned above it is possible, can all be made first every time to the operation of mobile terminalFor the operational motion of the functional module to mobile terminal bottom, then, which can be converted into the behaviour in mobile terminalMake the interface operation carried out on interface.Then in preferred embodiment of the invention, above-mentioned converting unit 2 is respectively according to each interfaceOperation generates one corresponding second and records record.Further, for example, above-mentioned converting unit 2 clicks behaviour according to each controlMake (such as " information " control on click application interface), generates one corresponding second and record record, and according to each windowBody handover operation (such as operation that display forms are switched to a corresponding sub-interface from main interface), generates one accordinglySecond records record.
In preferred embodiment of the invention, specifically included in above-mentioned converting unit 2:
Second integrates module 21.In preferred embodiment of the invention, second integrate module 21 for according to have correspondenceExecution sequence interface operation set, corresponding generate a plurality of second will record the log that recording integrating forms textual formFile simultaneously exports, so that user checks.
In preferred embodiment of the invention, above-mentioned second records the log recording of recording text form.In other words, forFor user, above-mentioned second records the record for being recorded as readable formula.Then in preferred embodiment of the invention, above-mentioned log textPart is also the file of readable formula.Such as:
1, single physical button:
Press:HOME DOWN // press HOME key
Press:HOME UP (Short) // lift HOME key, and be short-press key
Press:HOME DOWN // press HOME key
Press:HOME UP (Long) // lift HOME key, and be long keying
2, multiple physical buttons:
Press:VOLUME_UP DOWN // first press VOLUME_UP key
Press:HOME DOWN // after press HOME key
Press:HOME UP (Long) // lift HOME key, and be long keying
Press:VOLUME UP (Long) // lift VOLUME_UP key, and be long keying
3, touch screen coordinate:
Touch:223,889 // short-press touch screen, coordinate 223,889
LongTouch:223,889 // long-pressing touch screen, coordinate 223,889
Move:223,889443,1122 // swipe from coordinate 223,889 to coordinate 443,1122
4, the control where some character string is clicked:
Click:[dialing] (TextView) com.android.sprdlauncher1
// click the dialing of main interface
5, there is content change on interface:
There is content to become 00:00 on ContentChanged:00:00 // interface
There is content to become 00:01 on ContentChanged:00:01 // interface
6, it has been currently entering which application, and has shown the packet name of the application:
Package:com.android.dialer
7, current window changes, and shows the title (title) of current window:
EnterWindow:[dialing]
8, if receiving some prompt informations, its content can be shown:
Notification:[XXX: distinguished client will carry out XX operation according to the content that you send] 9, paging interfaceNumber of pages prompt, is common in the interface starting (luncher):
Announcement:[main screen: the 1st screen, totally 3 screen]
10, emergency event:
Above-mentioned example be only be convenient for those skilled in the art understand that technical solution of the present invention and set.Other implementations of the inventionIn example, other corresponding second recording records can also be recorded according to different types of interface operation.Above-mentioned example is not intended toIt limits the scope of protection of the present invention.
In a preferred embodiment of the invention, for recording the complete operational process made a phone call, illustrate such asWhat is integrated module 21 using second and integrates journal file.
When recording a test process made a phone call, the log file contents of recording are as follows, can be from recordingClearly judge to have done what test action in content:
Similarly, above-mentioned example is only and is convenient for those skilled in the art understand that technical solution of the present invention, not thereby limitsProtection scope of the present invention.
Then as mentioned above it is possible, the journal file (including a plurality of second record record) of above-mentioned readable formula can be supplied to makesUser checks.
In preferred embodiment of the invention, in aforesaid operations playback system further include:
Storage unit 7 is separately connected above-mentioned recording elements 1 and converting unit 2.In preferred embodiment of the invention, depositStorage unit 7 records record and the second recording record for saving above-mentioned first.Further, preferred embodiment of the inventionIn, said memory cells 7 can be used to save the above-mentioned playback file that record formation is recorded with first, and above-mentioned for savingThe journal file that record is formed is recorded with second.
In a preferred embodiment of the invention, different memory spaces (figure can be divided in said memory cells 7In be not shown).It is possible to further being divided into two independent memory spaces, is preserved in a memory space and above-mentioned includeFirst records the playback file of record, preserve in the second memory space it is above-mentioned include the second recording record journal file.
Correspondingly, in preferred embodiment of the invention, above-mentioned first is integrated after module 11 is integrally formed playback file, willIt is stored in said memory cells 7;Above-mentioned second integrates after module 21 is integrally formed journal file, is equally stored inIt states in storage unit 7.
In preferred embodiment of the invention, in aforesaid operations playback system further include:
Playback unit 3.In preferred embodiment of the invention, above-mentioned playback unit 3 connects storage unit 7, is used for basisExternally input play-back command records record control mobile terminal execution corresponding operation movement according to first be saved, withPlay back the operational process before mobile terminal.
In preferred embodiment of the invention, above-mentioned 3 reality of playback unit is according to 1 Record and Save of recording elements in storageAll operational motions for being associated with a set including multiple operational motions executed according to preset execution sequence in unit 7It is all first record record, according to the sequence that executes recorded and saved, sequentially operational motion is played back, with playback onceComplete operational process.
In preferred embodiment of the invention, record is recorded for first based on the above-mentioned playback of playback unit 3, that is, is recordedUnreadable binary data stream of 1 Record and Save of unit in storage unit 7.
Specifically, in preferred embodiment of the invention, as shown in Figure 1, above-mentioned playback unit 3 includes:
Setup module 31.In preferred embodiment of the invention, setup module 31 for user to a playback operation intoRow setting.Specifically, in preferred embodiment of the invention, above-mentioned setup module 31 sets a playback operation for userPlay back the time interval of number (can be to operation playback repeatedly, to carry out the pressure test of application function) and playback.The present inventionPreferred embodiment in, the time interval of so-called playback, i.e., setting playback when operational motion between time interval, change speechIt, the time interval for setting playback is used to set the speed of playback.In preferred embodiment of the invention, when realizing setting playbackBetween the mode that is spaced be to be carried out by way of recording.For example, recording first if the time interval of playback is set as 0The speed for recording record is set to normal speed.If the time interval of playback is set as the numerical value greater than 0, accordinglyRecorded speed needs in ground slow down compared with normal speed, i.e., the recording time interval between two adjacent operational motions extends, and extendAmplitude according to the playback duration interval of setting determine.
In preferred embodiment of the invention, above-mentioned setup module 31 also selects to return based on this playback for userPut file.Specifically, in preferred embodiment of the invention, user can choose this time by above-mentioned setup module 31One or more playback files based on putting.In other words, user is by above-mentioned setup module 31, can be set to one orMultiple operational process (such as process of one or more automatic tests) carry out playback operation.
In preferred embodiment of the invention, as shown in Figure 1, in above-mentioned test playback system further include:
Inspection unit 4 is separately connected said memory cells 7 and playback unit 3.In preferred embodiment of the invention, inspectionVerification certificate member 4 for recording record according to be saved corresponding second, one first that current playback is finished record record intoRow checks, and the first of Corresponding matching failure records record output playback failure news.
Specifically, in preferred embodiment of the invention, as mentioned above it is possible, above-mentioned first records record and the second recordingThere is the corresponding relationship that is mutually related between record.Such as mobile terminal carries out the operational motion of one " making a phone call ", then grasps" forms in operation (control clicking operation) and/or application interface of the work movement with " click and dial words control " on application interfaceSwitch to and dial words interface " operation (forms handover operation) it is interrelated, therefore correspondingly, first records record and corresponding theTwo record between record with the relationship that is mutually related.Then can using second record record to it is corresponding first record record intoRow inspection is recorded record using second and is matched to a preset first recording record finished that plays back, if matching is justReally, then corresponding first recording record plays back successfully;If it fails to match, corresponding first records record playback failure.
In preferred embodiment of the invention, if matching is correct, inspection unit 4 does not do any operation, and replayed section is justOften carry out;If it fails to match, inspection unit 4 exports the operational motion and plays back failure news, to notify user to pay attention to.ThisIn the preferred embodiment of invention, when it fails to match, 4 yuan of checklist can also be controlled by way of exporting failed messageIt states playback unit and stops this playback operation.That is, the effect of inspection unit 4 is to check in preferred embodiment of the inventionWhether whether operational motion when return visit is consistent with interface operation when recording (clicks the same control, and/or carries outIdentical forms switching etc.).
In preferred embodiment of the invention, in aforesaid operations playback system further include:
Start unit 5.In preferred embodiment of the invention, start unit 5 connects above-mentioned inspection unit 4, is used for basisExternally input enabled instruction starts above-mentioned inspection unit 4.In other words, in preferred embodiment of the invention, user can be withIt controls whether inspection unit 4 starts by above-mentioned start unit 5, i.e., determines whether to carry out replayed section by start unit 5It checks.
In preferred embodiment of the invention, in aforesaid operations playback system further include:
It checks unit 6, connects said memory cells 7.In preferred embodiment of the invention, check unit 6 for basisIt is externally input to check instruction, show that second by integration records record to user.
Specifically, in preferred embodiment of the invention, as mentioned above it is possible, above-mentioned second recording record is included in textIt in the journal file of this form record, i.e., is readable for tester.In other words, test is supported in technical solution of the present inventionPersonnel record record to above-mentioned second and check, to understand each link during running of mobile terminal.
The similar above illustrated embodiment of the above-mentioned journal file checked, details are not described herein.
In conclusion in the operational process of mobile terminal, being recorded respectively for indicating to execute in technical solution of the present inventionThe first of corresponding operating movement records record and for indicating that executing the second of respective interface operation records record.Using firstIt records record to play back the operational process of mobile terminal, and record is recorded to first using the second recording record and is examinedIt looks into, to determine the correctness of playback.User's function of checking the second recording record is provided, simultaneously in order to which user is complete in timeThe operational process of face understanding mobile terminal.Above-mentioned technical proposal improves the flexibility ratio of operation recording and playback, by mobile terminalOperation recording and playback expand to independently of control terminal (end PC) mobile terminal side (i.e. without the end PC control can be in movementTerminal side executes playback operation), to promote the efficiency of operation recording and playback.
In preferred embodiment of the invention, it is based on aforesaid operations playback system, a kind of skill operating back method is providedArt scheme, is equally applicable to mobile terminal;The operation back method is specifically as shown in Figure 2, comprising:
Step S1, during running of mobile terminal, according to mobile terminal in the operation carried out in the functional module of bottomMovement generates corresponding first and records record;
The corresponding interface operation being converted by operational motion is recorded in the form of text, obtains and save by step S2Corresponding second records record;
In preferred embodiment of the invention, in above-mentioned steps S1 and step S2, above-mentioned first record is recorded and saved respectivelySystem record and second records record.Every kind is recorded the content of record expression as mentioned above it is possible, details are not described herein.
In preferred embodiment of the invention, in above-mentioned steps S1, above-mentioned first, which records record, records it with the second recordingBetween it is interrelated.
In preferred embodiment of the invention, above-mentioned first recording record is unreadable binary number for userAccording to stream.
In preferred embodiment of the invention, above-mentioned second recording record is readable journal file for user,I.e. above-mentioned journal file is recorded in the form of text.
Step S3, according to externally input play-back command, records record control according to first after running of mobile terminalMobile terminal execution corresponding operation movement processed, to play back the operational process before mobile terminal;And/or
Instruction is checked according to externally input, shows that second by integration records record to user.
In preferred embodiment of the invention, as mentioned above it is possible, above-mentioned first records record for playing back mobile terminalWhole service process before, above-mentioned second records each test that record is checked for user in the operational process of mobile terminalLink, in order to timely and accurately grasp test case.
In preferred embodiment of the invention, record can be recorded to each the first record for playing back and finishing using above-mentioned secondSystem record is checked, and when checking unsuccessfully, exports the first recording record playback failure news.
In preferred embodiment of the invention, a kind of mobile terminal is also provided, is returned including the above operationPlace system.
In preferred embodiment of the invention, a kind of mobile terminal is also provided, wherein returning using the above operationPut method.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection modelIt encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic contentEquivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.