Test data monitoring and processing methods, devices, computer equipment and storage media

By monitoring and detecting the status of test data, the unavailable data is automatically processed, which solves the problems of data redundancy and resource waste in the test environment in software development, and improves processing efficiency and system performance.

CN114020611BInactive Publication Date: 2024-11-01PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111264369.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the software development process, a large amount of unavailable result test data is generated in the test environment, resulting in slow system operation and waste of resources. The existing technology relies on manual inspection and maintenance and processing efficiency.

Method used

By monitoring the current status of the test data, using the status detection script of the target scene identification to detect data status, determine the unavailable types, and select the processing scripts based on the type to restore or clean the processing, realizing automated data inspection and maintenance.

Benefits of technology

It improves the efficiency of test data inspection and maintenance processing, reduces the number of test data in unavailable states, saves storage space, and ensures system operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114020611B_ABST
    Figure CN114020611B_ABST
Patent Text Reader

Abstract

The present invention discloses a test data monitoring and processing method, device, computer equipment and storage medium. The method comprises: monitoring the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier; if the current state corresponding to the original test data is an occupied state, obtaining the result test data corresponding to the original test data; using the state detection script corresponding to the target scene identifier, performing state detection on the result test data, and obtaining the data state corresponding to the result test data; if the data state corresponding to the result test data is an unavailable state, obtaining the unavailable type corresponding to the result test data; according to the unavailable type corresponding to the result test data, determining the target processing script, and using the target processing script to restore or clean the result test data. The method can effectively reduce the number of result test data in an unavailable state, improve the efficiency of troubleshooting and maintenance processing, save storage space, and ensure the efficiency of system operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a test data monitoring and processing method, device, computer equipment and storage medium. Background Art

[0002] During the software development process, it is necessary to use test data in a test environment to test the software. When a certain processing link in the software is tested with a certain original test data, result test data will be generated, and the result test data can be used as the test data for the next link of the processing link. In the process of using the original test data for software testing for a long time, a large amount of unusable result test data will be generated. These unusable result test data will cause the system to run slowly and waste the system's storage and computing resources. In the current software development process, testers are required to manually check the unusable result test data and perform maintenance processing such as recovery or cleaning on the unusable result test data. This manual troubleshooting and maintenance processing process is inefficient and time-consuming. Therefore, it is urgent to check and process the unusable result test data in the test environment to reduce the redundant result test data in the test environment. Summary of the invention

[0003] The embodiments of the present invention provide a test data monitoring and processing method, device, computer equipment and storage medium to solve the problem of low efficiency in result test data troubleshooting and maintenance processing.

[0004] A test data monitoring and processing method, comprising:

[0005] Monitor the current state of each original test data in the scene data pool corresponding to the target scene identifier;

[0006] If the current state corresponding to the original test data is an occupied state, obtaining result test data corresponding to the original test data;

[0007] Using a status detection script corresponding to the target scene identifier, performing status detection on the result test data to obtain a data status corresponding to the result test data;

[0008] If the data state corresponding to the result test data is an unavailable state, obtaining the unavailable type corresponding to the result test data;

[0009] A target processing script is determined according to the unavailable type corresponding to the result test data, and the target processing script is used to restore or clean the result test data.

[0010] A test data monitoring and processing device, comprising:

[0011] The current state monitoring module is used to monitor the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier;

[0012] A result test data acquisition module, used for acquiring result test data corresponding to the original test data if the current state corresponding to the original test data is an occupied state;

[0013] A data status detection module, used to use a status detection script corresponding to the target scene identifier to perform status detection on the result test data and obtain a data status corresponding to the result test data;

[0014] An unavailable type acquisition module, used for acquiring the unavailable type corresponding to the result test data if the data state corresponding to the result test data is an unavailable state;

[0015] The test data processing module is used to determine a target processing script according to the unavailable type corresponding to the result test data, and use the target processing script to recover or clean the result test data.

[0016] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the test data monitoring and processing method when executing the computer program.

[0017] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the test data monitoring and processing method is implemented.

[0018] The above-mentioned test data monitoring and processing method, device, computer equipment and storage medium can determine the existence of result test data when it is monitored that the current state corresponding to each original test data is an occupied state, and then use the state detection script corresponding to the target scenario identifier to quickly determine the corresponding data state, so as to realize rapid troubleshooting of result test data in an unavailable state and ensure data troubleshooting efficiency; according to the unavailability type corresponding to the result test data, the target processing script is used to restore or clean the result test data and other maintenance processing, which can effectively reduce the number of result test data in an unavailable state, improve the efficiency of its troubleshooting and maintenance processing, help save storage space, and help ensure system operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0020] Figure 1 is a schematic diagram of an application environment of a test data monitoring and processing method in one embodiment of the present invention;

[0021] Figure 2 is a flow chart of a test data monitoring and processing method in one embodiment of the present invention;

[0022] Figure 3 is another flow chart of a test data monitoring and processing method in one embodiment of the present invention;

[0023] Figure 4 is another flow chart of a test data monitoring and processing method in one embodiment of the present invention;

[0024] Figure 5 is another flow chart of a test data monitoring and processing method in one embodiment of the present invention;

[0025] Figure 6 is another flow chart of a test data monitoring and processing method in one embodiment of the present invention;

[0026] Figure 7 is another flow chart of a test data monitoring and processing method in one embodiment of the present invention;

[0027] Figure 8 is another flow chart of a test data monitoring and processing method in one embodiment of the present invention;

[0028] Fig. 9 is a schematic diagram of a test data monitoring and processing device in one embodiment of the present invention;

[0029] Fig.10 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] The test data monitoring and processing method provided by the embodiment of the present invention can be applied as follows: Figure 1 Specifically, the test data monitoring and processing method is applied in a test data monitoring and processing system, and the test data monitoring and processing system includes: Figure 1 The client and server shown in the figure communicate with each other through the network, which is used to quickly check the unavailable result test data, improve the checking and processing of the unavailable result test data, improve the efficiency of its checking and maintenance processing, and help save storage space and avoid waste of resources. Among them, the client, also known as the user end, refers to the program corresponding to the server and providing local services to customers. The client can be installed on but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0032] In one embodiment, if Figure 2 As shown, a test data monitoring and processing method is provided, and the method is applied in Figure 1 The server in the example is used as an example to illustrate the process, including the following steps:

