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

Particle swarm optimization (PSO) algorithm based Android automatic testing method

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: 2016-04-20
BEIJING INSTITUTE OF TECHNOLOGYGY
View PDF7 Cites 6 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 automatic testing method based on particle swarm optimization algorithm of the present invention is mainly divided into viewer, testmethod, PSO, testcase, 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, viewer Responsible for obtaining the control hierarchy tree information of the application under test. The testmethod module is a repackage of the basic test methods in robotium. It is responsible for reducing code redundancy and providing more efficient test methods. The report / log module is responsible for recording the running log, which is convenient for finding abnormal information. The testcase module is 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 modul...

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 Applications(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