A user interface visual restoration test method, device and system

By automating the acquisition and comparison of mobile user interface data, the problems of high cost, low efficiency, and poor accuracy in traditional testing are solved, achieving low-cost, high-efficiency, and high-accuracy visual fidelity testing.

CN115904974BActive Publication Date: 2026-06-19E-SURFING DIGITAL LIFE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
E-SURFING DIGITAL LIFE TECH CO LTD
Filing Date
2022-11-22
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Traditional user interface visual fidelity testing is costly, inefficient, and inaccurate, especially in mobile applications where the accuracy of comparisons caused by differences between dynamic and static data is difficult to solve.

Method used

By acquiring page data from the terminal under test, reading design files, extracting standard page data, replacing static data with dynamic data, comparing the results, and generating test results, automated testing is achieved.

Benefits of technology

It reduces the cost of manual comparison, improves testing efficiency and accuracy, avoids image comparison errors, and generates structured and visual reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115904974B_ABST
    Figure CN115904974B_ABST
Patent Text Reader

Abstract

This invention relates to the field of automated testing technology, and discloses a method, device, and system for testing the visual fidelity of user interfaces. Based on the acquired test page data of the terminal under test, this invention reads the corresponding design file and extracts corresponding page data from the design file as first standard page data. It then extracts dynamic data from the test page data and replaces the corresponding static data of the first standard page data with the dynamic data to obtain second standard page data. The test page data is then compared with the second standard page data, and finally, the corresponding test results are generated and output based on the comparison results. This invention can improve the accuracy of user interface visual fidelity testing while ensuring low cost and high efficiency. It can be applied to visual network projects to improve the testing efficiency of visual network terminal user interfaces and reduce the testing cost of visual network terminal user interfaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated testing technology, and in particular to a method, device and system for testing the visual fidelity of user interfaces. Background Technology

[0002] In the process of client software development, with the development of mobile Internet, the visual changes of mobile applications are becoming more and more frequent, and the complexity of pages is constantly increasing. As a result, the task of visual fidelity testing is becoming more and more arduous.

[0003] Traditional methods rely on manual testing of user interface visual fidelity. Designers install the application on a device, manually take screenshots of the test page, compare them with the design drafts using design tools, and manually identify visual differences. However, this approach suffers from high testing costs and low efficiency.

[0004] Currently, visual fidelity testing of mobile applications typically involves automatically comparing application screenshots with design baseline images to obtain test results. This testing method requires high device resolution, making it unsuitable for general testing. Furthermore, the data in the application is dynamically generated due to dynamic requests, resulting in significant differences from the static data in the design baseline images. This negatively impacts the accuracy of the data comparison, greatly reducing the test accuracy of this method. Summary of the Invention

[0005] This invention provides a method, device, and system for testing the visual fidelity of user interfaces, solving the technical problem of how to improve the accuracy of user interface visual fidelity testing while ensuring low cost and high efficiency.

[0006] The first aspect of this invention provides a method for testing the visual fidelity of a user interface, comprising:

[0007] Obtain the test page data of the terminal to be tested;

[0008] Read the design file corresponding to the page data to be tested, and extract the corresponding page data from the design file as the first standard page data;

[0009] Extract the dynamic data of the page data to be tested, and replace the corresponding static data of the first standard page data with the dynamic data to obtain the second standard page data;

[0010] The test page data is compared with the second standard page data to obtain the corresponding comparison results;

[0011] Based on the comparison results, the corresponding visual fidelity test results are generated and output.

[0012] According to one feasible method of the first aspect of the present invention, obtaining the test page data of the terminal to be tested includes:

[0013] Send a page data request to the terminal under test;

[0014] The system receives test page data from the terminal under test based on the page data request; wherein the test page data is collected by a data acquisition module integrated into the application under test.

[0015] According to one achievable method of the first aspect of the present invention, sending a page data request to the terminal under test includes:

[0016] The system detects that the application under test on the terminal under test sends the page data request when it starts; wherein the application under test is started by a pre-set automated test script.

[0017] According to a method achievable according to a first aspect of the present invention, the step of extracting dynamic data from the page data to be tested and replacing the corresponding static data of the first standard page data with the dynamic data includes:

[0018] The data of the page to be tested is converted to obtain the first converted page data described in the target data format.

[0019] The first standard page data is converted to obtain a second converted page data described using the target data format.

