A service scenario coverage measurement method, system and computer program product

By building a full business scenario library and matching database records in real time, the problem of inaccurate scenario measurement for long-link and asynchronous links under the microservice architecture was solved, achieving accurate measurement of business scenario coverage and improved timeliness.

CN123138111APending Publication Date: 2026-11-20ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611258919.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In a microservice architecture, existing scenario measurement solutions suffer from issues such as easy breakage and inaccurate measurement in long-chain and asynchronous links, making it difficult to accurately measure the coverage of business scenarios.

Method used

By constructing a business feature field value combination mapping based on the business data table to the full business scenario library, the data change flow of the business database is obtained, feature field values ​​are extracted and matched with the scenario library to determine the hit business scenario, calculate coverage, bypass the high complexity of cross-service log tracing, and use database records for real-time matching.

Benefits of technology

It achieves complete and accurate coverage measurement for long-link and asynchronous link business scenarios, improves the accuracy and timeliness of coverage measurement, and eliminates the problem of ambiguous scenario attribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138111A_ABST
    Figure CN123138111A_ABST
Patent Text Reader

Abstract

Embodiments of the present specification provide a business scenario coverage measurement method, system and computer program product. The method comprises: based on the business data table corresponding to the target application, mapping the value combination of the business feature field with business semantics to a business scenario to construct a full-amount business scenario library; obtaining the data change stream of the business database corresponding to the target application; extracting the business feature field value from the record of the data change stream and matching it with the full-amount business scenario library to determine the hit business scenario; and determining the business scenario coverage of the target application according to the number of hit business scenarios and the number of business scenarios in the full-amount business scenario library. The present scheme maps the database feature field combination, bypasses the complexity of cross-service log tracking, and realizes complete and accurate coverage measurement of long-link and asynchronous link business scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification relate to the field of software testing and measurement technology, specifically to a business scenario coverage measurement method, system, and computer program product. Background Technology

[0002] In software development and quality assurance, coverage metrics are a key means of evaluating test adequacy. Code coverage is the most well-known metric, reflecting test completeness by calculating the percentage of executed code within the total code. However, code coverage only reflects whether code has been run and cannot directly correlate with coverage of specific business scenarios. For example, multiple different business scenarios may share the same code logic, leading to the risk of incomplete coverage of business scenarios even with high code coverage. Therefore, the concept of business scenario coverage was introduced. This concept defines test coverage through a business dimension, more directly reflecting the extent to which tests cover actual business requirements.

[0003] Currently, scenario coverage measurement solutions are mainly divided into two categories: those based on interface logs and those based on front-end event tracking. Solutions based on interface logs collect the input and output parameters of each server-side interface, exhaustively combining these parameters to define scenarios. Solutions based on front-end event tracking deploy behavioral event tracking at the user interface layer, collecting user action logs and defining and measuring business scenario coverage based on user behavior sequences.

[0004] In the context of widespread adoption of microservice architecture and asynchronous message-driven approaches, a complete business operation often involves synchronous and asynchronous call chains across multiple services. For measurement solutions based on interface logs, the input and output parameters of a single interface serve as the dimension for scenario description, and the correlation between scenarios between interfaces relies on distributed tracing technology. However, tracing asynchronous call chains is costly and its completeness is difficult to guarantee, making this solution often ineffective in reflecting the complete end-to-end business scenario. It is prone to tracing breakage issues in long-chain or multi-asynchronous-chain scenarios. For measurement solutions based on front-end event tracking, they can only capture user actions at the interface level, leaving blind spots in coverage of business logic that triggers asynchronous backend processing, generally resulting in insufficient backend logic coverage.

[0005] Overcoming the problem of easy breakage in long-chain and asynchronous link tracing under microservice architecture, and achieving accurate measurement of business scenario coverage, is a technical problem that urgently needs to be solved. Summary of the Invention

[0006] The purpose of the embodiments in this specification is to provide a business scenario coverage measurement method, system, and computer program product, which aims to solve the technical problems of existing scenario measurement schemes being prone to tracking breakage and inaccurate measurement under long links and asynchronous links.

[0007] According to a first aspect of the embodiments of this specification, a method for measuring business scenario coverage is provided, comprising: mapping the value combinations of business feature fields with business semantics to business scenarios based on a business data table corresponding to a target application, and constructing a full business scenario library; obtaining a data change stream of the business database corresponding to the target application; extracting the values ​​of business feature fields from the records of the data change stream, and matching the extracted business feature field values ​​with the full business scenario library to determine the hit business scenarios; and determining the business scenario coverage of the target application based on the number of hit business scenarios and the number of business scenarios in the full business scenario library.

[0008] The business feature fields refer to fields in the database table that have clear business meanings and are used to describe business states or dimensions. By mapping the combinations of values ​​of business feature fields to business scenarios, each business scenario can uniquely correspond to a set of feature field values.

[0009] According to a second aspect of the embodiments of this specification, a business scenario coverage measurement system is provided, comprising: a scenario library construction unit, configured to map the value combinations of business feature fields with business semantics to business scenarios based on a business data table corresponding to a target application, thereby constructing a full business scenario library; a data acquisition unit, configured to acquire data change streams of the business database corresponding to the target application; a scenario matching unit, configured to extract business feature field values ​​from the records of the data change stream, and match the extracted business feature field values ​​with the full business scenario library to determine the hit business scenarios; and a coverage calculation unit, configured to determine the business scenario coverage of the target application based on the number of hit business scenarios and the number of business scenarios in the full business scenario library.

[0010] According to a third aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the method as described in the first aspect.

[0011] The technical solution provided in the embodiments of this specification constructs a full business scenario library by mapping the combination of business feature field values ​​in the business data table corresponding to the target application. Since the final state of the business operation must be stored in the database field, regardless of how many service nodes or asynchronous message transmissions are involved, feature combination mapping at the database record level can bypass the high complexity of cross-service log tracing, thereby achieving complete and accurate coverage measurement of long-link and asynchronous link business scenarios.

