Simulation monitoring method, system and device of web service system and storage medium

By automatically generating verification benchmarks and adapting to page changes, the problem of relying on manual configuration of page verification benchmarks in web business systems has been solved, achieving efficient monitoring and alarms, and reducing false alarm rates and operation and maintenance costs.

CN123164034APending Publication Date: 2026-11-24BEIJING TEAMSUN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611240819.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the page verification benchmark of web business systems relies on manual configuration, which leads to high configuration thresholds, false alarms caused by dynamic content, and manual maintenance required after page redesign when the verification benchmark becomes invalid. This maintenance is inefficient and prone to omissions.

Method used

By recording business processes and performing multiple trial accesses, a verification benchmark is generated. Dynamic elements are automatically identified and excluded. During playback, the page redesign and business anomalies are distinguished based on the retention and distribution of benchmark elements. The verification benchmark is adjusted, and the response time is compared with the threshold to issue an alarm.

Benefits of technology

It enables automatic generation of verification benchmarks without manual configuration, avoids false alarms for dynamic content, automatically adapts to page changes, reduces false alarm rate and operation and maintenance costs, and provides comprehensive monitoring of business systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164034A_ABST
    Figure CN123164034A_ABST
Patent Text Reader

Abstract

This invention discloses a simulation monitoring method, system, device, and storage medium for a web business system, relating to the field of computer monitoring technology. The method includes: recording business steps of a business process; repeatedly attempting to access the business step and generating a verification benchmark by comparing the page data from each attempt; replaying the business process to obtain response time and simulated page data; verifying the page data according to the verification benchmark; if verification fails, obtaining the retention and / or distribution of each benchmark element in the page data; determining whether preset conditions are met based on the retention and / or distribution; if met, determining it as a page redesign and adjusting the verification benchmark; otherwise, determining it as a business anomaly and issuing an alarm; comparing the response time with a threshold, and issuing a performance alarm if a timeout occurs. This invention can automatically generate verification benchmarks and adapt to page changes, effectively distinguishing between page redesigns and business anomalies, reducing false alarm rates and maintenance costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer monitoring technology, and in particular to a simulation monitoring method, system, device and storage medium for a Web business system. Background Technology

[0002] As enterprises deepen their IT infrastructure development, the number of various web-based business systems continues to grow, and the stability of system operation directly affects business continuity. Currently, some technical solutions exist that pre-record standard web business system processes, which are then periodically downloaded and executed by a simulation terminal. This simulates user actions to monitor the business system, collects response times for each business step, and performs page validity checks based on preset keywords to determine whether the business system is operating normally.

[0003] However, the existing solutions have the following drawbacks: Firstly, page verification benchmarks (such as keywords and image links) rely entirely on manual configuration by operations and maintenance personnel, which has a high configuration threshold. Furthermore, dynamic content on the page (such as timestamps, session IDs, and carousel ads) changes with each refresh, leading to frequent false alarms from the monitoring system. Secondly, when business systems undergo version updates, page elements often change, rendering the original verification benchmarks invalid. Operations and maintenance personnel must manually compare the differences between the old and new pages and modify the verification benchmarks, resulting in low maintenance efficiency and a high risk of omissions. Currently, there is a lack of a technical means to automatically generate page verification benchmarks and automatically adapt to page changes. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a simulation monitoring method, system, device and storage medium for a Web business system to solve the problems in the prior art where page verification benchmarks rely on manual configuration, resulting in high configuration thresholds, false alarms caused by dynamic content, and manual maintenance required when the verification benchmarks become invalid after page redesign.

[0005] In a first aspect, embodiments of the present invention provide a simulation monitoring method for a Web business system, comprising:

[0006] Record the business process, which includes business steps;

[0007] The business process is accessed multiple times, and the page data from each access is compared to generate a verification benchmark for the business process.

[0008] Play back the recorded business process, simulate access to the business steps during the playback process, and obtain the response time of the business steps and the page data of the simulated access.

[0009] The page data accessed in the simulation is verified according to the verification benchmark.

[0010] If the verification fails, the retention and / or distribution of each benchmark element in the verification benchmark in the page data accessed in the simulation are obtained.

[0011] Based on the retention status and / or the distribution status, determine whether the preset conditions are met. If the preset conditions are met, it is determined that the page has been redesigned and the verification benchmark is adjusted according to the page data accessed in the simulation. If the preset conditions are not met, it is determined that the business is abnormal and an alarm is issued.

[0012] The response time is compared with a preset response time threshold. If the response time exceeds the preset response time threshold, a performance alarm is issued.

[0013] Furthermore, the comparison of page data from each trial access includes:

[0014] The page data from each trial access is parsed in a structured manner, and elements in the same position and path in the page structure from each trial access are compared one by one.

[0015] If an element appears in all trial visits, and the content of the element is the same in all trial visits, and the position path of the element in the page structure is the same in all trial visits, then the element is marked as the baseline element.

[0016] Furthermore, it also includes marking elements that appear in each trial visit but whose content is not exactly the same as dynamic elements;

[0017] When generating the verification benchmark for the business process based on the comparison results, the dynamic element is excluded from the verification benchmark.

[0018] Further, the step of verifying the page data accessed in the simulation based on the verification benchmark includes:

[0019] Find the element whose identifier matches the element identifier of each benchmark element in the verification benchmark from the page data accessed in the simulation;

[0020] The content of the found element is compared with the verification content of the corresponding benchmark element in the verification benchmark.

[0021] If no matching element is found in the simulated page data for the benchmark element, or if the content of the found element is inconsistent with the verification content of the corresponding benchmark element in the verification benchmark, then the verification fails.

[0022] Furthermore, the retention status includes: the proportion of the number of elements in the simulated access page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark;

[0023] The distribution includes: the relative positional relationship between elements in the simulated page data that match the benchmark elements in the verification benchmark, and whether the relative positional relationship between the corresponding benchmark elements when the verification benchmark was generated is consistent with that of the benchmark elements.

[0024] Furthermore, the preset conditions are:

[0025] The proportion of the number of elements in the simulated page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark reaches a preset threshold; and

[0026] The relative positional relationship between the matching elements is consistent with the relative positional relationship between the corresponding reference elements when the verification reference was generated.

[0027] Further, adjusting the verification benchmark based on the page data accessed in the simulation includes:

[0028] Based on the content of the element in the simulated page data that matches the baseline element, update the verification content of the corresponding baseline element in the verification baseline.

[0029] Secondly, embodiments of the present invention provide a simulation monitoring system for a web business system, comprising:

[0030] The recording module is used to record business processes, which include business steps.

