Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for recording user operation of Android program

A program and user technology, applied in the field of user operation of recording the Android program under test, can solve the problems of inseparability, poor tool convenience and practicability, and inability to perform complete simulation, and achieve accurate operation, concise recorded data, and responsiveness. high effect

Inactive Publication Date: 2016-10-05
RICOH KK
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The first method cannot be separated from the PC, and cannot automatically record anytime, anywhere
Moreover, there are differences between the UI simulated on the PC and the UI of the actual Android program, which cannot be completely simulated.
Tool convenience and practicability are poor
[0010] In the second method, the View layer and the Android program need to perform additional communication and data transfer, which will affect the response speed of the Android program, and various operations on the View layer will contain many invalid actions, which in turn will cause the recording result to contain invalid content. And affect the recording accuracy and subsequent automated test accuracy
[0011] The third method is to modify the Android object by modifying the inheritance relationship of the Smali file. Due to the different viewing angles and positioning strengths, user operations may not be accurately recorded.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for recording user operation of Android program
  • Method and system for recording user operation of Android program
  • Method and system for recording user operation of Android program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The invention discloses a method for recording user operations of a tested Android program, the method comprising the following steps:

[0049] A, decompile described tested Android program, obtain the Smali file of described tested Android program;

[0050] B, modify the Smali file of the Android program under test based on the base Android program for recording user operations, so that the line of code that performs the recording function in the base Anroid program is inserted in the Smali file of the Android program under test, to obtain the modification the Smali file after; and

[0051] C, the Smali file after described modification is compiled, obtains the new tested Android program;

[0052] d. Execute the new tested Android program, and record the user's operation process.

[0053] The method of the embodiment of the present invention transforms the original tested Android program based on the benchmark program, and adds the function of recording user operatio...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for recording user operation of an Android program. The method is adopted to record user operation of the Android program by using a code injection mechanism, and comprises the following steps: decompiling a tested Android program so as to acquire a Smali file of the tested Android program; modifying the Smali file of the tested Android program on the basis of a reference Android program for recording the user operation, and inserting a code row for implementing a recording function in the reference Android program into the Smali file of the tested Android program, so as to acquire a modified Smali file; compiling the modified Smali file so as to acquire a new tested Android program; implementing the new tested Android program, and recording the operation process of a user. The invention further relates to a system for recording the user operation of the Android program.

Description

technical field [0001] The invention relates to a method for recording user operations of a tested Android program. The method uses a code injection mechanism to record the user operations of the tested Android program. The invention also relates to a system for recording user operations of a tested Android program. Background technique [0002] As the Android system is more and more widely used, the number of Android programs is also increasing rapidly. Android programs are mostly developed in Java. You can use tools to decompile Android programs to obtain resource files and Smali language source files. You can also use tools to recompile the decompiled resource files and Smali language source files to generate Android programs. . [0003] In order to ensure the quality of Android programs, developers need to spend a lot of time for testing. Compared with the time-consuming and labor-intensive manual testing method, the Android-based automated testing system has a wide r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 张海李迟颖
Owner RICOH KK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products