Page loading state stability analysis method and related device

By monitoring network data flow and page rendering, and combining data response status and screen change analysis, the accuracy and efficiency of page loading status stability judgment were solved, and reliable identification was achieved in asynchronous loading and complex visual rendering scenarios.

CN121764558APending Publication Date: 2026-03-31GUANGZHOU PINWEI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-29
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately determine the stability of page loading status in asynchronous loading and complex visual rendering scenarios, leading to misjudgments and inefficiency.

Method used

By monitoring network data flow and page rendering, a two-dimensional stability judgment mechanism is established. Combining data response status and screen change analysis, pixel features and image feature information are used for comprehensive judgment.

Benefits of technology

It achieves reliable page loading status recognition in asynchronous loading and complex visual rendering scenarios, reducing the probability of false judgment and improving inspection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121764558A_ABST
    Figure CN121764558A_ABST
Patent Text Reader

Abstract

The invention discloses a stability analysis method for a page loading state and a related device, and the method comprises the steps: driving a to-be-detected page to execute a preset interaction action in response to a page inspection request, so as to trigger page loading; after the page is started to be loaded, monitoring a data response state of a target data resource associated with a page loading state; when the data response is successful, acquiring at least one frame of page picture of the to-be-detected page, and performing picture change analysis based on pixel feature information and image feature information of the page picture to obtain a picture analysis result; and finally determining a page loading state according to the data response state and the picture analysis result. By combining the response state of the data layer and the picture stability of the visual layer for judgment, the real loading completion moment of the page can be accurately identified, misjudgment is avoided, and the accuracy and efficiency of page inspection are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention pertains to page inspection technology, and particularly relates to a method and related apparatus for analyzing the stability of page loading status. Background Technology

[0002] With the development of mobile internet technology, the structure and content displayed on pages in various applications are becoming increasingly complex. The page loading process typically involves multiple stages, including network requests for backend business data, construction of the frontend page structure, and rendering and display of multimedia resources such as images. In application page inspection, automated testing, and operational quality monitoring scenarios, it is usually necessary to detect, analyze, or perform subsequent operations on the page content after it has finished loading. Therefore, accurately determining whether the page loading status has been stably completed is a fundamental issue in related technical fields.

[0003] Currently, most judgment methods are based on a fixed duration or a single element. Some solutions infer the page loading status by monitoring network requests, such as determining whether there are incomplete requests. However, these methods all have certain limitations.

[0004] On the one hand, page loading often has obvious asynchronous characteristics. The page loading time varies greatly under different page, different network environment and different terminal performance conditions. The fixed-time waiting method is difficult to balance loading efficiency and judgment accuracy at the same time, and is prone to problems such as excessively long waiting time or premature judgment. On the other hand, the judgment method that relies on a single page element or event usually depends on the stability of the page structure or implementation logic. When the page layout is adjusted, elements are replaced or the rendering order changes, it is easy to cause the judgment to fail.

[0005] Therefore, existing technologies often fail to accurately depict the comprehensive characteristics of different state changes during page loading, resulting in insufficient reliability in judging the stability of page loading states. Summary of the Invention

[0006] Based on this, the present invention aims to propose a stability analysis method and related device for page loading status, monitor network data flow and page rendering, establish a two-dimensional stability judgment mechanism, and overcome the shortcomings of existing technologies that rely on a single monitoring indicator and are unreliable.

[0007] In a first aspect, the present invention provides a method for analyzing the stability of page loading state, comprising:

[0008] In response to a page inspection request, drive the page to be inspected to perform a preset interactive action to trigger the loading process of the page to be inspected;

[0009] After the page to be tested starts loading, listen for the data response status of the target data resources associated with the page loading status;

[0010] When the data response status indicates that the target data resource has responded successfully, at least one frame of the page to be detected is acquired.

[0011] Based on at least one frame of the page, perform screen change analysis on the page to be detected to obtain screen analysis results;

[0012] The page loading status of the page to be tested is determined based on the data response status and screen analysis results. The page loading status includes stable loading and incomplete loading.

[0013] Furthermore, based on at least one frame of the page to be detected, image change analysis is performed on the page to be detected, and the image analysis results include:

[0014] Periodically acquire several frames of the page to be detected;

[0015] The image changes on the page are analyzed based on the image feature information to obtain the image analysis results.