[0031] The benchmark generation module is used to generate a verification benchmark for the business process by comparing the page data of each trial access after multiple trial accesses.

[0032] The playback module is used to replay the recorded business process. During the playback, the business process is simulated and accessed to obtain the response time of the business process and the page data of the simulated access.

[0033] The verification module is used to verify the page data accessed in the simulation based on the verification benchmark.

[0034] The determination module is used to obtain the retention status and / or distribution status of each benchmark element in the verification benchmark in the simulated access page data when the verification module fails; determine whether the preset conditions are met based on the retention status and / or the distribution status; if the preset conditions are met, it is determined that the page has been redesigned and the verification benchmark is adjusted according to the simulated access page data; if the preset conditions are not met, it is determined that the business is abnormal and an alarm is issued.

[0035] The alarm module is used to compare the response time with a preset response time threshold. If the response time exceeds the preset response time threshold, a performance alarm is issued.

[0036] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed within the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the simulation monitoring method of the Web business system described in the first aspect above.

[0037] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the simulation monitoring method for the Web business system described in the first aspect.

[0038] The technical solution provided by this invention first performs multiple trial visits to the recorded business process, compares the page data from each trial visit, and automatically generates a verification benchmark. This eliminates the need for manual configuration of verification rules. Furthermore, since dynamic content is identified and excluded during the trial visit phase, false alarms caused by changes in dynamic content during simulation monitoring are avoided. In the formal monitoring phase, the solution verifies the page data returned from the simulation visit based on the verification benchmark. When verification fails, the solution distinguishes between a page redesign and a business failure based on the retention and / or distribution of benchmark elements in the current page data. If a page redesign is identified, the solution automatically adjusts the verification benchmark to adapt to the page change; if a business failure is identified, an alarm is issued. Simultaneously, the solution compares the response time with a preset threshold, issuing a performance alarm when the response time exceeds the threshold. This achieves comprehensive proactive monitoring of the availability and performance of the business system. The entire process requires no manual intervention, solving the technical problems of existing technologies where the verification benchmark relies on manual configuration and cannot adapt to page changes, thus reducing false alarm rates and maintenance costs. Attached Figure Description

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

[0040] Figure 1 A flowchart illustrating a simulation monitoring method for a Web business system provided in Embodiment 1 of the present invention;

[0041] Figure 2 This is a flowchart of a simulation monitoring method for a Web business system provided in Embodiment 2 of the present invention;

[0042] Figure 3 A flowchart of a simulation monitoring method for a Web business system provided in Embodiment 3 of the present invention;

[0043] Figure 4 This is a schematic diagram of the structure of a simulation monitoring system for a web business system provided in Embodiment 4 of the present invention;

[0044] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0045] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

[0046] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0047] The technical solution provided in this invention can run on an execution device with computing and communication capabilities, wherein the execution device is communicatively connected to at least one business system under test. The execution device sends an access request to the business system under test and receives and parses the page data returned by the business system under test.

[0048] The execution device is equipped with business process recording, script playback, and data storage and analysis functions. Maintenance personnel can use the user interface to record business processes, configure monitoring strategies, and set alarm rules on the execution device.

[0049] The business system under test is one that can be accessed through a browser or a simulated browser.

[0050] The technical solution of the present invention will be described in detail below through various embodiments.

[0051] Example 1

[0052] This embodiment provides a simulation monitoring method for a web business system, which can be executed by the aforementioned execution device. See also... Figure 1 The method includes the following steps S101-S107.

[0053] Step S101: Record the business process, which includes business steps.

[0054] In this step, maintenance personnel can access the tested business system by executing the business process recording function deployed on the device, and execute a complete business process according to the business operation sequence. The recording function records the access address, page interaction operations, and returned page data for each business step in the process. A business step refers to an independent and measurable operation step in the business process, such as a login step, a query step, or a submission step. After recording, the device saves the access script for the business process, which includes the access address, operation sequence, and page data for each business step.

[0055] When the recorded business process contains multiple business steps, subsequent steps (S102 to S107) are executed separately for each business step. The processing of each business step is independent of each other, and each generates its own corresponding verification benchmark, response time, and judgment result.

[0056] Step S102: Perform multiple trial accesses on the business process, compare the page data from each trial access, and generate a verification benchmark for the business process based on the comparison results.

[0057] After recording, before formal monitoring begins, the execution device performs multiple trial accesses to the business process, acquiring the page data returned from each trial access. A trial access refers to the process where the execution device sends an access request to the business system under test according to the recorded access script and receives the returned page data. Trial accesses are performed after recording and before formal monitoring begins; their purpose is to collect multiple sample data sets to generate a verification benchmark, not to conduct formal monitoring. The number of trial accesses can be preset by operations personnel based on the characteristics of the business system, typically no less than three times. When the business process includes multiple business steps, multiple trial accesses are performed for each business step, with each step independently acquiring its own sample data.

[0058] The execution device compares the page data from each trial access within the same business process and generates a verification benchmark for that business process based on the comparison results. The verification benchmark is a set of reference data used to determine whether the page data returned by subsequent simulation accesses is normal. It includes the element identifier and verification content of each benchmark element. The verification content includes at least one of text content, image fingerprints, and link addresses.

[0059] Specifically, the page data from each trial access is compared, including: performing structured parsing on the page data from each trial access, comparing elements with the same position and path in the page structure from each trial access one by one; if an element appears in all trials, and the content of the element is the same in all trials, and the position and path of the element in the page structure is the same in all trials, then the element is marked as the baseline element.

[0060] In other words, the execution device receives a set of page data (e.g., an HTML page) for each trial access. The execution device performs structured parsing (e.g., DOM tree parsing) on ​​each set of page data to obtain the page structure for each page. Since the position of the same element in the same business process within the page structure is fixed, the execution device compares elements with the same position path in each page structure one by one. The position path refers to the hierarchical path of the element in the page's document object model tree, used to uniquely determine the element's position in the page structure. If an element simultaneously meets the following three conditions: It appeared in all trial visits; The content of this element is the same in each trial access; If the element's position path within the page structure remains the same across all test visits, it indicates that the element is stable on the page, with fixed content and an unchanging position. The executing device then marks this element as the baseline element. By filtering according to the above three conditions, it can be ensured that elements marked as baseline elements are all stable components of the page, and content that changes with each refresh (such as timestamps, dynamic advertisements, etc.) will not be mistakenly selected as baseline elements.