[0033] S201: monitoring the current state of each original test data in the scene data pool corresponding to the target scene identifier;

[0034] S202: If the current state corresponding to the original test data is an occupied state, obtaining result test data corresponding to the original test data;

[0035] S203: using a state detection script corresponding to the target scene identifier to perform state detection on the result test data, and obtaining a data state corresponding to the result test data;

[0036] S204: If the data state corresponding to the result test data is an unavailable state, obtaining the unavailable type corresponding to the result test data;

[0037] S205: Determine a target processing script according to the unavailable type corresponding to the result test data, and use the target processing script to recover or clean the result test data.

[0038] The target scenario identifier is an identifier used to uniquely identify the target application scenario. The target application scenario is the application scenario corresponding to the test data to be generated this time. For example, the target application scenario may be a scenario applicable to a credit card system test, or a scenario applicable to an e-commerce system test.

[0039] The scenario data pool is a collection of original test data for storing specific scenarios.

[0040] As an example, in step S201, the server may execute a state monitoring task to monitor all the original test data in the scene data pool to obtain the current state corresponding to each original test data. The state monitoring task is used to monitor whether the original test data is occupied. The current state is a state used to reflect whether the original test data is occupied. It can be understood that the current state of the original test data can be any one of an occupied state and an available state. The occupied state here refers to the state in which the original test data has been occupied for testing, and the available state refers to the state in which the original test data has not been occupied for testing.

[0041] The result test data refers to the data generated after a certain original test data is tested, and the result test data can be used for the next test. For example, when the target application scenario is a credit card system test scenario, after a certain original test data A is tested for a transaction, the result test data outputted can be used for the next test.

[0042] As an example, in step S202, when the server monitors that the current state corresponding to a certain original test data is occupied, it means that the original test data has been occupied for testing, and there must be corresponding result test data. Therefore, the result test data corresponding to the original test data can be obtained. In this example, each original test data stored in the scene data pool carries a unique data identifier. In the process of using the original test data for software testing, the result test data formed carries the data identifier for tracing based on the data identifier, so that the server can quickly obtain the result test data corresponding to the original test data.

[0043] Among them, the status detection script is a script used to detect whether the test data is available. As an example, the status detection script corresponding to the target scenario identifier refers to a script set according to all unavailable situations of the test data corresponding to the target scenario identifier. For example, when the target application scenario is a credit card system test scenario, a status detection script for detecting whether the test data is available can be set according to all credit card unavailable situations, so as to use the status detection script to quickly determine the data status of the result test data.

[0044] The data states corresponding to the result test data include an available state and an unavailable state. The available state here refers to a state in which the result test data can be continuously called for software testing. The unavailable state refers to a state in which the result test data cannot be continuously called for software testing.

[0045] As an example, in step S203, the server may use a status detection script corresponding to the target scenario identifier to perform a status detection on the result test data to determine whether the result test data is still being called to perform software testing, so as to obtain the data status corresponding to the result test data, which may be an available status or an unavailable status.

[0046] In this example, the status detection script is a detection script pre-configured according to at least one unavailable evaluation condition. When the status detection script is used to perform status detection on the result test data, the result test data is specifically compared with at least one unavailable evaluation condition; if the result test data does not meet all unavailable evaluation conditions, the data status corresponding to the result test data is an available status; if the result test data meets any unavailable evaluation condition, the data status corresponding to the result test data is an unavailable status.

[0047] For example, when the target application scenario is a credit card system test scenario, a credit card is in an unavailable state when it is not repaid in time. The state detection script can be configured according to the evaluation conditions corresponding to the credit card not being repaid in time, so that when the state detection script detects the result test data, it evaluates whether it meets the unavailable evaluation conditions corresponding to the credit card not being repaid in time; if it meets the conditions, the data state corresponding to the result test data is an unavailable state; if it does not meet the conditions, the data state corresponding to the result test data is an available state.

[0048] Among them, the unavailable type refers to the type used to reflect whether the result test data in an unavailable state can be restored to an available state, including a recoverable type and an unrecoverable type. In this example, the recoverable type refers to the type of result test data that can be restored from an unavailable state to an available state. For example, when the original test data of a credit card is tested, and the result test data formed is mainly due to the account being unavailable due to failure to repay in time, the unavailable type of the result test data is a recoverable type. Correspondingly, the unrecoverable type refers to the type of result test data that cannot be restored from an unavailable state to an available state. For example, when the original test data of a credit card is tested, and the result test data formed is mainly due to the account being unavailable due to reasons such as the credit card's service life reaching the maximum period or the card being cancelled, the unavailable type of the result test data is an unrecoverable type.

[0049] As an example, in step S204, when the server determines that the data status corresponding to a certain result test data is an unavailable state, it is necessary to classify the result test data in the unavailable state to determine the unavailable type corresponding to the result test data, so as to perform different data maintenance operations according to the unavailable type to avoid the system storing a large amount of redundant and unavailable result test data.

[0050] In this example, when the data state corresponding to the result test data is an unavailable state, it means that the result test data meets an unavailable evaluation condition pre-configured by the state detection script, and the corresponding unavailable type can be quickly determined based on the unavailable evaluation condition. For example, an information table of the correspondence between the unavailable evaluation condition and its unavailable type can be pre-configured, and the table can be looked up based on the unavailable evaluation condition met by the result test data to quickly determine its unavailable type.

[0051] The target processing script is a maintenance processing script that matches the unavailable type. The maintenance processing script is a script used to implement maintenance operations such as recovery or cleaning of test data.

[0052] As an example, in step S205, the server pre-stores maintenance processing scripts corresponding to all unavailable types. After determining the unavailable type corresponding to a certain result test data, the maintenance processing script corresponding to the unavailable type can be determined as a target processing script, and the target processing script is executed to recover or clean the result test data. In this example, the result test data whose unavailable type is a recoverable type is recovered to convert it to an available state; the result test data whose unavailable type is an unrecoverable type is cleaned, both of which can reduce the unavailable result test data in the system to avoid redundancy of unavailable result test data, resulting in slow system operation and wasting system storage and computing resources.