[0012] Furthermore, by acquiring the data change stream of the business database corresponding to the target application and extracting the values ​​of business feature fields for real-time matching, the scenario hit determination has clear database records as evidence because the data change stream faithfully records the materialized manifestation of business events. This eliminates the ambiguity of scenario attribution that may arise from interface call statistics, and further improves the accuracy and timeliness of coverage measurement. Attached Figure Description

[0013] Figure 1 This is a system architecture diagram of a scene coverage measurement provided in the embodiments of this specification.

[0014] Figure 2 This is the main flowchart of a business scenario coverage measurement method provided in the embodiments of this specification.

[0015] Figure 3 This is a schematic diagram of scene feature definition and model construction provided in the embodiments of this specification.

[0016] Figure 4 This is a timing diagram for log collection and data synchronization provided in the embodiments of this specification.

[0017] Figure 5 This is a schematic diagram of the module structure of a business scenario coverage measurement system provided in the embodiments of this specification.

[0018] Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in the embodiments of this specification. Detailed Implementation

[0019] In the field of software development and quality assurance, business scenario coverage measurement is a key means of evaluating the adequacy of testing. With the widespread application of microservice architecture and asynchronous message-driven systems, a complete business operation often involves the sequential or parallel invocation of multiple services, forming a long business chain. The business scenario coverage measurement method provided in the embodiments of this specification can be deployed in a distributed computing environment for end-to-end coverage measurement of long-chain and asynchronous business scenarios.

[0020] Before introducing specific embodiments, the key terms and technical abbreviations involved in the embodiments of this specification will be briefly explained.

[0021] CDC (Change Data Capture) is a technology that captures data insertion, update, and deletion operations in real time by listening to the database transaction log.

[0022] Business characteristic fields: These are fields in a database table that have a clear business meaning and are used to describe the business status or business dimension, such as product type fields, transaction method fields, and account status fields.

[0023] The full business scenario library refers to the collection of all valid business scenarios defined by the combination of values ​​of business feature fields, which serves as the denominator benchmark in coverage metrics.

[0024] Data change stream: refers to the ordered sequence of data change events generated during the operation of a business database, which can usually be obtained through CDC technology.

[0025] Software release cycle identifier: This is a unique identifier used to identify the release cycle of a software version, such as version number or iteration number.

[0026] Environment identification: This is a labeling information used to distinguish different operating environments, such as pre-release environment, grayscale environment, and production environment.

[0027] Traffic switching progress: refers to the proportion of online traffic that the new version gradually takes over during the canary release process.

[0028] Covered scenario set: refers to the set of business scenarios that are hit by at least one data change record within a specific statistical period.

[0029] The system deployment architecture applicable to the embodiments of this specification is described below with reference to the accompanying drawings.

[0030] like Figure 1 As shown in the embodiments of this specification, the business scenario coverage measurement scheme has an overall system architecture divided into four functional layers: data access layer, scenario modeling layer, real-time monitoring layer, and scenario preservation layer.

[0031] The data access layer is responsible for the collection and backflow of raw logs and data. Data generated by multiple business systems is aggregated through different channels: offline data and database data are directly written to the data warehouse; application logs can be accessed by the log backflow pipeline or by the data warehouse synchronization task. This layer provides a unified data foundation for subsequent scenario modeling and real-time monitoring.

[0032] The scenario modeling layer constitutes the denominator side of the scenario calculation, responsible for building a static scenario standard library. This layer uses expert experience and database lineage analysis (including database scenario key feature analysis and log key field extraction) as input sources. After a feature selection phase, it filters out feature fields with business-discriminating characteristics, and then transforms these feature fields into matching structured descriptions through feature extraction and mapping. Simultaneously, the database scenario modeling phase organizes business status data from the database into scenario records. Through feature mapping tasks and scheduling, it ultimately produces a complete set of scenario data and stores it in the business scenario library. This business scenario library serves as the denominator for subsequent coverage calculations and can be visualized through the scenario library data display module.

[0033] The real-time monitoring layer constitutes the scene's molecular side, responsible for the real-time analysis and comparison of online traffic. User operations generate two real-time data streams through the business system (distinguishing between gray-scale and production environments): one is real-time log data, which extracts environment / iteration keywords after parsing log parameters; the other is real-time database data, which is parsed using real-time stream processing (e.g., Apache Flink) to extract database feature data and is transformed into structured features through feature extraction and mapping tasks. The two data streams converge to an iteration-driven periodic task, which, after minute-level scheduling and execution, completes the comparison in the scene matching and traffic matching stages. The scene matching stage also relies on the full set of scene data (connected by dotted lines) produced by the scene modeling layer to match real-time traffic with a standard scene library. The matching results ultimately produce core indicators such as full scene coverage, core scene coverage, and accurate traffic for the new iteration, which are presented through the scene coverage data display module.

[0034] The scenario preservation layer spans the bottom of the entire architecture and is responsible for the automated mining of new scenario features. When a business system adds new scenario features, this layer automatically evaluates the impact of the new features on the business scenario coverage through feature extraction and mapping, automatic mining and output, and new scenario matching, and incorporates them into the business scenario library for continuous updates.

[0035] Figure 1 The system architecture demonstrated embodies a dual-track parallel processing mechanism involving both the denominator and numerator sides for scenario segmentation. The denominator side constructs a comprehensive business scenario library through expert experience and database lineage analysis, while the numerator side performs scenario matching through dual-stream processing of real-time logs and real-time database data. The outputs from these two tracks converge at the scenario matching and traffic matching stages, completing the dynamic calculation and output of coverage.

[0036] In the overall solution of the embodiments in this specification, by modeling business scenarios and extracting and mapping features, the originally discrete analysis steps are integrated into an automated scenario coverage analysis pipeline, significantly improving the processing efficiency of the entire process from data collection to scenario insight. Specific outputs cover the following four key dimensions: business dimension, namely, full-scale scenario topology definition, producing a full-scale business scenario library; iteration dimension, namely, achieving minute-level output of full-scale scenario coverage and core scenario coverage statistics for new iterations; time dimension, namely, minute-level dynamic tracking of scenario traffic change trends; and traffic dimension, namely, real-time output of accurate traffic hit results for new iterations through real-time processing tasks. These multi-dimensional outputs provide data-driven decision-making and visualized dashboard data for subsequent business evaluation decisions, test regression strategies, and traffic diversion.

