Method and apparatus for updating a library of controls under test

A technology for updating instructions and operating steps, applied in the field of Internet testing, can solve problems such as redundancy of public control libraries, redundant data, and inability to complete work, and achieve the effects of improving quality and saving human resources and system resources

Active Publication Date: 2018-01-19
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When writing UI automation scripts, after changing the operation of a certain control, the control may originally exist in the public control library, but because it is different from the operation in this script, it will be manually added to the public control library. controls, which creates redundancy in the common control library
[0006] It can be seen from the above that when the reference to the control changes (addition, deletion, modification), manual operations are required to ensure that the public control library truly reflects the function of the tested control library, but in the actual Internet test process There will be tens of thousands of scripts to write, such human manual operations simply cannot get the job done
In addition, due to the frequent maintenance and update of UI automation scripts, timely manual inspection and confirmation is even more infeasible, so the space in the public control library cannot follow the update in real time, and a large number of outdated (that is, not used by UI automation scripts) will inevitably be generated. Referenced controls), redundant (that is, artificially generated the same two or more controls) controls, so that the public control library cannot play the role of the tested control library
[0007] To sum up, in the current existing technology, there will be a lot of outdated and redundant data in the public control library, which consumes too much resources, cannot represent the tested control library, and the tested control library needs to be manually updated. Therefore, it is necessary to propose improved techniques to solve the above problems

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 updating a library of controls under test
  • Method and apparatus for updating a library of controls under test
  • Method and apparatus for updating a library of controls under test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] As mentioned above, the main idea of ​​this application is to store control information, page information and operation step information in the tested control library on the server side, and establish an association relationship between them, so as to ensure that the tested control library The uniqueness of the control positioning information in the control. During the script information input process, you can obtain the control information of the tested page and compare it with the records in the tested control library on the server side to know whether it is necessary to target the acquired control in the tested control library The information generates related information records. When deleting and modifying the script information, the automatic deletion and modification of the tested control library can also be completed through relevant control logic.

[0035] In order to make the purpose, technical solution and advantages of the application clearer, the technical...

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 application provides a method and device for updating the tested control library. The method includes: obtaining the control information, page information and operation step information of the tested page; and obtaining the controls of the tested page in the tested control library according to the page information query Information list; when it is detected that the control information does not exist in the control information list, a record corresponding to the control information, page information and operation step information is generated in the control information list; and when it is detected that the control information exists in the control information list , keep the original record of the control information in the control information list. By storing the tested page information, tested control information and operation step information in the control library and associating these information, the uniqueness of the control positioning information in the tested control library is ensured. In addition, when the script information is updated and the properties of the control itself When updating, by monitoring changes in control information and updating when changes occur, automatic real-time updating of the tested control library is realized.

Description

technical field [0001] The present application relates to the field of Internet testing, more specifically to user interface (UI) automated testing technology, and especially to a method and device for updating a library of tested controls. Background technique [0002] In UI automation testing in the Internet field, using UI automation scripts for UI automation testing of websites is actually simulating human behavior to operate controls on web pages and verify the results of operations. These controls are called tested controls because they are tested by UI automation scripts. For all UI automation script collections of a website, the collection of all tested controls tested during the test execution process is called the tested control library. The tested control library has properties that reflect in real time the degree of coverage of the automated script set to the tested web page elements. [0003] When testers write or maintain UI automation scripts through the UI ...

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 Patents(China)
IPC IPC(8): G06F9/44G06F11/36
Inventor 夏大伟章屹
Owner ALIBABA GRP HLDG 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