[0053] In the test data monitoring and processing method provided by the embodiment of the present invention, when it is monitored that the current state corresponding to each original test data is an occupied state, it can be determined that there is result test data, and then the state detection script corresponding to the target scenario identifier can be used to quickly determine the corresponding data state, so as to realize rapid troubleshooting of result test data in an unavailable state and ensure data troubleshooting efficiency; according to the unavailable type corresponding to the result test data, the target processing script is used to perform maintenance processing such as recovery or cleaning on the result test data, which can effectively reduce the number of result test data in an unavailable state, improve the efficiency of its troubleshooting and maintenance processing, help save storage space, and help ensure system operation efficiency.

[0054] In one embodiment, if Figure 3 As shown, step S205, that is, determining a target processing script according to the unavailable type corresponding to the result test data, and using the target processing script to recover or clean the result test data, includes:

[0055] S301: If the unavailable type corresponding to the result test data is a recoverable type, a data recovery script corresponding to the target scenario identifier is determined as a target processing script, and the data recovery script is used to recover the result test data to obtain recovery test data;

[0056] S302: If the unavailable type corresponding to the result test data is an unrecoverable type, a data cleaning script is determined as a target processing script, and the data cleaning script is used to clean the result test data.

[0057] The data recovery script is a script used to restore the result test data from an unavailable state to an available state. In this example, each target scenario identifier is configured with multiple data recovery scripts corresponding to unavailable reasons, where the unavailable reasons match the unavailable evaluation conditions in the status detection script.

[0058] As an example, in step S301, when the server determines that the unavailable type corresponding to the result test data is a recoverable type, the server may recover the result test data according to the unavailable reason corresponding to the result test data using a data recovery script corresponding to the unavailable reason, so as to obtain recovery test data. For example, if the unavailable reason for a certain result test data is failure to repay on time, the server may use a data recovery script corresponding to failure to repay on time to perform an automated repayment operation on the result test data, so as to update the result test data in an unavailable state to recovery test data in an available state, so as to avoid redundancy of the result test data in an unavailable state, resulting in waste of system resources, and help to ensure the efficiency of system operation. The recovery test data is the data generated when the result test data is recovered using the data recovery script.

[0059] The data cleaning script is used to clean the test result data.

[0060] As an example, in step S302, when the server determines that the unavailable type corresponding to the result test data is a recoverable type, it means that the result test data is completely unavailable. If it is saved in the scenario data pool or other databases for a long time, it will cause a large amount of redundant and unavailable result test data to exist in the test environment, resulting in a waste of system resources. Therefore, it is necessary to execute a data cleaning script to clean the result test data to save storage space, which helps to ensure the efficiency of system operation.

[0061] Understandably, the server can implement the data status of the full-link detection result test data, intelligently analyze the reasons for the unavailability of the result test data, and perform reverse operations to restore it to an available state, ensuring the availability of the recovery test data. For example, when the target application scenario is a credit card scenario, each system configuration data detection and repair method (interface or SQL) on the full link of the credit card can be uniformly scheduled by the server. For example: the card service system provides control code detection and release interfaces corresponding to cards, accounts, and customers. The server detects control codes in real time and will not appear in normal scenarios when there are controls. At the same time, the control code release is performed regularly to restore the unavailable result test data to available recovery test data. For another example, the core accounting system provides an account available credit check and repayment interface. The server checks the account available credit in real time and will not appear in the consumption scenario when there is insufficient credit. At the same time, repayment operations are performed regularly to restore the data to available recovery test data.

[0062] In one embodiment, the original test data carries data attributes;

[0063] After step S201, that is, after monitoring the current state of each original test data in the scene data pool corresponding to the target scene identifier, the test data monitoring and processing method also includes: if the current state of the original test data changes from an available state to an occupied state, maintaining or updating the data attributes of the original test data.

[0064] Among them, data attributes refer to the data attributes carried by the original test data when it is generated. Public attributes are attributes that can be used by all users. Private attributes are attributes that are only available to specific users. In this example, the data attributes when the original test data is generated can be defined by the user or generated by the system by default. In this example, the original test data stored in the scene data pool all carry data attributes, and data isolation between different original test data can be achieved based on the data attributes, so that when the original test data is subsequently called or tampered with, the data attributes can be updated or maintained to quickly check the called or tampered original test data, so as to prevent the called or tampered original test data from being called again by the system to be tested, affecting the accuracy of the test of the system to be tested.

[0065] As an example, when the server monitors the current status of each original test data in the scene data pool corresponding to the target scene identifier, when it detects that the current status of the original test data has changed from an available status to an occupied status, and the data attribute corresponding to the original test data is a public attribute, it is necessary to update the data attribute corresponding to the original test data to a private attribute to indicate that the original test data has been occupied, to avoid being occupied and modified by other third parties again, which helps to ensure the accuracy and reliability of testing based on the original test data.

[0066] In this example, when the server monitors that the current state of the original test data has changed from an available state to an occupied state, and the data attributes corresponding to the original test data are private attributes, the server can maintain the data attributes corresponding to the original test data as private attributes to avoid being occupied and modified by other third parties again, which helps to ensure the accuracy and reliability of testing based on the original test data.

[0067] In one embodiment, if Figure 4 As shown, the original test data carries data attributes;

[0068] After step S201, that is, after monitoring the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier, the test data monitoring processing method further includes:

[0069] S401: determining original test data whose current state is an available state and whose data attributes are public attributes as valid test data;

[0070] S402: Count the number of all valid test data in the scenario data pool to determine the current supply quantity;

[0071] S403: Obtain the current demand quantity corresponding to the current supply cycle;

[0072] S404: If the current supply quantity is less than the current demand quantity, determine the target additional quantity according to the current demand quantity and the current supply quantity;

[0073] S405: Generate original test data that matches the target additional quantity according to the data generation task corresponding to the target scene identifier, and store the original test data in the scene data pool corresponding to the target scene identifier.

[0074] Among them, valid test data refers to test data that can be used by all users.

[0075] As an example, in step S401, after monitoring the current state of each original test data in the scene data pool corresponding to the target scene identifier, the server needs to determine whether it is valid test data based on the current state of each original test data and the data attributes carried by each original test data. Specifically, the original test data whose current state is an available state and whose data attributes are public attributes is determined as valid test data, indicating that the valid test data has not been occupied and is open to all users and can be called by all users.