[0061] Furthermore, the execution device can mark elements that appear in all trial visits but have slightly different content as dynamic elements. When generating the verification benchmark for the business process based on the comparison results, dynamic elements are excluded from the verification benchmark. In other words, some elements appear in all trial visits, but their content is not exactly the same each time, such as timestamps, session identifiers, CAPTCHA images, and carousel ad slots. These elements are dynamic content on the page. If they are included in the verification benchmark, each change in this content during subsequent simulation visits will cause verification failure, resulting in a large number of false alarms. Therefore, the execution device marks these elements as dynamic elements and excludes them from the verification benchmark when generating it. These dynamic elements are no longer verified in subsequent checks. This process eliminates the interference of dynamic content changes on the verification results from the source, avoiding a large number of invalid alarms caused by dynamic content changes. For elements that appear only in some trial visit samples and not in others, the execution device does not mark them and ignores them when generating the verification benchmark.

[0062] After each baseline element is marked, the execution device summarizes the element identifiers and verification content of all baseline elements to generate the verification baseline for this business process. The element identifier uniquely identifies an element and represents its consistent location path within the page structure across all trial accesses. Subsequent verification steps use the element identifier to search for matching elements in the simulated access page data. The verification content is the consistent content of the element across all trial accesses, including at least one of text content, image fingerprints, or link addresses. The execution device stores the generated verification baseline for use in subsequent verification steps.

[0063] At this point, the execution device has completed the automatic generation of the verification benchmark. Through multiple trial accesses to collect samples, comparing and filtering the samples to select benchmark elements, automatically identifying and excluding dynamic elements, and ignoring occasional elements, a verification benchmark that can be directly used for subsequent verification steps is finally generated. The entire process requires no manual intervention, overcoming the shortcomings of existing technologies where the verification benchmark relies on manual configuration and dynamic content leads to false alarms.

[0064] Step S103: Play back the recorded business process. During the playback, simulate access to the business process to obtain the response time of the business process and the page data of the simulated access.

[0065] Once formal monitoring is initiated, the execution device periodically replays the recorded business processes according to a preset monitoring cycle. During the replay, the execution device performs simulated access to the business processes.

[0066] The simulated access refers to the process by which the execution device sends an access request to the tested business system according to the access script recorded in step S101 and receives the returned page data. The simulated access is executed periodically during the formal monitoring phase, with the purpose of real-time monitoring of the availability and performance of the business process. The simulated access and the trial access in step S102 execute the same recorded access script; both are initiated by the execution device, sending access requests to the tested business system and receiving the returned page data. The difference lies in their execution phase and purpose: the trial access is executed after recording but before formal monitoring begins, used to collect multiple sample data sets to generate a verification benchmark; the simulated access is executed periodically during the formal monitoring phase, used to monitor the availability and performance of the business process in real time.

[0067] The execution device records the time elapsed from issuing the simulated access request to fully receiving the page data, which is used as the response time for this business process. This response time is compared with a preset response time threshold in subsequent step S107 to determine whether the response performance of this business process is normal. Simultaneously, the execution device saves the page data returned by this simulated access; this page data is used for page verification based on a verification benchmark in subsequent step S104. Thus, the execution device, through a single simulated access, obtains the response time of this business process and the page data from this simulated access, which are used for performance monitoring and page validity monitoring, respectively.

[0068] In this embodiment, the monitoring period can be preset by the operation and maintenance personnel according to the importance of the business system and the monitoring requirements. For example, it can be set to 1 minute, 5 minutes, or 15 minutes. For business processes with high real-time requirements, such as transaction-related processes, a shorter monitoring period (such as 1 minute) can be set; for business processes with low real-time requirements, such as static display-related processes, a longer monitoring period (such as 15 minutes) can be set.

[0069] Step S104: Verify the page data accessed in the simulation according to the verification benchmark.

[0070] In this step, the execution device uses the verification benchmark generated in step S102 as a reference to verify the page data of this simulated access obtained in step S103, in order to determine whether the page returned by this simulated access is in a normal state. Specifically, the execution device searches for elements in the page data of this simulated access that match the element identifiers of each benchmark element in the verification benchmark. Matching means that the element identifiers are the same. For the found elements, their contents are compared with the verification contents of the corresponding benchmark elements in the verification benchmark. If all benchmark elements in the verification benchmark can be matched with elements in the current page data, and the contents of all found elements are consistent with the verification contents of the corresponding benchmark elements in the verification benchmark, then the verification passes, indicating that the current page is consistent with the benchmark page. The execution device records the response time and continues to the next monitoring cycle. If there are benchmark elements that cannot be matched with elements in the current page data, or if the contents of the found elements are inconsistent with the verification contents of the corresponding benchmark elements in the verification benchmark, then the verification fails, and the execution device proceeds to step S105 for further judgment.

[0071] Step S105: If the verification fails, obtain the retention status and / or distribution status of each benchmark element in the page data accessed in the simulation.

[0072] If step S104 determines that the verification failed, the device retrieves the retention and / or distribution of each benchmark element in the verification benchmark within the page data accessed during this simulation. The retention and distribution information are used in subsequent step S106 to determine whether the difference in the current page is caused by a page redesign or a business anomaly.

[0073] Specifically, the retention status includes the proportion of the number of elements in the simulated accessed page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark. The distribution status includes whether the relative positional relationship between the elements in the simulated accessed page data that match the benchmark elements in the verification benchmark is consistent with the relative positional relationship between the corresponding benchmark elements when the verification benchmark was generated.

[0074] In other words, the execution device first searches the page data accessed in this simulation for elements that match the benchmark elements in the verification benchmark, obtaining a set of successfully matched elements. Based on this, it obtains the following two types of information:

[0075] The first category is retention: the ratio of the number of successfully matched elements to the total number of baseline elements. This ratio reflects the overall retention of baseline elements on the current page. The higher the ratio, the more baseline elements are retained on the current page, and the higher the similarity between the page structure and the baseline page. The lower the ratio, the more baseline elements are missing on the current page, and the page has undergone significant changes.

[0076] The second category is distribution: whether the relative positional relationships between the successfully matched elements are consistent with the relative positional relationships between the corresponding benchmark elements when the verification benchmark was generated; the corresponding benchmark elements refer to those benchmark elements that have the same element identifier as the currently successfully matched elements when the verification benchmark was generated; the relative positional relationship refers to the mutual positional relationship between elements in the page structure, such as element A being above element B, element C and element D being sibling nodes, element E and element F being adjacent, etc., which can be deduced from the positional paths of each element in the page structure; if the relative positional relationships between the successfully matched elements are consistent with the relative positional relationships between the corresponding benchmark elements, it means that the benchmark elements remaining on the current page are consistent with the benchmark page in terms of overall layout; if they are inconsistent, it means that the relative positional relationships between the remaining elements have changed, and the page layout has been substantially adjusted.