[0037] In terms of intelligent parsing of log keywords, the system uses regular expressions and semantic parsing technology to automatically extract core business feature fields from logs, including key information such as software release cycle identifiers and environment identifiers, realizing the automatic conversion from unstructured logs to structured feature data.

[0038] Regarding log collection and feedback, the system has established a complete data channel from application logs to the offline data warehouse, ensuring continuous and stable access to raw logs and providing a data foundation for subsequent log parsing and feature extraction.

[0039] As can be seen, the embodiments in this specification construct a complete standardized analysis process framework. Specifically, by systematically integrating online log collection and feedback, intelligent log keyword parsing, business scenario modeling, scenario feature extraction and mapping, and based on scenario model matching and precise traffic positioning, it can provide multi-dimensional business scenario coverage analysis capabilities.

[0040] Based on the above system deployment architecture, the following section combines... Figure 2 This specification details the specific steps of the business scenario coverage measurement method provided in the embodiments. This method can be... Figure 1 The scene modeling layer and the real-time monitoring layer in the specification can be executed in collaboration, or they can be deployed on other independent computing devices. This specification does not limit this to the embodiments.

[0041] Step 201: Based on the business data table corresponding to the target application, map the value combinations of business feature fields with business semantics to business scenarios, and build a full business scenario library.

[0042] The purpose of this step is to establish a complete definition of the business scenarios, providing a benchmark for subsequent coverage metrics. Business feature fields are those fields in the database table that reflect business status or business dimensions; different combinations of their values ​​correspond to different business scenarios. By mapping each valid combination of field values ​​to an independent business scenario, all possible business states that the target application may be involved in can be systematically enumerated.

[0043] In one specific implementation, the scenario library can be built starting from the target application's business data table. Business experts, based on their domain experience, identify fields that differentiate business scenarios. Taking consumer credit product repayment as an example, the target application's business data table can identify the following business characteristic fields: credit product code (values ​​include consumer credit product A, consumer credit product B, etc.), repayment method (values ​​include active repayment, passive deduction), bill status (values ​​include billed, not billed), and repayment amount type (values ​​include full amount, minimum, partial). Theoretically, combining the values ​​of these four fields using a Cartesian product can generate 2×2×2×3=24 scenario combinations. Each combination corresponds to a specific business scenario; for example, consumer credit product A plus active repayment plus billed plus full repayment constitutes a business scenario instance. Figure 3 As shown in the figure, taking the credit repayment scenario as an example, this diagram illustrates the complete process of constructing a specific scenario combination instance by starting from a set of business feature fields, defining them through expert experience, and verifying them through online traffic. Figure 3 The top area defines a set of business characteristics, including dimensions such as credit product code, installment type, installment mode, interest-bearing rights, and number of installments; the middle area demonstrates a dual mechanism of expert definition and online traffic filtering; and the bottom area displays several specific scenario examples.

[0044] In another embodiment, the identification process for business characteristic fields can be automated by combining database lineage analysis technology. By analyzing the reference relationships between business data tables and the frequency of field usage, the system can automatically recommend candidate fields that have high discriminative power for business scenarios, which are then confirmed and filtered by business personnel. This approach reduces reliance on expert experience and improves the transferability of the solution.

[0045] Theoretically, the scenario combination method based on the theoretical Cartesian product may have a problem: the theoretical space may contain combinations that have never appeared in actual business. For example, a combination of a specific product type and a specific repayment method may be technically possible in system configuration, but no real traffic has ever matched this combination online. Including these scenarios in the scenario library would lead to an unreasonable inflation of the scenario denominator and a false dilution of the coverage metric. To ensure the accuracy of the scenario library and avoid an artificially inflated denominator, an online traffic verification mechanism can be introduced during the construction of the full business scenario library. This involves: selecting multiple business feature fields with business semantics from the business data table; combining the enumerated values ​​of the business feature fields to generate a theoretical scenario space; obtaining the combinations of business feature field values ​​corresponding to the actual traffic data of the target application in the target operating environment; removing value combinations that do not appear in the actual traffic data from the theoretical scenario space; and constructing the full business scenario library based on the remaining value combinations.

[0046] During the scenario model construction process, the theoretical Cartesian product space may contain a large number of combinations (for example, when two feature fields each have 3 and 9 enumeration values, 27 combinations can be formed). However, actual scenarios must meet the following constraints: data-driven principle, that is, the construction of the scenario model is based on the actual online traffic statistics, and only the truly existing combination patterns are retained; redundancy elimination mechanism, that is, for combinations that are preset in the system but have never appeared online, even if there is technical redundancy, they will be removed from the scenario denominator. The final business scenario library strictly follows the online traffic verification principle to ensure that each scenario combination has actual traffic support.

[0047] Specifically, after identifying business characteristic fields and generating a theoretical scenario space, the system acquires the actual traffic data of the target application in the target operating environment. This actual traffic data reflects real online business operations, from which the actual value combinations of business characteristic fields can be extracted. The intersection of the theoretical scenario space and the actual traffic data is then performed, retaining only those value combinations that actually appeared in the actual traffic, which become the final content of the full business scenario library. Continuing with the consumer credit repayment business example, after online traffic verification, only 18 of the 24 combinations in the theoretical space may have appeared in the actual traffic. Therefore, the full business scenario library contains these 18 valid business scenarios. This reverse cleaning and filtering mechanism based on real online traffic significantly improves the accuracy of the scenario library, preventing the coverage metric from being diluted by false denominators.

[0048] When business scenarios are complex and a single data table cannot fully describe an end-to-end business operation, relying solely on the combination and mapping of fields from a single table will limit the granularity of the scenario. Taking consumer credit repayment as an example, the credit product code might be stored in the order table, the repayment method and repayment amount type might be stored in the repayment record table, and the bill status might be stored in the bill table. If field combinations are only performed within a single table, it is impossible to aggregate the business features scattered across different tables into a complete scenario description. To address this, a cross-table join approach can be used to expand the coverage of the scenario library. That is, the business feature fields are distributed across multiple data tables. Based on the business primary key, the values ​​of business feature fields belonging to the same business event are extracted from these multiple data tables, and the extracted values ​​are combined and mapped to the same business scenario.