[0076] As an example, in step S402, after the server determines whether each original test data is valid test data according to the current state and data attributes, it needs to count the number of all valid test data in the scene data pool corresponding to the target scene identifier and determine it as the current supply number. The current supply number can be understood as the number of unoccupied original test data provided to all users.

[0077] Among them, the current supply cycle refers to the cycle of providing original test data formed after the current time of the system. It can be understood that the current supply cycle can match the configuration number generation frequency in the above steps. For example, if the configuration number generation frequency is once a week, then its current supply cycle is one week; if the configuration number generation frequency is once a month, then its current supply cycle is one month. The current demand quantity refers to the number of test data that needs to be generated in the current supply cycle. For example, the current supply cycle can be September, and the current demand quantity refers to the number of valid test data that needs to be provided in September.

[0078] As an example, in step S403, the server may determine the default demand quantity preset by the system as the current demand quantity, or may statistically determine the current demand quantity corresponding to the current supply cycle based on the number of all test data that were in an occupied state before the current time of the system.

[0079] In this example, obtaining the current demand quantity corresponding to the current supply cycle specifically includes: (1) determining the original test data whose current state is occupied as occupied test data. (2) Obtaining the historical occupation time corresponding to the occupied test data. The historical occupation time can be understood as the time when a certain original test data is monitored to change from an available state to an occupied state. (3) Determining the historical supply cycle to which the occupied test data belongs based on the historical occupation time corresponding to each occupied test data. The current supply cycle refers to the cycle of providing original test data formed before the current time of the system. (4) Counting the number of all occupied test data corresponding to each historical supply cycle to determine the historical demand quantity corresponding to the historical supply cycle. For example, when the current supply cycle is September, August, July or other previous months are all historical supply cycles, and the historical demand quantities corresponding to these historical supply cycles need to be obtained accordingly. (5) Calculating the average of the historical demand quantities corresponding to all historical supply cycles to determine the average of all historical demand quantities as the current demand quantity corresponding to the current supply cycle, so as to dynamically determine the current demand quantity based on historical experience.

[0080] As an example, in step S404, after obtaining the current supply quantity and the current demand quantity corresponding to the current supply cycle, the server needs to compare the current supply quantity with the current demand quantity to determine whether the number of valid test data in the scenario data pool can meet the test demand. In this example, when the current supply quantity is less than the current demand quantity, it is determined that the valid test data in the scenario data pool cannot meet the test demand and the original test data needs to be increased. Therefore, the difference between the current demand quantity and the current supply quantity can be determined as the target additional quantity. The target additional quantity can be understood as the number of test data that needs to be added this time.

[0081] The data generation task is a pre-configured task for generating test data.

[0082] As an example, in step S405, after determining the target new quantity, the server can obtain the data generation task corresponding to the target scene identifier, execute the data generation task, and generate original test data matching the target new quantity to obtain original test data that meets the test requirements, so as to automatically expand the quantity of original test data in the scene data pool corresponding to the target scene identifier.

[0083] In the test data monitoring and processing method provided in this embodiment, the current status of the original test data can be dynamically monitored to determine the valid test data and its current supply quantity. When the current supply quantity is less than the current demand quantity, it is necessary to regenerate the original test data corresponding to the target additional quantity, and store the original test data in the scenario data pool to realize intelligent monitoring of whether the amount of valid test data in the scenario data pool is sufficient. If it is insufficient, the data generation task can be intelligently triggered to supplement the missing original test data, so as to avoid the lack of valid test data in the scenario data pool and affect the smooth progress of the system test.

[0084] In one embodiment, if Figure 5 As shown, step S405, that is, generating original test data matching the target additional quantity according to the data generation task corresponding to the target scenario identifier, includes:

[0085] S501: Acquire a data generation task corresponding to a target scene identifier, where the data generation task includes at least one target action and a scene parameter value corresponding to a scene configuration parameter;

[0086] S502: Execute a number-generating action script corresponding to at least one target action according to a scenario parameter value corresponding to the scenario configuration parameter, and generate original test data matching the target additional quantity.

[0087] As an example, in step S501, the server may obtain a data generation task corresponding to the target scene identifier, and the data generation task includes at least one target action and a scene parameter value corresponding to the scene configuration parameter. For example, the server may control the client to display a task configuration interface corresponding to the target scene identifier, and the user may determine at least one target action from a plurality of standard actions provided in the task configuration interface. When the target actions include at least two, the sequence of actions also needs to be determined; the parameter configuration interface corresponding to the target action is displayed, and the scene parameter value corresponding to the scene configuration parameter is input in the parameter configuration interface to obtain the data generation task corresponding to the target scene identifier, so that the data generation task includes at least one target action and a scene parameter value corresponding to the scene configuration parameter. The standard action here refers to the action included in the system to be tested corresponding to the target application scenario.

[0088] For example, when the target application scenario is a scenario suitable for credit card system testing, its standard actions include card issuance, card registration and binding, activation, control and transaction, etc.; in a data generation task, the standard action of card issuance can be selected as the target action to ensure that the original test data finally generated can be used to test the card issuance function of the system; in another data generation task, the two standard actions of card issuance and card registration and binding can be selected as the target actions to ensure that the original test data finally generated can be used for testing the card registration and binding function after executing the card issuance action.

[0089] In this example, when the server receives at least two target actions selected by the user, it needs to obtain the configuration order of the at least two target actions determined independently by the user, perform an action verification on the configuration order of the at least two target actions, and obtain the action verification result; if the action verification result is that the verification passes, it is determined that the at least two target actions are successfully determined; if the action verification result is that the verification fails, an action configuration error message is prompted so that the user can make modifications based on the action configuration error message.

[0090] In this example, the server performs action verification on the configuration sequence of at least two target actions, specifically to verify whether the configuration sequence of at least two target actions conforms to the business logic of the target application scenario. For example, when the target application scenario is a scenario suitable for credit card system testing, according to its business logic, it is necessary to go through standard actions such as card issuance, card registration and binding, activation, control and transaction in sequence. If the user selects the two standard actions of card issuance and card registration and binding as the target actions, that is, card issuance comes first and card registration and binding comes later, it is determined to conform to the business logic and obtain the action verification result of passing the verification; if card registration and binding comes first and card issuance comes later, it is determined to be inconsistent with the business logic and obtain the action verification result of failing the verification.

