A t method and system for simulating a real system resource environment of an Android us

A real system and test method technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as inability to accurately simulate the user's mobile phone environment, low solution efficiency, and CPU resource occupation, to achieve test High efficiency and accuracy, guaranteed test accuracy, guaranteed stability

Active Publication Date: 2019-02-19
挖财网络技术有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there has always been a problem in software testing that cannot efficiently simulate the user's real mobile phone environment
For example, a certain application is the CPU bottleneck, and no problem is found in the test on a certain type of machine, but there is a problem in the same type of mobile phone used by the user, for example, there are multiple applications in the background, which seriously occupy the CPU resources. At this time, The user may be stuck when using the application. Therefore, efficient and quantitative simulation of the user's real system resource environment is crucial to the testing of Android system software.
[0003] In the current Android system software testing, it is generally achieved by installing a large number of third-party software in the test machine to simulate the user's environment. Such a solution has many disadvantages. First, the solution is not efficient and requires frequent installation and uninstallation of software; secondly, Even if a large amount of third-party software is installed, it is impossible to accurately simulate the real mobile phone environment of the user. The reason is that the occupation of system resources by the third-party software fluctuates randomly; The simulation of the system resource environment cannot quantify the data

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
  • A t method and system for simulating a real system resource environment of an Android us
  • A t method and system for simulating a real system resource environment of an Android us
  • A t method and system for simulating a real system resource environment of an Android us

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Example 1. Such as figure 1 Shown is a test method for simulating the real system resource environment of an Android user, comprising the following steps,

[0048] S1. Determine the process running in the background of the Android system;

[0049] S11. Determine a Java program on the application side of the computer;

[0050] S12. Edit the Java program into an executable Jar package, and transmit the Jar package to a directory specified by the mobile terminal system; the directory specified by the mobile terminal system is / data / local / tmp. The Jar package includes a Main method.

[0051] S13, realizing the connection between the mobile terminal and the computer client, the computer client starts the shell process with system authority of the mobile terminal through the adb tool;

[0052] S14. The shell process of the mobile terminal starts the Java program through the command line.

[0053] S2. The process applies to the Android system for a long-term quantitative ...

Embodiment 2

[0064] Example 2. Such as figure 2 A test system that simulates the real system resource environment of an Android user is shown, including,

[0065] Encapsulate and compile the module, which is used to determine the process running in the background of the Android system;

[0066] The package compilation module includes,

[0067] The compilation unit is used to compile the Java program determined by the computer application end into an executable Jar package;

[0068] An encapsulation unit, used for storing the Jar package in a directory specified by the mobile terminal system;

[0069] The parsing unit is used for parsing the Jar package sealed in the directory specified by the mobile terminal system on the computer client, so that the shell process with system authority of the mobile terminal is started, and then the shell process starts the Java program through the command line.

[0070] The data receiving module is used for the determined process to receive the quant...

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 the technical field of system testing, in particular to a testing method and a system for simulating the real system resource environment of an Android user, comprising the following steps: S1, determining a process running in the background of the Android system; S2, according to the quantitative data provided by the user, the process applies to the Android system for thesystem privilege of occupying the system resources quantitatively; S3, after the system privilege application of the process is successful, sending the information of circularly monitoring the quantitative data input by the user to the thread; S4, the thread reversely transfers the data monitored by the loop to the process; S5, the process judges whether the system resources are to be released ornot according to the received data. The invention has the characteristics of high test efficiency, high accuracy and the ability of realizing quantitative processing to the data.

Description

technical field [0001] The invention relates to the technical field of system testing, in particular to a testing method and system for simulating the real system resource environment of Android users. Background technique [0002] As we all know, there are many mobile software in the market, and the quality of the software is uneven. A good test plan is an important guarantee for the quality of the software. However, there has always been a problem in software testing that cannot efficiently simulate the user's real mobile phone environment. For example, a certain application is the CPU bottleneck, and no problem is found in the test on a certain type of machine, but there is a problem in the same type of mobile phone used by the user, for example, there are multiple applications in the background, which seriously occupy the CPU resources. At this time, Users may be stuck when using applications. Therefore, efficiently and quantitatively simulating the user's real system 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
CPCG06F11/3648G06F11/3688
Inventor 段建建陈仕彬
Owner 挖财网络技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products