[0049] Specifically, the system extracts business feature field values ​​belonging to the same business event from multiple data tables using business primary keys such as order number or user ID. Continuing with the consumer credit repayment business example, assume the order table contains a credit product code field, the repayment record table contains repayment method and repayment amount type fields, and the bill table contains a bill status field. Using the order ID as the join key, the system maps the combined values ​​of business feature fields belonging to the same business event in the three tables to the same business scenario, such as consumer credit product A plus proactive repayment plus billed amount plus full repayment. The feature fields of this business scenario span three physical data tables, and the business primary key ensures they belong to the same business event. In one specific implementation, cross-table joins can be completed offline during the full business scenario library construction phase. A scheduled task performs batch JOIN operations on multiple data tables to generate a wide scenario table containing cross-table feature fields. In another different implementation, cross-table joins can also be completed in real-time during the data change stream processing phase. When the streaming engine captures a change event in a table, it actively queries the related tables to obtain the current values ​​of other business feature fields and assembles them into a complete scenario record in real time.

[0050] Through cross-table joins, the granularity of the scenario library has been expanded from a single-table dimension to an end-to-end dimension, fully reflecting all business state changes experienced during a single business operation. This improvement is particularly important for long-chain businesses. In a microservice architecture, a complete repayment operation may involve the sequential invocation of multiple services such as order services, payment services, and accounting services. Each service maintains its own independent data table. Only through cross-table joins can these scattered business states be aggregated into a unified scenario view.

[0051] In summary, step 201 enables the system to build a comprehensive business scenario library that has been validated by online traffic and accurately reflects actual business scenarios. This scenario library will serve as the denominator for subsequent coverage metrics. Next, it is necessary to obtain real-time data generated by the target application during its operation to determine which scenarios are actually triggered.

[0052] Step 202: Obtain the data change stream of the business database corresponding to the target application.

[0053] The purpose of this step is to capture business data changes generated during the operation of the target application. For example, this capture action can be real-time, but this specification does not limit this. A data change stream refers to a sequence of data change events obtained by monitoring the transaction logs of the business database using CDC technology. Each event records an INSERT, UPDATE, or DELETE operation on a specific data table. Since the final state of business operations must be stored in database fields, regardless of the number of service nodes or asynchronous message passing involved, the data change stream faithfully reflects the materialized manifestation of business events.

[0054] In one specific implementation, the streaming computing engine captures every data change event in real time by subscribing to the database change log (such as binlog log) of the business database. Taking consumer credit repayment as an example, when a user initiates an action to repay the minimum repayment amount, the business system will sequentially insert a repayment order record into the order table, a repayment detail record into the repayment record table, and update the status field of the corresponding bill in the bill table. The streaming computing engine will capture these three change events sequentially and process them as records in the data change stream.

[0055] In another different embodiment, the acquisition of data change streams can be achieved using a polling method instead of real-time subscription. The system queries the business database for records that have changed in the previous period at a preset time interval (e.g., once per minute), and uses these records as the data change stream for the current period. Although this method has slightly lower real-time performance than binlog subscription, it has lower implementation complexity and is suitable for scenarios where real-time requirements are not high.

[0056] In the process of acquiring data change streams, in addition to conventional methods such as timed polling or continuous subscription, the system can also support more time-sensitive triggering methods, namely: dynamically acquiring the data change streams based on preset time periods or event triggering mechanisms, wherein the event triggering mechanisms include at least one of grayscale ratio changes, test group adjustments, or rollback operations.

[0057] Specifically, when the canary release system detects a change in the traffic switching ratio of the new version, it sends a trigger event to the coverage measurement service. Upon receiving this event, the coverage measurement service initiates a new round of data change stream acquisition and scenario matching processes to promptly reflect the scenario coverage of the new version under the current traffic ratio. For example, by monitoring the release platform's event bus, when an event is captured indicating that the traffic switching ratio has increased from 10% to 20%, a data retrieval and coverage recalculation task is immediately triggered. Similarly, when the testing platform adjusts the A / B test group configuration, or when operations personnel perform a version rollback operation, the coverage measurement service is also triggered to perform a new round of measurement calculations. Compared to fixed-period polling, this event-driven approach can respond to release change events more quickly, ensuring that coverage metric updates are more closely synchronized with the software release process.

[0058] After obtaining the data change stream based on step 202, since the original records in the change stream contain a large amount of unstructured or redundant information, it is necessary to parse and extract features from them in order to compare them with the pre-built scenario library.

[0059] Step 203: Extract the values ​​of business feature fields from the records of the data change stream, and match the extracted values ​​of business feature fields with the full business scenario library to determine the matched business scenario.

[0060] This step transforms the raw records in the data change stream into information at the business scenario level. For each record in the data change stream, the system extracts the current value of a predefined business feature field, then compares this set of values ​​with the various scenario definitions in the full business scenario library to determine the business scenario that the record corresponds to.

[0061] In one specific implementation, after consuming a change record, the streaming computing engine extracts the values ​​of the business feature fields from the record according to pre-configured field mapping rules. Continuing with the consumer credit repayment business as an example, assuming the full business scenario library is defined by four fields: credit product code, repayment method, billing status, and repayment amount type, the streaming computing engine will extract the current values ​​of these four fields from the repayment-related change records. Taking a user-initiated order to proactively repay the minimum repayment amount as an example, the extraction result is: Consumer Credit Product A, Proactive Repayment, Billed, Minimum. Then, this extraction result is matched against the full business scenario library. If a corresponding scenario definition exists in the library, it is determined that the record matches the business scenario of Consumer Credit Product A + Proactive Repayment + Billed + Minimum Repayment.

[0062] Before extracting features from the change stream, the original semi-structured data needs to be preprocessed, namely: filtering and format conversion of the original records in the data change stream; and extracting predefined business feature field values ​​from the converted records.