[0091] As an example, in step S502, the server executes the data generation task, specifically according to the scenario parameter value corresponding to the scenario configuration parameter, executes the number-making action script corresponding to at least one target action, generates original test data matching the target new quantity, so as to obtain original test data that meets the test requirements. In this example, the server can use the scenario parameter value of the scenario configuration parameter as the script input parameter of the number-making action script corresponding to at least one target action, and according to the dependency relationship between at least one target action, sequentially execute the number-making action script corresponding to at least one target action, and determine the output result of the last executed number-making action script as an original test data, and finally, generate original test data matching the target new quantity, so that the original test data can be applied to the software test corresponding to the target application scenario. Among them, the number-making action script is a pre-configured script for generating test data corresponding to a certain action.

[0092] In one embodiment, if Figure 6 As shown, before step S201, before monitoring the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier, the test data monitoring processing method further includes:

[0093] S601: Acquire a script generation instruction, where the script generation instruction includes a target scene identifier and a target action;

[0094] S602: Acquire a target scenario action tree corresponding to the target scenario identifier, where the target scenario action tree is a tree structure formed by sorting all standard actions according to the business logic of the target scenario identifier;

[0095] S603: Determine whether the target action has a dependent action according to the target position of the target action in the target scene action tree;

[0096] S604: If the target action has a dependent action, determine the to-be-configured parameters corresponding to the target action based on the action output parameters corresponding to the dependent action and the action input parameters corresponding to the target action;

[0097] S605: If the target action does not have a dependent action, determine the to-be-configured parameters corresponding to the target action based on the action input parameters corresponding to the target action;

[0098] S606: Generate a number-generating action script corresponding to the target action according to the data generation rule corresponding to the target action and the parameters to be configured.

[0099] The script generation instruction is an instruction for triggering the generation of a number-generating action script.

[0100] As an example, in step S601, the server may receive a script generation instruction triggered by a user, wherein the script generation instruction carries a target scenario identifier and a target action, so as to generate a number-generating action script corresponding to the target action in the target application scenario.

[0101] The target scenario action tree is a tree structure formed by sorting all standard actions according to the business logic of the target scenario identifier.

[0102] As an example, in step S602, the server pre-stores the scene action trees corresponding to different scene identifiers, and each scene action tree refers to a tree structure formed by sorting all standard actions in the scene based on the business logic corresponding to the scene to be selected. After receiving the script generation instruction, the server only needs to determine the scene action tree that matches the target scene identifier as the target scene action tree according to the target scene identifier carried in the script generation instruction.

[0103] The dependent action refers to the action that must be executed before the target action is executed.

[0104] As an example, in step S603, the server may query the target scene action tree according to the target action, determine the target position of the target action in the target scene action tree, and determine whether there are other standard actions between the target position and the root node; if there are other standard actions between the target position and the root node, it is determined that there is a dependent action; if there are no other standard actions between the target position and the root node, it is determined that there is no dependent action. It can be understood that the target action is one of all the standard actions in the target scene action tree, and according to the target position of the target action in the target scene action tree, the one closest to the target action among all the standard actions from the root node to the target position can be determined as its dependent action.

[0105] Among them, the action output parameters of the dependent action refer to the parameters output after the dependent action is executed for the target action to call. The action input parameters corresponding to the target action refer to the parameters that need to be input during the execution of the target action. The parameters to be configured corresponding to the target action refer to the parameters that need to be configured to execute the number-making action script corresponding to the target action.

[0106] As an example, in step S604, when the target action has a dependent action, the server needs to determine the action output parameters corresponding to the dependent action and the action input parameters corresponding to the target action as the to-be-configured parameters corresponding to the target action. That is, in the process of executing the number-generating process of each target action, the action output parameters corresponding to the dependent action and the action input parameters corresponding to the target action need to be pre-configured to ensure that the to-be-configured parameters of the number-generating action script can be configured independently without relying on the execution of the dependent action, thereby ensuring the independence of the execution of the number-generating action script.

[0107] As an example, in step S605, when there is no dependent action for the target action, the server only needs to determine the action input parameters corresponding to the target action as the to-be-configured parameters corresponding to the target action.

[0108] The data generation rule refers to a pre-set rule used to meet the target action generation requirements. For example, in the target action of credit card issuance, the data generation rule is to generate the corresponding credit card number according to the credit card number generation rule.

[0109] As an example, in step S606, the server may obtain a number-generating action script corresponding to the target action by encoding the data generation rules corresponding to the target action and the parameters to be configured. The number-generating action script may be executed on the server to generate original test data matching the target action.

[0110] In the test data monitoring and processing method provided in the present embodiment, it is possible to determine whether there is a dependent action based on the target position of the target action in the target scenario action tree, and then determine the parameters to be configured corresponding to the target action in different ways, and then generate a number-generating action script corresponding to the target action based on the data generation rules and the parameters to be configured. The independence of the number-generating action script can be guaranteed so that all number-generating action scripts can run independently, and the combined number-generating of at least one target action can be realized, so that the obtained original test data can more easily meet user needs.

[0111] In one embodiment, if Figure 7 As shown, after step S201, that is, after monitoring the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier, the test data monitoring processing method further includes:

[0112] S701: determining original test data whose current state is occupied as occupied test data;

[0113] S702: Counting the number of all occupancy test data in the scene data pool, and determining the scene occupancy number corresponding to the target scene identifier;

[0114] S703: Determine the scene priority corresponding to the target scene identifier according to the scene occupancy quantity corresponding to the target scene identifier;

[0115] S704: According to the scene priorities corresponding to all the target scene identifiers, adjust the scene interface position corresponding to the target scene identifier in the scene selection interface.

[0116] As an example, in step S701, the server needs to determine whether the original test data is occupied test data based on the current status corresponding to each original test data monitored in real time. Specifically, the original test data whose current status is occupied is determined as occupied test data, indicating that the occupied test data has been occupied before the current time of the system.

[0117] As an example, in step S702, after determining whether each original test data is occupied test data, the server needs to count the number of all occupied test data in the scene data pool corresponding to the target scene identifier to determine the scene occupancy number corresponding to the target scene identifier. Generally speaking, the larger the scene occupancy number corresponding to the target scene identifier, the more often the original test data corresponding to the target scene identifier is occupied; conversely, the smaller the scene occupancy number corresponding to the target scene identifier, the less frequently the original test data corresponding to the target scene identifier is occupied.