[0077] It should be noted that, in specific implementation, the execution device can dynamically determine the retention status and / or distribution status based on the degree of missing reference elements when the verification fails in step S104.

[0078] For example, the degree of missing elements can be measured by the missing ratio, where the missing ratio = number of missing reference elements / total number of reference elements. The total number of reference elements is the total number of reference elements included in the verification reference, which is determined and recorded when the verification reference is generated in step S102. The number of missing reference elements is the number of reference elements for which the execution device, during the verification process in step S104, failed to find a matching element in the page data accessed in this simulation after searching for each reference element according to its element identifier. The ratio of these two is the missing ratio.

[0079] If the missing percentage exceeds the first preset threshold (e.g., 30%), it indicates that the page has undergone a large-scale structural change and a large number of baseline elements no longer exist. At this time, the retention percentage is usually significantly reduced and lower than the preset percentage threshold, and does not meet the retention percentage dimension in the preset conditions. It can be directly determined that the preset conditions are not met without obtaining the distribution situation, thereby avoiding unnecessary page structure parsing and positional relationship calculations and reducing computational overhead.

[0080] If the missing percentage is below the second preset threshold (e.g., 10%), it indicates that the main structure of the page is intact, with only a very few basic elements changed. In this case, the retention rate is above 90%, far exceeding the typical preset threshold (e.g., 50%), thus satisfying the retention rate dimension of the preset conditions. Therefore, only the distribution needs to be obtained to determine whether the preset conditions are met, without needing to repeatedly obtain the retention data, thereby simplifying the judgment process and improving processing efficiency. In other words, when the missing percentage is extremely low, the retention rate naturally meets the retention rate requirement of the preset conditions. The focus of the judgment is whether the distribution relationship is consistent; therefore, only the distribution data needs to be obtained to complete the judgment. If the distribution relationship is consistent, it can be determined that the page has been redesigned; if it is inconsistent, it can be determined that there is a business anomaly.

[0081] If the missing percentage is between the first preset threshold and the second preset threshold (e.g., between 10% and 30%), it indicates that there is a certain range of changes on the page. The retention rate alone is not enough to accurately determine the nature of the changes. In this case, both the retention rate and the distribution rate are obtained simultaneously. By combining the information from both dimensions, the accuracy of the determination result can be ensured.

[0082] Through the aforementioned tiered acquisition strategy, the execution device can dynamically adapt the information acquisition range based on the specific severity of the verification failure: simplifying the processing flow when the change is significant or very minor, and making a comprehensive judgment when the change is moderate, thereby improving monitoring efficiency while ensuring the accuracy of the judgment. The first and second preset thresholds can be pre-configured by maintenance personnel according to the characteristics of the business system.

[0083] It should be noted that the above-described hierarchical acquisition strategy is an optional implementation method and is not intended to limit the present invention. In specific implementations, the execution device may also acquire both retention and distribution information simultaneously, without using the degree of absence as the distinguishing criterion.

[0084] Step S106: Determine whether the preset conditions are met based on the retention status and / or the distribution status; if the preset conditions are met, it is determined that the page has been redesigned and the verification benchmark is adjusted according to the page data accessed in the simulation; if the preset conditions are not met, it is determined that the business is abnormal and an alarm is issued.

[0085] The execution device determines whether preset conditions are met based on the retention and / or distribution information obtained in step S105. These preset conditions include two dimensions: retention ratio and distribution relationship, used to distinguish whether the difference in the current page is caused by a page redesign or a business anomaly. If both dimensions are met, it is determined to be a page redesign; if either dimension is not met, it is determined to be a business anomaly.

[0086] It should be noted that when step S105 only obtains the retention status based on the degree of missing data, if the retention rate does not reach the preset threshold, it is directly determined that the preset condition is not met. When only the distribution status is obtained, since the extremely low missing rate means that the retention rate has far exceeded the preset threshold, the retention rate dimension is naturally satisfied, and it is only necessary to determine whether the distribution relationship is consistent. When both the retention status and the distribution status are obtained simultaneously, the determination is made comprehensively based on the above two dimensions.

[0087] When a page redesign is detected, the execution device adjusts the verification benchmark based on the page data from the current simulation access. Specifically, based on the content of the element in the page data that matches the benchmark element, the verification content of the corresponding benchmark element in the verification benchmark is updated; that is, the content of the element in the current page replaces the verification content of the corresponding benchmark element in the verification benchmark. After the update is completed, subsequent simulation accesses will use the updated verification benchmark for verification. The execution device does not issue an alarm for page redesigns because the redesign itself is an expected change within the business system and does not constitute a business anomaly.

[0088] When a service anomaly is detected, the execution device issues an alarm. See step S107 for alarm method details.

[0089] Step S107: Compare the response time with a preset response time threshold. If the response time exceeds the preset response time threshold, issue a performance alarm.

[0090] The executing device compares the response time of the business process collected in step S103 with a preset response time threshold. The preset response time threshold is a reference value for measuring whether the response performance of a business process is normal. It can be preset by maintenance personnel according to the characteristics of the business system and the service level agreement, for example, it can be set to 3 seconds. This threshold can be configured differently according to the importance of different business processes. Transaction-related processes can have a stricter threshold (e.g., 1 second), while display-related processes can have a more lenient threshold (e.g., 5 seconds) to flexibly adapt to the performance requirements of different business scenarios.

[0091] If the response time does not exceed the preset response time threshold, it indicates that the response performance of this business process is normal, the executing device does not process it, the response time is recorded and monitoring continues.

[0092] If the response time exceeds the preset response time threshold, it indicates that the response time of this business process is too long, which may indicate a performance bottleneck (such as network latency, slow server processing, or time-consuming database queries). The executing device will then issue a performance alarm. Alarm methods include, but are not limited to, sending SMS, email, or system notifications to designated maintenance personnel. The alarm content includes the name of the business process where the anomaly occurred, the anomaly type, and the time of occurrence. Performance alarms and business anomaly alarms in step S106 can use the same alarm channel, or they can be configured with different alarm strategies to allow maintenance personnel to quickly distinguish between business function anomalies and performance issues based on the alarm type, and thus take appropriate measures.

