Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for regression testing of Web application programs

A regression test and web application technology, applied in the Internet field, can solve problems such as heavy test burden, achieve the effect of reducing maintenance cost, high coverage rate, and improving test speed

Active Publication Date: 2013-01-30
ALIBABA GRP HLDG LTD
View PDF6 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] The main purpose of this application is to provide a method and device for regression testing of web applications, so as to at least solve the problem of relatively large testing burden in the prior art

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 device for regression testing of Web application programs
  • Method and device for regression testing of Web application programs
  • Method and device for regression testing of Web application programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Such as figure 1 As shown, the regression testing device 100 (or called Context Tester) of the Web application includes: an acquisition unit 102, which is used to acquire the web page address (URL, unified resource) corresponding to each function in the first Web application and the second Web application. The locator is exactly the URL input in the browser address bar), wherein the first web application and the second web application are different versions of the same web application; the request unit 104 is connected to the acquisition unit 102 for Under the same test environment, use the obtained web page address to request the first Web application program and the second Web application program simultaneously; the comparison unit 106 is connected to the request unit 104, and is used to respond to the first result returned by the first Web application program in response to the request The object is compared with the second result object returned by the second Web ap...

Embodiment 2

[0087] Such as figure 2 As shown, the present application provides a web application regression testing device 20 , which is set in the server 10 .

[0088] The regression testing device 20 of Web application program comprises following parts: URL collector 201, result object collector 202, report plug-in 203, test unit 204 and URL resource storehouse 207, the connection relation of above-mentioned each parts is as follows figure 2 shown.

[0089] The URL collector 201 is used to collect the online log 101 and the test log 102 of the Web application; the URL resource library 207 is used to store the URL resources collected by the URL collector 201; the result object collector 202 is used to collect two The result objects of different versions of the Web application; the test unit 204 is used to traverse and compare the result objects, and output difference data; the report plug-in 203 is used to convert the difference data generated by the test unit 204 into a final report....

Embodiment 3

[0106] exist Figure 1-Figure 2 On the basis of the computing system shown, the present application also provides a regression testing method of a Web application. Such as image 3 As shown, the regression testing method for web applications includes the following steps:

[0107] S302. Obtain web page addresses corresponding to functions in the first web application and the second web application, wherein the first web application and the second web application are different versions of the same web application; figure 1 The acquisition unit 102 shown to perform S302;

[0108] S304, use the obtained web page address to request the first web application program and the second web application program simultaneously under the same test environment, for example, use web page address A to request the first web application program, and use web page address B to request the second web application program Web application, alternatively, use the web page address C to simultaneously ...

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 discloses a method and a device for regression testing of Web application programs. The method includes acquiring webpage addresses corresponding to various functions in a first Web application program and a second Web application programs; using the acquired webpage addresses in the same testing environment and requesting for the first Web application program and the second Web application; and comparing a first result object fed back by the first Web application program responding to the request with a second result object fed back by the second Web application program responding to the request, and obtaining comparison results; wherein the first Web application program and the second Web application program are different versions of the same Web application program. By the method and the device for regression testing of the Web application programs, the problem of high testing burden in the prior art is solved, the finding number of potential errors in the application programs is obviously superior to that of the prior art, testing load is reduced and testing speed is increased.

Description

technical field [0001] This application relates to the field of the Internet, in particular, to a method and device for regression testing of Web application programs. Background technique [0002] Agile development is one of the most popular development methods in the global software industry today, and it is being implemented more and more in software companies in various countries. An important feature of agile development is the frequent delivery of new software versions. However, this feature brings frequent testing, and there is no guarantee that the newly added functions will not affect the previous functions, so the agile development mode will frequently perform regression testing, that is, retest the previous functions. In this way, a lot of repeated testing work has been caused, which has become the biggest problem encountered in agile development in practice. [0003] The above-mentioned regression testing refers to re-testing after modifying the old code to con...

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 ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products