CN107729223A - A kind of method and device of recording user operation on mobile terminals - Google Patents
A kind of method and device of recording user operation on mobile terminals Download PDFInfo
- Publication number
- CN107729223A CN107729223A CN201710769832.3A CN201710769832A CN107729223A CN 107729223 A CN107729223 A CN 107729223A CN 201710769832 A CN201710769832 A CN 201710769832A CN 107729223 A CN107729223 A CN 107729223A
- Authority
- CN
- China
- Prior art keywords
- user
- mobile terminals
- control information
- script
- recording
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3438—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
A kind of method and device of recording user operation on mobile terminals provided by the invention, first obtain the authority for intercepting user's operation;Gather the control information of current interface;The operation of user is recorded, the data of analysis user's operation, obtains coordinate corresponding to user's operation;According to the control information of the current interface and the coordinate, obtain the operation corresponding to control, pass through data conversion tools, operation of the user on the control is converted into executable script, it is easy to operate without PC ends, recording operation can be carried out whenever and wherever possible as needed.
Description
Technical field
The present invention relates to software testing technology field, more particularly to a kind of method of recording user operation on mobile terminals
And device.
Background technology
The method for recording of the UI automatic test scripts of Android platform is typically all to initiate to record by PC ends in the prior art
System, records and preserves operation behavior of the user on mobile phone in real time, but due to needing the hardware requirement of PC, user needs
Recording operation could be carried out under specific environment, recording operation can not be carried out anywhere or anytime.
The content of the invention
The technical problems to be solved by the invention are:The note on mobile terminals that a kind of applicability is wide, easy to operate is provided
Employ the method and device of family operation.
In order to solve the above-mentioned technical problem, a kind of technical scheme for using of the present invention for:
A kind of method of recording user operation on mobile terminals, including step:
S1, the control information for gathering current interface;
S2, the operation for recording user;
S3, according to the control information and the operation, the operation is converted into executable script.
In order to solve the above-mentioned technical problem, the another technical solution that uses of the present invention for:
A kind of device of recording user operation on mobile terminals, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, following steps are realized during the computing device described program:
S1, the control information for gathering current interface;
S2, the operation for recording user;
S3, according to the control information and the operation, the operation is converted into executable script.
The beneficial effects of the present invention are:By gathering the control information of current interface, the operation of user is recorded, according to institute
Control information and the operation are stated, the operation is converted into executable script, it is easy to operate without PC ends, can be with
Recording operation is carried out whenever and wherever possible as needed.
Brief description of the drawings
Fig. 1 is the method flow diagram of the recording user operation on mobile terminals of the embodiment of the present invention;
Fig. 2 is the apparatus structure schematic diagram of the recording user operation on mobile terminals of the embodiment of the present invention;
Label declaration:
1st, the device of recording user operation on mobile terminals;2nd, memory;3rd, processor.
Embodiment
To describe the technology contents of the present invention, the objects and the effects in detail, below in conjunction with embodiment and coordinate attached
Figure is explained.
The design of most critical of the present invention is:Mobile terminal only need to be used, gathers the control information of current interface, record is used
The operation at family, according to the control information and the operation, the operation is converted into executable script.
It refer to Fig. 1, a kind of method of recording user operation on mobile terminals, including step:
S1, the control information for gathering current interface;
S2, the operation for recording user;
S3, according to the control information and the operation, the operation is converted into executable script.
Seen from the above description, the beneficial effects of the present invention are:By gathering the control information of current interface, record is used
The operation at family, according to the control information and the operation, the operation is converted into executable script, without PC
End, it is easy to operate, recording operation can be carried out whenever and wherever possible as needed.
Further, step is also included before step S1:S0, obtain the authority for intercepting user's operation.
Seen from the above description, the authority of user's operation is obtained before recording user operation, has ensured and user is operated
The security recorded.
Further, the power for intercepting user's operation is obtained with the APK for intercepting user's operation in mobile terminal installation
Limit.
Seen from the above description, the power for intercepting user's operation is obtained with the APK for intercepting user's operation in terminal installation
Limit, it is simple and convenient.
Further, step S3 is specifically included:
S31, the data of analysis user's operation, obtain coordinate corresponding to user's operation;
S32, the control information according to the current interface and the coordinate, obtain control corresponding to the operation;
S33, by data conversion tools, operation of the user on the control is converted into executable script.
Seen from the above description, operation of the user on the control is changed into executable script, it can be played back
Preceding recorded user's operation, improves Consumer's Experience.
Further, in addition to step:
S41, structure collect the server of the script;
S42, add file transmitting function in the APK;
S43, the script is uploaded to by the server by the file transmitting function of the APK.
Seen from the above description, structure collects the server of the script, when script loss occurs in mobile terminal, is easy to
Giving for change for script, adds file transmitting function in APK, it is not necessary to using other extra devices, it is more convenient to upload script.
It refer to Fig. 2, a kind of device 1 of recording user operation on mobile terminals, including memory 2, processor 3 and deposit
Store up on memory 2 and the computer program that can be run on processor 3, when the processor 3 performs described program realization with
Lower step:
S1, the control information for gathering current interface;
S2, the operation for recording user;
S3, according to the control information and the operation, the operation is converted into executable script.
Seen from the above description, the beneficial effects of the present invention are:By gathering the control information of current interface, record is used
The operation at family, according to the control information and the operation, the operation is converted into executable script, without PC
End, it is easy to operate, recording operation can be carried out whenever and wherever possible as needed.
Further, step is also included before step S1:S0, obtain the authority for intercepting user's operation.
Seen from the above description, the authority of user's operation is obtained before recording user operation, has ensured and user is operated
The security recorded.
Further, the power for intercepting user's operation is obtained with the APK for intercepting user's operation in mobile terminal installation
Limit.
Seen from the above description, the power for intercepting user's operation is obtained with the APK for intercepting user's operation in terminal installation
Limit, it is simple and convenient.
Further, step S3 is specifically included:
S31, the data of analysis user's operation, obtain coordinate corresponding to user's operation;
S32, the control information according to the current interface and the coordinate, obtain control corresponding to the operation;
S33, by data conversion tools, operation of the user on the control is converted into executable script.
Seen from the above description, operation of the user on the control is changed into executable script, it can be played back
Preceding recorded user's operation, improves Consumer's Experience.
Further, in addition to step:
S41, structure collect the server of the script;
S42, add file transmitting function in the APK;
S43, the script is uploaded to by the server by the file transmitting function of the APK.
Seen from the above description, structure collects the server of the script, when script loss occurs in mobile terminal, is easy to
Giving for change for script, adds file transmitting function in APK, it is not necessary to using other extra devices, it is more convenient to upload script.
Embodiment one
A kind of method of recording user operation on mobile terminals, including step:
S0, obtain the authority for intercepting user's operation;
The present invention APK of installation interception user's operation, obtains by using the bottom storehouse of android system and intercepts user
Operation, it can monitor whether the user interface on mobile phone changes by the APK, if so, then gathering the control information of current interface
And store;Mobile phone can monitor whether user's operation on mobile phone occurs by the APK, if so, then recording the behavior and storing, profit
The APK for intercepting user and operating is carried with the bottom storehouse of android system, obtains the authority for intercepting user's operation, monitoring users circle
Face changes and whether monitoring users operation occurs preferred scheme only of the invention, such as completes acquisition using third-party application and blocks
Any function of cutting during whether authority, the change of monitoring users interface and the monitoring users operation that user operates occur, falls within
Protection scope of the present invention;
S1, the control information for gathering current interface;
In Android applications, each control includes certain property parameters, can be by obtaining mobile phone current interface institute
There is control information, each control is sorted out, button is all such as grouped into one kind, one of current interface is so operated in user
During control, the attribute of the control can be quickly recognized, and is recorded in script, above are only the preferred scheme of the present invention, such as
The attribute for substituting the control by matching unique mark to each control, falls within protection scope of the present invention;
S2, the operation for recording user;
User when clicking on mobile phone screen, mobile phone can intercept user operation corresponding to coordinate, according to collected work as
The control information of front interface, can match user's operation is that control, and the operation for clicking on screen can get along well hand
Machine screen directly contacts, as user can fall within protection scope of the present invention by the associative operation of the completion of gesture induction;
S3, according to the control information and the operation, the operation is converted into executable script;
Step S3 is specifically included:
S31, the data of analysis user's operation, obtain coordinate corresponding to user's operation;
S32, the control information according to the current interface and the coordinate, obtain control corresponding to the operation;
S33, by data conversion tools, operation of the user on the control is converted into executable script.
The determinant attribute ID being had according to acquired control information, such as button A is AID, according to data conversion tools
The operation that will click on button A is converted into CLICK (ID, AID), is repeated, it is possible to all operations step of user is recorded,
Generate corresponding test script;
S4:The script is uploaded to server;
The step S4 is specifically included:
S41, structure collect the server of the script;
S42, add file transmitting function in the APK;
S43, the script is uploaded to by the server by the file transmitting function of the APK;
One is built at PC ends has the server collected and upload file function, and mobile terminal is recording user's operation step
After rapid, preserve script manually by user and upload onto the server.
Embodiment two
A kind of device 1 of recording user operation on mobile terminals, including memory 2, processor 3 and it is stored in memory
On 2 and the computer program that can be run on processor 3, the processor 3 are realized in embodiment one when performing described program
Each step.
In summary, the method and device of a kind of recording user operation on mobile terminals provided by the invention, by adopting
Collect the control information of current interface;Record the operation of user;According to the control information and the operation, the operation is changed
For executable script, by using the bottom storehouse of android system, installation intercepts the APK of user's operation, obtains and intercepts user
The authority of operation, the security recorded to user's operation is ensured, by the APK, whether monitoring users interface changes
It is simple and convenient and whether user's operation occurs, operation of the user on the control is changed into executable script, can be with
Recorded before playback user operation, improve Consumer's Experience, it is easy to operate without PC ends, can as needed with
When carry out recording operation everywhere.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalents that bright specification and accompanying drawing content are made, or the technical field of correlation is directly or indirectly used in, similarly include
In the scope of patent protection of the present invention.
Claims (10)
- A kind of 1. method of recording user operation on mobile terminals, it is characterised in that including step:S1, the control information for gathering current interface;S2, the operation for recording user;S3, according to the control information and the operation, the operation is converted into executable script.
- 2. the method for recording user operation on mobile terminals according to claim 1, it is characterised in that before step S1 Also include step:S0, obtain the authority for intercepting user's operation.
- 3. the method for recording user operation on mobile terminals according to claim 2, it is characterised in that in the movement Terminal installation obtains the authority for intercepting user's operation with the APK for intercepting user's operation.
- 4. the method for recording user operation on mobile terminals according to claim 1, it is characterised in that step S3 is specific Including:S31, the data of analysis user's operation, obtain coordinate corresponding to user's operation;S32, the control information according to the current interface and the coordinate, obtain control corresponding to the operation;S33, by data conversion tools, operation of the user on the control is converted into executable script.
- 5. the method for recording user operation on mobile terminals according to claim 3, it is characterised in that also include step Suddenly:S41, structure collect the server of the script;S42, add file transmitting function in the APK;S43, the script is uploaded to by the server by the file transmitting function of the APK.
- 6. a kind of device of recording user operation on mobile terminals, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, it is characterised in that realize following steps during the computing device described program:S1, the control information for gathering current interface;S2, the operation for recording user;S3, according to the control information and the operation, the operation is converted into executable script.
- 7. the device of recording user operation on mobile terminals according to claim 6, it is characterised in that before step S1 Also include step:S0, obtain the authority for intercepting user's operation.
- 8. the device of recording user operation on mobile terminals according to claim 7, it is characterised in that in the movement Terminal installation obtains the authority for intercepting user's operation with the APK for intercepting user's operation.
- 9. the device of recording user operation on mobile terminals according to claim 6, it is characterised in that step S3 is specific Including:S31, the data of analysis user's operation, obtain coordinate corresponding to user's operation;S32, the control information according to the current interface and the coordinate, obtain control corresponding to the operation;S33, by data conversion tools, operation of the user on the control is converted into executable script.
- 10. the device of recording user operation on mobile terminals according to claim 8, it is characterised in that also include step Suddenly:S41, structure collect the server of the script;S42, add file transmitting function in the APK;S43, the script is uploaded to by the server by the file transmitting function of the APK.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710769832.3A CN107729223A (en) | 2017-08-31 | 2017-08-31 | A kind of method and device of recording user operation on mobile terminals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710769832.3A CN107729223A (en) | 2017-08-31 | 2017-08-31 | A kind of method and device of recording user operation on mobile terminals |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107729223A true CN107729223A (en) | 2018-02-23 |
Family
ID=61204816
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710769832.3A Pending CN107729223A (en) | 2017-08-31 | 2017-08-31 | A kind of method and device of recording user operation on mobile terminals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729223A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544106A (en) * | 2013-10-31 | 2014-01-29 | 广东欧珀移动通信有限公司 | Method and device for generating script based on control |
CN104346276A (en) * | 2013-08-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for software tests |
CN104881364A (en) * | 2015-06-26 | 2015-09-02 | 上海斐讯数据通信技术有限公司 | Automated testing method and system applied to Android system |
WO2017077847A1 (en) * | 2015-11-02 | 2017-05-11 | 日本電信電話株式会社 | Analysis device, analysis method, and analysis program |
CN106708528A (en) * | 2016-12-28 | 2017-05-24 | 北京奇虎科技有限公司 | Script generating method and device |
CN106874190A (en) * | 2016-12-30 | 2017-06-20 | 上海亿账通互联网科技有限公司 | The method of testing and server of user interface |
-
2017
- 2017-08-31 CN CN201710769832.3A patent/CN107729223A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346276A (en) * | 2013-08-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for software tests |
CN103544106A (en) * | 2013-10-31 | 2014-01-29 | 广东欧珀移动通信有限公司 | Method and device for generating script based on control |
CN104881364A (en) * | 2015-06-26 | 2015-09-02 | 上海斐讯数据通信技术有限公司 | Automated testing method and system applied to Android system |
WO2017077847A1 (en) * | 2015-11-02 | 2017-05-11 | 日本電信電話株式会社 | Analysis device, analysis method, and analysis program |
CN106708528A (en) * | 2016-12-28 | 2017-05-24 | 北京奇虎科技有限公司 | Script generating method and device |
CN106874190A (en) * | 2016-12-30 | 2017-06-20 | 上海亿账通互联网科技有限公司 | The method of testing and server of user interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6630276B2 (en) | Measuring User Behavior and Involvement Using User Interface on Terminal Devices | |
CN105453052B (en) | Method for assessing user interface and computing device | |
CN107102941B (en) | Test case generation method and device | |
CN111176960B (en) | User operation behavior tracking method, device, equipment and storage medium | |
CN105556482B (en) | Monitor mobile application performance | |
CN104699591B (en) | A kind of test scene replay method and device | |
CN102904996B (en) | The method and device of a kind of handset touch panel performance test, system | |
CN110362483B (en) | Performance data acquisition method, device, equipment and storage medium | |
CN108959000A (en) | A kind of server stress test method, system and terminal | |
CN109388532A (en) | Test method, device, electronic equipment and computer-readable storage medium | |
CN106649084A (en) | Function call information obtaining method and apparatus, and test device | |
US9317416B2 (en) | Merging automated testing reports | |
CN107894889A (en) | Bury point methods, equipment and computer-readable recording medium | |
CN105376335A (en) | Method and device for collection data uploading | |
CN105373293A (en) | Data acquisition method and apparatus | |
CN112817817A (en) | Buried point information query method and device, computer equipment and storage medium | |
CN105516321A (en) | Data acquisition method and device | |
CN112148579A (en) | User interface testing method and device | |
CN107102950A (en) | A kind of applied program testing method and device | |
CN105574150A (en) | Data processing method and device | |
CN103473170B (en) | Test macro and method of testing | |
CN108664389B (en) | Test method, test device and terminal | |
CN106383765B (en) | A kind of data monitoring method and device | |
CN108763050A (en) | A kind of detection method and device of application memory leakage | |
CN107729223A (en) | A kind of method and device of recording user operation on mobile terminals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |