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

Test object processing method and test object processing device for webpage test

A test target and web page test technology, applied in the test field, can solve problems such as heavy workload and achieve the effect of improving efficiency

Active Publication Date: 2014-01-01
SHENZHEN TENCENT COMP SYST CO LTD
View PDF2 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] It can be seen that the current overall process of webpage testing has the following problems: when the website is revised, a large number of webpage test targets under the website will change. Since the test script file is directly written for the webpage test target, it also needs To modify a large number of test script files one by one, the workload is very heavy

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
  • Test object processing method and test object processing device for webpage test
  • Test object processing method and test object processing device for webpage test
  • Test object processing method and test object processing device for webpage test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The object processing method for testing web pages provided by the present invention includes an object recognition method and / or an object encapsulation method, which will be introduced respectively below.

[0025] figure 1 It is a flow chart of the test target recognition method for webpage testing provided by the present invention.

[0026] like figure 1 As shown, the method includes:

[0027] Step 101, read the Uniform Resource Locator (URL) address of the webpage to be tested, open the webpage to be tested according to the URL address, and read the HTML code of the webpage to be tested.

[0028] Step 102, according to the attributes of the DOM nodes in the HTML code, traverse each DOM node of each attribute in the HTML code in turn, for each DOM node, generate an object for operating the DOM node, and use the attribute value of the DOM node As a feature, save the object used to manipulate the DOM node, and also delete the DOM node from the HTML code.

[0029] I...

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 embodiment of the invention discloses a test object processing method and a test object processing device for the web test. The method comprises the following steps of reading a URL (uniform resource locator) address of a to-be-tested webpage, and reading an HTML (hypertext markup language) code of the to-be-tested webpage according to the URL address; traversing each DOM (document object model) node of each attribute according to the attributes of the DOM node in the HTML code in sequence, generating an object for operating the DOM node for each DOM node, and storing the object for operating the DOM node by adopting an attribute value of the DOM node as the characteristic; and utilizing a selector to acquire a DOM node set having no attribute, giving an index value to each DOM node having no attribute, generating an object for operating the DOM node for each DOM node having no attribute, and storing the object for operating the DOM node by adopting the index value of the DOM node as the characteristic. By utilizing the test object processing method and the test object processing device, the webpage test efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to a test target processing method and device for web page testing. Background technique [0002] In order to ensure that the webpage can operate normally, it is necessary to test each element in the webpage, so as to ensure that each element can operate normally, and then ensure that the webpage can operate normally. The element to be tested in the webpage may be called the test target of the webpage test. To test the test target of the webpage, it is first necessary to identify the test target in the webpage. [0003] At present, a commonly used method in the industry for identifying a web page test object is: manually identifying the web page test object. [0004] Identifying web page test targets manually, on the one hand, is prone to omissions, and on the other hand, the efficiency is low, which cannot meet the high-efficiency requirements of mass web page testing. [0005] I...

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 SHENZHEN TENCENT COMP SYST CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More