Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of resolution system and analytic method of Android mobile terminal operation steps, for solve of the prior art in test process some recessive problems the most scabrous, be the problem that cannot analyze concrete operation step according to common mobile terminal print log usually.
Resolution system and the analytic method of a kind of Android mobile terminal operation steps of the present invention are carried in the equipment of android mobile intelligent terminal and computer, exist with a kind of software form of installing unloading, mainly can the institute input content of recording user in android mobile terminal, when relevant issues occur, be convenient to a kind of method and system of research staff's quick position and test problem.
For achieving the above object and other relevant objects, the invention provides a kind of Android mobile terminal operation steps resolution system, it at least comprises:
Watch-dog, obtains authority in Android mobile terminal, obtains the process of operate coding data;
Coupling adjusts device, the mobile terminal of compatible different manufacturers;
Step resolver, reads and scale operation data, 16 scale codings is converted to the mobile terminal operation steps that can read.
In one embodiment of the invention, described Android mobile terminal operation steps resolution system, watch-dog described in it comprises Android interface guide, it is installed in Android mobile terminal equipment with APP form in advance, obtain one piece to Android mobile terminal system and run spatial cache, identify, and read-write execution authority is obtained to this spatial cache.
In one embodiment of the invention, described Android mobile terminal operation steps resolution system, uses getevent interface command to obtain the data message of user from UI interface and physical button feedback in APP described in it.
In one embodiment of the invention, described Android mobile terminal operation steps resolution system, watch-dog described in it also comprises and is positioned at computer end:
Android interface connector, it is connected with Android mobile terminal equipment, and according to identifier, coupling guides interface, the data message in transmission buffer space;
Data filter, filters the data message using getevent interface command to obtain in APP, filters out the data message of the input of user's screen and physical button input;
Holding area, screens the data obtained from spatial cache, retains the data message of the input of user's screen and physical button input, preserves.
In one embodiment of the invention, described Android mobile terminal operation steps resolution system, described in it, getevent interface command can obtain all input data informations, data message is classified, and define agreement and distinguish, be defined as the input of user's screen with event0 function, event1 is physical button input, event2 is progressive sensor sensing, the data placement filtered out is in spatial cache.
In one embodiment of the invention, described Android mobile terminal operation steps resolution system, step resolver described in it reads and scale operation the data in holding area, 16 scale codings are converted to the mobile terminal operation steps that can read, according to user's some click any on screen, in holding area, following information can be deposited:
/dev/input/event0:00030035000000ef
/dev/input/event0:000300360000039c
Be represent that user clicks X and the Y-axis coordinate of input respectively according to protocol content 0035 and 0036,000000ef and 0000039c is 16 system coordinates, obtains coordinate X=239 and Y=924 by converting.
For achieving the above object and other relevant objects, the present invention also provides a kind of Android mobile terminal operation steps analytic method, and it at least comprises the steps:
Android mobile terminal equipment operated by user, obtains authority in Android mobile terminal, obtains the process of operate coding data;
The mobile terminal of compatible different manufacturers;
Data are read and scale operation, 16 scale codings is converted to the mobile terminal operation steps that can read.
In one embodiment of the invention, described Android mobile terminal operation steps analytic method, authority is obtained in Android mobile terminal described in it, the process obtaining operate coding data is realized by watch-dog, described watch-dog comprises Android interface guide, it is installed in Android mobile terminal equipment with APP form in advance, obtain one piece to Android mobile terminal system and run spatial cache, identify, and read-write is obtained to this spatial cache perform authority, use getevent interface command to obtain the data message of user from UI interface and physical button feedback in described APP.
In one embodiment of the invention, described Android mobile terminal operation steps analytic method, watch-dog described in it also comprises and is positioned at computer end:
Android interface connector, it is connected with Android mobile terminal equipment, and according to identifier, coupling guides interface, the data message in transmission buffer space;
Data filter, filters the data message using getevent interface command to obtain in APP, filters out the data message of the input of user's screen and physical button input;
Holding area, screens the data obtained from spatial cache, retains the data message of the input of user's screen and physical button input, preserves.
In one embodiment of the invention, described Android mobile terminal operation steps analytic method, described in it, getevent interface command can obtain all input data informations, data message is classified, and define agreement and distinguish, be defined as the input of user's screen with event0 function, event1 is physical button input, event2 is progressive sensor sensing, the data placement filtered out is in spatial cache.
In one embodiment of the invention, described Android mobile terminal operation steps analytic method, step resolver described in it reads and scale operation the data in holding area, 16 scale codings are converted to the mobile terminal operation steps that can read, according to user's some click any on screen, in holding area, following information can be deposited:
/dev/input/event0:00030035000000ef
/dev/input/event0:000300360000039c
Be represent that user clicks X and the Y-axis coordinate of input respectively according to protocol content 0035 and 0036,000000ef and 0000039c is 16 system coordinates, obtains coordinate X=239 and Y=924 by converting
As mentioned above, the resolution system of a kind of Android mobile terminal operation steps of the present invention and analytic method, have following beneficial effect:
Of the present invention can real time parsing user input content automatically resolving, change into the function of readable data, be convenient to research staff's assignment test operation steps investigation reason.The present invention resolves sorted users input operation data by custom protocol.
By guide and interface unit output function data, and carry out the android mobile terminal instrument of the operation exploitation of 16 binary data parsings, use in assistance test as test aid, record tester operation steps, operation steps before reflecting tester in time when encountering problems, be convenient to research staff's find problem point, respond well.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to shown in Fig. 1 and Fig. 4, the invention provides a kind of android terminal operation steps resolution system and method, the instrument for android terminal system, for recording the operation steps of android terminal and occurring that process carries out a kind of instrument of assisting to investigate for fault.
The present invention program relies on intercommunication mutually between android terminal system and computer PC and operation, carries out the process of data acquisition operations parsing by PC program of holding.Concrete android terminal operation steps resolution system forms scheme as shown in Figure 1, user operation android terminal system, starts monitoring, adjusts by coupling the custom protocol that device reads this terminal, carry out dissection process by step resolver, result is preserved.
A kind of android terminal operation steps of the present invention resolution system, its technical scheme summarizes to say it is a kind of android terminal system tool, and major function is the terminal operation content being responsible for implementing to resolve user.It is by three large nucleus modules: watch-dog 102, coupling adjusts device 103, step resolver 101 formed.Below be described in detail.
Refer to shown in Fig. 2, described watch-dog 102, its major function obtains authority at Android end, and then obtain this process of operate coding data.Mainly be divided into 4 parts, will explain in detail as follows:
(1) Android interface guide 1021, this device is fit in mobile terminal device in advance with APP form, obtains one piece and runs spatial cache, identify to system, and obtains read-write execution authority to this internal memory-spatial cache.
In the code of APP, getevent interface command is used to obtain user from UI interface and physical button (POWER, HOME, BACK etc.) feedback information information.Certainly, according to different terminals manufacturer, configuration protocol content is also not quite similar (explanation of reservation protocol interface COM-subsequent module), for striking news PHICOMM mobile terminal, as shown in hereafter show:
Protocol contents |
event0 |
event1 |
event2 |
event3 |
event4 |
Function defines |
User's screen inputs |
Physical button |
Progressive sensor |
Gyroscope |
Other sensors |
Getevent interface command can obtain all input data informations, these data messages are classified, and define a simple protocol differentiation, the input of user's screen is defined as with event0 function, event1 is physical button input, and event2 is progressive sensor sensing, and event3 is gyroscope sensing, other sensors of event4 sense, and filter out data placement in spatial cache.
(2) Android interface connector 1022, in computer end, needs Android interface connector 1022 to be connected with Android mobile terminal 105, and according to identifier, coupling guides interface.The data message in transmission buffer space.
(3) data filter 1023, in the data message using getevent interface command to obtain in APP, also comprise progressive sensor simultaneously, the non-user such as gyroscope initiatively input information data, therefore need that these non-user are initiatively inputted information data to filter, filter out the data message of event0 and event1.
As shown in hereafter code, from the data that spatial cache obtains, screening:
/dev/input/event2:0001007300000001
/dev/input/event2:0000000000000000
/dev/input/event2:0001007300000000
/dev/input/event2:0000000000000000
/dev/input/event1:0001007200000001
/dev/input/event1:0000000000000000
/dev/input/event1:0001007200000000
/dev/input/event1:0000000000000000
/dev/input/event0:0003003900000028
/dev/input/event0:0001014a00000001
/dev/input/event0:0001014500000001
/dev/input/event4:00030035000000eb
/dev/input/event4:000300360000039a
/dev/input/event3:0000000000000000
(4) holding area 1024, as shown in hereafter code, remove the data message of event2, event3, event4, retain event0 and even1, preserve:
/dev/input/event1:0001007200000001
/dev/input/event1:0000000000000000
/dev/input/event1:0001007200000000
/dev/input/event1:0000000000000000
/dev/input/event0:0003003900000028
/dev/input/event0:0001014a00000001
/dev/input/event0:0001014500000001
Please refer to shown in accompanying drawing 3, described coupling adjusts device 103, its effect is the mobile terminal of compatible different manufacturers, different manufacturers configuration is in the terminal not quite similar, the content item that getevent interface command obtains changes to some extent, as shown in hereafter show, and S company mobile terminal product, event0 is physical sensors, and event1 is the input of user's screen:
Protocol contents |
event0 |
event1 |
event2 |
event3 |
event4 |
Function defines |
Physical button |
User's screen inputs |
Progressive sensor |
Gyroscope |
Other sensors |
Before the use, configuration mobile terminal protocol attribute in described Android interface guide 1021 (introducing in the first module) in described watch-dog 102, in described matching and debugging device 103, XML format configuration file or be called XML configuration file 1032, the mobile terminal operation information data protocol of S company, is transferred to described Android interface guide 1021 by agreement COM1031 interface.
Described step resolver 101, its effect is read and scale operation the data in holding area 1024,16 scale codings converted to the mobile terminal operation steps that can read.
The following method 16 systems of stating screen touch-control in detail being changed into readable data:
Click a bit arbitrarily on screen according to user, in holding area, information as shown in hereafter code can be deposited:
/dev/input/event0:00030035000000ef
/dev/input/event0:000300360000039c
Be represent that user clicks X and the Y-axis coordinate of input respectively according to protocol content 0035 and 0036,000000ef and 0000039c is 16 system coordinates, obtains coordinate X=239 and Y=924 by converting.The conversion of physical button (POWER, HOME, BACK etc.) is relatively fixing, does not here change one by one.
Please refer to shown in accompanying drawing 4, the present invention also provides a kind of Android mobile terminal operation steps analytic method, and it at least comprises the steps:
Perform step S11, start user operation;
Perform step S12, according to the Android mobile terminal equipment of user-selected fixed operation,
Perform step S13, obtain authority in Android mobile terminal, obtain the process of operate coding data; Described watch-dog comprises Android interface guide, and it is installed in Android mobile terminal equipment with APP form in advance, obtains one piece and runs spatial cache, identify to Android mobile terminal system, and obtains read-write execution authority to this spatial cache.Described Android mobile terminal operation steps resolution system, uses getevent interface command to obtain the data message of user from UI interface and physical button feedback in APP described in it.Described Android mobile terminal operation steps resolution system, watch-dog described in it also comprises and is positioned at computer end: Android interface connector, and it is connected with Android mobile terminal equipment, and according to identifier, coupling guides interface, the data message in transmission buffer space; Data filter, filters the data message using getevent interface command to obtain in APP, filters out the data message of the input of user's screen and physical button input; Holding area, screens the data obtained from spatial cache, retains the data message of the input of user's screen and physical button input, preserves.
Perform step S14, the mobile terminal of compatible different manufacturers; Different manufacturers configuration is in the terminal not quite similar, and the content item that getevent interface command obtains changes to some extent.
Perform step S15, data are read and scale operation, 16 scale codings is converted to the mobile terminal operation steps that can read.Such as, click a bit arbitrarily on screen according to user, in holding area, information as shown in hereafter code can be deposited:
/dev/input/event0:00030035000000ef
/dev/input/event0:000300360000039c
Be represent that user clicks X and the Y-axis coordinate of input respectively according to protocol content 0035 and 0036,000000ef and 0000039c is 16 system coordinates, obtains coordinate X=239 and Y=924 by converting.The conversion of physical button (POWER, HOME, BACK etc.) is relatively fixing, does not here change one by one.
Perform step S16, preserve above-mentioned information.
Perform step S17, terminate.
In sum, technical solution of the present invention summarizes to say it is a kind of android terminal system tool, and major function is the terminal operation content being responsible for implementing to resolve user.Described technical scheme is not singly on android intelligent mobile terminal, can be in use in other intelligent operating platforms by thinking of the present invention, understand intelligent platform data message, the content of operation different according to protocol classification, then the process of resolving is carried out, so the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
The invention provides a kind of android terminal operation steps resolution system and method, is the instrument for android terminal system, for recording the operation steps of android terminal and occurring that process carries out a kind of instrument of assisting to investigate for fault.Rely on the intercommunication mutually between android terminal system and computer PC and operation, carry out the process of data acquisition operations parsing by PC program of holding.Concrete android terminal operation steps resolution system forms scheme as shown in Figure 1, user operation android terminal system, starts monitoring, adjusts by coupling the custom protocol that device reads this terminal, carry out dissection process by step resolver, result is preserved.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.