[0063] Specifically, the original records in the data change stream may contain various types of dirty data, such as NULL field values, data type mismatches (e.g., date fields stored as strings), and enumeration values ​​exceeding predefined ranges. Before extracting business feature field values, the system first performs a filtering operation on the original records, removing records that do not meet the preset validation rules, such as filtering out empty operation records generated by heartbeat detection or meaningless UPDATE operations. Simultaneously, it performs format conversion on the records that pass the validation, parsing the JSON fields in the Binlog into a flat key-value pair structure, unifying the date field into a standard format, and mapping enumeration values ​​to predefined value ranges. After filtering and format conversion, the system then extracts business feature field values ​​and performs scenario matching, thereby ensuring the accuracy of the matching results.

[0064] The aforementioned data cleaning and format conversion processes essentially complete the feature extraction and mapping steps. The streaming computing engine consumes data streams from the online business database in real time, cleans and transforms the database data, generates structured features that can be used for scenario matching, and obtains real-time data containing accurate scenario traffic. This real-time processing method ensures the timeliness of scenario matching, enabling coverage metrics to reflect the latest business operation status.

[0065] After determining the business scenario that each record in the data change stream corresponds to in step 203, the next step is to statistically analyze these hit results and calculate the business scenario coverage rate of the target application.

[0066] Step 204: Determine the business scenario coverage of the target application based on the number of hit business scenarios and the number of business scenarios in the full business scenario library.

[0067] This step is the final output of coverage measurement. Business scenario coverage reflects what proportion of scenarios in the full business scenario library are covered by the actual business traffic of the target application within a specific statistical period. Its basic calculation logic is: count the number of business scenarios that are matched by at least one data change record within the statistical period, and compare it with the total number of scenarios in the full business scenario library to obtain the coverage rate.

[0068] In one specific implementation, the coverage measurement service maintains a scenario hit counter. Whenever the streaming computing engine reports a scenario matching result, the hit status of the corresponding scenario is updated. At the end of the statistical period (e.g., once per minute), the system iterates through the entire business scenario library and counts the number of hit scenarios. Continuing with the consumer credit repayment business as an example, assuming the entire business scenario library contains 18 valid scenarios, and 12 scenarios are hit by at least one change record in the current statistical period, including the scenario of consumer credit product A plus proactive repayment plus billed plus minimum repayment hit in the aforementioned tracking example, then the business scenario coverage is approximately 66.7%.

[0069] In another different embodiment, coverage can be calculated using a weighted approach. Each business scenario is assigned a weight value based on its business importance. The coverage calculation is no longer a simple ratio of scenario counts, but rather the ratio of the sum of the weights of hit scenarios to the sum of the weights of all scenarios. This approach makes core business scenarios have a greater impact on the coverage metric and better aligns with actual business needs.

[0070] The aforementioned basic methods produce a global business scenario coverage rate, which cannot distinguish the contributions of different software release cycles. In a microservice architecture, multiple application versions may run simultaneously in both canary and production environments, and the global coverage rate cannot answer the crucial question of how many scenarios the current new version actually covers. To address the attribution issue between coverage rate and specific software release versions, a log parsing and cycle alignment mechanism can be introduced. This involves: collecting log data generated by the target application; performing structured parsing on the log data to extract software release cycle identifiers and / or environment identifiers; matching the matched business scenarios with log data associated with the software release cycle identifier and / or the environment identifier to obtain a set of covered scenarios belonging to the current software release cycle and / or in the target environment; and determining the business scenario coverage rate of the current software release cycle based on the number of covered scenarios in the set and the number of business scenarios in the full business scenario library.

[0071] Furthermore, in more granular release cycle measurement scenarios, to improve the accuracy of scenario attribution, time-dimensional filtering can be performed by combining traffic switching progress. Specifically: based on the traffic switching progress of the target application's current software release cycle, a data time window for the current software release cycle is determined; within the data time window, the step of matching the matched business scenarios with log data associated with the software release cycle identifier and / or the environment identifier is executed, thereby accurately extracting the set of covered scenarios belonging to the current software release cycle.

[0072] It's important to note that iteration and environment information (pre-release / canary / online) cannot be directly obtained from the database, but these two key fields are naturally present in the logs. Therefore, log processing involves two steps: First, a log collection process needs to be established to feed back to the database, ensuring continuous and stable access to the raw logs; second, a log parsing process is required to perform structured parsing of the collected logs, extract keywords, and form standardized log feature data. The following section will combine... Figure 4 Provide a detailed explanation of the specific steps involved in log collection and synchronization. Specifically, for example... Figure 4 As shown, the process of collecting and synchronizing log data generated by the target application during operation includes the following steps: Step S401: The user initiates a business operation on the front end, triggering the business system to process the request.

[0073] Step S402: After the business system completes the processing, the business data is stored in the DB database to form persistent business records.

[0074] Step S403: During operation, the business system generates log data and writes the logs to the corresponding log file path.

[0075] Step S404: The log collection platform adds file collection configuration to the target application, specifying the log file path and collection rules to be collected.

[0076] Step S405: Configure the log parsing method, define the log format, field separator and extraction rules to prepare for subsequent log parsing.

[0077] Step S406: Create a log consumption view and establish a real-time log data consumption channel so that the log collection platform can continuously acquire new logs.

[0078] Step S407: Create a log synchronization task, configure the synchronization fields, partition granularity (e.g., minute-level partitions), and target storage location, and establish a data synchronization channel from the log collection platform to the offline data warehouse.

[0079] Step S408: Create a data warehouse external table in the offline data warehouse, define the table structure, partition fields and storage format, and prepare storage space for receiving log data.

[0080] Step S409: Logs are collected through the data pipeline. The log collection platform continuously reads the log files of the target application according to the configured collection rules.

[0081] Step S410: Logs are fed back to the offline data warehouse. The data pipeline feeds back the collected log data to the data warehouse external interface according to the configuration of the synchronization task, thereby achieving persistent storage of log data.

[0082] Step S411: Through the T+1 offline output mechanism, the offline data warehouse processes the log data of the previous day in batches in the early morning of the next day to produce structured offline log data.

[0083] Step S412: Create a log keyword extraction task on the data processing platform. Extract key fields from the log text using regular expressions or template matching, including software release cycle identifiers (e.g., version number v2.1) and environment identifiers (e.g., grayscale environment or production environment), because this information is automatically injected into the log context by the application framework at runtime.

