Webpage automated testing method and device

A technology for automated testing and web page testing, applied in the computer field, can solve problems such as low efficiency, and achieve the effect of satisfying personalized and optimizing web page automated testing technology.

Active Publication Date: 2014-10-08
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When using the existing automated test solution, users can point to a lot of paths, and writing automated test cases is very inefficient compared to automatic program generation.

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
  • Webpage automated testing method and device
  • Webpage automated testing method and device
  • Webpage automated testing method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0026] figure 2 It is a flow chart of a webpage automation testing method in the first embodiment of the present invention. The method in this embodiment can be executed by a webpage automation testing device, which can be realized by hardware and / or software, and generally can be integrated into In the server that completes the automated testing of the webpage. The method of this embodiment specifically includes the following operations:

[0027] 210. Generate a node structure diagram corresponding to the clickable elements in the webpage to be tested.

[0028] In this embodiment, the webpage testing server generates a node structure diagram corresponding to the dottable elements in the webpage to be tested.

[0029] In this embodiment, the clickable elements in the webpage to be tested specifically include: webpage controls that can be triggered by clicking, touching, or sliding operations on the webpage to be tested, such as button controls, slider controls, or input box...

no. 2 example

[0044] Figure 4 It is a flow chart of a web page automation testing method according to the second embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, it is preferable to optimize the operation to generate a node structure diagram corresponding to the clickable elements in the webpage to be tested as follows: according to the clickable elements in the webpage to be tested elements to generate logical nodes; according to the node attributes of the logical nodes, the logical nodes are hierarchically arranged; according to the association relationship between the logical nodes, the logical nodes after the hierarchical arrangement Points are connected to generate a node structure diagram.

[0045] Preferably, the operations are generated according to the node structure diagram to generate conventional test cases, and webpage test optimization based on the conventional test cases is as follows: gen...

no. 3 example

[0071] Figure 5 It is a flowchart of a web page automation testing method according to the third embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, after performing the web page test based on the conventional test case, the operation further includes: using the web page test result of the conventional test case to test other tests Use the web page test results of the use case for verification.

[0072] Correspondingly, the method of this embodiment includes the following operations:

[0073] 510. Generate a node structure diagram corresponding to the clickable elements in the webpage to be tested.

[0074] 520. Generate a regular test case according to the node structure diagram, and perform a webpage test based on the regular test case.

[0075] 530. Verify the web page test results of other test cases by using the web page test results of the conventional test case.

[0076] In this embo...

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 webpage automated testing method and device. The method includes the steps of generating a junction point structure chart corresponding to an adjustable point element in a webpage to be tested, generating a conventional test case according to the junction point structure, and conducting the webpage test on the basis of the conventional test case. The device comprises a junction point structure chart generating unit and a conventional test case webpage testing unit, wherein the junction point structure chart generating unit is used for generating the junction point structure chart corresponding to the adjustable point element in the webpage to be tested, and the conventional test case webpage testing unit is used for generating the conventional test case according to the junction point structure chart and conducting the webpage test on the basis of the conventional test case. The webpage automated testing method and device solve the technical problem that due to the fact that when an existing automated test scheme is used, the number of adjustable point routes of a user is quite large and the efficiency for writing the automated test case is quite low compared with program automatic generation. The existing webpage automated testing technology is optimized, and the increasing requirements of people for personalized and convenient automated testing are met.

Description

technical field [0001] The embodiment of the present invention relates to computer technology, in particular to a method and device for automatic testing of webpages. Background technique [0002] With the continuous development of Internet technology, people's demand for various network application software is more and more extensive, and correspondingly, various types of software are also continuously developed and applied. In order to ensure the reliability of the software, software developers need to conduct detailed and comprehensive software testing on the software before it goes on the market. In general, software testing is a lot of work. However, many operations in testing are repetitive, non-intellectual and non-creative. Computers are most suitable to replace manual work to complete such tasks, and software automation testing technology has emerged as the times require. Software automation technology is a process that transforms human-driven (manually clicking, ...

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 BAIDU ONLINE NETWORK TECH (BEIJIBG) 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