Page code testing method and device

A technology of page testing and page code, applied in the field of system testing, can solve the problems of delaying the work progress of web page code, increasing labor costs, consuming hardware resources, etc., achieving the effect of saving hardware resources and labor costs, and improving test efficiency

Active Publication Date: 2014-03-26
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are many shortcomings in this testing method: building the background module requires a separate server, consuming hardware resources, and in the development, when the web page code is ready, the background module is often not ready, and the test work of the web page code can only wait for the background After the module is ready, it will delay the work progress of the web page code test; the execution of the test operation and the inspection of the page display effect need to be completed manually, which increases the labor cost. omit

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
  • Page code testing method and device
  • Page code testing method and device
  • Page code testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] figure 1 The flow chart of the test method for the page code provided by Embodiment 1 of the present invention, such as figure 1 As shown, the method may include:

[0051] S101. Construct a test case, wherein the test case includes: constructed or recorded background module response data, recorded page test operation and page area reference image.

[0052] In order to realize the test automation of the web page code, it is necessary to be able to automate the test cases that are executed repeatedly. The present invention utilizes constructing or recording the response data of the background module, recording the page test operation, and intercepting the reference image of the page area to form an automatically executable test case, thereby realizing the test automation of the web page code.

[0053] The following describes how to obtain the constructed or recorded background module response data.

[0054] If the background module is not ready yet, you need to constru...

Embodiment 2

[0099] Figure 6 A schematic diagram of a test device for the page code provided in Embodiment 2 of the present invention, such as Figure 6 As shown, the device includes: a construction unit 10, a test unit 20, wherein the construction unit 10 further includes: a response data subunit 11, a test operation recording subunit 12 and a first screenshot subunit 13, and the test unit 20 further includes: The test operates the playback subunit 21 and the second screenshot subunit 22 .

[0100] The construction unit 10 is configured to construct test cases, wherein the test cases include: constructed or recorded background module response data, recorded page test operations and page area reference images.

[0101] The construction unit 10 further includes: a response data subunit 11 , a test operation recording subunit 12 and a first screenshot subunit 13 .

[0102] The response data subunit 11 is used for constructing or recording background module response data.

[0103] For bac...

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 provides a page code testing method and device. The page code testing method includes: S1, designing a test case containing designed or recorded backstage module response data, recorded page test operation and page area reference images; S2, replaying the recorded test operation, intercepting a request transmitted to a backstage module by a tested page and returning the designed or recorded backstage module response data to the tested page according to the request; S3, intercepting a test image of the page area and comparing the test image of the page area with the reference image of the page area to detect the test result. By the page code testing method, automatic test of web page codes is realized, and detection of the test result is automatic. Compared with the prior art, the page code testing method saves hardware resources and manual cost and improves test efficiency.

Description

【Technical field】 [0001] The invention relates to system testing technology, in particular to a page code testing method and device. 【Background technique】 [0002] Testing the web page code under development is a necessary means to ensure the quality of the web page code release. Existing testing methods generally require building a background module corresponding to the web page to be tested, then manually performing the test operation on a browser, and checking the test results by directly observing the display effect of the web page with human eyes. There are many shortcomings in this testing method: building the background module requires a separate server, consuming hardware resources, and in the development, when the web page code is ready, the background module is often not ready, and the test work of the web page code can only wait for the background After the module is ready, it will delay the work progress of the web page code test; the execution of the test oper...

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