[0084] Step S413: Execute the keyword extraction task at a minute-level scheduling frequency to continuously produce structured log data containing iteration and environment fields, and store it in the offline data warehouse for subsequent periodic alignment.

[0085] The coverage metric service obtains the traffic switching progress of the current software release cycle. Traffic switching progress reflects the proportion of online traffic handled by the new version. For example, in the initial stage of a canary release, the new version only handles 10% of the traffic, and this proportion gradually increases to 100% as the canary release progresses. Based on the traffic switching progress, the system defines the effective time interval of the current version based on the traffic switching ratio, determining the data time window, which is the time range from the start of the canary release to the current time.

[0086] In iteratively driven periodic processing tasks, the system's data sources include structured multi-environment, multi-application, and multi-iteration log data, as well as scenario traffic data generated by real-time tasks. The system matches real-time scenario traffic data with the current iteration's traffic switching progress, generating iteration-based traffic hit results within minutes for scenario coverage calculation. This iteratively driven periodic processing approach allows coverage metrics to be precisely correlated with specific software release versions, providing real-time data support for canary release decisions.

[0087] Within this data time window, the system matches the hit business scenarios identified in step 203 with log data associated with software release cycle identifiers and / or environment identifiers. The matching method is to align the timestamps of the data change records and the associated log records along the time dimension to determine which software release cycle and operating environment the change record belongs to. Taking the aforementioned tracking example, the log for the order that proactively paid the minimum repayment amount was parsed to reveal the V2.1 version and pre-release environment identifier. After time dimension alignment, it was confirmed to belong to the current V2.1 version's gray-scale release cycle. Finally, only hit scenarios belonging to the current software release cycle and operating in the target environment are included in the covered scenario set, and the business scenario coverage rate for the current software release cycle is calculated based on this set.

[0088] In one embodiment, matching and filtering can be performed solely based on the software release cycle identifier, without introducing the environment identifier. This approach is suitable for scenarios where coverage is measured by version dimension within a single environment. In another embodiment, matching and filtering can be performed solely based on the environment identifier, without introducing the software release cycle identifier. This approach is suitable for coverage measurements in scenarios that do not differentiate between versions and only focus on specific environments (e.g., only focusing on grayscale environments). In yet another embodiment, matching and filtering are performed simultaneously based on both the software release cycle identifier and the environment identifier, achieving dual-dimensional isolation of version and environment, which is the most granular measurement method.

[0089] During log collection and parsing, duplicate or conflicting data often occurs due to retry mechanisms or concurrent writes in distributed systems. To avoid this issue affecting the accuracy of coverage, log data needs to be deduplicated and conflict resolved. Specifically, global deduplication of the log data is performed based on a uniqueness check field; if multiple log entries for the same business event exist in different software release cycles of the target application, at least one log entry is filtered out based on a preset version priority or time priority.

[0090] Specifically, during the log collection process, the platform may generate duplicate records for the same log event. The system performs global deduplication based on the uniqueness verification field of the log (such as log ID or business event ID) to eliminate redundancy caused by duplicate collection. Furthermore, in scenarios with multiple versions iterating in parallel, the same business event may generate log records in two different software release cycles (e.g., a request in a gray-scale environment is processed by the new version, while a similar request in the production environment is processed by the old version), causing the same business event to be counted repeatedly. The system filters out redundant records from multiple records according to preset priority rules, such as version priority (preferring records from higher versions) or time priority (retaining the record with the latest timestamp as a valid record and discarding other redundant records). Only one record is retained as a valid record.

[0091] After deduplication and conflict resolution, the system merges historical data using an incremental update strategy across three dimensions: environment, application, and iteration, ensuring data version continuity and traceability. The final output is a multi-dimensional standardized dataset with the following core features: version association, enabling comparison and traceability between iterative and historical versions; and application isolation, distinguishing data characteristics from different business systems. Through this process, the system achieves fully automated processing from raw logs to structured analytical data, resolving issues such as mixed multi-source data and version iteration data conflicts, providing a highly reliable data foundation for business needs such as scenario analysis and version effect evaluation.

[0092] Beyond full scenario coverage, business stakeholders often prioritize coverage of high-value scenarios. In practice, the coverage of certain scenarios (e.g., core transaction scenarios) has a far greater impact on business continuity than other scenarios (e.g., edge configuration scenarios). To meet this differentiated measurement requirement, separate coverage statistics can be performed for core scenarios. This involves marking core scenarios in the full business scenario library to obtain a subset of core scenarios; and determining the core scenario coverage rate based on the number of scenarios belonging to the core scenario subset among the identified business scenarios and the total number of scenarios in the core scenario subset.

[0093] Specifically, after the full business scenario library is built, business experts or the system label the scenarios according to preset priority rules (e.g., a hierarchical rule where P0 represents extremely high priority, P1 represents high priority, P2 represents medium priority, etc.). Priority tags are assigned to records in the scenario library, and then the ratio calculation in the numerator and denominator focuses only on the set with that tag. Continuing with the consumer credit repayment business as an example, assuming that 6 out of the 18 scenarios in the full business scenario library are labeled as P0 core scenarios, and 5 out of these 6 core scenarios are matched in the current statistical period, then the core scenario coverage rate is approximately 83.3%. This metric helps business teams quickly determine the coverage status of high-value scenarios. Even if the overall coverage rate has not yet reached the expected threshold, as long as the core scenario coverage rate is high enough, it can provide strong support for traffic switching decisions.

[0094] The calculated coverage metrics can be presented to users in a multi-dimensional visualization manner, namely, by displaying the coverage of the business scenario according to at least one of the following dimensions: software release cycle, time trend, and traffic hit details.

[0095] Specifically, the coverage measurement service can organize and display the calculation results according to multiple dimensions. According to the software release cycle dimension, it displays the coverage of each version for specific business scenarios, facilitating horizontal comparison of coverage across different versions. According to the time trend dimension, it displays the coverage of the same version over time using time series charts, making it easy to observe the evolution of coverage. According to the traffic hit details dimension, it supports drill-down viewing of traffic details for specific hit scenarios, including the number of hits for each business scenario, the most recent hit time, and detailed information such as the source of the hit traffic, making it easy to locate uncovered scenarios and their causes.