[0020] Dynamic data is extracted from the first converted page data, and the corresponding static data in the second converted page data is replaced with the dynamic data.

[0021] According to a method achievable according to a first aspect of the present invention, the page data to be tested is marked with a dynamic data identifier, and the extraction of dynamic data from the first converted page data includes:

[0022] Dynamic data is extracted from the first converted page data based on the dynamic data identifier.

[0023] According to one achievable method of the first aspect of the present invention, the step of generating and outputting a corresponding visual fidelity test result based on the comparison result includes:

[0024] Based on the comparison results, a corresponding visual test report is generated and output.

[0025] A second aspect of the present invention provides a user interface visual fidelity testing device, comprising:

[0026] A memory for storing instructions; wherein the instructions are used to implement the user interface visual fidelity testing method as described in any of the above-mentioned ways;

[0027] A processor for executing instructions in the memory.

[0028] The third aspect of the present invention provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the user interface visual fidelity testing method as described in any of the above embodiments.

[0029] A fourth aspect of the present invention provides a user interface visual fidelity testing device, comprising:

[0030] The acquisition module is used to acquire the test page data of the terminal under test;

[0031] The first execution module is used to read the design file corresponding to the page data to be tested, and extract the corresponding page data from the design file as the first standard page data.

[0032] The second execution module is used to extract the dynamic data of the page data to be tested, and use the dynamic data to replace the corresponding static data of the first standard page data to obtain the second standard page data.

[0033] The comparison module is used to compare the data of the page to be tested with the data of the second standard page to obtain the corresponding comparison results;

[0034] The output module is used to generate and output the corresponding visual fidelity test results based on the comparison results.

[0035] According to one achievable embodiment of the fourth aspect of the present invention, the acquisition module comprises:

[0036] The sending unit is used to send a page data request to the terminal under test;

[0037] A receiving unit is configured to receive test page data fed back by the terminal under test based on the page data request; wherein the test page data is collected by a collection module integrated into the application under test.

[0038] According to one achievable method of the fourth aspect of the present invention, the transmitting unit is specifically used for:

[0039] The system detects that the application under test on the terminal under test sends the page data request when it starts; wherein the application under test is started by a pre-set automated test script.

[0040] According to one achievable embodiment of the fourth aspect of the present invention, the second execution module includes:

[0041] The first conversion unit is used to perform format conversion on the page data to be tested to obtain the first converted page data described in the target data format.

[0042] The second conversion unit is used to convert the format of the first standard page data to obtain the second converted page data described by the target data format.

[0043] An execution unit is configured to extract dynamic data from the first converted page data and use the dynamic data to replace the corresponding static data in the second converted page data.

[0044] According to a fourth aspect of the present invention, the page data to be tested is marked with a dynamic data identifier, and the execution unit is specifically used for:

[0045] Dynamic data is extracted from the first converted page data based on the dynamic data identifier.

[0046] According to one embodiment of the fourth aspect of the present invention, the output module includes:

[0047] The output unit is used to generate and output a corresponding visual test report based on the comparison results.

[0048] The fifth aspect of the present invention provides a user interface visual fidelity testing system, comprising:

[0049] The connected terminal under test and the test terminal;

[0050] The test terminal is used for:

[0051] The test involves: acquiring the test page data of the terminal to be tested; reading the design file corresponding to the test page data and extracting the corresponding page data from the design file as the first standard page data; extracting the dynamic data of the test page data and replacing the corresponding static data of the first standard page data with the dynamic data to obtain the second standard page data; comparing the test page data with the second standard page data to obtain the corresponding comparison result; and generating and outputting the corresponding visual fidelity test result based on the comparison result.

[0052] According to one achievable method of the fifth aspect of the present invention, the test terminal is specifically used for:

[0053] Send a page data request to the terminal under test and receive the page data to be tested from the terminal under test based on the page data request;

[0054] The terminal to be tested is used for:

[0055] The data of the page under test is collected by the acquisition module integrated into the application under test.

[0056] According to one achievable method of the fifth aspect of the present invention, the test terminal is specifically used for:

[0057] The page data request is sent when the application under test on the terminal under test is detected to be launched; wherein the application under test is launched by a pre-set automated test script.

[0058] According to one achievable method of the fifth aspect of the present invention, the test terminal is further specifically used for:

[0059] The data of the page to be tested is converted to obtain the first converted page data described in the target data format.

[0060] The first standard page data is converted to obtain a second converted page data described using the target data format.

