Unlock instant, AI-driven research and patent intelligence for your innovation.

Android-based app testing method and system

A test method and interface technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as unlocatable, unexpandable, and difficult to use, and achieve the effect of speeding up testing and improving testing efficiency

Active Publication Date: 2020-08-18
FUJIAN TQ DIGITAL
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the Monkey test has the following defects: 1. It is not possible to log in to the application, it only simulates the flow of user events, and cannot identify the login interface of the application and enter the corresponding account password; and most applications have account login, which cannot deeply test the stability of the application. Just stay before the login screen
2. The crash cannot be located, and the event stream is sent pseudo-randomly. When the application crashes, the user cannot accurately know which interface and which button caused the crash, which will not help testers to reproduce and review the crash
3. It cannot be expanded, and the current tests are diverse. Monkey is a command line tool in Android, which cannot be expanded and combined with other test types, and cannot meet the requirements of various tests.
4. It is not easy to use. Monkey is a command-line tool in Android. The general calling method is through the PC. It needs to be connected to the mobile phone and the PC. It cannot be tested anytime and anywhere.
5. The test scope is not comprehensive enough. Monkey sends user event streams pseudo-randomly, so it is easy to miss important test points

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
  • Android-based app testing method and system
  • Android-based app testing method and system
  • Android-based app testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0084] Please refer to figure 2 , Figure 5-10 , Embodiment 1 of the present invention provides an Android-based APP testing method, which can detect control functions in the tested APP in a certain order. In order to better illustrate the solution of this embodiment, the concepts of interface tree, layout level, weight and several interface types are explained first:

[0085] The interface tree is recorded in a tree form. Each interface has one or more controls. Each control can jump to the corresponding interface. Each control has its own attribute information. The attribute information of the control contains the setting layout level. and the properties required by the weight, the control can be traversed in an orderly manner according to the layout level and weight; the control with the lower layout level in the present invention is traversed more preferentially, and the control with the lower weight is prioritized for traversal if the layout level is the same. If the w...

Embodiment 2

[0107] Embodiment 2 of the present invention is the method for automatically logging in according to the preset account password of the APP testing method based on the Android side of the above embodiment 1, including:

[0108] After entering an interface, determine whether the current interface is a login interface; specifically, determine whether the current interface contains more than two input boxes and contains text or login controls containing the words "login" and "login"; the login control is a control Controls whose text contains words such as "login", "enter" and "login" or whose resource tag attribute contains the word "login";

[0109] If so, match the pre-established account password with the account password input box on the login interface to automatically log in; specifically, there are the following situations: (1) Compare the default account with the text of the input box to determine whether the account has been saved, If yes, directly match the password in...

Embodiment 3

[0112] Such as Figure 4 As shown, this embodiment provides a system applied to the Android-based APP testing method in the first embodiment above, including:

[0113] The setting module is used to set the associated mailbox, select the APP to be tested, set the test time, account password, whether to open the screenshot and weak network (for example, limit the network speed below 20kb / s);

[0114] The identification module 01 is used to identify the startup page component of the APP under test, perform corresponding operations according to the type of the startup page component, and enter the next interface;

[0115] The automatic login module 02 is used to automatically log in using the automatic login method in the second embodiment above according to the preset account password;

[0116] The first jump module 1 is used to enter the main interface of the APP under test;

[0117] Interface type judgment module 11, is used for comparing current interface with the interface ...

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 provides an APP test method and system based on an Android terminal. The method comprises the following steps that 1, the main interface of an APP under test is entered; 2, controls contained by the current interface are obtained; 3, a list containing the distribution grades and the weights of the controls is built according to the attribute information of the controls, and sorting is conducted on the list; 4, the control with the lowest weight in the controls with the lowest distribution grades is selected according to the list; 5, corresponding operation is conducted according to the corresponding type of the selected control; 6, the next interface is entered, the operation result of the control is recorded, the weight of the control is increased by one in the list, the list is marked as traversed, and step 2 is returned until a preset test time is reached. According to the method, through sorting of the distribution grades and the weights of the controls contained in the interface and sequential traversing of the controls according to sorting, a function test is sequentially conducted on the controls.

Description

technical field [0001] The invention relates to the field of software testing, in particular to an Android-based APP testing method and system. Background technique [0002] With the development of smart terminals, software installed on smart terminals has become the focus of research and development, and corresponding software testing has also become a technology that has attracted much attention. Existing software testing method is various, such as Monkey test, Monkey test is a kind of fast and effective method in order to test the stability of software, robustness; , gesture input, etc.), to implement stress testing of the application being developed. [0003] However, the Monkey test has the following defects: 1. It is not possible to log in to the application, it only simulates the flow of user events, and cannot identify the login interface of the application and enter the corresponding account password; and most applications have account login, which cannot deeply te...

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/3688
Inventor 李炜陈君鹏刘德建曾捷
Owner FUJIAN TQ DIGITAL