[0016] Furthermore, based on the image feature information of the page, screen change analysis is performed, and the screen analysis results include:

[0017] The page complexity analysis results are determined based on the pixel feature information of the page.

[0018] When the page complexity analysis results meet the valid conditions for the image, the image similarity between the current frame and the previous frame is calculated based on the image feature information of the page image.

[0019] The image analysis results of the page to be detected are determined based on the page complexity analysis results and image similarity. The image analysis results include whether the image rendering is stable or not.

[0020] Furthermore, the page complexity analysis results determined based on the pixel feature information of the page image include:

[0021] Statistical analysis of the overall pixel value distribution of the page;

[0022] Divide the page into several image regions and statistically analyze the local pixel value distribution of each image region;

[0023] When the overall pixel value distribution meets the first screen validity condition, and the local pixel value distribution of each image region on the same page meets the second screen validity condition, the page complexity analysis result is determined to be screen validity.

[0024] Furthermore, calculating the image similarity between the current frame and the previous frame based on the image feature information of the page view includes:

[0025] Calculate the overall image similarity between the current frame and the previous frame.

[0026] Divide the page into several image regions and calculate the local image similarity between the current page and the previous page in the same image region.

[0027] The overall image similarity between the current frame and the previous frame is determined based on the overall image similarity and the local image similarity.

[0028] Furthermore, based on the page complexity analysis results and image similarity, the image analysis results of the page to be detected are determined as follows:

[0029] If the page complexity analysis results of N consecutive frames of the page to be tested are all valid, and the similarity of the N consecutive frames of the page reaches the preset threshold, the output image analysis result is that the image rendering is stable.

[0030] Furthermore, the similarity of the page images is represented by perceptual hashing or structural similarity index.

[0031] Secondly, the present invention provides a stability analysis device for page loading state, comprising:

[0032] The page loading driver module is used to respond to page inspection requests and drive the page to be inspected to perform preset interactive actions to trigger the loading process of the page to be inspected.

[0033] The data response monitoring module is used to monitor the data response status of the target data resources associated with the page loading status after the page to be detected starts loading.

[0034] The page frame acquisition module is used to acquire at least one frame of the page to be detected when the data response status indicates that the target data resource has responded successfully.

[0035] The page view analysis module is used to analyze the changes in the page to be detected based on at least one frame of page view, and obtain the view analysis results.

[0036] The loading status analysis module is used to determine the page loading status of the page to be detected based on the data response status and screen analysis results. The page loading status includes stable loading and loading incomplete.

[0037] Thirdly, the present invention provides an electronic device including a memory storing computer-executable instructions and a processor, wherein when the computer-executable instructions are executed by the processor, the device performs the steps of the stability analysis method for page loading state provided in the first aspect.

[0038] Fourthly, the present invention provides a readable storage medium storing a computer-executable program, which, when executed, can implement the various steps of the stability analysis method for page loading state provided in the first aspect.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] This invention proposes a stability analysis method and related apparatus for page loading status. By simultaneously considering the data response status and screen changes of target data resources associated with the page loading status during page inspection, it achieves joint determination of the page loading status, effectively solving the problem of misjudgment that easily occurs when relying solely on fixed waiting time or single screen features to determine page loading completion in existing technologies. After successful data resource response, the solution of this invention further analyzes the validity and rendering stability of the page screen based on pixel feature information and image feature information, accurately distinguishing invalid screens from truly rendered screens. Through a screen similarity analysis combining overall and local aspects and a joint determination mechanism across multiple consecutive frames, it avoids misjudgments caused by instantaneous stability or local changes, thereby achieving reliable identification of the true page loading completion time in asynchronous loading and complex visual rendering scenarios. Furthermore, this invention does not depend on the specific structure of the page or the front-end implementation method, has strong adaptability, and can significantly reduce invalid waiting time during page inspection while ensuring accuracy, thus improving inspection efficiency and possessing good practical value. Attached Figure Description

[0041] 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 embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0042] Figure 1 A flowchart illustrating the implementation of the page loading state stability analysis method provided in this embodiment of the invention;

[0043] Figure 2 A schematic diagram of the stability analysis device for page loading state provided in an embodiment of the present invention;

[0044] Figure 3 This is an electronic device architecture diagram provided for an embodiment of the present invention. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] participate Figure 1 One embodiment of the present invention proposes a method for stability analysis of page loading state, comprising the following steps:

