Automated regression test method and device, storage medium, and computer apparatus
A technology of automated regression and testing methods, applied in computing, software testing/debugging, error detection/correction, etc., can solve the problems of large workload of maintaining test script code, detailed expected results to very cumbersome, and difficult to popularize testing work. , to achieve the effect of reducing workload and time cost, realizing visual execution process, and reducing risk
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] Embodiments of the present invention provide an automated regression testing method, such asfigure 1 As shown, the method includes:
[0053] Step S101: Test the online code and the offline code respectively in the test environment pre-established based on the chromium browser, and obtain the snapshots of the key test nodes corresponding to the online code and the offline code.
[0054] For this embodiment, the test environment pre-established based on the chromium browser is specifically based on the hybrid app (hybrid terminal application) test environment simulated by the terminal chromium open source kernel browser, which can be simulated by starting the running code in the test environment Create a page with client application experience. Among them, the chromium browser is a web browser developed by Google. The webkit kernel used by it can realize fast web page browsing. The pre-established test environment based on the chromium browser can provide stability, Quic...
Embodiment 2
[0065] Another possible implementation of the embodiment of the present invention, on the basis of the first embodiment, further includes the steps shown in the second embodiment, wherein,
[0066] The snapshot includes screenshots and DOM structures.
[0067] For this embodiment, the snapshot obtained in step S101 is not limited to the screenshot of the page corresponding to the key node, but also includes the DOM structure of the page corresponding to the key node, and both the screenshot and the DOM structure can be used to grab and save the page displaying the web page information. Wherein, the screenshot is to save the screenshot of the page corresponding to the key node. The DOM (DocumentObject Model, Document Object Model) structure refers to a node tree composed of multi-layer DOM nodes. For a page, it can be understood as the objects that organize the page are organized in a tree structure, that is, various elements in the page and their elements Information (style,...
Embodiment 3
[0070] Another possible implementation of the embodiment of the present invention, on the basis of the second embodiment, further includes the steps shown in the third embodiment, wherein,
[0071] The step S102 includes:
[0072] Comparing the online code and the offline code corresponding to the DOM structure of the snapshot of the same test key node according to a preset comparison algorithm, and obtaining difference information between the online code and the offline code corresponding to the DOM structure ; marking the difference information in the screenshot corresponding to the snapshot of the online code and the offline code to obtain a comparison result.
[0073] For this embodiment, the snapshot obtained in step S101 is not limited to the screenshot of the page corresponding to the key node, but also includes the DOM structure of the page corresponding to the key node. The various elements and element information (style, text content, etc.) in the page corresponding...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com