Method and system for testing web pages

A test method and page technology, applied in the field of WEB page test methods and systems, can solve problems such as high difficulty and low efficiency of automated test process, achieve the effect of reducing the requirements for programming skills and improving test efficiency

Active Publication Date: 2018-11-13
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this is difficult for inexperienced or less experienced testers, resulting in a less efficient automated testing process

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 system for testing web pages
  • Method and system for testing web pages
  • Method and system for testing web pages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] figure 1 The method flow chart of an embodiment of the method for testing a WEB page provided by the present invention. Corresponding test cases can be generated through the interface configuration of human-computer interaction to further realize the testing process.

[0025] refer to figure 1 , in step S110, the test content data of the WEB page to be tested is obtained, and the test content data is used to configure the test case.

[0026] Usually the test content of WEB pages includes the following types: assertion, action and others such as loop, log output, WEB page screenshot, etc. And for each type of test content can be divided into multiple sub-types. For example, in assertion test content: it usually involves equality verification, and its subtypes mainly include: URL, DOM element non-existence, Boolean expression, check state, DOM existence, page title and value, etc.; action test content includes The main subtypes of are: mouse click, single selection an...

Embodiment 2

[0038] figure 2 The method flowchart of another embodiment of the testing method of the WEB page that the present invention provides, can be regarded as figure 1 A specific implementation of the illustrated embodiment.

[0039] refer to figure 2 , in step S210, the test content data of the WEB page to be tested is obtained, and the test content data is used to configure the test case. The processing of step S210 is the same as the processing of step S110 described above.

[0040] Specifically, in order to facilitate the operation of testers, this embodiment utilizes a WEB page to configure a test interface to acquire test content data of a test WEB page.

[0041] image 3 An example of the WEB page configuration test interface is shown. refer to image 3 , corresponding to the content contained in the above test content data, the WEB page configuration test interface correspondingly includes the input box option of the "step setting" part. In the "step setting" sectio...

Embodiment 3

[0061] Figure 6 The structure schematic diagram of an embodiment of the testing system of the WEB page that the present invention provides, can be used for carrying out such as figure 1 The method steps of the illustrated embodiment.

[0062] refer to Figure 6 , the WEB page test system specifically includes an acquisition module 610 , an extraction module 620 , a generation module 630 and a test module 640 .

[0063] Obtaining module 610, is used for obtaining the test content data of WEB page to be tested, and this test content data is used for disposing test case;

[0064] Extraction module 620, for extracting the test case standard template matching with the test content data in the test case standard template library;

[0065] Generating module 630, for generating the test case for testing the test content of the WEB page according to the test content data and the extracted test case standard template matched therewith;

[0066] The testing module 640 is configured ...

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 a test method and a test system for WEB pages. The method includes the following steps: the tested content data of a to-be-tested WEB page are obtained; a standard test case template matched with the tested content data is extracted from a standard test case template library; according to the tested content data and the extracted standard test case template matched with the tested content data, a test case for testing the tested content of the WEB page is generated; according to the generated test case, the tested content of the to-be-tested WEB page is tested. The technical scheme of the invention realizes automated testing for WEB pages, the requirement on the programming skills of testers in the process of testing is reduced, and testing efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of communications, in particular to a method and system for testing WEB pages. Background technique [0002] Existing WEB page automation testing has high requirements for testers' code writing ability. In order to complete the writing of automation use cases, testers need not only basic WEB knowledge such as HTML, CSS, DOM, HTTP, etc., but also some necessary Programming skills to implement automated test cases through coding. However, this is difficult for inexperienced or less experienced testers, resulting in a less efficient automated testing process. Contents of the invention [0003] Embodiments of the present invention provide a method and system for testing WEB pages, so as to perform automatic testing of WEB pages based on configurable test cases. [0004] In order to achieve the above object, the embodiment of the present invention provides a kind of testing method of WEB page, and described m...

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): 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