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

Method and system for Android test

A technology of test objects and layout files, which is applied in the field of Android testing, can solve problems such as slow startup, no response, and errors, and achieve the effects of improving writing speed and accuracy, ensuring stability, and improving testing efficiency

Active Publication Date: 2013-06-05
ALIBABA GRP HLDG LTD
View PDF2 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The tool starts relatively slowly, and there will be no response after a long time of opening, which seriously affects the writing speed of test scripts
Moreover, when passing the id parameter of String type to the test system, it needs to be executed manually, which may lead to errors

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 and system for Android test
  • Method and system for Android test
  • Method and system for Android test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0047] refer to figure 1, which shows a flow chart of the steps of Embodiment 1 of a method for Android testing of the present application, which may specifically include the following steps:

[0048] Step 101, read the layout file of Android;

[0049] The Android layout file is a file describing the Android application interface UI, which includes element nodes used in the application interface UI, wherein the element node can be understood as an element or a container (container) containing multiple elements. That is to say, an element node in an Android layout file may correspond to an element or a container, and the container usually contains multiple elements.

[0050] Step 102, obtaining the id a...

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 a method and a system for an Android test. The method for the Android test includes the following steps: reading an Android layout file which comprises an element node which is used in an application user interface (UI) in the layout file, obtaining an identity (id) attribute and a parent attribute of the element node and eliminating repetitive element nodes in the layout file, wherein the repetitive nodes are other element nodes which have the same id attribute and the same parent attribute with a certain element node, adding an id attribute of a parent node which is closest to a current element node for element nodes which have the same id attribute but different parent id attributes in a current layout file when no other referenced layout files are in the current layout file, and invoking a test object to conduct the Android test through a preset test script according to the test object which generates after the process of the layout file. According to the method and the system for the Android test, errors caused by use of tools and manual input can be avoided, writing speed and writing accuracy of the test script can be increased, and testing efficiency can be effectively improved.

Description

technical field [0001] The present application relates to the technical field of system testing, in particular to a method and system for Android testing. Background technique [0002] Android is an open source operating system based on Linux, mainly used in mobile terminals such as mobile phones, and there is no unified Chinese name yet. Android platform consists of operating system, middleware, user interface and application software. [0003] Using the existing Android testing solution, it is necessary to obtain the id of the object under test, and then write the id of the object under test into the test script. Wherein, the id of the object under test refers to the id of the character type declared by the page element in the Android layout file, and the id has a corresponding value in android. [0004] For example, when using Android Native Driver (an Android UI (application interface) automated testing framework, developed based on Web Driver) or Taobao's TMTS (Taobao...

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 ALIBABA GRP HLDG LTD