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

WEB page testing method, device and equipment and computer storage medium

A page testing and page technology, applied in computer components, computing, software testing/debugging, etc., can solve problems such as complex HTML DOM tree, difficult positioning of DOM elements, and difficulty in covering test points, so as to improve testing efficiency and reduce complexity Effect

Pending Publication Date: 2022-01-18
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Currently commonly used WEB page automation testing tools, such as Selenium, verify whether the DOM elements in the page are consistent with expectations through assertion statements, such as assertLocation (judging whether the current page is correct), assertTitle (checking the current page The title is correct), assertText (check the text of the specified element), etc., but it is difficult to cover all test points through common assertion statements
Moreover, elements are usually located by means of element ID (find_element_by_id), element name (find_element_by_name), and element path (find_element_by_xpath) in web page automation testing. However, due to the update of the front-end framework, the HTMLDOM tree rendered by the browser is also more The more complicated it is, some key values ​​cannot be obtained, and the front end changes frequently. The positioning of DOM elements in the test is also a difficulty in the use of automated testing tools.

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
  • WEB page testing method, device and equipment and computer storage medium
  • WEB page testing method, device and equipment and computer storage medium
  • WEB page testing method, device and equipment and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0024] The flow charts shown in the drawings are just illustrations, and do not necessarily include all contents and operations / steps, nor must they be performed in the order described. For example, some operations / steps can be decomposed, combined or partly combined, so the actual order of execution may be changed according to the actual situation.

[0025] Embodiments of the present application provide a WEB page testing method, device, computer equipment, and co...

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 relates to the field of automatic testing tools, and provides a WEB page testing method, device and equipment and a computer storage medium, the method comprises the steps of acquiring an operation script of a WEB page, wherein the operation script is used for indicating operation needing to be executed on the WEB page; executing the operation script, and obtaining a target screenshot in the execution process of the operation script; based on an image similarity algorithm, according to a preset reference image, performing a similarity test on the target screenshot, and determining a similarity test result; and outputting a test report of the WEB page according to a similarity test result corresponding to the target screenshot. The complexity of WEB page testing can be reduced, and the efficiency of WEB page testing can be improved. The invention further relates to artificial intelligence. The WEB page testing method can be applied to cloud servers of big data and artificial intelligence platform cloud computing services.

Description

technical field [0001] The present application relates to the field of automated testing tools, in particular to a page testing method, device, equipment and computer storage medium. Background technique [0002] Currently commonly used WEB page automation testing tools, such as Selenium, verify whether the DOM elements in the page are consistent with expectations through assertion statements, such as assertLocation (judging whether the current page is correct), assertTitle (checking the current page The title is correct), assertText (check the text of the specified element), etc., but it is difficult to cover all test points through commonly used assertion statements. Moreover, elements are usually located by means of element ID (find_element_by_id), element name (find_element_by_name), and element path (find_element_by_xpath) in web page automation testing. However, due to the update of the front-end framework, the HTMLDOM tree rendered by the browser is also more The mor...

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/36G06K9/62G06V10/74
CPCG06F11/3696G06F18/22
Inventor 傅婕韦玉凤
Owner CHINA PING AN PROPERTY INSURANCE CO LTD
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