[0061] Dynamic data is extracted from the first converted page data, and the corresponding static data in the second converted page data is replaced with the dynamic data.

[0062] According to a fifth aspect of the present invention, the page data to be tested is marked with a dynamic data identifier, and the test terminal is specifically used for:

[0063] Dynamic data is extracted from the first converted page data based on the dynamic data identifier.

[0064] According to one achievable method of the fifth aspect of the present invention, the test terminal is specifically used for:

[0065] Based on the comparison results, a corresponding visual test report is generated and output.

[0066] As can be seen from the above technical solutions, the present invention has the following advantages:

[0067] This invention, based on the acquired test page data of the terminal under test, reads the corresponding design file and extracts corresponding page data from the design file as first standard page data. It then extracts dynamic data from the test page data and replaces the corresponding static data of the first standard page data with the dynamic data to obtain second standard page data. The test page data is then compared with the second standard page data, and finally, a corresponding test result is generated and output based on the comparison result. This invention achieves automated testing of user interface visual fidelity, reducing the manual comparison cost of mobile terminal visual fidelity testing and ensuring low-cost and high-efficiency testing. Using extracted page data for comparison, compared to direct image comparison, avoids comparison errors caused by direct image comparison, making the fidelity test results more accurate and reasonable. Furthermore, by replacing the static data in the design file before comparing the page data, the accuracy of the comparison data is improved, thereby enhancing the accuracy of the user interface visual fidelity test. This application can be applied to visual network projects, improving the testing efficiency of visual network terminal user interfaces and reducing the testing cost of visual network terminal user interfaces. Attached Figure Description

[0068] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0069] Figure 1 A flowchart illustrating a user interface visual fidelity testing method provided in an optional embodiment of the present invention;

[0070] Figure 2 The diagram below shows the structural connection of a user interface visual fidelity testing device, which is provided as an optional embodiment of the present invention.

[0071] Figure label:

[0072] 1-Acquisition module; 2-First execution module; 3-Second execution module; 4-Comparison module; 5-Output module. Detailed Implementation

[0073] This invention provides a method, device, and system for testing the visual fidelity of user interfaces, which addresses the technical problem of improving the accuracy of user interface visual fidelity testing while ensuring low cost and high efficiency.

[0074] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0075] This invention provides a method for testing the visual fidelity of a user interface.

[0076] Please see Figure 1 , Figure 1 A flowchart of a user interface visual fidelity testing method provided by an embodiment of the present invention is shown.

[0077] The present invention provides a method for testing the visual fidelity of a user interface, comprising steps S1-S5.

[0078] Step S1: Obtain the test page data of the terminal to be tested.

[0079] In this embodiment, a corresponding data acquisition program can be set on the terminal under test or the device / terminal / system / device / platform that performs the user interface visual fidelity test method, thereby acquiring the test page data of the terminal under test in real time based on the data acquisition program. In other embodiments, the test page data can also be acquired by sending a request to the device / terminal / system / device / platform that stores the test page data.

[0080] In one feasible approach, obtaining the test page data of the terminal under test includes:

[0081] Send a page data request to the terminal under test;

[0082] The system receives test page data from the terminal under test based on the page data request; wherein the test page data is collected by a data acquisition module integrated into the application under test.

[0083] In this embodiment, by integrating a data acquisition module into the application under test on the terminal under test, the data acquisition module can acquire data of the page under test, thereby achieving automated acquisition of the data of the page under test, reducing testing costs, improving testing efficiency, and ensuring the real-time nature of the acquired data of the page under test.

[0084] As a specific implementation method, the page data request can be sent according to the preset test time information, or the test start conditions can be preset so that the page data request can be sent when the preset test start conditions are met.

[0085] In one feasible manner, sending the page data request to the terminal under test includes:

[0086] The system detects that the application under test on the terminal under test sends the page data request when it starts; wherein the application under test is started by a pre-set automated test script.

[0087] In this embodiment, the start of the application to be tested on the terminal under test is used as the test start condition, and the application to be tested is started by a pre-set automated test script, which realizes the automation of the test start process without manual operation.

[0088] As a specific implementation method, the automated test script can be configured to automatically launch the application under test on the terminal under test when the terminal under test is connected to the device / terminal / system / device / platform that performs the user interface visual fidelity test. Of course, other application launch methods can also be configured according to the actual situation.