[0093] It should be noted that step S107 is executed in parallel with steps S104 to S106. Steps S104 to S106 verify and judge the page data returned by this simulation access to determine whether there are any anomalies in the page content; step S107 compares the response time of this simulation access with a threshold to determine whether there are any anomalies in the response performance. The former focuses on whether the page is returned correctly, while the latter focuses on whether the response is fast enough. Both assess the operational status of the business process from the dimensions of availability and performance, respectively. Regardless of the page verification result, the executing device performs a comparison of the response time with the threshold. The monitoring results of the two dimensions are independent of each other and do not affect each other, together constituting a comprehensive assessment of the operational status of the business process.

[0094] In summary, this embodiment automatically generates a verification benchmark and excludes dynamic content by recording multiple trial visits, eliminating the need for manual configuration and avoiding false alarms caused by dynamic content. By simulating access to the verification page, it distinguishes between page redesign and business anomalies based on the retention and / or distribution of benchmark elements when verification fails. During redesigns, the benchmark is automatically adjusted to adapt to changes, and alarms are issued promptly in case of anomalies. Simultaneously, the response time is compared with a threshold, and a performance alarm is issued when a timeout occurs. The entire solution requires no manual intervention, solving the problem in existing technologies where the verification benchmark relies on manual configuration and cannot adapt to page changes, thus reducing false alarm rates and operational costs.

[0095] Example 2

[0096] This embodiment optimizes step S104 based on Embodiment 1 described above. See [link / reference] Figure 2 A simulation monitoring method for a web business system includes the following steps S201-S208.

[0097] Step S201: Record the business process steps.

[0098] This step is the same as step S101 in Embodiment 1, and will not be repeated here.

[0099] Step S202: Perform multiple trial accesses on the business process, compare the page data from each trial access, and generate a verification benchmark for the business process based on the comparison results.

[0100] This step is the same as step S102 in Embodiment 1, and will not be repeated here.

[0101] Step S203: Play back the recorded business process. During the playback, simulate access to the business process to obtain the response time of the business process and the page data of the simulated access.

[0102] This step is the same as step S103 in Embodiment 1, and will not be repeated here.

[0103] Step S204: Find the element that matches the element identifier of each benchmark element in the verification benchmark from the page data accessed in the simulation.

[0104] The execution device obtains the element identifiers of each benchmark element in the verification benchmark, and searches for elements that match each element identifier in the page data returned by this simulation access. Matching means that the element identifiers are the same. For example, if the element identifier of a benchmark element is " / html / body / div[1] / form / input[1]" (that is, the XPath path of the username input box in the DOM tree), the execution device searches for elements with the same XPath path in the page data.

[0105] If the execution device finds an element with the same element identifier as a certain reference element in the current page data, the reference element will still remain in the current page, and the execution device will record the found element for subsequent step S205 to perform content comparison.

[0106] If the execution device fails to find an element with the same element identifier as a reference element in the current page data, then the reference element is missing in the current page. This indicates that the current page has undergone structural changes relative to the reference page, resulting in the reference element no longer existing. In this case, no further content comparison is needed. The execution device marks the reference element as missing to internally record the status information that no matching element was found in the page data accessed in this simulation.

[0107] Step S205: Compare the content of the found element with the verification content of the corresponding benchmark element in the verification benchmark to perform verification.

[0108] For each element found in step S204, the execution device acquires the content of that element and compares it with the verification content of the corresponding reference element in the verification reference. The corresponding reference element refers to the reference element in the verification reference whose element identifier is the same as that of the found element.

[0109] The comparison method depends on the type of element: If it is a text element (such as a button, title, input box tooltip, etc.), the text content is compared to the verification content of the corresponding benchmark element in the verification benchmark; if it is an image element, the image fingerprint is compared to the verification content of the corresponding benchmark element in the verification benchmark (the similarity of image fingerprints can be considered the same within the preset tolerance range to tolerate non-substantial changes such as compression and scaling); if it is a link element, the link address is compared to the verification content of the corresponding benchmark element in the verification benchmark.

[0110] If the device comparison finds that the content of the found element is the same as the verification content of the corresponding benchmark element in the verification benchmark, then the content verification of the benchmark element passes.

[0111] If the execution device finds that the content of the found element is inconsistent with the verification content of the corresponding benchmark element in the verification benchmark, then although the benchmark element remains on the page, its content has changed (for example, the text of the login button changes from "Login" to "Login Now"). In this case, the execution device marks the benchmark element as having changed content, so as to internally record the status information that the content of the benchmark element is inconsistent with the verification benchmark.

[0112] Verification failure criteria: If the benchmark element does not have a matching element in the simulated page data, or if the content of the matched element is inconsistent with the verification content of the corresponding benchmark element in the verification benchmark, then the verification fails.

[0113] In other words, the execution device will determine that the verification has failed if either of the following two situations occurs:

[0114] Scenario 1 (Missing Element): At least one benchmark element in the verification benchmark cannot be found to have a matching element in the page data accessed in this simulation;

[0115] Scenario 2 (Content Change): At least one benchmark element in the verification benchmark is matched with a matching element in the current page data, but the content of the matching element is inconsistent with the verification content of the corresponding benchmark element in the verification benchmark.

[0116] The two scenarios described above cover all possible abnormal states of a baseline element on this page—either the element itself is missing (missing), or the element exists but its content has changed (changed). The validation passes when neither of these two scenarios applies to any baseline element, meaning that a matching element can be found in the data for all baseline elements on this page, and the content of all found elements matches the validation content of the corresponding baseline element in the validation baseline.

[0117] If the verification passes, it means that the page returned by this simulation access is consistent with the baseline page, and the page content has not changed in any substantial way. The executing device records the response time and continues to the next monitoring cycle.

[0118] If the verification fails, it indicates that there is a difference between the page returned by this simulation access and the benchmark page. The device will then proceed to step S206, and subsequent steps will be used to further determine whether the difference is due to a page redesign or a business anomaly.

[0119] Step S206: If the verification fails, obtain the retention status and / or distribution status of each benchmark element in the page data accessed in the simulation.

[0120] This step is the same as step S105 in Embodiment 1, and will not be repeated here.

[0121] Step S207: Determine whether the preset conditions are met based on the retention status and / or the distribution status. If the preset conditions are met, it is determined that the page has been redesigned and the verification benchmark is adjusted according to the page data accessed in the simulation. If the preset conditions are not met, it is determined that the business is abnormal and an alarm is issued.

[0122] This step is the same as step S106 in Embodiment 1, and will not be repeated here.

[0123] Step S208: Compare the response time with a preset response time threshold. If the response time exceeds the preset response time threshold, issue a performance alarm.

[0124] This step is the same as step S107 in Embodiment 1, and will not be repeated here.