[0047] Step S110. In response to the page inspection request, drive the page to be inspected to perform a preset interactive action to trigger the loading process of the page to be inspected.

[0048] The page inspection request responded to in this step refers to the automated monitoring of a specified webpage or application page to verify the page's loading performance, rendering quality, and responsiveness to user interactions under different states.

[0049] Specifically, page inspection requests can be initiated by page inspection systems, automated testing systems, or quality monitoring systems to detect and analyze the loading status of specified pages. The purpose is to monitor the loading status, content rendering, and performance indicators of pages in real time under different network, device, and environmental conditions.

[0050] When a page inspection request is triggered, the system automatically executes preset interactive actions according to pre-defined rules or configurations. This simulates real user behavior, triggering the page loading process and pushing it into the loading state. Pre-defined interactive actions can be configured based on the business type of the page being inspected, such as, but not limited to, page navigation, button clicks, list scrolling, pull-to-refresh, page switching, or combinations thereof.

[0051] In a further embodiment, the driving of the page to be tested to perform preset interactive actions can be achieved by simulating user operations. For example, by injecting click events, touch events, or scroll events into the page through an automated testing framework, the page can be reloaded or the data refreshed. In this way, it can be ensured that the page loading process conforms to the user interaction behavior in real business scenarios, thereby improving the authenticity and effectiveness of the detection results.

[0052] For example, in an e-commerce application, page inspection requests are initiated by a quality monitoring system. This system periodically inspects specific pages (such as product detail pages). The system first simulates user actions, clicking a product link to trigger the page loading process and execute the page redirection interaction. At this time, the page will initiate multiple network requests, including retrieving data such as product information, price, and inventory quantity. These operations are driven by automated testing tools, and the system determines whether the page has entered the loading state based on the returned data resources.

[0053] In other examples, such as news applications, page inspection requests are initiated periodically by the background automated inspection system. The system simulates user swiping on the page based on preset interactive actions, triggering the loading of more news content. When the user swipes to the bottom of the page, the system automatically executes the "load more" operation to load more news lists. By listening to relevant interface data requests, it determines whether the data response is complete, and then further determines whether the page loading is stable based on the page rendering.

[0054] Step S120. After the page to be detected starts loading, listen to the data response status of the target data resource associated with the page loading status.

[0055] This step monitors the critical data resources that the page loading depends on, determines whether the response is successfully returned, and records this status. This process is crucial for determining whether the page loading is complete and stable, as successful loading of data resources is usually a prerequisite for correct page rendering.

[0056] Specifically, page loading is asynchronous. Page rendering typically relies on the return of multiple data sources. The completion of page loading is not usually determined by a fixed time period, but rather by whether all data has been returned. If a critical data resource fails to load correctly, the page may remain in an incomplete state, leading to missing content or rendering errors.

[0057] The target data resource refers to the data resource that is directly related to the content displayed on the page, including but not limited to product information data, price data, image resource data, activity configuration data, or page layout configuration data. The data response status is used to indicate whether the request for the corresponding data resource has been successfully processed and returned by the server.

[0058] In a further embodiment, the monitoring process can be implemented through a network request monitoring mechanism, such as intercepting or recording data requests initiated by the page during page loading to obtain corresponding data response status information. By continuously monitoring the data response status, it is possible to determine whether the key data resources on which the page depends have been returned, thereby providing reliable preliminary judgment conditions for subsequent screen analysis.

[0059] In some embodiments, the data response status is determined by the successful acquisition of page-related data resources from the server and their return to the system port. The response status of these API requests is monitored through a network request interception mechanism. For example, when using the HTTP protocol, if the server returns a status code of 200 OK, it indicates that the data has been successfully loaded and is ready to be displayed on the page, and the page's data layer loading has been completed.

[0060] Step S130. When the data response status indicates that the target data resource has responded successfully, acquire at least one frame of the page to be detected.

[0061] This step obtains the current visual information of the page after the data layer has been loaded, providing a direct basis for subsequent analysis of screen changes and judgment of page rendering stability. This is because even if all key data resources have been successfully returned, the page may still be in a state of incomplete rendering. It is insufficient to judge whether the page has been loaded based solely on the data response status. Therefore, this embodiment of the invention proposes to judge the loading status by combining the page visual content.

[0062] In some embodiments, the page view can be captured by taking a screenshot, for example by calling the system screenshot interface or the graphics rendering cache interface to capture the display of the current page.

