Acquisition method and device of control element, automatic testing system and storage medium

A technology of automated testing and elements, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of low reliability of automated testing and low development efficiency, and achieve the effect of improving reliability and accuracy.

Inactive Publication Date: 2019-10-01
HUAWEI TECH CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The application provides a control element acquisition method and device, an automated test system, and a storage medium, which ca

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
  • Acquisition method and device of control element, automatic testing system and storage medium
  • Acquisition method and device of control element, automatic testing system and storage medium
  • Acquisition method and device of control element, automatic testing system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0089] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0090] In related technologies, it is more efficient to search for control elements through the ID or Name of DOM nodes. In the page development stage, developers are usually required to add fixed ID or Name attributes to the DOM nodes manipulated by controls on the page. However, even if development is required During the page development process, personnel add fixed ID or Name attributes to the DOM nodes controlled by all controls. Because most of the controls on the Web page are combined controls, such as search controls including text box controls and button controls, XPath splicing is required to accurately locate them. To search for the DOM nodes that need to be manipulated by the control elements of the control, and in Web ...

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 discloses an acquisition method and device of a control element, an automatic testing system and a storage medium, and belongs to the field of automatic testing. The acquisition method comprises the steps: according to an input name of a target control type, determining target feature identifiers corresponding to the name of the target control type based on a preset corresponding relation, wherein the corresponding relation comprises names of all control types on a page to be tested and feature identifiers in one-to-one correspondence with the names; searching a target feature identifier in a program node of the to-be-tested page; and determining a page element object of at least one program node matched with the target feature identifier as a control element of the to-be-measured and controlled piece, and inputting the control element into an automatic test framework so as to enable the automatic test framework to automatically test the to-be-measured and controlled piece based on the packaging implementation class of the to-be-measured and controlled piece. According to the acquisition method and device, the problems of low development efficiency of automatic test cases and low reliability of automatic test in related technologies are solved. This acquisition method is used for automated testing.

Description

technical field [0001] The present application relates to the field of automated testing, in particular to a method and device for acquiring control elements, an automated testing system, and a storage medium. Background technique [0002] Web (web page) automated testing method refers to the method of performing testing operations such as input operations and click operations on controls on web pages through software. Web automated testing technology is a highly efficient software testing technology. At present, most manufacturers in the industry usually use the TestNG+Seleniu open source framework to develop web automation test case codes, or use development tools to automatically generate automation test case codes by means of recording. During the running of the automated test case code, the identity (Identity, ID), name (Name), and cascading style sheets (Cascading Style Sheets, CSS) of the document object model (Document Object Model, DOM) node manipulated by the contr...

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
CPCG06F11/3684G06F11/3688
Inventor 胡应广
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products