[0125] In summary, this embodiment uses element identifier matching and content verification to detect whether the baseline element remains on the page and whether the content after its retention is consistent, accurately identifying two types of differences between the current page and the baseline page—missing elements and content changes. Both types of differences are used as conditions for verification failure, ensuring that subsequent page redesigns and business anomalies can be distinguished based on complete difference information.

[0126] Example 3

[0127] This embodiment, based on Embodiment 1 above, refines the retention and / or distribution conditions in step S105 and the preset conditions in step S106. See [link to previous embodiment]. Figure 3 A simulation monitoring method for a web business system includes the following steps S301-S309.

[0128] Step S301: Record the business process, which includes business steps.

[0129] This step is the same as step S101 in Embodiment 1, and will not be repeated here.

[0130] Step S302: Perform multiple trial accesses on the business process, compare the page data from each trial access, and generate a verification benchmark for the business process based on the comparison results.

[0131] This step is the same as step S102 in Embodiment 1, and will not be repeated here.

[0132] Step S303: Play back the recorded business process. During the playback, simulate access to the business process to obtain the response time of the business process and the page data of the simulated access.

[0133] This step is the same as step S103 in Embodiment 1, and will not be repeated here.

[0134] Step S304: Verify the page data accessed in the simulation according to the verification benchmark.

[0135] This step is the same as step S104 in Embodiment 1, and will not be repeated here.

[0136] Step S305: If the verification fails, obtain the retention status and / or distribution status of each benchmark element in the page data accessed in the simulation: the proportion of matching elements and / or the consistency judgment of the relative positional relationship between matching elements.

[0137] If the verification fails, the device retrieves the retention and / or distribution of each benchmark element in the page data accessed during the simulation. The retention and distribution information are used in subsequent steps to determine whether the difference in the current page is caused by a page redesign or a business anomaly.

[0138] Specifically, the retention status includes the proportion of the number of elements in the simulated accessed page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark. The distribution status includes whether the relative positional relationship between the elements in the simulated accessed page data that match the benchmark elements in the verification benchmark is consistent with the relative positional relationship between the corresponding benchmark elements when the verification benchmark was generated.

[0139] In other words, the execution device first searches the page data accessed in this simulation for elements that match the benchmark elements in the verification benchmark, thus obtaining a set of successfully matched elements. A match means that the element identifiers are the same (see Example 2). Based on this, the execution device obtains the following two types of information:

[0140] The first category is retention: this refers to the proportion of successfully matched elements out of the total number of baseline elements. This proportion reflects the overall retention rate of baseline elements on the current page. A higher proportion indicates that more baseline elements are retained on the current page, and the page structure is more similar to the baseline page; a lower proportion indicates that more baseline elements are missing from the current page, and the page has undergone significant changes. For example, if the validation baseline contains 10 baseline elements, and 7 are successfully matched in the page data accessed in this simulation, then the retention rate is 7 / 10 = 70%.

[0141] The second category is distribution: whether the relative positional relationships between the successfully matched elements are consistent with the relative positional relationships between the corresponding benchmark elements when the verification benchmark was generated. The corresponding benchmark elements refer to those benchmark elements that share the same element identifier as the currently successfully matched elements when the verification benchmark was generated. The relative positional relationship refers to the mutual positional relationship between elements in the page structure, such as element A being above element B, element C and element D being sibling nodes, element E and element F being adjacent, etc. The execution device can deduce the above relative positional relationships from the positional paths of each element in the page structure. If the relative positional relationships between the successfully matched elements are consistent with the relative positional relationships between the corresponding benchmark elements, it indicates that the benchmark elements remaining on the current page maintain consistency with the benchmark page in terms of overall layout; if they are inconsistent, it indicates that the relative positional relationships between the remaining elements have changed, and the page layout has been substantially adjusted.

[0142] Step S306: Determine whether the preset conditions are met based on the retention status and / or the distribution status: whether the retention ratio meets the standard and whether the distribution relationship is consistent. If the preset conditions are met, proceed to step S307; if the preset conditions are not met, proceed to step S308.

[0143] In step S306, the executing device determines whether the preset conditions are met based on the retention and / or distribution information obtained in step S305. These preset conditions are used to distinguish whether the differences in the current page are due to a normal release of the business system or a business anomaly caused by a business system malfunction.

[0144] Specifically, the preset conditions are: the proportion of the number of elements in the simulated access page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark reaches a preset proportion threshold; and the relative positional relationship between the matching elements is consistent with the relative positional relationship between the corresponding benchmark elements when the verification benchmark was generated.

[0145] In other words, the preset conditions include the following two judgment dimensions, and both dimensions must be satisfied simultaneously:

[0146] Retention Rate Meets Standard (Dimension 1): The retention rate obtained in step S305 reaches a preset threshold. This preset threshold is a configurable value that can be pre-set by operations and maintenance personnel based on the characteristics of the business system; a typical value is 50%. That is, more than half of the baseline elements can still be found on the current page. This condition ensures that a sufficient number of baseline elements are retained on the current page, indicating that the current page and the baseline page have a high degree of similarity in their main structure, rather than becoming completely different pages.

[0147] Consistent Distribution (Dimension Two): The distribution obtained in step S305 is consistent, meaning that the relative positional relationships between the baseline elements remaining on the current page are consistent with the relative positional relationships between the corresponding baseline elements when the verification baseline was generated. This condition is used to confirm that the layout structure of the remaining baseline elements on the page has not undergone substantial changes.

[0148] It should be noted that when step S305 only obtains the retention status based on the degree of missing data, if the retention rate does not reach the preset threshold, it is directly determined that the preset condition is not met. When only the distribution status is obtained, since the extremely low missing rate means that the retention rate has far exceeded the preset threshold, the retention rate dimension is naturally satisfied, and it is only necessary to determine whether the distribution relationship is consistent. When both the retention status and the distribution status are obtained simultaneously, the determination is made comprehensively based on the above two dimensions.

[0149] Step S307: Determine if the page has been redesigned and adjust the verification benchmark based on the page data accessed in the simulation.

[0150] When both of the above dimensions are met simultaneously, the executing device determines that the preset conditions are met. This means that most of the baseline elements on the current page still exist (the retention rate meets the standard), and the relative positional relationship between these remaining elements is consistent with the baseline. This indicates that the main structure and layout of the current page have not fundamentally changed, and the page differences mainly stem from normal updates of local content. This is a typical characteristic of page redesigns caused by normal releases of business systems. Therefore, the executing device determines that the page has been redesigned.