[0089] It should be noted that, in this embodiment, the automated test script is a computer-readable instruction that automatically executes to start the application under test. The test script can be created (recorded), automatically generated using test automation tools, programmed using a programming language, or a combination of the above three methods.

[0090] Step S2: Read the design file corresponding to the page data to be tested, and extract the corresponding page data from the design file as the first standard page data.

[0091] The relevant design files can be pre-set in a database, so that after the test page data is obtained, the corresponding design files can be read from the database. In a specific implementation, the identifier of the test application, test terminal, or test page data can be obtained through interaction with the test terminal. This identifier is then matched with the identifier corresponding to the design file to retrieve the relevant design file. In another specific implementation, relevant features can be extracted from the test page data, and the corresponding design file can be determined based on feature matching. In yet another specific implementation, the design file can be directly provided before testing, so that the given design file can be directly read when the test page data is obtained.

[0092] It should be noted that when extracting the corresponding page data from the design file, the aforementioned identifier matching and feature matching methods can also be used. This embodiment does not impose any limitations on this approach.

[0093] Step S3: Extract the dynamic data of the page data to be tested, and replace the corresponding static data of the first standard page data with the dynamic data to obtain the second standard page data.

[0094] In this embodiment, replacing static data that might interfere with the test with dynamic data can improve the accuracy of the comparison data, thereby effectively improving the accuracy of the visual fidelity test.

[0095] In one feasible approach, extracting dynamic data from the test page data and replacing the corresponding static data of the first standard page data with the dynamic data includes:

[0096] The data of the page to be tested is converted to obtain the first converted page data described in the target data format.

[0097] The first standard page data is converted to obtain a second converted page data described using the target data format.

[0098] Dynamic data is extracted from the first converted page data, and the corresponding static data in the second converted page data is replaced with the dynamic data.

[0099] In this embodiment, before replacing the corresponding static data of the first standard page data with the dynamic data, the test page data and the first standard page data are first converted into a unified data structure, that is, structured data is used, which facilitates subsequent data comparison operations and improves testing efficiency.

[0100] The target data format can be set according to the actual situation, but in this embodiment, it is not limited.

[0101] In one feasible approach, the page data to be tested is marked with a dynamic data identifier, and the extraction of dynamic data from the first transformed page data includes:

[0102] Dynamic data is extracted from the first converted page data based on the dynamic data identifier.

[0103] In this embodiment, the dynamic data is marked with a specific identifier during collection. Based on this identifier, the dynamic data is extracted from the first converted page data, thus achieving automated extraction of dynamic data. Specifically, this automatic marking of dynamic data can be implemented when developing the collection program for the collection module of the application to be tested.

[0104] In other feasible methods, a dynamic data acquisition program can be set up at one end of the method execution, thereby using the dynamic data acquisition program to extract the dynamic data. The algorithm for extracting dynamic data by the dynamic data acquisition program can be based on existing data recognition algorithms, such as feature-value matching-based data recognition algorithms.

[0105] Step S4: Compare the data of the page to be tested with the data of the second standard page to obtain the corresponding comparison results.

[0106] In practice, the data of the page to be tested is converted into a new format, and the resulting first converted page data, described in the target data format, is compared with the second standard page data. Of course, the second standard page data is also converted into a unified data structure.

[0107] In this embodiment, the extracted page data is used for comparison. Compared with the method of directly comparing images, this can avoid the comparison error caused by directly comparing images, making the results of the fidelity test more accurate and reasonable.

[0108] Step S5: Generate and output the corresponding visual fidelity test results based on the comparison results.

[0109] In one feasible manner, generating and outputting the corresponding visual fidelity test result based on the comparison result includes:

[0110] Based on the comparison results, a corresponding visual test report is generated and output.

[0111] By generating a visual test report, the results of the visual fidelity test can be displayed intuitively. This visual test report includes a web format, native HTML (Hypertext Markup Language) + CSS (Cascading Style Sheets) + JS (JavaScript), or other formats for display.

[0112] The present invention also provides a user interface visual fidelity testing device, comprising:

[0113] A memory for storing instructions; wherein the instructions are used to implement the user interface visual fidelity testing method as described in any of the above embodiments;

[0114] A processor for executing instructions in the memory.

[0115] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the user interface visual fidelity testing method as described in any of the above embodiments.

[0116] The present invention also provides a user interface visual fidelity testing device, which can be used to perform the user interface visual fidelity testing method described in any of the above embodiments of the present invention.

