Front-end page testing method and device based on template engine and computer equipment
The invention belongs to the technical field of research and development management, and provides a front-end page testing method and device based on a template engine, computer equipment and a computer readable storage medium. The method comprises the steps of obtaining a preset template engine con...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention belongs to the technical field of research and development management, and provides a front-end page testing method and device based on a template engine, computer equipment and a computer readable storage medium. The method comprises the steps of obtaining a preset template engine contained in a front-end page in response to a test instruction of the front-end page,wherein front-end page is constructed on the basis of a preset Thymeleaf template engine; obtaining a preset grammar contained in the preset template engine according to the preset template engine, obtaining a preset MOCK numerical value set for a target variable contained in the preset grammar, replacing the target variable contained in the preset grammar with the preset MOCK value to obtain the MOCK preset template engine, and using the MOCK preset template engine to generate the HTML page to test the HTML page, so that the problem of coupling between the JAVA-based Thymeleaf template engine and the rear end is solved, and the test |
---|