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

Mobile phone application testing method based on mobile phone interface control elements

A mobile phone interface and testing method technology, applied in software testing/debugging and other directions, can solve problems such as poor readability, consume testing time, occupy computing resources, etc., and achieve the effect of small system resources, short testing time, and high readability

Active Publication Date: 2015-05-13
天津市康凯特软件科技有限公司
View PDF3 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. When using the coordinate system, the size and position of the same button in the same application are different on mobile phones with different resolutions. When testing the same application on different mobile phones, the coordinates of the operation need to be recalculated, and the workload of writing test cases is heavy
[0005] 2. When using the coordinate system, write test cases, controls are identified by coordinates, and the readability of the test cases is poor
[0006] In order to solve the adaptation problem of mobile phones with different resolutions and to reduce the workload of use case writers, when using the coordinate system, the position of the control is calculated by comparing pictures. Although this method can be used on mobile phones with different resolutions Rewrite the test case, but before performing the operation, you must compare the pictures, occupying computing resources and consuming test time

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
  • Mobile phone application testing method based on mobile phone interface control elements

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be described in detail below with reference to the accompanying drawings and examples.

[0028] Such as figure 1 As shown, the control test of the present invention is a test method based on the control elements on the mobile phone interface to complete the mobile phone application test, which is mainly divided into two main parts, the client program at the pc end and the app for controlling the mobile phone at the mobile phone end;

[0029] Its main working methods are summarized as follows:

[0030] The client program obtains the description information of all control elements on the mobile phone interface through the functions provided by the google uiautomator framework, which includes information such as ID, text, element size, element position, whether the control is clickable, etc., and then uses this information to generate a Unique identification, and then send the unique identification and the operation instructions for this control...

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 mobile phone application testing method based on mobile phone interface control elements. The method comprises the steps that a client program acquires the description information of all the control elements on a mobile phone interface, wherein the information includes ID, text, element size, element position and whether a control is clickable; a unique identification is generated for each control by means of the information; for each control, the unique identification and an operation instruction aiming at the control are sent to a mobile phone app, and then corresponding operation is conducted on the control by the mobile phone app. According to the method, each control is provided with a unique identification to be recognized, the unique identification of each control is unchanged on different mobile phones with different resolutions, a test case does not need to be rewritten, workload is small, the readability of the case is high, only a small part of system resources is occupied, and testing time is short.

Description

technical field [0001] The invention belongs to the field of mobile phone testing, in particular to a mobile phone application testing method based on mobile phone interface control elements. Background technique [0002] The current testing method for mobile phone applications is to manipulate the elements on the mobile phone interface based on coordinates. The test is aimed at the entire screen. For example, when a button is clicked, the coordinate position of the button needs to be input. [0003] However, the use of the coordinate method has the following disadvantages: [0004] 1. When using the coordinate system, the size and position of the same button in the same application are different on mobile phones with different resolutions. When testing the same application on different mobile phones, the coordinates of the operation need to be recalculated, and the workload of writing test cases is heavy . [0005] 2. When using the coordinate system, when writing test ca...

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/36
Inventor 陆宪东沙志邓刚王隆曹弘冠
Owner 天津市康凯特软件科技有限公司
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