[0117] Please see Figure 2 , Figure 2 The diagram shows a structural connection block diagram of a user interface visual fidelity testing device provided in an embodiment of the present invention.

[0118] This invention provides a user interface visual fidelity testing device, comprising:

[0119] Module 1 is used to acquire the test page data of the terminal under test;

[0120] The first execution module 2 is used to read the design file corresponding to the page data to be tested, and extract the corresponding page data from the design file as the first standard page data.

[0121] The second execution module 3 is used to extract the dynamic data of the page data to be tested, and use the dynamic data to replace the corresponding static data of the first standard page data to obtain the second standard page data.

[0122] Comparison module 4 is used to compare the data of the page to be tested with the data of the second standard page to obtain the corresponding comparison results;

[0123] Output module 5 is used to generate and output the corresponding visual fidelity test results based on the comparison results.

[0124] In one feasible implementation, the acquisition module 1 includes:

[0125] The sending unit is used to send a page data request to the terminal under test;

[0126] A receiving unit is configured to receive test page data fed back by the terminal under test based on the page data request; wherein the test page data is collected by a collection module integrated into the application under test.

[0127] In one feasible implementation, the sending unit is specifically used for:

[0128] The system detects that the application under test on the terminal under test sends the page data request when it starts; wherein the application under test is started by a pre-set automated test script.

[0129] In one feasible implementation, the second execution module 3 includes:

[0130] The first conversion unit is used to perform format conversion on the page data to be tested to obtain the first converted page data described in the target data format.

[0131] The second conversion unit is used to convert the format of the first standard page data to obtain the second converted page data described by the target data format.

[0132] An execution unit is configured to extract dynamic data from the first converted page data and use the dynamic data to replace the corresponding static data in the second converted page data.

[0133] In one feasible approach, the page data to be tested is marked with a dynamic data identifier, and the execution unit is specifically used for:

[0134] Dynamic data is extracted from the first converted page data based on the dynamic data identifier.

[0135] In one feasible implementation, the output module 5 includes:

[0136] The output unit is used to generate and output a corresponding visual test report based on the comparison results.

[0137] The present invention also provides a user interface visual fidelity testing system, comprising:

[0138] The connected terminal under test and the test terminal;

[0139] The test terminal is used for:

[0140] The test involves: acquiring the test page data of the terminal to be tested; reading the design file corresponding to the test page data and extracting the corresponding page data from the design file as the first standard page data; extracting the dynamic data of the test page data and replacing the corresponding static data of the first standard page data with the dynamic data to obtain the second standard page data; comparing the test page data with the second standard page data to obtain the corresponding comparison result; and generating and outputting the corresponding visual fidelity test result based on the comparison result.

[0141] In one feasible manner, the test terminal is specifically used for:

[0142] Send a page data request to the terminal under test and receive the page data to be tested from the terminal under test based on the page data request;

[0143] The terminal to be tested is used for:

[0144] The data of the page under test is collected by the acquisition module integrated into the application under test.

[0145] In one feasible manner, the test terminal is specifically used for:

[0146] The page data request is sent when the application under test on the terminal under test is detected to be launched; wherein the application under test is launched by a pre-set automated test script.

[0147] In one feasible manner, the test terminal is further specifically used for:

[0148] The data of the page to be tested is converted to obtain the first converted page data described in the target data format.

[0149] The first standard page data is converted to obtain a second converted page data described using the target data format.

[0150] Dynamic data is extracted from the first converted page data, and the corresponding static data in the second converted page data is replaced with the dynamic data.

[0151] In one feasible approach, the page data to be tested is marked with a dynamic data identifier, and the test terminal is specifically used for:

[0152] Dynamic data is extracted from the first converted page data based on the dynamic data identifier.

[0153] In one feasible manner, the test terminal is specifically used for:

[0154] Based on the comparison results, a corresponding visual test report is generated and output.

[0155] This application has the following advantages:

[0156] (1) It can reduce the manual comparison cost of visual fidelity testing on mobile devices;

[0157] (2) By replacing the static data in the design drawings, the accuracy of the comparison data can be improved;

[0158] (3) By extracting page data, the comparison error caused by directly comparing images is avoided, making the results of the fidelity test more accurate and reasonable. At the same time, structured data is formed, and a visual test report is generated through the structured data.

[0159] (4) The mobile visual fidelity test has been automated, forming a standard testing process;

[0160] (5) It can be applied to video network projects to improve the testing efficiency of video network terminal user interface and reduce the testing cost of video network terminal user interface.