[0063] In a further embodiment, in order to improve the stability and accuracy of image analysis, multiple frames of page images can be acquired periodically after the data response is successful. For example, several frames of page images can be acquired continuously at preset time intervals for subsequent image change analysis and rendering stability judgment.

[0064] Step S140. Analyze the changes in the page to be detected based on at least one frame of the page to obtain the analysis results.

[0065] In this step, the screen change analysis is used to assess whether the page's visual rendering process is stabilizing, and to determine whether the page is in a stable rendering state or an incomplete rendering state, providing a key basis for subsequent page loading status determination.

[0066] Specifically, the page rendering process utilizes image feature information to analyze page changes, extracting multi-dimensional image features that characterize visual content and structural state. Based on these image features, the changes in the page over time are analyzed to determine whether the page rendering process has stabilized. Image feature information may include, but is not limited to, pixel feature information, brightness feature information, color distribution feature information, contrast feature information, and structural feature information.

[0067] Among them, pixel feature information can be used to reflect the basic information content of the page screen. For example, by statistically analyzing the distribution of each pixel value in the page screen, the proportion of non-background pixels, or the range of pixel value changes, it can be determined whether the page is still in a white screen, placeholder image, or low information content display state. Brightness and contrast feature information can be used to reflect whether the page content has been fully presented, avoiding the overall brightness of the screen being uniform or the contrast being insufficient due to the page not being fully loaded. Color distribution feature information can be used to reflect whether the page has presented diverse content elements through color histograms or color component statistics.

[0068] Furthermore, structural feature information can be used to reflect the spatial layout and content structure stability of a page. For example, by extracting edge features, texture features, or structural similarity indicators from the page, it can be determined whether there are layout changes, content jumps, or partial refreshes within a continuous time period. By comparing the structural features of the current frame with those of the previous frame, it is possible to effectively identify whether the page is still rendering or dynamically updating.

[0069] In some embodiments, a combination of multiple image feature information is used to comprehensively analyze the page display. On the one hand, the image feature information is used to determine whether a single frame of the page display is a valid image. On the other hand, the image features of multiple consecutive frames of the page display are compared and analyzed to determine the trend of the page display in the time dimension. When the change amplitude of the image features of several consecutive frames of the page display is lower than a preset threshold, the page display can be considered to have stabilized, thereby outputting an analysis result of stable image rendering.

[0070] In a further embodiment, the screen change analysis includes analyzing the screen validity and screen rendering stability of the page screen. Specifically, screen validity analysis determines whether the current page screen is a valid screen, excluding blank screens, skeleton screens, or low-information screens; screen rendering stability analysis determines whether the page screen tends to stabilize over a continuous period of time.

[0071] Specifically, step S140 includes the following process:

[0072] Step S141. Determine the page complexity analysis result based on the pixel feature information of the page.

[0073] This step analyzes the information content and effectiveness of the page image based on the pixel feature information obtained, in order to determine the page complexity analysis results. Page complexity is used to characterize whether the current page image has presented enough visual content, thereby distinguishing between blank screens, skeleton screens, or low-information images and images with real content.

[0074] In some embodiments, pixel feature information may include the distribution of pixel values, brightness distribution, and dispersion of pixel values ​​in the page image. By statistically analyzing the overall pixel value distribution of the page image, it can be determined whether the page image is still dominated by a single color or a small number of colors, thereby identifying whether the page is in a white screen or in an incomplete rendering state.

[0075] In some embodiments, the system can further divide the page display into several image regions and statistically analyze the local pixel value distribution of each image region. By comprehensively analyzing the overall pixel value distribution and the local pixel value distribution, it can be determined whether the page display presents sufficient visual information in multiple regions, avoiding misjudgments that the overall display is still invalid even though some regions have finished loading.

[0076] Specifically, when the overall pixel value distribution meets the preset first screen validity condition, and the local pixel value distribution of each image area on the same page screen meets the preset second screen validity condition, the page complexity analysis result is determined to be screen valid; otherwise, the screen is invalid.

[0077] Step S142. When the page complexity analysis result meets the valid conditions for the screen, calculate the screen similarity between the current frame screen and the previous frame screen based on the image feature information of the page screen.

[0078] In this step, when the page complexity analysis result indicates that the current page is valid, the current frame of the page is further compared and analyzed with the previous frame of the page based on the image feature information of the page to calculate the similarity of the images, which is used to determine the changes of the page in the time dimension.

