Automatic testing method and system based on Monkey command

A technology of automated testing and testing methods, applied in software testing/debugging, error detection/correction, instruments, etc., to solve problems such as inability to automatically collect and analyze test results, error-prone, inability to continuously send test instructions, etc.

Active Publication Date: 2016-07-13
HUIZHOU TCL MOBILE COMM CO LTD
View PDF4 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a kind of automated testing method and system based on the Monkey command, which solves the problem that carrying out the Monkey test in the prior art can only be performed by manually inputting the corresponding shell command in the command window, once only Can operate an Android device, cannot continuously send test instructions, and cannot automatically collect and analyze test results, which is prone to errors and low efficiency defects

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
  • Automatic testing method and system based on Monkey command
  • Automatic testing method and system based on Monkey command
  • Automatic testing method and system based on Monkey command

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The present invention provides an automated testing method and system based on the Monkey command. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0048] See figure 1 , which is a flowchart of a preferred embodiment of the automated testing method based on the Monkey command in the present invention. Such as figure 1 As shown, the described automated testing method based on the Monkey command comprises the following steps:

[0049] Step S100, when it is detected that the connection between the Android device and the test platform is successful, the application package of the Android device is loaded;

[0050] Step S200, the Monkey tool in...

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 discloses an automatic testing method and system based on a Monkey command.The method comprises the steps that when it is detected that an Android device succeeds in being connected with a testing platform, application packages of the Android device are loaded; a Monkey tool in the testing platform receives an operation instruction of a user, the testing mode of the Monkey tool is set, and testing items are configured; the application packages in the Android device are tested according to the testing mode and testing items in the Monkey tool, and testing log information and testing abnormal information are printed in real time; when all the application packages of the Android device are tested, a testing report is generated according to a report template, and testing logs are stored.According to the automatic testing method and system, information of the connected Android device can be automatically acquired, multiple Android devices can be tested at the same time, testing commands are automatically generated and continuously sent according to settings, the abnormal information can be analyzed and reported in real time, finally the testing report is generated, and automatic testing on the application packages is convenient.

Description

technical field [0001] The invention relates to the technical field of automated testing, in particular to an automated testing method and system based on Monkey commands. Background technique [0002] Monkey is a command-line tool in Android that can run in an emulator or on an actual device. It sends pseudo-random user event streams (such as key input, touch screen input, gesture input, etc.) to the system to implement stress testing of the application being developed. Monkey testing is a fast and effective method to test the stability and robustness of software. [0003] Monkey testing is a means of Android automated testing. However, the original Monkey test can only be performed by manually entering the corresponding shell command in the command window, and only one Android device can be operated at a time. It cannot continuously send test commands, nor can it automatically collect and analyze test results, which is prone to errors and low in efficiency. [0004] The...

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/3688
Inventor 魏亚奇唐苗苗余艳萍
Owner HUIZHOU TCL MOBILE COMM 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