[0161] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, systems, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and the specific beneficial effects of the devices, systems, and modules described above can be referred to the corresponding beneficial effects in the foregoing method embodiments, and will not be repeated here.

[0162] In the several embodiments provided in this application, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another device, or some features may be ignored or not executed.

[0163] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0164] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0165] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0166] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A user interface visual restoration test method, characterized by, include: Obtain the test page data of the terminal to be tested, wherein the test page data includes the test page identifier; Read the design file corresponding to the page data to be tested, and extract the corresponding page data from the design file as the first standard page data. The design file includes a design file identifier. Extract the dynamic data of the page data to be tested, and replace the corresponding static data of the first standard page data with the dynamic data to obtain the second standard page data; The test page data is compared with the second standard page data to obtain the corresponding comparison results; Based on the comparison results, generate and output the corresponding visual fidelity test results; The step of extracting dynamic data from the page data to be tested and replacing the corresponding static data of the first standard page data with the dynamic data includes: The data of the page to be tested is converted to obtain the first converted page data described in the target data format. The first standard page data is converted to obtain a second converted page data described using the target data format. Dynamic data is extracted from the first converted page data, and the corresponding static data in the second converted page data is replaced with the dynamic data. The page data to be tested is marked with a dynamic data identifier. Extracting dynamic data from the first converted page data includes: Dynamic data is extracted from the first converted page data based on the dynamic data identifier.

2. The user interface visual recency test method of claim 1, wherein, The step of obtaining the test page data of the terminal to be tested includes: Send a page data request to the terminal under test; The system receives test page data from the terminal under test based on the page data request; wherein the test page data is collected by a data acquisition module integrated into the application under test.

3. The user interface visual fidelity testing method according to claim 2, characterized in that, Sending the page data request to the terminal under test includes: The system detects that the application under test on the terminal under test sends the page data request when it starts; wherein the application under test is started by a pre-set automated test script.

4. The user interface visual fidelity testing method according to claim 1, characterized in that, The step of generating and outputting the corresponding visual fidelity test results based on the comparison results includes: Based on the comparison results, a corresponding visual test report is generated and output.

5. A user interface visual fidelity testing device, characterized in that, include: A memory for storing instructions; wherein the instructions are used to implement the user interface visual fidelity testing method as described in any one of claims 1-4; A processor for executing instructions in the memory.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the user interface visual fidelity testing method as described in any one of claims 1-4.

7. A user interface visual fidelity testing device, characterized in that, include: The acquisition module is used to acquire the test page data of the terminal to be tested, wherein the test page data includes the test page identifier; The first execution module is used to read the design file corresponding to the page data to be tested, and extract the corresponding page data from the design file as the first standard page data. The design file includes a design file identifier. The second execution module is used to extract the dynamic data of the page data to be tested, and use the dynamic data to replace the corresponding static data of the first standard page data to obtain the second standard page data. The comparison module is used to compare the data of the page to be tested with the data of the second standard page to obtain the corresponding comparison results; The output module is used to generate and output the corresponding visual fidelity test results based on the comparison results; The second execution module is specifically used for: The test page data is format-converted to obtain first converted page data described using the target data format, and the test page data is marked with a dynamic data identifier. The first standard page data is converted to obtain a second converted page data described using the target data format. Dynamic data is extracted from the first converted page data based on the dynamic data identifier, and the corresponding static data in the second converted page data is replaced with the dynamic data.

8. A user interface visual fidelity testing system, characterized in that, include: The connected terminal under test and the test terminal; The test terminal is used for: Obtain the test page data of the terminal under test; Read the design file corresponding to the page data to be tested, and extract the corresponding page data from the design file as the first standard page data; extract the dynamic data of the page data to be tested, and use the dynamic data to replace the corresponding static data of the first standard page data to obtain the second standard page data; compare the page data to be tested with the second standard page data to obtain the corresponding comparison result; And, based on the comparison results, generate and output corresponding visual fidelity test results, wherein the test page data includes the test page identifier and the design file includes the design file identifier; The test terminal is specifically used for: The test page data is format-converted to obtain first converted page data described using the target data format, and the test page data is marked with a dynamic data identifier. The first standard page data is converted to obtain a second converted page data described using the target data format. Dynamic data is extracted from the first converted page data based on the dynamic data identifier, and the corresponding static data in the second converted page data is replaced with the dynamic data.