[0079] Specifically, image feature information can include structural features, brightness features, color distribution features, or texture features of the page. By calculating the overall similarity between the current frame and the previous frame, it can reflect whether the overall visual structure of the page has changed significantly.

[0080] In some embodiments, the page screen can be divided into several image regions, and the local image similarity can be calculated for the same image regions of the current frame page screen and the previous frame page screen. By combining the overall image similarity and the local image similarity, the changes of the page screen in different regions can be reflected more accurately, and the interference of local refresh or short animation on the overall judgment result can be avoided.

[0081] In some embodiments, image similarity can be represented using a perceptual hash algorithm, a structural similarity index, or other similarity calculation methods that can reflect changes in image structure.

[0082] Step S143. Determine the image analysis result of the page to be detected based on the page complexity analysis result and image similarity. The image analysis result includes whether the image rendering is stable or not.

[0083] This step combines the page complexity analysis results and screen similarity to determine the screen rendering status of the page to be tested, thereby determining the screen analysis results. The screen analysis results are used to characterize whether the page screen has been rendered. The analysis results include screen rendering stable and screen rendering incomplete.

[0084] In some embodiments, when the page complexity analysis results of N consecutive frames of the page to be detected are all valid, and the image similarity of N consecutive frames of the page reaches a preset threshold, it is determined that the page image has not changed significantly in the continuous time period, and the image analysis result is output as stable image rendering.

[0085] In some embodiments, if the page complexity analysis result does not meet the valid conditions for the screen, or the screen similarity of consecutive frame screens does not reach a preset threshold, it is determined that the screen is still in the rendering process, and the screen analysis result may not be output temporarily or the screen analysis result may be output as the screen rendering is not completed.

[0086] By combining the validity judgment of the page image with the similarity analysis of consecutive frames, misjudgments caused by single frames or instantaneous stability can be avoided, thus more accurately reflecting the true state of the page rendering process.

[0087] In a more preferred embodiment, before performing screen change analysis on the page to be detected based on the page screen, the page screen is subjected to region filtering processing to remove fixed screen areas that have little impact on the page loading stability judgment or are easy to introduce interference, and then the analysis is performed based on the filtered page screen.

[0088] Specifically, fixed screen areas may include, but are not limited to, the navigation bar area at the top of the page, the function bar area at the bottom of the page, and the fixed display areas on the left and right sides of the page. These areas usually remain relatively stable during the page loading process, or have a low correlation with the completion status of the main content of the page. If they are directly included in the screen change analysis, it is easy to cover up the actual changes in the main content area of ​​the page.

[0089] In some embodiments, the page can be divided into regions based on preset page layout information or spatial location information in the page, and fixed screen regions located within preset location ranges can be excluded from subsequent analysis, retaining only the main content area of ​​the page as the screen to be analyzed. By performing page complexity analysis and screen similarity calculation on the main content area of ​​the page, the rendering and stability of the core content of the page can be more accurately reflected.

[0090] In some embodiments, region filtering may include operations such as cropping, masking, or reducing the weight of fixed image regions. For example, assigning lower analysis weights to the pixel and image features of fixed image regions, or calculating image similarity based only on the main content area of ​​the page, thereby reducing the impact of fixed image regions on the overall analysis results.

[0091] Step S150. Determine the page loading status of the page to be detected based on the data response status and screen analysis results. The page loading status includes stable loading and incomplete loading.

[0092] This step combines the data response status and screen analysis results to jointly determine the page loading status of the page to be inspected. The determined page loading status is used to characterize whether the page has reached a stable state for inspection or patrol. The page loading status includes stable loading and incomplete loading.

[0093] The core of this step lies in jointly determining the data layer status and the visual layer status to avoid misjudgments caused by relying on only a single dimension of information. On one hand, the data response status reflects whether the target data resources associated with page loading have completed their response; on the other hand, the image analysis results reflect whether the page's visual content has been rendered and has stabilized. Only when both the data layer and the visual layer meet the preset conditions can the page be considered to have truly completed loading.

[0094] In some embodiments, when the data response status indicates that all target data resources have responded successfully, and the screen analysis result indicates that the screen rendering of the page to be detected is stable, the system determines that the page loading status of the page to be detected is stable and outputs the analysis result that the page loading is complete. At this time, the page has simultaneously met the dual conditions of data integrity and visual stability, and can truly reflect the final presentation state of the page.