[0118] As an example, in step S703, when the server obtains the scene occupancy quantities corresponding to all target scene identifiers, it can determine the scene priorities corresponding to all target scene identifiers according to the size order of the scene occupancy quantities corresponding to all target scene identifiers. Generally speaking, the larger the scene occupancy quantity corresponding to the target scene identifier, the greater the scene priority corresponding to the target scene identifier; the smaller the scene occupancy quantity corresponding to the target scene identifier, the smaller the scene priority corresponding to the target scene identifier.

[0119] The scenario selection interface refers to the interface provided by the test data system for users to select test data for different application scenarios.

[0120] As an example, in step S704, when the server obtains the scene priorities corresponding to all target scene identifiers, it can sort the scene interface positions corresponding to all target scene identifiers in the scene selection interface according to the order of the scene priorities corresponding to all target scene identifiers, so as to dynamically adjust the scene interface positions corresponding to the target scene identifiers in the scene selection interface. For example, the scene interface positions of the first few scene priorities corresponding to the target scene identifiers can be placed in the common scene quick entry interface, so as to subsequently improve the efficiency of users selecting the original test data with the first scene priority corresponding to the target scene identifier, thereby helping to improve the test efficiency.

[0121] This embodiment can determine the scene priority according to the number of occupancy tests corresponding to each target scene identifier, that is, according to the scene occupancy number corresponding to the target scene identifier, so as to dynamically adjust the scene interface position in the scene selection interface according to the scene priority, which helps to facilitate the calling of the original test data with the first scene priority, and further helps to improve the test efficiency.

[0122] In one embodiment, before step S201, that is, before monitoring the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier, the test data monitoring processing method further includes:

[0123] S801: Acquire a data generation instruction, where the data generation instruction includes a target scene identifier, a target generation quantity, and an instruction trigger type;

[0124] S802: Generate original test data matching the target generation quantity according to the data generation task corresponding to the target scenario identifier;

[0125] S803: Determine the data attribute corresponding to the original test data according to the instruction trigger type;

[0126] S804: The original test data carrying the data attributes is stored in a scene data pool corresponding to the target scene identifier.

[0127] The data generation instruction is an instruction for triggering the generation of test data, specifically an instruction for triggering the execution of a data generation task to generate test data. The target generation quantity is the quantity corresponding to the original test data to be generated this time.

[0128] The instruction trigger type is the type of instruction that triggers the data generation. As an example, the instruction trigger type includes an automatic trigger type and a manual trigger type. The automatic trigger type is a type that automatically triggers the generation of test data, for example, a type that generates test data by timing triggering according to a timing generation task. The manual trigger type is a type that is manually triggered by a user to generate test data, that is, a type that is manually triggered by a user to generate test data.

[0129] As an example, in step S801, the server may receive a data generation instruction triggered by a user on the client, that is, the user may select a target scene identifier from multiple scene identifiers to be selected on the data generation interface of the client to trigger the formation of a data generation instruction. At this time, the data generation instruction carries a target scene identifier, and its instruction trigger type is a manual trigger type. The scene identifier to be selected is an identifier used to uniquely identify a certain application scenario to be selected. The application scenario to be selected refers to an application scenario pre-configured by the system for the user to select.

[0130] As another example, in step S801, the server may execute a data generation instruction triggered by a timed generation task, where the data generation instruction carries a target scenario identifier pre-configured for the timed generation task, and its instruction trigger type is an automatic trigger type.

[0131] The data generation task is a pre-configured task for generating test data.

[0132] As an example, in step S802, the server may obtain a data generation task corresponding to the target scenario identifier, execute the data generation task, and generate raw test data matching the target generation quantity to obtain raw test data that meets the test requirements. The process of generating raw test data in step S802 is the same as the process of step S405, except that the number of raw test data generated is different. To avoid repetition, they are not described one by one here.

[0133] Among them, data attributes refer to the data attributes carried by the original test data when it is generated. Public attributes are attributes that can be used by all users. Private attributes are attributes that are only available to specific users.

[0134] As an example, in step S803, since the instruction trigger type includes an automatic trigger type and a manual trigger type, when the server determines the data attribute corresponding to the original test data according to the instruction trigger type, it specifically includes: if the instruction trigger type is an automatic trigger type, the data attribute corresponding to the original test data is a public attribute; if the instruction trigger type is a manual trigger type, the data attribute corresponding to the original test data is a private attribute. It can be understood that the data attribute of each original test data is determined according to the instruction trigger type corresponding to each data generation instruction, so that all original test data can be data isolated according to the data attribute of the original test data.

[0135] The scenario data pool is a collection of original test data for storing specific scenarios.

[0136] As an example, in step S804, the server may store the original test data carrying data attributes in a scenario data pool corresponding to the target scenario identifier, so that the original test data can be centrally managed according to its application scenario. The original test data carries data attributes, and data isolation between different original test data can be achieved based on the data attributes. When the original test data is subsequently called or tampered with, its data attributes can be updated or maintained to quickly check the called or tampered original test data, thereby preventing the called or tampered original test data from being called again by the system to be tested, thereby affecting the accuracy of the test of the system to be tested.

[0137] In the test data monitoring and processing method provided in this embodiment, only the target scenario identifier, target action, scenario parameter value and other information need to be configured to call and execute at least one number-making action script under the target application scenario, and the original test data required for different application scenarios can be quickly generated, so that the generation operation of the original test data is simple and the generation efficiency is high. It can be applied to the full-link test data generation of different application scenarios, and the scope of application of the original test data is improved. Moreover, the data attributes of the original test data can be determined according to the instruction trigger type, and the original test data carrying the data attributes can be stored in the scene data pool corresponding to the target scenario identifier, which can not only realize the unified and centralized management of the original test data, but also effectively isolate the original test data according to the data attributes, so as to facilitate the investigation of the original test data being called or tampered with, so as to improve the investigation efficiency later.

