Application testing method, device and terminal based on monkey command

An application testing and terminal technology, applied in the Internet field, can solve problems such as multi-effective testing and inability to guarantee, and achieve the effect of improving effectiveness, ensuring effective testing, and comprehensive testing coverage.

Active Publication Date: 2018-01-23
BEIJING KINGSOFT INTERNET SECURITY SOFTWARE CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that the current application testing based on the Monkey command cannot guarantee as many effective tests as possible

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
  • Application testing method, device and terminal based on monkey command
  • Application testing method, device and terminal based on monkey command
  • Application testing method, device and terminal based on monkey command

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0053] Embodiments of the present invention provide an application testing method, device, and terminal based on the Monkey command, which can ensure effective testing in the application test based on the Monkey command as much as possible, and will be described in detail below.

[0054] see figure 1 , figure 1 It is a schematic flowchart of an application testing method based on a Monkey command disclosed in an embodiment of the present invention. like figure 1...

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 embodiment of the present invention discloses an application testing method, device, and terminal based on a Monkey command. The method includes: receiving a Monkey command for a target application; responding to the Monkey command, and running the target application; respectively using each test entry as the entry of the Monkey, Execute the pseudo-random event for the test entry; during the execution of the pseudo-random event for the test entry, monitor whether the window name of the topmost window of the terminal matches the window name corresponding to the test entry; if they do not match, suspend execution for For the pseudo-random event of the test entry, the control terminal sets the window whose window name matches the window name corresponding to the test entry as the topmost window, and continues to execute the pseudo-random event for the test entry; when at least two tests of the target application The entrance tests are completed, and the total number of executions of pseudo-random events reaches the preset total number of pseudo-random events, and it is determined that the target application test is completed. By adopting the invention, the effectiveness of application testing can be improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to an application testing method, device and terminal based on a Monkey command. Background technique [0002] The Monkey command is a command-line tool provided by Google to test stability. Although the name of the application package to be tested can be specified through the -p parameter. However, in actual testing, it is often encountered that random events cannot be effectively controlled, making subsequent tests worthless. [0003] For example, taking the test of "clean master's stability" as an example, the format of the Monkey command is adb shellmonkey–p com.cleanmaster.mguard_cn 30000, which means to execute 30,000 pseudo-random events for the "clean master" application. However, in the actual test, the home button event may be triggered when 5000 events are executed, and the main screen will be returned. After that, the Monkey command control terminal enters another...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 张润琦
Owner BEIJING KINGSOFT INTERNET SECURITY SOFTWARE CO LTD
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