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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