[0138] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0139] In one embodiment, a test data monitoring and processing device is provided, and the test data monitoring and processing device corresponds one-to-one to the test data monitoring and processing method in the above embodiment. Fig. 9 As shown, the test data monitoring and processing device includes a current state monitoring module 901, a result test data acquisition module 902, a data state detection module 903, an unavailable type acquisition module 904 and a test data processing module 905. The functional modules are described in detail as follows:

[0140] The current state monitoring module 901 is used to monitor the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier;

[0141] The result test data acquisition module 902 is used to acquire the result test data corresponding to the original test data if the current state corresponding to the original test data is the occupied state;

[0142] The data status detection module 903 is used to use the status detection script corresponding to the target scene identifier to perform status detection on the result test data and obtain the data status corresponding to the result test data;

[0143] The unavailable type acquisition module 904 is used to acquire the unavailable type corresponding to the result test data if the data state corresponding to the result test data is the unavailable state;

[0144] The test data processing module 905 is used to determine a target processing script according to the unavailable type corresponding to the result test data, and use the target processing script to recover or clean the result test data.

[0145] In one embodiment, the test data processing module 905 includes:

[0146] A test data recovery unit is used to determine the data recovery script corresponding to the target scenario identifier as the target processing script if the unavailable type corresponding to the result test data is a recoverable type, and use the data recovery script to perform recovery processing on the result test data to obtain recovery test data;

[0147] The test data cleaning unit is used to determine the data cleaning script as the target processing script if the unavailable type corresponding to the result test data is an unrecoverable type, and use the data cleaning script to clean the result test data.

[0148] In one embodiment, the original test data carries data attributes;

[0149] The test data monitoring and processing device also includes:

[0150] The valid test data determination module is used to determine the original test data whose current state is an available state and whose data attributes are public attributes as valid test data;

[0151] The current supply quantity determination module is used to count the number of all valid test data in the scenario data pool and determine the current supply quantity;

[0152] A current demand quantity determination module is used to obtain the current demand quantity corresponding to the current supply cycle;

[0153] A target additional quantity determination module is used to determine the target additional quantity based on the current demand quantity and the current supply quantity if the current supply quantity is less than the current demand quantity;

[0154] The first test data generation module is used to generate original test data matching the target additional quantity according to the data generation task corresponding to the target scene identifier, and store the original test data in the scene data pool corresponding to the target scene identifier.

[0155] In one embodiment, the first test data generating module includes:

[0156] A data generation task acquisition unit, used to acquire a data generation task corresponding to a target scene identifier, wherein the data generation task includes at least one target action and a scene parameter value corresponding to a scene configuration parameter;

[0157] The test data addition generation unit is used to execute a number-making action script corresponding to at least one target action according to a scenario parameter value corresponding to a scenario configuration parameter, and generate original test data matching the target additional quantity.

[0158] In one embodiment, the test data monitoring and processing device further includes:

[0159] A script generation instruction acquisition module is used to acquire a script generation instruction, wherein the script generation instruction includes a target scene identifier and a target action;

[0160] A scene action tree acquisition module is used to acquire a target scene action tree corresponding to a target scene identifier. The target scene action tree is a tree structure formed by sorting all standard actions according to the business logic of the target scene identifier.

[0161] A dependent action judgment module is used to determine whether a target action has a dependent action according to the target position of the target action in the target scene action tree;

[0162] A first configuration parameter determination module, configured to determine, if the target action has a dependent action, a to-be-configured parameter corresponding to the target action based on an action output parameter corresponding to the dependent action and an action input parameter corresponding to the target action;

[0163] A second configuration parameter determination module, configured to determine the to-be-configured parameters corresponding to the target action based on the action input parameters corresponding to the target action if the target action has no dependent actions;

[0164] The number-generating action script generating module is used to generate a number-generating action script corresponding to the target action according to the data generation rules and the parameters to be configured corresponding to the target action.

[0165] In one embodiment, the test data monitoring and processing device further includes:

[0166] An occupied test data determination module is used to determine the original test data whose current state is an occupied state as occupied test data;

[0167] A scene occupancy quantity determination module is used to count the number of all occupancy test data in the scene data pool and determine the scene occupancy quantity corresponding to the target scene identifier;

[0168] A scene occupancy quantity determination module, used to determine the scene priority corresponding to the target scene identifier according to the scene occupancy quantity corresponding to the target scene identifier;

[0169] The scene occupancy quantity adjustment module is used to adjust the scene interface position corresponding to the target scene identifier in the scene selection interface according to the scene priorities corresponding to all target scene identifiers.

[0170] In one embodiment, the test data monitoring and processing device further includes:

[0171] A data generation instruction acquisition module is used to acquire data generation instructions, where the data generation instructions include a target scene identifier, a target generation quantity, and an instruction trigger type;

[0172] A second test data generation module is used to generate original test data matching the target generation quantity according to the data generation task corresponding to the target scenario identifier;

[0173] A data attribute determination module, used to determine the data attribute corresponding to the original test data according to the instruction trigger type;

[0174] The test data processing module is used to store the original test data carrying data attributes in the scene data pool corresponding to the target scene identifier.

[0175] For the specific definition of the test data monitoring and processing device, please refer to the definition of the test data monitoring and processing method above, which will not be repeated here. Each module in the above-mentioned test data monitoring and processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0176] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data used or generated during the execution of the above-mentioned test data monitoring and processing method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a test data monitoring and processing method is implemented.

[0177] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the test data monitoring processing method in the above embodiment is implemented, for example Figure 2 S201-S205 as shown, or Figures 3 to 8 Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the test data monitoring processing device are realized, for example Fig. 9The functions of the current status monitoring module 901, the result test data acquisition module 902, the data status detection module 903, the unavailable type acquisition module 904 and the test data processing module 905 are not described here in detail to avoid repetition.

[0178] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the test data monitoring processing method in the above embodiment is implemented, for example Figure 2 S201-S205 as shown, or Figures 3 to 8 Alternatively, when the computer program is executed by the processor, the functions of each module / unit in the embodiment of the test data monitoring and processing device are realized, for example Fig. 9 The functions of the current status monitoring module 901, the result test data acquisition module 902, the data status detection module 903, the unavailable type acquisition module 904 and the test data processing module 905 are not described here in detail to avoid repetition.