[0151] Upon determining that a page has been redesigned, the execution device adjusts the verification benchmark based on the page data from the current simulation access. Specifically, it updates the verification content of the corresponding benchmark element in the verification benchmark based on the content of the element in the page data that matches the benchmark element. In other words, the execution device does not directly discard the old verification benchmark, but updates it element-by-element in a targeted manner. The execution device retrieves the current content of the element matching each benchmark element from the page data of the current simulation access and replaces the verification content of the corresponding benchmark element in the verification benchmark with this current content. For example, if the text of the login button changes from "Login" to "Login Now," the execution device updates the verification content of the benchmark element corresponding to that button in the verification benchmark from "Login" to "Login Now." After the update, subsequent simulation accesses will use the updated verification benchmark for verification. The execution device does not issue an alarm for page redesigns because the redesign itself is an expected change within the business system and does not constitute a business anomaly.

[0152] Step S308: Determine if the service is abnormal and issue an alarm.

[0153] If either of the above two dimensions is not met (i.e., the retention rate does not reach the preset threshold, or the distribution is inconsistent), the executing device determines that the preset conditions are not met. This means that a large number of baseline elements on the current page are missing (retention rate not meeting the standard), or the relative positional relationship between the remaining elements has changed (inconsistent distribution), indicating that a serious structural change has occurred between the current page and the baseline page. This is usually an unexpected change caused by a business system failure (such as service unavailability, page errors, data loading failures, etc.). Therefore, the executing device determines it as a business anomaly and issues an alarm.

[0154] Step S309: Compare the response time with a preset response time threshold. If the response time exceeds the preset response time threshold, issue a performance alarm.

[0155] This step is the same as step S107 in Embodiment 1, and will not be repeated here.

[0156] To more clearly illustrate the determination logic of the embodiments of the present invention, the following examples are provided in conjunction with two specific application scenarios.

[0157] Application Scenario 1: Page redesign.

[0158] Taking the login process of an e-commerce system as an example, after recording, the execution device generates a verification baseline for the login page through five trial accesses. This baseline contains three baseline elements: a username input field (element A), a password input field (element B), and a login button (element C). The relative positions of the three baseline elements are: A is above B, B is above C, and they are arranged sequentially from top to bottom. The preset percentage threshold is set to 50%.

[0159] After a system release, the login button text on the login page was changed from "Login" to "Login Now." However, elements A, B, and C all exist on the page, and their relative positions (A above B, B above C) match the baseline. At this point: the retention rate is 3 / 3 = 100%, reaching the preset threshold (50%); the distribution is consistent with the baseline. Since both dimensions are satisfied, the executing device determines it as a page redesign and automatically updates the verification content of the login button (element C) in the baseline from "Login" to "Login Now," without triggering an alarm.

[0160] Application Scenario 2: Business Anomalies.

[0161] Taking the login process as an example again, a system failure caused the login page to return a 500 error page, and elements A, B, and C could not be found. At this time: the retention rate = 0 / 3 = 0%, which does not reach the preset threshold (50%); the distribution conditions are also not met. The executing device judges this as a business anomaly and issues an alarm.

[0162] By comprehensively judging from the above two dimensions: the retention rate ensures that the main structure of the page has not undergone fundamental changes, and the distribution relationship ensures that the page layout has not undergone substantial adjustments, this embodiment can accurately distinguish between page changes of two different natures: "page redesign" and "business anomaly". It takes corresponding measures to automatically adjust the verification benchmark and issue alarms respectively, avoiding the misjudgment of page redesign as business anomaly and triggering invalid alarms, and also avoiding the misjudgment of business anomaly as page redesign and incorrect updating of the verification benchmark.

[0163] In summary, this embodiment accurately distinguishes between page redesign and business anomalies by comprehensively judging two dimensions: retention rate and distribution relationship. When the retention rate meets the standard and the distribution relationship is consistent, it is determined to be a page redesign and the verification benchmark is automatically adjusted. When either condition is not met, it is determined to be a business anomaly and an alarm is issued. This avoids false alarms caused by page redesign and prevents incorrect updates to the verification benchmark when there is a business anomaly, thus improving the accuracy and reliability of monitoring.

[0164] Example 4

[0165] This embodiment provides a simulation monitoring system for a web business system. This system can be deployed on an execution device to perform the simulation monitoring method for the web business system described in this embodiment. The system can be implemented in software and / or hardware. See also... Figure 4 The system specifically includes the following modules:

[0166] Recording module 401 is used to record business processes, which include business steps;

[0167] The benchmark generation module 402 is used to generate a verification benchmark for the business process by comparing the page data of each trial access after multiple trial accesses.

[0168] The playback module 403 is used to play back the recorded business process. During the playback, it simulates access to the business process and obtains the response time of the business process and the page data of the simulated access.

[0169] The verification module 404 is used to verify the page data accessed in the simulation according to the verification benchmark.

[0170] The determination module 405 is used to obtain the retention status and / or distribution status of each benchmark element in the page data accessed in the simulation when the verification module 404 fails to verify; determine whether the preset conditions are met based on the retention status and / or the distribution status; if the preset conditions are met, it is determined that the page has been redesigned and the verification benchmark is adjusted according to the page data accessed in the simulation; if the preset conditions are not met, it is determined that the business is abnormal and an alarm is issued.

[0171] The alarm module 406 is used to compare the response time with a preset response time threshold. If the response time exceeds the preset response time threshold, a performance alarm is issued.

[0172] For example, the benchmark generation module 402 is specifically used for:

[0173] The page data from each trial access is parsed in a structured manner, and elements in the same position and path in the page structure from each trial access are compared one by one.

[0174] If an element appears in all trial visits, and the content of the element is the same in all trial visits, and the position path of the element in the page structure is the same in all trial visits, then the element is marked as the baseline element.

[0175] Optionally, the benchmark generation module 402 is further configured to: mark elements that appear in each trial access but whose content is not completely the same as dynamic elements; and exclude the dynamic elements from the verification benchmark when generating the verification benchmark of the business process based on the comparison results.

[0176] For example, the verification module 404 is specifically used for:

[0177] Find the element whose identifier matches the element identifier of each benchmark element in the verification benchmark from the page data accessed in the simulation;

[0178] The content of the found element is compared with the verification content of the corresponding benchmark element in the verification benchmark.

[0179] If no matching element is found in the simulated page data for the benchmark element, or if the content of the found element is inconsistent with the verification content of the corresponding benchmark element in the verification benchmark, then the verification fails.

[0180] Typically, the retention status includes: the proportion of the number of elements in the simulated access page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark;

[0181] The distribution includes: the relative positional relationship between elements in the simulated page data that match the benchmark elements in the verification benchmark, and whether the relative positional relationship between the corresponding benchmark elements when the verification benchmark was generated is consistent with that of the benchmark elements.

