Method and system for using page-based object flow verification in regression test
A regression testing and page object technology, applied in the field of regression testing based on page object flow verification, can solve problems such as inability to test and compare verification, and achieve the effect of avoiding testing risks, reducing manual testing time, and ensuring project quality
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2012-05-30
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of computer network applications, in particular to an application method and system for regression testing based on page object flow verification. Background technique
[0002] At present, there are many commercial and open source automated testing tools on the market, including: testing tools using DOM (Document Object Model, file object model) technology, testing tools using HTTP (Hypertext Transfer Protocol, hypertext transfer protocol) and using simulation Browser testing tools. Among them, the test tools using DOM technology directly control the browser, read or control the objects in the page to achieve the purpose of automatic testing, most of the automatic testing tools (Selenium RC, Watir and QTP, etc.) are Based on DOM technology. An HTTP-based testing tool must generate HTTP requests for each function and verify the responses. The testing tool based on the simulated browser must fully simulate the behavi...
Examples
Embodiment Construction
[0049] In the process of web page testing based on B / S (Browser / Server, browser / server) architecture, various web objects in the functional flow page are captured and stored in the benchmark table in a certain order or state, and each regression test generates Execute the history table, and finally compare the sequence or status of the same functional flow page objects in the history table and the benchmark table, so as to obtain the difference between the page object flow and the expectation in the new round of regression testing. In the present invention, when the test is executed to a certain stage, or the main functional flow has tended to be stable or the code tends to freeze, that is, each functional flow (or test scene, test case) page and the order or state of the page objects can be obtained. Organized and stored in the data table according to certain rules, as a "reference benchmark", as the number of iterations in the regression test increases, the execution history ...