[0179] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0180] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0181] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A test data monitoring and processing method, characterized in that: include: Obtaining a script generation instruction, wherein the script generation instruction includes a target scene identifier and a target action; Acquire a target scene action tree corresponding to the target scene identifier, wherein the target scene action tree is a tree structure formed by sorting all standard actions according to the business logic of the target scene identifier; Determine whether the target action has a dependent action according to the target position of the target action in the target scene action tree; If the target action has a dependent action, determining the to-be-configured parameters corresponding to the target action based on the action output parameters corresponding to the dependent action and the action input parameters corresponding to the target action; If the target action does not have a dependent action, determining the to-be-configured parameters corresponding to the target action based on the action input parameters corresponding to the target action; Generate a number-generating action script corresponding to the target action according to the data generation rule corresponding to the target action and the parameters to be configured; Monitor the current state of each original test data in the scene data pool corresponding to the target scene identifier, wherein the original test data carries data attributes; Determine the original test data whose current state is an available state and whose data attribute is a public attribute as valid test data; Counting the number of all the valid test data in the scenario data pool to determine the current supply quantity; Get the current demand quantity corresponding to the current supply cycle; If the current supply quantity is less than the current demand quantity, determining the target additional quantity according to the current demand quantity and the current supply quantity; Acquire a data generation task corresponding to the target scene identifier, wherein the data generation task includes at least one target action and a scene parameter value corresponding to a scene configuration parameter; According to the scene parameter value corresponding to the scene configuration parameter, execute at least one number-making action script corresponding to the target action, generate original test data matching the target additional quantity, and store the original test data in the scene data pool corresponding to the target scene identifier; If the current state corresponding to the original test data is an occupied state, obtaining result test data corresponding to the original test data; Using a status detection script corresponding to the target scene identifier, performing status detection on the result test data to obtain a data status corresponding to the result test data; If the data state corresponding to the result test data is an unavailable state, obtaining the unavailable type corresponding to the result test data; If the unavailable type corresponding to the result test data is a recoverable type, the data recovery script corresponding to the target scenario identifier is determined as the target processing script, and the data recovery script is used to perform recovery processing on the result test data to obtain recovery test data; If the unavailable type corresponding to the result test data is an unrecoverable type, a data cleaning script is determined as a target processing script, and the data cleaning script is used to clean the result test data.

2. The test data monitoring and processing method according to claim 1, characterized in that: In the scene data pool corresponding to the monitoring target scene identifier, after the current state corresponding to each original test data, the test data monitoring processing method further includes: Determine the original test data whose current state is an occupied state as occupied test data; Counting the number of all the occupancy test data in the scene data pool, and determining the scene occupancy number corresponding to the target scene identifier; Determining the scene priority corresponding to the target scene identifier according to the scene occupancy quantity corresponding to the target scene identifier; According to the scene priorities corresponding to all the target scene identifiers, the scene interface position corresponding to the target scene identifier in the scene selection interface is adjusted.

3. The test data monitoring and processing method according to claim 1, characterized in that: In the scene data pool corresponding to the monitoring target scene identifier, before the current state corresponding to each original test data, the test data monitoring processing method further includes: Acquire a data generation instruction, wherein the data generation instruction includes a target scene identifier, a target generation quantity, and an instruction trigger type; Generate original test data matching the target generation quantity according to the data generation task corresponding to the target scenario identifier; Determining data attributes corresponding to the original test data according to the instruction trigger type; The original test data carrying the data attributes is stored in a scene data pool corresponding to the target scene identifier.

4. A test data monitoring and processing device, characterized in that: include: A script generation instruction acquisition module, used to acquire a script generation instruction, wherein the script generation instruction includes a target scene identifier and a target action; A scene action tree acquisition module, used to acquire a target scene action tree corresponding to the target scene identifier, wherein the target scene action tree is a tree structure formed by sorting all standard actions according to the business logic of the target scene identifier; A dependent action judgment module, used for determining whether the target action has a dependent action according to the target position of the target action in the target scene action tree; A first configuration parameter determination module, configured to determine, if the target action has a dependent action, a to-be-configured parameter corresponding to the target action based on an action output parameter corresponding to the dependent action and an action input parameter corresponding to the target action; A second configuration parameter determination module, configured to determine the to-be-configured parameters corresponding to the target action based on the action input parameters corresponding to the target action if the target action has no dependent actions; A number-generating action script generating module, used for generating a number-generating action script corresponding to the target action according to the data generation rule corresponding to the target action and the parameters to be configured; A current state monitoring module is used to monitor the current state corresponding to each original test data in the scene data pool corresponding to the target scene identifier, wherein the original test data carries data attributes; A valid test data determination module, used for determining the original test data whose current state is an available state and whose data attribute is a public attribute as valid test data; A current supply quantity determination module, used to count the number of all the valid test data in the scene data pool to determine the current supply quantity; A current demand quantity determination module is used to obtain the current demand quantity corresponding to the current supply cycle; A target additional quantity determination module is used to determine the target additional quantity according to the current demand quantity and the current supply quantity if the current supply quantity is less than the current demand quantity; A first test data generation module includes a data generation task acquisition unit, which is used to acquire a data generation task corresponding to the target scene identifier, wherein the data generation task includes at least one target action and a scene parameter value corresponding to a scene configuration parameter; A test data addition generating unit, configured to execute a number-making action script corresponding to at least one of the target actions according to a scene parameter value corresponding to the scene configuration parameter, generate original test data matching the target additional quantity, and store the original test data in a scene data pool corresponding to the target scene identifier; A result test data acquisition module, used for acquiring result test data corresponding to the original test data if the current state corresponding to the original test data is an occupied state; A data status detection module, used to use a status detection script corresponding to the target scene identifier to perform status detection on the result test data and obtain a data status corresponding to the result test data; An unavailable type acquisition module, used for acquiring the unavailable type corresponding to the result test data if the data state corresponding to the result test data is an unavailable state; The test data processing module includes a test data recovery unit, which is used to determine the data recovery script corresponding to the target scenario identifier as the target processing script if the unavailable type corresponding to the result test data is a recoverable type, and use the data recovery script to recover the result test data to obtain the recovered test data; The test data cleaning unit is used to determine a data cleaning script as a target processing script if the unavailable type corresponding to the result test data is an unrecoverable type, and use the data cleaning script to clean the result test data.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the test data monitoring and processing method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the test data monitoring and processing method according to any one of claims 1 to 3 is implemented.