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

Method and apparatus for adding control identification

A technology of identification and control, applied in the field of adding control identification, can solve the problems of easy omission, low efficiency, time-consuming and labor-intensive, etc.

Active Publication Date: 2017-08-22
WUHAN DOUYU NETWORK TECH CO LTD
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the time-consuming, labor-intensive, inefficient and easy-to-miss defects in the prior art, the present invention provides a method and device for adding control identification

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 apparatus for adding control identification
  • Method and apparatus for adding control identification

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are invented. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0021] For ease of understanding, the method and device provided in the embodiments of the present invention are described by taking the IOS system as an example, but the protection scope of the embodiments of the present invention is not limited thereto.

[0022] figure 1 A schematic flowchart of a method for adding a control identifier provided by an embodiment of th...

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 present invention provides a method and an apparatus for adding a control identification. The method comprises: S1 determining whether a preset method can be used to identify the control; and S2 for the control which cannot be identified by using the preset method, if a method name of a click event of the control is obtained, taking the method name as the identification of the control, and if the method name of a click event of the control cannot be obtained, taking the character string corresponding to the control as the identification of the control. According to the method and apparatus provided by the present invention, by taking the method name of the click event or the character string as the identification of the control, the identification can be fast and efficiently added to the control, identifications of multiple controls in the same page can be enabled not to be repeated to the greatest extent, and requirements of the application when carrying out script test are satisfied.

Description

technical field [0001] The invention relates to the field of Internet program development, in particular to a method and a device for adding control identifiers. Background technique [0002] With the rapid development of mobile phones, the needs of mobile apps are diverse. In App functional testing, for some fixed use cases, automated testing tools can be used to execute by writing automated test scripts, reducing duplication of labor and improving the efficiency of the entire test. [0003] When testing the App on the mobile terminal through the script, it is necessary to obtain the identification of each control through the XPath of the control to locate the control. However, in the actual operation process, the problem of repeated or no control identification often occurs, and the XPath obtains the relative path of the control, which is not easy to fix. Therefore, using XPath to locate the control, the path of the control is easy to change. [0004] In order to solve ...

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 WUHAN DOUYU NETWORK TECH CO LTD