A computer vision-based mobile application testing system and method

A technology of computer vision and application testing, which is applied in the field of computer vision algorithms for automatic identification and positioning of controls, and software testing systems. It can solve problems such as low efficiency, rough stress testing tools, and failure to return test results, achieving strong adaptability, The effect of high test efficiency and accuracy

Active Publication Date: 2018-06-26
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, at present, most Android application development, especially mobile game development, is usually generated using OpenGL, Cocosplay2D, Unity3D and other rendering tools. The entire operable controls are deployed on a canvas (covering the entire screen), which cannot To obtain its control information in the background service, it is impossible to use current tools such as Robotium for automated testing
[0005] Now the Android platform comes with a test tool Monkey, instead of testing with control information, this test tool can automatically generate random coordinates and random events to operate, because it is a completely random operation, so the efficiency is low, and it can only be used as a rough one at present. Stress testing tools cannot return accurate test results to meet accurate test requirements

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 computer vision-based mobile application testing system and method
  • A computer vision-based mobile application testing system and method
  • A computer vision-based mobile application testing system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Principle of the present invention:

[0046] 1. The pixel-based template matching algorithm uses the squared difference of the gray value of the pixels between images as a measurement value to find the best matching position and matching degree. This algorithm is time-consuming and efficient, but the accuracy is poor. Using robust feature point descriptors has high matching accuracy, but this algorithm takes a long time and is inefficient. A method of combining these two algorithms is used to compromise time consumption and accuracy. For this kind of mobile terminal test According to the characteristics of the process, an appropriate algorithm is designed to achieve image matching, and to provide a basic calculation method for mobile testing based on image scripts.

[0047] 2. The traditional random operation test tool similar to the monkey tool has low efficiency and low accuracy. The image-based saliency detection algorithm mainly detects "significant areas" in the im...

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 present invention discloses a computer vision based mobile terminal application testing system and method. The system comprises an image script test module and an automatic test module. The image script test module obtains screen images and screen information simultaneously, reads a template image in a script and information in the template image, and executes a template matching algorithm; if the match is successful, an image matching result is returned, and if the match fails, a feature point matching algorithm is executed; and if the match is successful, the image matching result is returned, and if the matching fails, failure codes are returned. The automatic test module obtains an original image, calculates a saliency grayscale image of the original image by using a saliency detection algorithm, converts the saliency image into a binary image, and applies a random algorithm or a K-means algorithm to the saliency binary image to determine a saliency point set to automatically finish clicking and recording. The system and the method disclosed by the present invention improve test efficiency, are applicable to a wide variety of mobile devices, and greatly reduce the learning cost and provide test convenience for a tester by using two manners of a given script and full-automation.

Description

technical field [0001] The invention belongs to the technical field of software testing, and relates to a mobile terminal application software testing method and a complete software testing system. In particular, computer vision algorithms are used to automatically identify and locate controls, which can be applied to automatic testing of mobile terminal software, using image scripts fit test. Background technique [0002] At present, mobile devices have a very large market. The operating systems of mobile devices mainly include IOS, Windows and Android, and the market for Android is very large. On the other hand, there are many types and quantities of applications and games on mobile, and a large number of developers develop mobile devices and make money through advertisements in the market and applications. Whether an application can be used and played by people for a long time, stability is very important. Whether there will be bugs, flashbacks, or black screens will dir...

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
CPCG06F11/3684
Inventor 张震宇孙成龙
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI
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