Method for testing Android application controls

A test case and control technology, applied in the field of automatic testing of Android application controls, can solve problems such as inability to program and internal control effectiveness, robustness testing, time-consuming and labor-intensive, etc., to reduce workload, control information quickly, and improve work efficiency. Effect

Active Publication Date: 2015-08-12
NANJING UNIV OF POSTS & TELECOMM
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although Monkeyrunner and monkey can automatically perform simulation operations to a certain extent, they also require manual design in advance, and writing Python programs is also a time-consuming and laborious task, requiring testers to be very familiar with

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
  • Method for testing Android application controls
  • Method for testing Android application controls
  • Method for testing Android application controls

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0038] The invention is an automatic testing method based on the Android software unit testing framework, which analyzes the control elements of the page by analyzing the programs written by programmers. Use the relationship between controls and the frequency of use to formulate test cases, and automatically generate test codes by the program, and finally realize automated testing. The implementation steps of this embodiment are specifically:

[0039] Step 1) Obtain the control list of this project, such as figure 1 Shown:

[0040] Step 1.1) read the next line of text of the activity_main.xml file;

[0041] Step 1.2) Determine whether the current element is the control element we care about;

[0042] Step 1.2.1) is judged to be yes, write the name of the element into the output file in a new line, continue to scan the contents inside, and ...

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 method for testing Android application controls. By the method, a developer can conveniently compile a control test case, the overall development time is shortened, and the overall test level is improved. A configuration file is analyzed to find out information such as names and IDs (Identifiers) of all the controls, and different controls are endowed with different test weights to balance test speed and coverage rate. Different controls to be tested are converted into test codes from a template through a python language, and then the test codes are imported into projects for unit test. According to the method, a conventional Android application tester is helped, the workload of the tester is reduced, and working efficiency is greatly improved.

Description

technical field [0001] The invention relates to a method for automatically testing Android application controls, belonging to the technical field of software application testing. Background technique [0002] The original meaning of the word Android refers to "robot", and it is also the name of the open source mobile operating system based on the Linux platform announced by Google on November 5, 2007. The platform consists of operating system, middleware, user interface and application software. [0003] The development of Android applications is quite rapid. As of July 2014, there are more than 1.3 million downloadable applications on Google Play, and more than 50 billion downloads. The popularity of the Android system and the rapid development of applications, due to the short release cycle of Android applications, cannot be fully tested, resulting in the generally low quality of Android software. Therefore, automated analysis and testing techniques for Android applicati...

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
IPC IPC(8): G06F11/36
Inventor 张卫丰祁元超
Owner NANJING UNIV OF POSTS & TELECOMM
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