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

Android automated testing method based on particle swarm optimization algorithm

A technology of particle swarm optimization and automated testing, which is applied in software testing/debugging, computing, computing models, etc., can solve problems such as low efficiency and coverage, reduced efficiency and coverage of automated testing, long testing cycle, etc., to avoid code Redundancy, the effect of improving test efficiency and coverage

Active Publication Date: 2018-02-13
BEIJING INSTITUTE OF TECHNOLOGYGY
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

First of all, such automated testing of Android applications still requires the manual participation of a large number of testers, the testing cycle is long, and the efficiency and coverage are low.
Secondly, the existing Android automated testing framework has great limitations in generating test cases for input classes, mainly relying on empirical judgment, which greatly reduces the efficiency and coverage of automated testing

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The present invention is described further below.

[0017] The Android automated testing method based on particle swarm optimization algorithm of the present invention is mainly divided into viewer, testmethod, PSO, test case, report / log module, wherein PSO is the core module of whole method, is responsible for particle swarm optimization algorithm to the generation of test case, The viewer is responsible for obtaining the control hierarchy tree information of the tested application. The test method module is a repackage of the basic test method in robotium, which is responsible for reducing code redundancy and providing a more efficient test method. The report / log module is responsible for recording the running log for easy search The exception information and test case modules are used to store the generated test cases, which is easy to reuse and improve the efficiency of test case generation.

[0018] When an APK is selected, the communication with the viewer module ...

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 a particle swarm optimization algorithm (PSO) based Android automatic testing method. Triggering of an application control can be carried out in a modularized manner; relatively efficient input test data can be generated; and software exception can be relatively efficiently triggered when convenience is achieved. The method comprises the following steps: (1) mounting an app on a simulator, starting view server service by a viewer module, and obtaining control hierarchy tree information of the app through a hierarchy viewer; (2) with the obtained control hierarchy tree information as input, organizing a tree structure convenient to traverse by a build tree method of a PSO module; (3) traversing a control hierarchy tree constructed by the build tree, and searching whether a historical test case exists or not in a test case module after traversing a node every time; and (4) calling a test case set stored in the test case module, thereby implementing automatic testing.

Description

technical field [0001] The invention belongs to the field of software automation testing, and relates to an Android automation testing method based on a particle swarm optimization algorithm. Background technique [0002] The current automated testing of Android applications still requires the manual participation of a large number of testers, the test cycle is long, the efficiency and coverage are low, and the use of existing testing tools will lead to code redundancy. The keyword-driven testing framework is passed Methods for manipulating test case generation using test directives. Currently, keyword-based testing frameworks and testing methods are widely used in automated testing of Android applications. Robotium is an open source testing framework based on the encapsulation of the Instrumentation framework, and is mainly used to simulate user scenario testing. Use Robotium to easily write robust and effective automated black-box and white-box tests for Android applicat...

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/36G06N3/00
CPCG06F11/3684G06N3/00
Inventor 胡昌振马锐王达光刘月王赫晨
Owner BEIJING INSTITUTE OF TECHNOLOGYGY
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