[0182] The preset conditions are: the proportion of the number of elements in the simulated page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark reaches a preset proportion threshold; and the relative positional relationship between the matching elements is consistent with the relative positional relationship between the corresponding benchmark elements when the verification benchmark was generated.

[0183] For example, the determination module 405 is specifically used to: update the verification content of the corresponding benchmark element in the verification benchmark based on the content of the element that matches the benchmark element in the page data accessed in the simulation.

[0184] The simulation monitoring system for the Web business system in this embodiment can implement the simulation monitoring method for the Web business system described in any of the foregoing embodiments. Its implementation principle and corresponding technical effects are basically the same, and will not be repeated here.

[0185] Figure 5 This is a schematic diagram of the structure of an embodiment of the electronic device of the present invention, which can implement the process of the embodiment of the method of the present invention, such as... Figure 5 As shown, the aforementioned electronic device may include: a housing 51, a processor 52, a memory 53, a circuit board 54, and a power supply circuit 55. The circuit board 54 is disposed inside the space enclosed by the housing 51, and the processor 52 and the memory 53 are disposed on the circuit board 54. The power supply circuit 55 is used to supply power to the various circuits or devices of the aforementioned electronic device. The memory 53 is used to store executable program code. The processor 52 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 53, for executing the simulation monitoring method of the Web business system described in any of the foregoing embodiments.

[0186] For details on the specific execution process of the above steps by the processor 52 and the steps further executed by the processor 52 by running executable program code, please refer to the description of the method embodiments of the present invention, which will not be repeated here.

[0187] This electronic device exists in various forms, including but not limited to:

[0188] (1) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0189] (2) Other electronic devices with data processing and communication functions.

[0190] Furthermore, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the simulation monitoring method for the Web business system described in the foregoing embodiments.

[0191] It should be noted that in this article, relational terms such as "first" and "second" are only used to refer to...

[0192] Distinguishing one entity or operation from another does not necessarily require or imply these distinctions.

[0193] There is no such actual relationship or order between entities or operations. Furthermore, the terms "including" and "package" do not apply.

[0194] The word "comprise" or any other variation thereof is 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 limitation, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0195] In this embodiment of the invention, the term "and / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.

[0196] The various embodiments in this specification are described in a related manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

[0197] In particular, the device embodiment is basically similar to the method embodiment, so the description is relatively simple. For relevant details, please refer to the description of the method embodiment.

[0198] For ease of description, the above apparatus is described by dividing it into various functional units / modules. Of course, in implementing this invention, the functions of each unit / module can be implemented in one or more software and / or hardware.

[0199] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0200] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A simulation monitoring method for a web business system, characterized in that, include: Record the business process, which includes business steps; The business process is accessed multiple times, and the page data from each access is compared to generate a verification benchmark for the business process. Play back the recorded business process, simulate access to the business steps during the playback process, and obtain the response time of the business steps and the page data of the simulated access. The page data accessed in the simulation is verified according to the verification benchmark. If the verification fails, the retention and / or distribution of each benchmark element in the verification benchmark in the page data accessed in the simulation are obtained. Based on the retention status and / or the distribution status, determine whether the preset conditions are met. If the preset conditions are met, it is determined that the page has been redesigned and the verification benchmark is adjusted according to the page data accessed in the simulation. If the preset conditions are not met, it is determined that the business is abnormal and an alarm is issued. The response time is compared with a preset response time threshold. If the response time exceeds the preset response time threshold, a performance alarm is issued.

2. The method according to claim 1, characterized in that, The comparison of page data from each trial access includes: The page data from each trial access is parsed in a structured manner, and elements in the same position and path in the page structure from each trial access are compared one by one. If an element appears in all trial visits, and the content of the element is the same in all trial visits, and the position path of the element in the page structure is the same in all trial visits, then the element is marked as the baseline element.

3. The method according to claim 2, characterized in that, Also includes: Elements that appear in all trial visits but have different content are marked as dynamic elements; When generating the verification benchmark for the business process based on the comparison results, the dynamic element is excluded from the verification benchmark.

4. The method according to claim 1, characterized in that, The step of verifying the page data accessed in the simulation based on the verification benchmark includes: Find the element whose identifier matches the element identifier of each benchmark element in the verification benchmark from the page data accessed in the simulation; The content of the found element is compared with the verification content of the corresponding benchmark element in the verification benchmark. If no matching element is found in the simulated page data for the benchmark element, or if the content of the found element is inconsistent with the verification content of the corresponding benchmark element in the verification benchmark, then the verification fails.

5. The method according to claim 1, characterized in that, The retention status includes: the proportion of the number of elements in the simulated access page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark; The distribution includes: the relative positional relationship between elements in the simulated page data that match the benchmark elements in the verification benchmark, and whether the relative positional relationship between the corresponding benchmark elements when the verification benchmark was generated is consistent with that of the benchmark elements.

6. The method according to claim 5, characterized in that, The preset conditions are: The proportion of the number of elements in the simulated page data that match the benchmark elements in the verification benchmark to the total number of benchmark elements in the verification benchmark reaches a preset proportion threshold. as well as The relative positional relationship between the matching elements is consistent with the relative positional relationship between the corresponding reference elements when the verification reference was generated.

7. The method according to claim 1, characterized in that, Adjusting the verification benchmark based on the page data accessed in the simulation includes: Based on the content of the element in the simulated page data that matches the baseline element, update the verification content of the corresponding baseline element in the verification baseline.

8. A simulation monitoring system for a web business system, characterized in that, include: The recording module is used to record business processes, which include business steps. The benchmark generation module is used to generate a verification benchmark for the business process by comparing the page data of each trial access after multiple trial accesses. The playback module is used to replay the recorded business process. During the playback, the business process is simulated and accessed to obtain the response time of the business process and the page data of the simulated access. The verification module is used to verify the page data accessed in the simulation based on the verification benchmark. The determination module is used to obtain the retention status and / or distribution status of each benchmark element in the verification benchmark in the simulated access page data when the verification module fails; determine whether the preset conditions are met based on the retention status and / or the distribution status; if the preset conditions are met, it is determined that the page has been redesigned and the verification benchmark is adjusted according to the simulated access page data; if the preset conditions are not met, it is determined that the business is abnormal and an alarm is issued. The alarm module is used to compare the response time with a preset response time threshold. If the response time exceeds the preset response time threshold, a performance alarm is issued.

9. An electronic device, characterized in that, The electronic device includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the method described in any one of claims 1-7 above.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs that can be executed by one or more processors to implement the method described in any one of claims 1-7.