An Intelligent Method and System for Comparing Network Data
Through intelligent comparison of network data, automatic acquisition and comparison of page screenshots of multi-terminal terminals has been solved, and efficient and accurate data comparison is achieved.
Patent Information
- Application Number
- CN202510286514.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-12
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-03-12
AI Technical Summary
The prior art is difficult to automate and compare the data consistency displayed by multiple terminals, which makes it difficult to meet the requirements of development efficiency and accuracy.
The intelligent comparison network data method is adopted, and remotely controls the mobile phone and computer by writing scripts, automatically obtains page screenshots, and uses the big data interface for structured processing and comparison to determine data consistency.
It realizes unsupervised multi-terminal data comparison, significantly improves the efficiency of testing and verification, and ensures the accuracy and reliability of data comparison.
Smart Images

Figure CN119807005B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and particularly relates to a method and system for intelligently comparing network data. Background Art
[0002] Users can usually access the same data through multiple terminals, and development teams usually use a unified data source (such as an API or a database) in multiple application environments (mobile terminals, computer terminals). For example, in a typical development process, multiple teams may develop multiple terminals of an application simultaneously, and these functions need to display the same data. In the past, only manual comparison of multi-terminal data could be used to confirm that the data finally displayed on different pages is consistent, which makes it difficult to meet the requirements of development processing efficiency.
[0003] In view of the above technical problems, specifically, the present application provides a method and system for intelligently comparing network data. Summary of the Invention
[0004] To achieve the object of the present invention, the present invention adopts the following technical solutions:
[0005] An intelligent network data comparison method specifically includes:
[0006] S1 Write a script to remotely control the mobile phone, automatically open the page of the target application, simulate user clicks and scrolls to view page data, and obtain a page screenshot with information to be verified;
[0007] S2 The script automatically opens the page of other terminals of the target application and obtains a page screenshot with information to be verified in other terminals;
[0008] S3 The script transmits the page screenshots with information to be verified of different terminals of the target application to the big data interface, and performs structured processing on the page screenshots to obtain structured data;
[0009] S4 Compare the structured data of different terminals to obtain a comparison result, and use the comparison result to determine whether they are consistent.
[0010] A further technical solution lies in that the script is constructed using the AIrTest automation tool.
[0011] A further technical solution lies in that after obtaining the page screenshot with information to be verified, place the page screenshot in the corresponding folder, and when performing the comparison process of structured data, compare the structured data in different folders respectively.
[0012] The beneficial effects of the present invention are as follows:
[0013] Using the technical solution of the present invention, it is possible to automatically extract and obtain the page screenshots with information to be verified, and to realize the acquisition of structured data of different page screenshots, achieving unsupervised operation. Furthermore, it is possible to compare the page data of different terminals, significantly improving the test verification efficiency, while also ensuring the accuracy and reliability of the verification process.
[0014] On the other hand, the present application provides an intelligent network data comparison system, which applies the above-mentioned intelligent network data comparison method, specifically including:
[0015] A preprocessing module, a pre-verification module, a page adjustment module, and a verification processing module;
[0016] Among them, the preprocessing module is responsible for obtaining the information to be verified corresponding to different page screenshots, and determining whether pre-verification processing is required in combination with the number of terminals for verification processing of different page screenshots;
[0017] The pre-verification module is responsible for analyzing the image similarity of the page screenshots to be compared for different terminals to obtain an analysis result, and determining the verification strategy adjustment method for the page screenshots based on the analysis results of different page screenshots;
[0018] The page adjustment module is responsible for performing screenshot adjustment processing on the page screenshots using the verification strategy adjustment method, and when it does not belong to the preset verification strategy adjustment method, determining the page screenshots that need to be intercepted and adjusted based on the information to be verified corresponding to different page screenshots and the analysis result of image similarity, and using them as secondary intercepted page screenshots;
[0019] The verification processing module is responsible for extracting structured data from the secondary intercepted page screenshots and page screenshots of different terminals, and comparing the structured data to obtain a comparison result.
[0020] A further technical solution is that the number of terminals for verification processing of the page screenshots is determined according to the one-to-one correspondence between the page screenshots and the terminals.
[0021] A further technical solution is that determining whether pre-verification processing is required specifically includes:
[0022] Based on the information to be verified corresponding to the page screenshots, determining the number of information to be verified of different page screenshots and the data volume of different information to be verified;
[0023] Based on the number of information to be verified of different page screenshots and the data volume of different information to be verified, determining the total data volume of the information to be verified of different page screenshots, and combining the number of terminals for verification processing of different page screenshots to determine the total verification data volume;
[0024] Determine whether pre-verification processing is required based on the total amount of verification data.
[0025] A further technical solution lies in that the method for determining the total amount of verification data is as follows:
[0026] Based on the total amount of data to be verified in different page screenshots and the number of terminals for performing verification processing on the page screenshots, determine the sum of the total amounts of data of different terminals in different page screenshots, and use it as the total data sum;
[0027] Determine the total amount of verification data based on the sum of the total data sums of different page screenshots.
[0028] A further technical solution lies in that when pre-verification processing is not required, directly use the verification processing module to extract the structured data of the page screenshot, and perform comparison on the structured data to obtain a comparison result.
[0029] Other features and advantages will be described in the subsequent description. The objectives and other advantages of the present invention are achieved and obtained by the structures specifically pointed out in the description and the accompanying drawings.
[0030] To make the above objectives, features, and advantages of the present invention more obvious and understandable, the following specific preferred embodiments are given, and in conjunction with the accompanying drawings, the detailed description is as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] By referring to the accompanying drawings and describing its exemplary embodiments in detail, the above and other features and advantages of the present invention will become more obvious;
[0032] Figure 1 is a flowchart of a method for intelligently comparing network data;
[0033] Figure 2 is a framework diagram of a system for intelligently comparing network data;
[0034] Figure 3 is a flowchart for determining whether pre-verification processing is required;
[0035] Figure 4 is a flowchart of a method for determining the adjustment method of the verification strategy for page screenshots;
[0036] Figure 5 is a flowchart of a method for determining the secondary interception of page screenshots. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] To enable those skilled in the art to better understand the technical solutions in this specification, the following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all of them. Based on the embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this specification.
[0038] In modern software development, crawler technology for user interfaces (UI) is widely used in multiple fields such as data collection, information monitoring, and competitive analysis. In today's society, users can usually access the same data through multiple terminals, and development teams usually use a unified data source (such as an API or a database) in multiple application environments (mobile and computer). For example, in a typical development process, multiple teams may develop multiple ends of an application simultaneously, and these functions need to display the same data. In the past, only manual comparison of data across multiple ends could be used to confirm that the data finally displayed on different pages is consistent. The present invention realizes automated comparison by a program.
[0039] The purpose of the present invention is to use a computer program to intelligently compare the consistency of the data finally displayed on multiple terminals.
[0040] To achieve the above object, the present invention adopts the following technical solutions:
[0041] Use the AirTest tool to write a script to remotely control the mobile phone, automatically open the pages of relevant applications (such as: open the page of a specified mini-program on WeChat), and simulate user clicks and scrolling to view page data.
[0042] During the browsing process, take screenshots of the pages with information to be verified and store them in folders according to relevant page modules.
[0043] After the script finishes browsing the mobile phone pages, it automatically opens the computer browser to access the relevant pages.
[0044] During the browsing process, take screenshots of the pages with information to be verified and store them in folders according to relevant page modules.
[0045] After completing the screenshots on the computer side, the script starts to traverse the folder where the pictures are stored and sequentially sends the pictures to the large model interface, instructing the large model to structure the relevant information on the pictures to ensure that the returned data structures are exactly the same.
[0046] Finally, the script matches the information obtained from different ends one by one to see if they are consistent.
[0047] Example 1 To solve the above problems, according to one aspect of the present invention, as Figure 1As shown in the figure, the present invention proposes an intelligent comparison network data method, which specifically includes:
[0048] S1 Write a script to remotely control the mobile phone, automatically open the page of the target application, simulate the user to click and scroll through the page data, and obtain a page screenshot with the information to be verified;
[0049] S2 The script automatically opens the page of other terminals of the target application and obtains a page screenshot with the information to be verified in other terminals;
[0050] S3 The script transmits the page screenshots with the information to be verified of different terminals of the target application to the big data interface, and performs structured processing on the page screenshots to obtain structured data;
[0051] S4 Compare the structured data of different terminals to obtain a comparison result, and use the comparison result to determine whether they are consistent.
[0052] Furthermore, the script is constructed using the AIrTest automation tool.
[0053] Specifically, after obtaining the page screenshot with the information to be verified, place the page screenshot in the corresponding folder, and when performing the comparison processing of the structured data, compare the structured data in different folders respectively.
[0054] Example 2 On the other hand, as Figure 2 shown, the present application provides an intelligent comparison network data system, which is applied to the above-mentioned intelligent comparison network data method, and specifically includes:
[0055] A preprocessing module, a pre-verification module, a page adjustment module, and a verification processing module;
[0056] Among them, the preprocessing module is responsible for obtaining the information to be verified corresponding to different page screenshots, and determining whether pre-verification processing is required in combination with the number of terminals for verification processing of different page screenshots;
[0057] Specifically, when the sum of the quantities of the information to be verified of different page screenshots is greater than the preset information quantity threshold, it is determined that pre-verification processing is required.
[0058] When pre-verification processing is not required, directly use the verification processing module to extract the structured data of the page screenshot, and compare the structured data to obtain a comparison result.
[0059] The pre-verification module is responsible for analyzing the image similarity of the compared page screenshots of different terminals to obtain an analysis result, and determining the verification strategy adjustment method of the page screenshot using the analysis results of different page screenshots;
[0060] In one possible embodiment, according to the image similarity of the page screenshots on different matching verification terminals, the matching verification terminals with unsatisfactory image similarity are determined, and the page screenshots with image deviation are determined for the matching verification terminals with unsatisfactory image similarity. When the number of page screenshots with image deviation is greater than the preset number of page screenshots, the verification strategy adjustment method for the page screenshots is determined by using the preset verification strategy adjustment method. When the number of page screenshots with image deviation is not greater than the preset number of page screenshots, there is no need to use the preset verification strategy adjustment method to determine the verification strategy adjustment method for the page screenshots.
[0061] The page adjustment module is responsible for performing screenshot adjustment processing on the page screenshots by using the verification strategy adjustment method, and when it does not belong to the preset verification strategy adjustment method, based on the information to be verified corresponding to different page screenshots and the analysis result of the image similarity, the page screenshots that need to be intercepted and adjusted are determined and used as the secondary intercepted page screenshots;
[0062] When the preset verification strategy adjustment method is adopted, based on different information to be verified, a corresponding single secondary intercepted page screenshot is generated, and the comparison result is obtained by comparing the structured data of the secondary intercepted page screenshot. When it does not belong to the preset verification strategy adjustment method, the page screenshots that need to be generated for the secondary intercepted page screenshots are determined, and the comparison result is obtained by comparing the structured data of the secondary intercepted page screenshots and the page screenshots.
[0063] The verification processing module is responsible for extracting the structured data of the secondary intercepted page screenshots and the page screenshots of different terminals, and comparing the structured data to obtain the comparison result.
[0064] Further, the number of terminals for which the page screenshots are verified is determined according to the one-to-one correspondence between the page screenshots and the terminals.
[0065] Specifically, as Figure 3 shown, determining whether pre-verification processing is required specifically includes:
[0066] Based on the information to be verified corresponding to the page screenshots, determine the number of information to be verified of different page screenshots and the data volume of different information to be verified;
[0067] Based on the number of information to be verified of different page screenshots and the data volume of different information to be verified, determine the total data volume of the information to be verified of different page screenshots, and in combination with the number of terminals for which different page screenshots are verified, determine the total verification data volume;
[0068] Determine whether pre-verification processing is required according to the total verification data volume.
[0069] Furthermore, the method for determining the total amount of verification data is as follows:
[0070] Based on the total amount of data of the information to be verified in different page screenshots and the number of terminals for verifying and processing the page screenshots, determine the sum of the total amounts of data of different terminals in different page screenshots, and use it as the sum of the total amounts of data;
[0071] Determine the total amount of verification data according to the sum of the sums of the total amounts of data of different page screenshots.
[0072] It should be noted that when the total amount of verification data is greater than the preset amount of data, it is determined that pre-verification processing needs to be performed.
[0073] Optionally, when pre-verification processing is not required, directly use the verification processing module to extract the structured data of the page screenshots and compare the structured data to obtain a comparison result.
[0074] Optionally, determining whether pre-verification processing is required specifically includes:
[0075] Based on the information to be verified corresponding to the page screenshots, determine the number of information to be verified in different page screenshots and the amount of data of different information to be verified;
[0076] Based on the number of information to be verified in different page screenshots and the amount of data of different information to be verified, determine the total amount of data of the information to be verified in different page screenshots, and in combination with the number of terminals for verifying and processing different page screenshots, determine the sum of the total amounts of data of different terminals in different page screenshots, and use it as the sum of the total amounts of data;
[0077] Determine the complex page screenshots for verification processing in the page screenshots according to the sum of the total amounts of data, and use the number of complex page screenshots for verification processing to determine whether pre-verification processing is required.
[0078] Furthermore, when the number of complex page screenshots for verification processing does not meet the requirements, it is determined that pre-verification processing needs to be performed.
[0079] Optionally, determining whether pre-verification processing is required specifically includes:
[0080] S11 Based on the information to be verified corresponding to the page screenshots, determine the number of information to be verified in different page screenshots and the amount of data of different information to be verified;
[0081] Optionally, the above step S11 includes the following content:
[0082] S111 Based on the information to be verified corresponding to the page screenshot, determine the total number of information to be verified corresponding to different page screenshots. When the total number of information to be verified is greater than the preset quantity threshold, it is determined that pre-verification processing is required. When the total number of information to be verified is not greater than the preset quantity threshold, proceed to step S112;
[0083] S112 When it is determined based on the total number of information to be verified corresponding to different page screenshots that there is no page screenshot with a total number greater than the preset information quantity threshold, proceed to step S113. When there is a page screenshot with a total number greater than the preset information quantity threshold, proceed to step S114;
[0084] S113 When the number of page screenshots is within the preset screenshot quantity range, it is determined that pre-verification processing is not required. When the number of page screenshots is not within the preset screenshot quantity range, proceed to step S12;
[0085] S114 When the number of page screenshots with a total number greater than the preset information quantity threshold is greater than the preset screenshot quantity threshold, it is determined that pre-verification processing is required. When the number of page screenshots with a total number greater than the preset information quantity threshold is not greater than the preset screenshot quantity threshold, proceed to step S12.
[0086] S12 Based on the quantity of information to be verified of different page screenshots, the data volume of different information to be verified, and in combination with the number of terminals for verification processing of different page screenshots, determine the verification processing complexity coefficient of different page screenshots;
[0087] Optionally, the following content is included in step S12 above:
[0088] S121 Based on the quantity of information to be verified of different page screenshots, the data volume of different information to be verified, and in combination with the number of terminals for verification processing of different page screenshots, determine the verification processing complexity coefficient of different page screenshots. When the verification processing complexity coefficients of different page screenshots all meet the requirements, proceed to step S122. When there is a page screenshot with a verification processing complexity coefficient that does not meet the requirements, proceed to step S123;
[0089] S122 When the number of page screenshots is within the preset screenshot quantity range, it is determined that pre-verification processing is not required. When the number of page screenshots is not within the preset screenshot quantity range, proceed to step S124;
[0090] S123 When the number of page screenshots with a verification processing complexity coefficient that does not meet the requirements is greater than the preset screenshot quantity threshold, it is determined that pre-verification processing is required. When the number of page screenshots with a verification processing complexity coefficient that does not meet the requirements is not greater than the preset screenshot quantity threshold, proceed to step S124;
[0091] When the sum of the verification processing complexity coefficients of different page screenshots does not meet the requirements, it is determined that pre-verification processing is required. When the sum of the verification processing complexity coefficients of different page screenshots meets the requirements, proceed to step S13.
[0092] S13 Determine the comprehensive complexity coefficient based on the verification processing complexity coefficients of different page screenshots, and use the comprehensive complexity coefficient to determine whether pre-verification processing is required.
[0093] Specifically, the image similarity is determined using a preset image similarity evaluation model with different page screenshots as input quantities.
[0094] It should be noted that the image similarity evaluation model is constructed based on any one of the neural network models such as the CNN model and the LSTM model.
[0095] Specifically, as Figure 4 shown, the method for determining the verification strategy adjustment method of the page screenshot is as follows:
[0096] Take the terminal for verifying the page screenshot as the matching verification terminal, and determine the matching verification terminal with the image similarity not meeting the requirements according to the image similarity of the page screenshot on different matching verification terminals;
[0097] Determine the image deviation page screenshot based on the matching verification terminal with the image similarity not meeting the requirements;
[0098] Determine the verification strategy adjustment method of the page screenshot based on the number of the image deviation page screenshots.
[0099] Furthermore, the matching verification terminal with the image similarity not meeting the requirements is the matching verification terminal with the image similarity not meeting the requirements compared with other matching verification terminals.
[0100] It can be understood that determining the verification strategy adjustment method of the page screenshot based on the number of the image deviation page screenshots specifically includes:
[0101] When the number of the image deviation page screenshots is greater than the preset number of page screenshots, then use the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot;
[0102] When the number of the image deviation page screenshots is not greater than the preset number of page screenshots, then there is no need to use the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot.
[0103] It should be noted that the preset verification strategy adjustment method is based on different information to be verified, generating corresponding single second intercepted page screenshots, and obtaining comparison results by comparing the structured data of the second intercepted page screenshots.
[0104] In another embodiment, the method for determining the verification strategy adjustment method of the page screenshot is as follows:
[0105] Regarding the terminal that performs verification processing on the page screenshot as a matching verification terminal, according to the image similarity of the page screenshot on different matching verification terminals;
[0106] According to the average value of the image similarities of different page screenshots on different matching verification terminals, determining the similarity mean value of different page screenshots;
[0107] Regarding the page screenshots whose similarity mean value does not meet the requirements as image deviation page screenshots, and determining the verification strategy adjustment method of the page screenshot based on the quantity of the image deviation page screenshots.
[0108] In another embodiment, the method for determining the verification strategy adjustment method of the page screenshot is as follows:
[0109] S21 Regarding the terminal that performs verification processing on the page screenshot as a matching verification terminal, according to the image similarity between different matching verification terminals of the page screenshot, and determining the information deviation probability of the page screenshot by using the image similarity between different matching verification terminals;
[0110] S22 Determining the information weight coefficients of different page screenshots based on the quantity of the information to be verified of different page screenshots, and determining the deviation weight coefficients of different page screenshots based on the product of the information weight coefficients and the information deviation probabilities of different page screenshots;
[0111] S23 Determining the comprehensive deviation coefficient based on the sum of the deviation weight coefficients of different page screenshots, and determining the verification strategy adjustment method of the page screenshot by using the comprehensive deviation coefficient.
[0112] Optionally, determining the verification strategy adjustment method of the page screenshot by using the comprehensive deviation coefficient specifically includes:
[0113] When the comprehensive deviation coefficient does not meet the requirements, then using the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot;
[0114] When the comprehensive deviation coefficient meets the requirements, then there is no need to use the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot.
[0115] Optionally, the above step S21 includes the following content:
[0116] S211 uses the terminal that verifies the page screenshot as the matching verification terminal. According to the image similarity between the page screenshots among different matching verification terminals, when it is determined that there is no matching verification terminal with an image similarity not meeting the requirements, it is determined that there is no need to use the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot. When there is a matching verification terminal with an image similarity not meeting the requirements, it proceeds to step S212;
[0117] S212 determines the page screenshots of the matching verification terminals with image similarity not meeting the requirements. When the number of page screenshots of the matching verification terminals with image similarity not meeting the requirements is greater than the preset number of page screenshots, it is determined that it is necessary to use the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot. When the number of page screenshots of the matching verification terminals with image similarity not meeting the requirements is not greater than the preset number of page screenshots, it proceeds to step S213;
[0118] S213 uses the image similarity between different matching verification terminals to determine the information deviation probability of the page screenshot, and regards the page screenshot with an information deviation probability greater than the preset deviation probability as the deviation page screenshot. When the number of deviation page screenshots is greater than the preset number of page screenshots, it is determined that it is necessary to use the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot. When the number of deviation page screenshots is not greater than the preset number of page screenshots, it proceeds to step S22.
[0119] Optionally, the above step S22 includes the following content:
[0120] S221 determines the information weight coefficients of different page screenshots based on the number of pieces of information to be verified of different page screenshots. When the sum of the information weight coefficients of the deviation page screenshots is greater than the preset weight coefficient threshold, it is determined that it is necessary to use the preset verification strategy adjustment method to determine the verification strategy adjustment method of the page screenshot. When the sum of the information weight coefficients of the deviation page screenshots is not greater than the preset weight coefficient threshold, it proceeds to step S222;
[0121] S222 determines the deviation weight coefficients of different page screenshots based on the product of the information weight coefficients and information deviation probabilities of different page screenshots. When there is a page screenshot with a deviation weight coefficient greater than the preset deviation coefficient threshold, when there is no page screenshot with a deviation weight coefficient greater than the preset deviation coefficient threshold, it proceeds to step S23;
[0122] When the number of page screenshots with a deviation weight coefficient greater than the preset deviation coefficient threshold does not meet the requirements, it is determined that the verification strategy adjustment method for the page screenshots needs to be determined using the preset verification strategy adjustment method. When the number of page screenshots with a deviation weight coefficient greater than the preset deviation coefficient threshold meets the requirements, proceed to step S224;
[0123] S224 Based on the number of page screenshots with a deviation weight coefficient greater than the preset deviation coefficient threshold and the corresponding deviation weight coefficients, determine the screening deviation weight coefficient. When the screening deviation weight coefficient does not meet the requirements, it is determined that the verification strategy adjustment method for the page screenshots needs to be determined using the preset verification strategy adjustment method. When the screening deviation weight coefficient meets the requirements, proceed to step S23.
[0124] Specifically, using the verification strategy adjustment method to perform screenshot adjustment processing on the page screenshots specifically includes:
[0125] When using the preset verification strategy adjustment method, based on different pieces of information to be verified, generate corresponding single secondary intercepted page screenshots, and use the structured data of the secondary intercepted page screenshots for comparison to obtain a comparison result;
[0126] When it does not belong to the preset verification strategy adjustment method, it is determined that page screenshots need to be generated for secondary interception, and use the structured data of the secondary intercepted page screenshots and the page screenshots for comparison to obtain a comparison result.
[0127] It should be noted that as Figure 5 shown, the method for determining the secondary intercepted page screenshots is:
[0128] Take the terminal for verifying the page screenshots as the matching verification terminal, and determine the similarity mean value of the page screenshots according to the average value of the image similarities between different matching verification terminals;
[0129] Based on the number of pieces of information to be verified corresponding to the page screenshots, determine the number of pieces of information to be verified in the page screenshots, and use the number of pieces of information to be verified to determine the preset information weight coefficient corresponding to the page screenshots;
[0130] Determine the corrected similarity coefficient of the page screenshots according to the product of the preset information weight coefficient and the similarity average value, and use the corrected similarity coefficient to determine whether the page screenshots are secondary intercepted page screenshots.
[0131] Furthermore, when the corrected similarity coefficient of the page screenshots is less than the preset similarity coefficient threshold, it is determined that the page screenshots are secondary intercepted page screenshots.
[0132] In another embodiment, the method for determining the second intercepted page screenshot is as follows:
[0133] Taking the terminal that performs verification processing on the page screenshot as the matching verification terminal, according to the image similarity between different matching verification terminals, when there is a matching verification terminal with an image similarity less than the set value of the similarity coefficient, it is determined that the page screenshot belongs to the second intercepted page screenshot;
[0134] When there is no matching verification terminal with an image similarity less than the set value of the similarity coefficient:
[0135] When the image similarity between different matching verification terminals all meets the requirements, it is determined that the page screenshot does not belong to the second intercepted page screenshot;
[0136] When there is a matching verification terminal with an image similarity that does not meet the requirements:
[0137] When the number of matching verification terminals with an image similarity that does not meet the requirements is greater than the preset number of verification terminals, it is determined that the page screenshot belongs to the second intercepted page screenshot;
[0138] When the number of matching verification terminals with an image similarity that does not meet the requirements is not greater than the preset number of verification terminals:
[0139] Determining the number of pieces of information to be verified in the page screenshot based on the number of pieces of information to be verified corresponding to the page screenshot. When the number of pieces of information to be verified in the page screenshot is greater than the preset verification information quantity threshold, it is determined that the page screenshot belongs to the second intercepted page screenshot;
[0140] When the number of pieces of information to be verified in the page screenshot is not greater than the preset verification information quantity threshold:
[0141] Determining the preset information weight coefficient corresponding to the page screenshot using the number of pieces of information to be verified, and determining the similarity mean value of the page screenshot according to the average value of the image similarities between different matching verification terminals;
[0142] Determining the corrected similarity coefficient of the page screenshot according to the product of the preset information weight coefficient and the similarity mean value, and using the corrected similarity coefficient to determine whether the page screenshot is a second intercepted page screenshot.
[0143] Each embodiment in this specification is described in a progressive manner. For the same or similar parts between each embodiment, reference can be made to each other. The key point of each embodiment is to illustrate the differences from other embodiments. In particular, for the embodiments of the device, equipment, and non - volatile computer storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments.
[0144] The above describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0145] The foregoing is only one or more embodiments of the present specification and is not intended to limit the present specification. For those skilled in the art, various modifications and variations can be made to one or more embodiments of the present specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present specification shall be included within the scope of the claims of the present specification.
Claims
1. An intelligent comparison network data system, characterized in that: Specifically include: Preprocessing module, pre-verification module, page adjustment module, verification processing module; The pre-processing module is responsible for obtaining the information to be verified corresponding to different page screenshots, and determining whether pre-verification processing is required based on the number of terminals that perform verification processing on different page screenshots; The pre-verification module is responsible for analyzing the image similarity of the compared page screenshots of different terminals to obtain analysis results, and using the analysis results of different page screenshots to determine the verification strategy adjustment method of the page screenshots; The page adjustment module is responsible for performing screenshot adjustment processing of the page screenshot using the verification strategy adjustment method, and when it does not belong to the preset verification strategy adjustment method, the page screenshot that needs to be intercepted and adjusted is determined based on the information to be verified corresponding to different page screenshots and the analysis results of image similarity, and it is used as the page screenshot that needs to be intercepted and generated for the second time; The verification processing module is responsible for extracting structured data from the secondary page screenshots and page screenshots of different terminals, and comparing the structured data to obtain comparison results; The method for determining the page screenshots that need to be captured and adjusted is: The terminal that performs verification processing on the page screenshot is used as a matching verification terminal, and the mean similarity value of the page screenshot is determined according to the average value of image similarities between different matching verification terminals; Determine a preset information weight coefficient corresponding to the page screenshot based on the amount of information to be verified in the page screenshot; Determining a modified similarity coefficient of the page screenshot according to the product of the preset information weight coefficient and the average similarity value, and determining whether the page screenshot is a page screenshot that needs to be adjusted by interception using the modified similarity coefficient; The intelligent comparison network data system is applied to an intelligent comparison network data method, specifically including: Write scripts to remotely control the phone, automatically open the target application page, simulate user clicks, scroll through page data, and obtain screenshots of pages with information to be verified; The script automatically opens the pages of other terminals of the target application and obtains screenshots of the pages with the information to be verified in other terminals; The script transmits page screenshots with information to be verified from different terminals of the target application to the big data interface, and performs structured processing on the page screenshots to obtain structured data; The structured data of different terminals are compared to obtain comparison results, and the comparison results are used to determine whether they are consistent.
2. The intelligent comparison network data system according to claim 1, characterized in that: The script is constructed using the AIrTest automation tool.
3. The intelligent comparison network data system according to claim 1, characterized in that: After obtaining the page screenshot with the information to be verified, the page screenshot is placed in a corresponding folder, and when performing a comparison process on the structured data, the structured data in different folders are compared and processed respectively.
4. The intelligent comparison network data system according to claim 1, characterized in that: The number of terminals for verifying the page screenshot is determined according to a one-to-one correspondence between the page screenshot and the terminal.
5. The intelligent comparison network data system according to claim 1, characterized in that: Determine whether pre-authentication processing is required, including: Based on the information to be verified corresponding to the page screenshot, determining the quantity of information to be verified of different page screenshots and the data volume of different information to be verified; Based on the amount of information to be verified in different page screenshots and the amount of data of the information to be verified in different page screenshots, the total amount of data of the information to be verified in different page screenshots is determined, and the total amount of verification data is determined in combination with the number of terminals for verification processing of different page screenshots; Whether a pre-verification process is required is determined based on the total amount of verification data.
6. The intelligent comparison network data system according to claim 5, characterized in that: The method for determining the total amount of verification data is: The total amount of data of the information to be verified in different page screenshots and the number of terminals for verification processing of the page screenshots are used to determine the sum of the total amount of data of different terminals in different page screenshots, and the sum is used as the total amount of data; The total amount of verification data is determined based on the total amount of data in different page screenshots.
7. The intelligent comparison network data system according to claim 1, characterized in that: When no pre-verification process is required, the verification process module is directly used to extract the structured data of the page screenshot, and the structured data is compared to obtain a comparison result.
8. The intelligent comparison network data system according to claim 1, characterized in that: The screenshot adjustment process of the page screenshot is performed by using the verification strategy adjustment method, specifically including: When the preset verification strategy adjustment method is adopted, a corresponding single secondary intercepted page screenshot is generated based on different information to be verified, and the structured data of the secondary intercepted page screenshot is used for comparison to obtain the comparison result; When it does not belong to the preset verification strategy adjustment method, it is determined that a secondary page screenshot needs to be generated by intercepting the page screenshot, and the secondary page screenshot is compared with the structured data of the page screenshot to obtain a comparison result.
Citation Information
Patent Citations
Application program testing method and device, electronic equipment and storage medium
CN111324531A
Page test method and device, computer storage medium and electronic equipment
CN113268407A
Web page automatic test method, device and equipment
CN116383539A
APP new version test method and device and medium
CN117349189A