Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Automatic webpage testing method and system

A technology for automated testing and web pages, applied in software testing/debugging and other directions, can solve problems such as reducing the efficiency of testing, unable to find elements, and increasing the workload and difficulty of element positioning, so as to reduce testing costs and improve efficiency.

Active Publication Date: 2013-09-18
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in the UI-driven approach, you need to know the element's ID or name (name) or other attributes, otherwise you will not be able to find the element
As WEB applications on the Internet become more and more complex, more and more controls are encapsulated with javascript (JS), and the ID, name and even attributes of elements are random, so the workload and difficulty of element positioning are greatly increased , which reduces the efficiency of the test, making the use of UI-driven methods to execute WEB automation tests encounter bottlenecks

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
  • Automatic webpage testing method and system
  • Automatic webpage testing method and system
  • Automatic webpage testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0021] In the embodiment of the present invention, it is preferred to use java script (JS) language to write the test case, by seamlessly integrating the JS objects on the test page into the test case environment, these JS objects on the test page can be directly included in the test case , so as to save the workload of element positioning, implement JS driving to make up for the lack of UI driving methods, and improve test efficiency.

[0022] figure 1 It is a flow chart of a web page automation testing method according to an embodiment of the present invention.

[0023] Such as figure 1 As shown, the method includes:

[0024] Step 101: Load the proxy script in the tested page, and the proxy script enumerates the JS objects in the javascript (JS) environment o...

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 provides an automatic webpage testing method and system. The method comprises the following steps: loading a proxy script in a tested page, wherein the proxy script enumerates JS (Java Script) objects in the JS environment of the tested page; mapping the JS objects enumerated by the proxy script into the test case JS environment, wherein the test case triggers the page action of the tested page to execute testing logic according to the test case JS environment. After the embodiment of the invention is applied, the workload of element matching can be avoided, and the efficiency of forward testing is greatly improved, thereby reducing the testing cost.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of automated testing, and more specifically, to a method and system for automated testing of web pages (WEB). Background technique [0002] As the scale of software continues to expand and its complexity becomes increasingly cumbersome, manual testing of software can no longer meet the requirements. For humans, the use of electronic automated testing technology can better ensure the accuracy of testing, and can greatly improve testing efficiency and speed up software development. [0003] Automated testing is a process of converting human-driven testing behavior into machine execution. Usually, after the test case is designed and passed the review, the tester executes the test step by step according to the procedure described in the test case, and compares the actual result with the expected result. In this process, in order to save manpower, time or hardware resources and improve...

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/36
Inventor 黎晓波
Owner TENCENT TECH (SHENZHEN) 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
Eureka Blog
Learn More
PatSnap group products