[0095] In some embodiments, if the data response status does not indicate that the target data resource has responded successfully, or the screen analysis result indicates that the screen rendering is not completed, the system determines that the page loading status of the page to be detected is not completed. The not completed loading status can be used to instruct the system to continue to listen to the data response status, continue to acquire the page screen and perform screen change analysis, or output an abnormal result after reaching a preset waiting limit.

[0096] Furthermore, once the page loading status is determined to be stable, other page inspection operations can be triggered, such as page element verification, page layout detection, content compliance analysis, or performance metric collection. When the page loading status is incomplete, the system can delay or pause subsequent inspection operations to avoid performing invalid or erroneous detections when the page is not fully loaded.

[0097] By combining data monitoring and visual rendering to determine stability, the system can accurately identify the actual completion time of page loading in asynchronous data loading and complex visual rendering scenarios. This achieves high reliability and accuracy in page loading status analysis, while significantly reducing the probability of misjudgment and improving the stability and overall efficiency of the page inspection process.

[0098] The disclosed method can be implemented using various types of devices. Therefore, the present invention also discloses an apparatus corresponding to the above method, and specific embodiments are given below for detailed description.

[0099] like Figure 2 As shown, one embodiment of the present invention provides a stability analysis device for page loading state, comprising:

[0100] The page loading driver module 202 is used to respond to the page inspection request and drive the page to be inspected to perform preset interactive actions to trigger the loading process of the page to be inspected.

[0101] The data response monitoring module 204 is used to monitor the data response status of the target data resources associated with the page loading status after the page to be detected starts loading.

[0102] The page frame acquisition module 206 is used to acquire at least one frame of the page to be detected when the data response status indicates that the target data resource has responded successfully.

[0103] The page display analysis module 208 is used to perform display change analysis on the page to be detected based on at least one frame of page display, and obtain the display analysis result.

[0104] The loading status analysis module 210 is used to determine the page loading status of the page to be detected based on the data response status and screen analysis results. The page loading status includes stable loading and incomplete loading.

[0105] The device provided in this application embodiment has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0106] The methods and related apparatuses mentioned in the above embodiments are described with reference to the method flowcharts and / or structural diagrams provided in the embodiments of this application. Specifically, each block of the method flowchart and / or structural diagram, as well as combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, generate instructions for implementing the process. Figure 1A schematic diagram of one or more processes and / or structures. Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 A process or multiple processes and / or structures illustrate the steps of the functions specified in one or more boxes.

[0107] The following embodiments illustrate the application of this method to a computer device. It is understood that the computer device can be any device with computing and processing capabilities, including but not limited to servers or personal laptops. In one embodiment, the computer device can be an application server, which can be a server used to run the application under test.

[0108] Referring to the figures, a hardware block diagram of an electronic device is shown. This electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present application described and / or claimed herein.

[0109] like Figure 3 As shown, the electronic device includes: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4;

[0110] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;

[0111] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.

[0112] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;

[0113] The memory stores a program, and the processor can call the program stored in the memory. The program is used to implement the various processing flows of the aforementioned scheme.

[0114] This invention also provides a readable storage medium storing a computer program thereon, which, when executed by a processor, implements various processing flows of the solutions provided in any possible implementation of the above embodiments and / or in combination with the embodiments.

[0115] The invention has been described in particular detail above with respect to possible scenarios, and those skilled in the art will recognize that the invention can be practiced through other embodiments. Specific naming of components, capitalization of terms, attributes, data structures, or any other programming or structural aspects are not mandatory or important, and the mechanisms or features of implementing the invention may have different names, forms, or procedures. The system can be implemented through a combination of hardware and software (as described), entirely through hardware elements, or entirely through software elements. The specific division of functions among the various system components described herein is merely exemplary and not mandatory; rather, the functions performed by a single system component can be performed by multiple components, or the functions performed by multiple components can be performed by a single component.

[0116] Those skilled in the art should understand that the various steps of the disclosed methods can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using device-executable program code, which can then be stored in a storage device for execution by the computing device. Alternatively, they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Therefore, the embodiments disclosed in this invention are not limited to any specific hardware and software combination.