[0096] In terms of display format, the dashboard can show coverage trends in real time and supports switching by time granularity (hourly, daily, weekly). For core scenario coverage, it supports custom core scenario levels, allowing different business teams to define their focus scope according to their own needs. Regarding hit details and precise traffic analysis, it supports splitting traffic hit distribution by application and iteration version, and displays traffic statistics for hit scenarios in real time. The interactive dashboard supports drill-down analysis by time range, scenario tags, traffic characteristics, and other dimensions, and provides a function to export key fields of hit traffic. Coverage metrics are strongly correlated with iteration versions, supporting comparison of coverage trends across iteration versions. Deduplication algorithms and dirty data filtering ensure the accuracy of statistical results, and core metrics support minute-level updates to meet the needs of rapid decision-making.

[0097] This concludes the description of the main steps of the business scenario coverage measurement method provided in the embodiments of this specification. Through the synergistic effect of steps 201 to 204, this solution constructs a scenario library based on database feature field combination mapping, extracts features from the data change stream in real time and performs scenario matching, bypassing the high complexity of cross-service log tracing, and achieving complete and accurate coverage measurement for long-link and asynchronous link business scenarios. Since the final state of a business operation must be stored in the database fields, regardless of how many service nodes or asynchronous message transmissions occur in between, feature combination mapping at the database record level can naturally cover all business paths that lead to database state changes. At the same time, by introducing log parsing and periodic alignment mechanisms, scenario coverage is bound to the software release cycle, solving the attribution difficulty problem in multi-version parallel scenarios, so that the coverage measurement results can directly serve the flow switching decision for canary releases.

[0098] In addition, this solution provides quantifiable scenario-based data support for iterative traffic switching evaluation by deeply integrating online real-time log feedback data with scenario models. It supports parallel comparison of multiple versions, historical data backtracking analysis and display, thus forming a complete closed loop from scenario definition, traffic collection, scenario matching to coverage output.

[0099] This specification also provides a business scenario coverage measurement system, which can be deployed in the following electronic devices as the execution subject of each method step.

[0100] like Figure 5As shown in the embodiments of this specification, the business scenario coverage measurement system includes: a scenario library construction unit 501, used to map the value combinations of business feature fields with business semantics to business scenarios based on the business data table corresponding to the target application, and construct a full business scenario library; a data acquisition unit 502, used to acquire the data change stream of the business database corresponding to the target application; a scenario matching unit 503, used to extract the values ​​of business feature fields from the records of the data change stream, and match the extracted business feature field values ​​with the full business scenario library to determine the hit business scenarios; and a coverage calculation unit 504, used to determine the business scenario coverage of the target application based on the number of hit business scenarios and the number of business scenarios in the full business scenario library.

[0101] Optionally, the scenario library construction unit 501 is specifically used for: selecting multiple business feature fields with business semantics from the business data table; combining the enumerated values ​​of the business feature fields to generate a theoretical scenario space; obtaining the combination of business feature field values ​​corresponding to the actual traffic data of the target application in the target operating environment; removing the value combinations that do not appear in the actual traffic data from the theoretical scenario space, and constructing a full business scenario library based on the remaining value combinations.

[0102] Optionally, when business feature fields are distributed across multiple data tables, the scenario library construction unit 501 is specifically used to extract business feature field values ​​belonging to the same business event from multiple data tables based on the business primary key, and to map the extracted values ​​to the same business scenario.

[0103] Optionally, the data acquisition unit 502 is specifically used to dynamically acquire data change streams based on a preset time period or an event triggering mechanism. The event triggering mechanism includes at least one of grayscale ratio change, test group adjustment, or rollback operation.

[0104] Optionally, the scenario matching unit 503 is specifically used to: filter and format-convert the original records in the data change stream, and extract the values ​​of predefined business feature fields from the converted records.

[0105] Optionally, the system also includes a log processing unit 505, used to collect log data generated by the target application, perform structured parsing on the log data, and extract software release cycle identifiers and / or environment identifiers. The coverage calculation unit 504 is specifically used to match the matched business scenarios with log data associated with software release cycle identifiers and / or environment identifiers to obtain a set of covered scenarios belonging to the current software release cycle and / or in the target environment; based on the number of covered scenario sets and the number of business scenarios in the full business scenario library, the business scenario coverage rate of the current software release cycle is determined.

[0106] Optionally, the log processing unit 505 is also used to perform global deduplication of log data based on the uniqueness verification field; if there are multiple log data for the same business event in different versions of the software release cycle of the target application, at least one log data will be filtered out according to the preset version priority or time priority.

[0107] Optionally, the coverage calculation unit 504 is specifically used to: mark core scenarios in the full business scenario library to obtain a subset of core scenarios; and determine the core scenario coverage based on the number of scenarios belonging to the subset of core scenarios in the hit business scenarios and the total number of scenarios in the subset of core scenarios.

[0108] Optionally, the system also includes a display unit 506, which displays the coverage of business scenarios according to at least one of the following dimensions: software release cycle, time trend, and traffic hit details.

[0109] The specific functional implementation, interaction logic, and technical effects of each unit in the business scenario coverage measurement system provided in this embodiment are consistent with the descriptions in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will understand that the above-mentioned units can be software modules, hardware modules, or modules combining software and hardware. This division is only for the convenience of describing the technical solutions of the embodiments in this specification and does not constitute a limitation on the system structure.

[0110] This specification also provides an electronic device through its embodiments. For example... Figure 6 As shown, the electronic device includes at least one processor 601 and a memory 602 communicatively connected to the processor 601. The memory 602 stores instructions executable by the at least one processor 601, which, when executed, enable the at least one processor 601 to perform the business scenario coverage measurement method described in the foregoing method embodiments. The electronic device may also include a communication interface 603 for data communication with other devices. The processor 601, memory 602, and communication interface 603 are interconnected via a bus 604.