[0117] The programs (also referred to as programs, software, software applications, or code) executable by these computing devices include machine instructions of a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms “machine-readable medium” and “computer-readable medium” refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0118] Certain aspects of this invention include the process steps and instructions described herein in algorithmic form. It should be noted that the process steps and instructions of this invention can be implemented in software, firmware, and / or hardware, and when implemented in software, they can be downloaded, stored on various operating systems and operated from said platforms.

[0119] Those skilled in the art will understand that the structures shown in the figures are merely block diagrams of some structures related to the present application and do not constitute a limitation on the terminal device to which the present application is applied. Specific terminal devices may include more or fewer components than those shown in the figures, or combine certain components, or have different component arrangements.

[0120] In the description of this specification, the use of terms such as "one embodiment," "some embodiments," "example," "specific example," or "possible design," etc., refers to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0121] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0122] The above 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 method of analyzing stability of a page loading state, characterized by, include: In response to a page inspection request, drive the page to be inspected to perform a preset interactive action to trigger the loading process of the page to be inspected; After the page to be tested starts loading, listen for the data response status of the target data resources associated with the page loading status; When the data response status indicates that the target data resource has responded successfully, at least one frame of the page to be detected is acquired. Based on at least one frame of the page, perform screen change analysis on the page to be detected to obtain screen analysis results; The page loading status of the page to be tested is determined based on the data response status and screen analysis results. The page loading status includes stable loading and incomplete loading.

2. The method of claim 1, wherein, The image change analysis of the page to be detected based on at least one frame of the page image yields the following results: Periodically acquire several frames of the page to be detected; The image changes on the page are analyzed based on the image feature information, and the image analysis results are obtained.

3. The method of claim 2, wherein, The image change analysis based on the image feature information of the page screen yields the following results: The page complexity analysis results are determined based on the pixel feature information of the page. When the page complexity analysis results meet the valid conditions for the image, the image similarity between the current frame and the previous frame is calculated based on the image feature information of the page image. The image analysis results of the page to be detected are determined based on the page complexity analysis results and image similarity. The image analysis results include whether the image rendering is stable or not.

4. The method of claim 3, wherein, The page complexity analysis results determined based on the pixel feature information of the page image include: Statistical analysis of the overall pixel value distribution of the page; Divide the page into several image regions and statistically analyze the local pixel value distribution of each image region; When the overall pixel value distribution meets the first screen validity condition, and the local pixel value distribution of each image region on the same page meets the second screen validity condition, the page complexity analysis result is determined to be screen validity.

5. The method of claim 3, wherein, The calculation of the image similarity between the current frame and the previous frame based on the image feature information of the page view includes: Calculate the overall image similarity between the current frame and the previous frame. Divide the page into several image regions and calculate the local image similarity between the current page and the previous frame's image regions. The overall image similarity between the current frame and the previous frame is determined based on the overall image similarity and the local image similarity.

6. The method of claim 3, wherein, The process of determining the page to be detected based on page complexity analysis and image similarity includes: If the page complexity analysis results of N consecutive frames of the page to be tested are all valid, and the similarity of the N consecutive frames of the page reaches the preset threshold, the output image analysis result is that the image rendering is stable.

7. The method according to claim 3 or 5, characterized in that, The similarity of the page images is represented by perceptual hashing or structural similarity index.

8. A device for analyzing stability of a page loading state, characterized by comprising: include: The page loading driver module is used to respond to page inspection requests and drive the page to be inspected to perform preset interactive actions to trigger the loading process of the page to be inspected. The data response monitoring module is configured to monitor a data response state of a target data resource associated with the page loading state after the to-be-detected page is started to be loaded. The page picture acquisition module is configured to acquire at least one frame of page picture of the to-be-detected page when the data response state indicates that the target data resource responds successfully. The page picture analysis module is configured to perform picture change analysis on the to-be-detected page based on the at least one frame of page picture, and obtain a picture analysis result. The loading state analysis module is configured to determine a page loading state of the to-be-detected page according to the data response state and the picture analysis result, wherein the page loading state includes a loading stable state and a loading incomplete state.

9. An electronic device, comprising: The device comprises a memory storing computer executable instructions and a processor, and when the computer executable instructions are executed by the processor, the device performs the page loading state stability analysis method according to any one of claims 1-7.

10. A readable storage medium, characterized by, The computer executable program is stored in the memory, and when the program is executed, the page loading state stability analysis method according to any one of claims 1-7 can be realized.