[0111] This specification also provides a non-transitory computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are executed by a processor, they enable the business scenario coverage measurement method described in the foregoing method embodiments. The non-transitory computer-readable storage medium can be a tangible storage medium, such as a disk, optical disk, or semiconductor memory.

[0112] This specification also provides a computer program product, including a computer program / instructions, which, when executed by a processor, can implement the business scenario coverage measurement method described in the foregoing method embodiments. This computer program product can be stored in a storage medium as a software installation package, or it can be downloaded and installed via a network.

[0113] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0114] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional units in the various embodiments of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0115] What those skilled in the art will understand is: In this specification, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, product, 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, product, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, product, or apparatus that includes said elements is not excluded.

[0116] In this specification, “a,” “an,” and “the” do not specifically refer to the singular, but may also include the plural.

[0117] In this specification, ordinal numbers such as "first," "second," etc., do not necessarily indicate order; they are often used to distinguish between objects. For example, "first server" and "second server" usually refer to two servers. To differentiate between these two servers, they are described as "first server" and "second server." Of course, sometimes these two servers may be the same server.

[0118] In this specification, unless explicitly stated otherwise, "receiving and sending data" does not necessarily mean direct receiving and sending; it can also mean indirect receiving and sending. For example, A receiving data sent by B can be understood as A directly receiving the data sent by B, or it can be understood as A indirectly receiving the data sent by B through other entities such as C. Similarly, B sending data to A can be understood as B sending the data directly to A, or it can be understood as B indirectly sending the data to A through other entities such as C. Here, C can be one entity, or it can be two or more entities.

[0119] In this specification, unless explicitly stated otherwise, the relationships between structures can be direct or indirect. For example, when describing "A is connected to B," unless it is explicitly stated that A and B are directly connected, it should be understood that A can be directly connected to B or indirectly connected to B. Similarly, when describing "A is on top of B," unless it is explicitly stated that A is directly above B (AB is adjacent and A is above B), it should be understood that A can be directly above B or indirectly above B (AB is separated by other elements, and A is above B). And so on.

[0120] This specification uses specific terms to describe embodiments thereof. Terms such as "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of this specification. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Furthermore, those skilled in the art can combine and integrate the different embodiments or examples described herein, as well as the features of those different embodiments or examples, without contradiction.

[0121] Although one or more embodiments of this specification provide method steps as described in the embodiments or flowcharts, it is understood that the order of steps listed in the embodiments or flowcharts is only one of many possible execution orders and does not represent the only execution order. Therefore, when the claims involve method steps, any changes or adjustments to the order of such steps, or the parallelism between steps, are also within the scope of protection of the claims.

Claims

1. A method for measuring business scenario coverage, comprising: Based on the business data table corresponding to the target application, the value combinations of business feature fields with business semantics are mapped to business scenarios, and a full business scenario library is built. Obtain the data change stream of the business database corresponding to the target application; Extract business feature field values ​​from the records of the data change stream, and match the extracted business feature field values ​​with the full business scenario library to determine the matched business scenario; The business scenario coverage of the target application is determined based on the number of hit business scenarios and the number of business scenarios in the full business scenario library.

2. The method according to claim 1, wherein, The business data table corresponding to the target application maps the value combinations of business feature fields with business semantics to business scenarios, constructing a full-scale business scenario library, including: Select multiple business feature fields with business semantics from the business data table; The enumerated values ​​of the business feature fields are combined to generate a theoretical scenario space; Obtain the combination of business feature field values ​​corresponding to the actual traffic data of the target application in the target operating environment; Remove the value combinations that do not appear in the actual traffic data from the theoretical scenario space, and construct the full business scenario library based on the remaining value combinations.

3. The method according to claim 1, wherein, The method further includes: Collect log data generated by the target application during operation, perform structured parsing on the log data, and extract software release cycle identifiers and / or environment identifiers; The matched business scenarios are matched with log data associated with the software release cycle identifier and / or the environment identifier to obtain a set of covered scenarios belonging to the current software release cycle and / or in the target environment. The business scenario coverage rate for the current software release cycle is determined based on the number of covered scenario sets and the number of business scenarios in the full business scenario library.

4. The method according to claim 3, wherein, The structured parsing of the log data also includes: The log data is deduplicated globally based on the uniqueness check field; If the same business event has multiple log entries in different versions of the software release cycle of the target application, at least one log entry will be filtered out according to the preset version priority or time priority.

5. The method according to claim 1, wherein, The business feature fields are distributed across multiple data tables. The process of mapping the value combinations of business feature fields with business semantics to business scenarios based on the business data table corresponding to the target application includes: Based on the business primary key, extract the values ​​of business feature fields belonging to the same business event from the multiple data tables, and map the extracted values ​​to the same business scenario.

6. The method according to claim 1, wherein, The step of determining the business scenario coverage of the target application based on the number of hit business scenarios and the number of business scenarios in the full business scenario library includes: Mark the core scenarios in the full business scenario library to obtain a subset of core scenarios; The core scenario coverage rate is determined based on the number of scenarios belonging to the core scenario subset within the hit business scenarios and the total number of scenarios in the core scenario subset.

7. The method according to claim 1, wherein, The step of obtaining the data change stream of the business database corresponding to the target application includes: The data change stream is dynamically acquired based on a preset time period or an event triggering mechanism, wherein the event triggering mechanism includes at least one of grayscale ratio change, test group adjustment, or rollback operation.

8. The method according to claim 1, wherein, Extracting business feature field values ​​from the records in the data change stream includes: Filter and format-convert the original records in the data change stream; Extract values ​​from predefined business feature fields from the transformed records.

9. A business scenario coverage measurement system, comprising: The scenario library building unit is used to map the value combinations of business feature fields with business semantics to business scenarios based on the business data table corresponding to the target application, and build a full business scenario library. The data acquisition unit is used to acquire the data change stream of the business database corresponding to the target application; The scenario matching unit is used to extract business feature field values ​​from the records of the data change stream, and match the extracted business feature field values ​​with the full business scenario library to determine the matched business scenario. The coverage calculation unit is used to determine the business scenario coverage of the target application based on the number of hit business scenarios and the number of business scenarios in the full business scenario library.

10. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of the method as claimed in any one of claims 1 to 8.