System testing method, scene simulation method and system, computing device and medium
Through system testing methods and scenario simulation systems, combined with data source simulators, prediction simulators and other components, the interaction between the target scenario and the target system is simulated, solving the timeliness and effect problems in artificial intelligence system testing, and achieving efficient and reliable testing. process.
Patent Information
- Application Number
- CN202310700541.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-13
- Publication Date
- 2024-08-30
AI Technical Summary
In the testing of artificial intelligence systems, it is difficult to effectively control the test timeliness with existing technology, the coordination test process is complex and time-consuming, and it is difficult to test based on actual application scenarios, resulting in poor test results.
Adopt system testing methods and combine the scenario simulation system with the system tester to simulate the interaction between the target scenario and the target system, collect interaction data, evaluate the test results, and optimize the testing process through tuning strategies, including data source simulators and estimated simulations components such as annotation simulator, evaluator and tuning simulator.
It improves test efficiency, reduces test time, ensures more realistic and reliable test results under simulated actual application scenarios, reduces test costs, and improves test automation.
Smart Images

Figure CN118567968A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a system testing method, a scenario simulation method and system, a computing device, and a medium. Background Art
[0002] With the development of computer technology, the application scenarios of artificial intelligence technology have gradually been subdivided. In order to achieve better results, the actual business scenarios are becoming more and more complex, and the data scale is also getting larger and larger. As a result, a lot of manpower and testing resources are also required when testing artificial intelligence systems.
[0003] Specifically, taking the system that provides real-time estimation services as an example, in the relevant testing technologies, the testing process for such a system is generally long and complicated, and the performance and effect of the real-time estimation need to be tested, which requires the cooperation of the persons in charge of multiple modules / special projects. However, this method makes it difficult to control the testing time of each module / special project, is not convenient for coordinating the testing process of real-time estimation, and is time-consuming. In addition, it is difficult to test the actual target application scenarios, and the test results may be poor. Summary of the invention
[0004] Exemplary embodiments of the present disclosure may solve at least the above problems.
[0005] According to a first aspect of the present disclosure, a system testing method is provided, the system testing method is executed in a testing system, the testing system includes a scenario simulation system and a system tester, the scenario simulation system is used to simulate the use of a target system to be tested to obtain a target model and use the target model to perform an estimation to obtain a target scenario, the system tester is used to test the target system based on the target scenario, the scenario simulation system includes a data source simulator and an estimation simulator, the data source simulator is used to simulate a data source that provides data, and the estimation simulator is used to simulate a request to perform an estimation using the target model, wherein the system testing method includes: scene, interacting with the target system for at least one round and collecting interaction data; determining the test result of the target system based on the interaction data; wherein the target scenario is simulated in the following manner: the data source simulator sends training data to the target system, so that the target system uses the training data to train the preset model in the target system to obtain the target model; the estimation simulator obtains the data to be estimated from the data source simulator, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request to estimate the data to be estimated using the target model.
[0006] Optionally, the scenario simulation system also includes a labeling simulator, which is used to simulate inputting training data labeling corresponding to the training data into the target system, wherein the target scenario is also simulated in the following manner: the labeling simulator obtains training data labeling corresponding to the training data from the data source simulator, and sends the training data labeling to the target system, so that the target system labels the training data based on the training data labeling.
[0007] Optionally, the target scenario is also simulated in the following manner: the estimation simulator obtains the data annotations to be estimated corresponding to the data to be estimated from the data source simulator, and based on the data annotations to be estimated, analyzes the real-time estimation results to obtain effect analysis results characterizing the estimation effect of the real-time estimation results.
[0008] Optionally, the system tester includes an evaluator, which is used to evaluate the performance of the target system and / or the estimated effect and / or model performance of the target model, wherein the target scenario is also simulated in the following manner: the evaluator obtains the effect analysis results and / or the performance data records of the target system during the training of the preset model; the evaluator calculates effect indicators and / or performance indicators based on the effect analysis results and / or the performance data records, wherein the effect indicators are used to characterize the estimated effect of the target model, and the performance indicators are used to characterize the performance of the target system and / or the model performance of the target model.
[0009] Optionally, the scenario simulation system further includes a tuning simulator, wherein the target scenario is also simulated in the following manner: the tuning simulator controls the scenario simulation system to enter the next simulation or end the simulation based on the effect indicator and / or the performance indicator obtained from the evaluator.
[0010] Optionally, the system testing method also includes: when the scenario simulation system enters the next simulation, the tuning simulator executes a tuning strategy corresponding to the current effect indicator and / or performance indicator according to the effect indicator and / or the performance indicator, wherein the tuning strategy includes at least one of the following items: controlling the data source simulator to adjust the training data sent to the target system; and / or modifying the configuration parameters of the target system during the training of the preset model.
[0011] Optionally, the estimation comprises at least one of the following: optical character recognition, graphic recognition and audio recognition.
[0012] According to a second aspect of the present disclosure, a scenario simulation method is provided, which is executed in a scenario simulation system, wherein the scenario simulation system is used to simulate using a target system to be tested to obtain a target model and using the target model to perform estimation to obtain a target scenario, wherein the target scenario is used to test the target system, and the scenario simulation system includes a data source simulator and an estimation simulator, wherein the data source simulator is used to simulate a data source that provides data, and the estimation simulator is used to simulate a request to perform estimation using the target model, wherein the scenario simulation method includes: the data source simulator sends training data to the target system, so that the target system uses the training data to train a preset model in the target system to obtain the target model; the estimation simulator obtains the data to be estimated from the data source simulator in real time, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request to estimate the data to be estimated using the target model.
[0013] According to a third aspect of the present disclosure, a test system is provided, the test system comprising a scenario simulation system and a system tester, the scenario simulation system being used to simulate using a target system to be tested to obtain a target model and using the target model to perform an estimation to obtain a target scenario, the system tester being used to test the target system based on the target scenario, the scenario simulation system comprising a data source simulator and an estimation simulator, the data source simulator being used to simulate a data source that provides data, the estimation simulator being used to simulate a request to perform an estimation using the target model, wherein the data source simulator sends training data to the target system for the target system to perform an estimation using the target model The training data is used to train the preset model in the target system to obtain the target model; wherein the estimation simulator obtains the data to be estimated from the data source simulator, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request to estimate the data to be estimated using the target model; wherein the system tester is used to collect interaction data and determine the test result of the target system based on the interaction data, wherein the interaction data is collected during at least one round of interaction between the scenario simulation system and the target system by simulating the target scenario.
[0014] Optionally, the scenario simulation system also includes a labeling simulator, which is used to simulate inputting training data labeling corresponding to the training data into the target system, and the labeling simulator obtains the training data labeling corresponding to the training data from the data source simulator, and sends the training data labeling to the target system, so that the target system labels the training data based on the training data labeling.
[0015] Optionally, the estimation simulator obtains the data to be estimated annotations corresponding to the data to be estimated from the data source simulator, and analyzes the real-time estimation results based on the data to be estimated annotations to obtain effect analysis results characterizing the estimation effect of the real-time estimation results.
[0016] Optionally, the system tester includes an evaluator, which is used to evaluate the performance of the target system and / or the estimated effect and / or model performance of the target model, and the evaluator obtains the effect analysis results and / or the performance data records of the target system during the training of the preset model; the evaluator calculates effect indicators and / or performance indicators based on the effect analysis results and / or the performance data records, wherein the effect indicators are used to characterize the estimated effect of the target model, and the performance indicators are used to characterize the performance of the target system and / or the model performance of the target model.
[0017] Optionally, the scenario simulation system further includes a tuning simulator, and the tuning simulator controls the scenario simulation system to enter the next simulation or end the simulation based on the effect index and / or the performance index obtained from the evaluator.
[0018] Optionally, when the scenario simulation system enters the next simulation, the tuning simulator executes a tuning strategy corresponding to the current effect indicator and / or performance indicator according to the effect indicator and / or the performance indicator, wherein the tuning strategy includes at least one of the following items: controlling the data source simulator to adjust the training data sent to the target system; and / or modifying the configuration parameters of the target system during the training of the preset model.
[0019] Optionally, the estimation comprises at least one of the following: optical character recognition, graphic recognition and audio recognition.
[0020] According to a fourth aspect of the present disclosure, a scenario simulation system is provided, wherein the scenario simulation system is used to simulate the use of a target system to be tested to obtain a target model and use the target model to perform estimation to obtain a target scenario, wherein the target scenario is used to test the target system, and the scenario simulation system includes a data source simulator and an estimation simulator, wherein the data source simulator is used to simulate a data source that provides data, and the estimation simulator is used to simulate a request to perform estimation using the target model, wherein the data source simulator sends training data to the target system so that the target system uses the training data to train a preset model in the target system to obtain the target model; wherein the estimation simulator obtains the data to be estimated from the data source simulator, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request the use of the target model to estimate the data to be estimated.
[0021] According to a fifth aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor executable instructions, when executed by the processor, prompt the processor to execute the system testing method or scenario simulation method according to the exemplary embodiments of the present disclosure.
[0022] According to a sixth aspect of the present disclosure, a computer-readable storage medium storing instructions is provided. When the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the system testing method or scenario simulation method according to the exemplary embodiments of the present disclosure.
[0023] According to a seventh aspect of the present disclosure, a system is provided comprising at least one computing device and at least one storage device storing instructions, wherein when the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the system testing method or the scenario simulation method according to the exemplary embodiments of the present disclosure.
[0024] According to the system testing method, scenario simulation method and system, computing device, and medium of the exemplary embodiments of the present disclosure, a data source simulator can simulate the data source that provides data to the target system and the estimation simulator, and the estimation simulator can simulate the process of real-time testing and estimation services to simulate the actual application scenario of the target system, thereby eliminating the need to manually construct a test scenario for the target system, improving testing efficiency, reducing testing time, and ensuring that a more realistic and reliable use effect of the system is obtained by testing in the simulated actual application scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] These and / or other aspects and advantages of the present disclosure will become clear and more easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0026] Figure 1 is a flow chart illustrating a system testing method according to an exemplary embodiment of the present disclosure.
[0027] Figure 2 is a schematic block diagram illustrating an example of a test system according to an exemplary embodiment of the present disclosure.
[0028] Figure 3 is a schematic flow chart illustrating a simulated target scenario according to an exemplary embodiment of the present disclosure.
[0029] Figure 4 is a schematic block diagram illustrating a scenario simulation system and a target system according to an exemplary embodiment of the present disclosure.
[0030] Figure 5 is a schematic flow chart illustrating calculation effect indicators and performance indicators according to an exemplary embodiment of the present disclosure.
[0031] Figure 6 is a schematic block diagram illustrating a scenario simulation system according to an exemplary embodiment of the present disclosure.
[0032] Figure 7 is a block diagram illustrating a computing device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the embodiments of the present disclosure as defined by the claims and their equivalents. Various specific details are included to assist in understanding, but these details are considered to be exemplary only. Therefore, one of ordinary skill in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and structures are omitted for clarity and brevity.
[0034] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0035] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0036] With the continuous development of artificial intelligence (AI) technology, the application of AI systems is becoming more and more extensive, and the complexity of business scenarios is becoming higher and higher. This means that when testing AI systems, more and more manpower and material resources are consumed while taking into account the quality requirements of functions, performance, and effects.
[0037] In related testing technologies, according to conventional testing ideas, when testing AI systems, it is necessary to first conduct basic functional testing to ensure the integrity and correctness of the process; then conduct performance and effect testing to ensure that the overall performance and effect of the system with AI as the core meet expectations; finally, stability, compatibility, security and other aspects of testing are required. In this entire process, testers from multiple different modules need to work together, and problems found in one module may lead to the repetition of the entire process.
[0038] For example, taking the real-time estimation scenario as an example, in actual testing, a real-time estimation system such as an optical character recognition (OCR) system may need to adjust the test items based on different business scenarios. The business scenarios described here can be understood as the classification of some different recognition objects. For example, financial bill recognition can be an object category for OCR recognition. Under this category, it can be further subdivided into settlement business authorization letter recognition, check recognition, invoice recognition, special transfer voucher recognition, credit voucher recognition, tax invoice recognition and other subcategories.
[0039] When using the above-mentioned testing technologies, the testing process will be relatively long and complicated, and requires the cooperation of multiple module / special project leaders. This may involve issues such as the coordinated sharing of testing resources, synchronous backtracking of testing issues, and regression of discovered defects, which may make it difficult to coordinate the overall process.
[0040] In addition, the above-mentioned related testing technologies mainly focus on the coverage of system functions, rather than testing the actual application scenarios of users, which may result in wasted testing resources but the testing results may not be good.
[0041] In addition, for real-time prediction scenarios, the above-mentioned related testing technologies face new problems. On the one hand, different business scenarios require the use of different test data, and the performance effect indicators of concern are also different. On the other hand, the same set of test processes may need to be connected to different systems under test. Traditional automated testing solutions tightly couple test data, test processes (including effect / performance evaluation systems) and systems under test, which makes test solutions usually difficult to reuse. Every time a business scenario or system under test is changed, a set of processes needs to be rewritten, which is time-consuming and labor-intensive.
[0042] In view of the above problems, the following describes with reference to the accompanying drawings a system testing method, a scenario simulation method, a testing system, a scenario simulation system, a computing device, a computer-readable storage medium, and a system including at least one computing device and at least one storage device for storing instructions according to exemplary embodiments of the present disclosure, so as to at least solve or alleviate one of the problems in the related art.
[0043] In a first aspect, an exemplary embodiment of the present disclosure provides a system testing method, which can be executed on a test system, and the test system can be used to test a target system to be tested. As an example, the test of the target system can include but is not limited to at least one of an effect test and a performance test.
[0044] Here, the test system can run on a device with computing and analysis capabilities, for example, it can run on the same computing device as the target system to be tested, or it can run on another computing device that is communicatively connected to the computing device running the target system, as long as the test system can interact with the target system.
[0045] For ease of understanding, in the following description of the system testing method according to the exemplary embodiment of the present disclosure, the testing system and the scenario simulation system will also be described.
[0046] like Figure 1 As shown, the system testing method according to the exemplary embodiment of the present disclosure may include: in step S110, at least one round of interaction with the target system may be performed by simulating the target scenario, and interaction data may be collected; in step S120, the test result of the target system may be determined based on the interaction data. As an example, the test result of the target system may include but is not limited to at least one of an effect test result and a performance test result.
[0047] Here, the simulated target scenario may be, for example, but not limited to, at least one of the following scenarios: an OCR recognition scenario, a graphic recognition scenario, and an audio recognition scenario. The target scenario may be determined according to the business of the user of the target system, and the simulated target scenario may include multiple aspects such as the working module, physical environment, workflow, data, duration, etc. of the simulated target scenario, and may also support cyclic operation according to a period.
[0048] Specifically, the scenario simulation system described below can be used to interact with the target system to be tested. The interaction can be, for example, an interaction behavior with the target system that may occur in the real world. By simulating this interaction, the operation process of the target system in the real world can be simulated. By collecting and analyzing the data generated during the interaction process, the test results of the target system can be obtained.
[0049] The target system can be used to make real-time estimates of the data received in real time, and it can be, for example, but not limited to, at least one of the following systems: an OCR recognition system such as HyperCycle in an OCR recognition scenario, a graphic recognition system in a graphic recognition scenario, and an audio recognition system in an audio recognition scenario. As an example, the target system can perform at least one of the following functions: data management function, model training function, model output function, and model online function.
[0050] Specifically, the target system may preset a model to be trained, which may be a model for performing real-time estimation, such as an OCR model, and the model may be set according to actual business scenario requirements, and the embodiments of the present disclosure do not impose any particular restrictions on this.
[0051] The target system may receive training data from the outside, and train the model to be trained based on the training data to obtain a trained target model. In the process of receiving the training data, in one example, the target system may first receive the training data, and then receive the training data annotations corresponding to the training data, for example, the training data may be manually identified, and the annotations of each training data may be input into the target system; in another example, the target system may directly receive the annotated training data.
[0052] After obtaining the trained target model, the target system can put the target model online and support testing of the target model. For example, the target system can receive the data to be estimated, input the data to be estimated into the target model, output the estimated result from the target model, and feed back the estimated result to implement testing of the target model.
[0053] In the system testing method of the embodiment of the present disclosure, the performance of the target system can be tested by simulating the target scenario, interacting with the target system, and collecting interaction data. The test object may include, for example, but is not limited to, at least one of the data management function, the training model function, the output model function, and the model launch function of the target system.
[0054] Here, interaction may refer to sending data to the target system and / or receiving data from the target system. For example, interaction may include but is not limited to: sending training data to the target system, sending training data annotations to the target system, sending an estimation request for estimating the data to be estimated to the target system, and receiving an estimation result of the data to be estimated from the target system.
[0055] As an example, the training data may include, but are not limited to, character training data, graphic training data, and audio training data. The data to be estimated may include, but are not limited to, character data, graphic data, and audio data.
[0056] In the process of interaction with the target system, the interaction data can reflect the interaction process with the target system and the operation process of the target system. Based on the interaction data, the performance index and / or effect index of the target system can be calculated and evaluated, thereby testing the system performance and / or effect. Specific examples of interaction data will be further described in detail below.
[0057] The following will refer to Figures 2 to 4 Describe in detail an example process for simulating a target scenario.
[0058] like Figure 2 As shown, the test system may include a scenario simulation system 100 and a system tester.
[0059] The scenario simulation system 100 can be used to simulate the target system 300 to be tested to obtain a target model and estimate the target scenario using the target model, and the system tester is used to test the target system 300 based on the target scenario. As an example, the test system can be implemented by an automated test process script and the hardware facilities it relies on.
[0060] The scenario simulation system 100 may include a data source simulator 110 and an estimation simulator 120. The data source simulator 110 may be used to simulate a data source that provides data, and the estimation simulator 120 may be used to simulate a request to use a target model for estimation. The scenario simulation system 100 may include an active object (Actor), which may refer to a person simulated in an actual business scenario or other entities that will interact with the target system being tested, such as but not limited to a staff member, a system, or a certain type of script. The data source simulator 110 and the estimation simulator 120 described here, as well as the annotation simulator 140, the evaluator 200, and the tuning simulator 160 described below are all active objects.
[0061] As an example, the data source simulator 110 may provide training data to the target system 300, and the training data may include training data or may include both training data and corresponding training data annotations. The estimation simulator 120 may send a real-time estimation request to the target system for requesting real-time estimation of the data to be estimated, and may receive a real-time estimation result corresponding to the estimation request from the target system, where the data to be estimated may be obtained from the data source simulator 110.
[0062] In addition, if Figure 2 As shown, the test system may include a system tester, which may be used to collect interaction data and determine a test result of the target system 300 based on the interaction data.
[0063] Here, the interaction data may be collected during at least one round of interaction between the scenario simulation system 100 and the target system 300 by simulating the target scenario. As an example, the system tester may collect the interaction data from the scenario simulation system 100. For example, the system tester may be or include the evaluator 200 described below, but is not limited thereto. It may also be other modules that collect interaction data from the data source simulator and the estimation simulator and determine the test result of the target system.
[0064] In an actual implementation scenario, the system tester can be a processing unit or processing module in the processor of the test system, or it can be an interface processor or other separately designed processor or processing module connected to the target system 300 in the test system. For example, the system tester can be integrated in the interactive interface adapter 170 to be described below, or it can be a separately designed processor with data acquisition capabilities and permissions, without exhausting the list.
[0065] The interaction data may record or reflect the interaction process and respective operation process of the data source simulator, the estimation simulator and the target system. As an example, the interaction data may include, but is not limited to: data sent by the data source simulator 110 to the target system 300, data sent by the estimation simulator 120 to the target system 300, data received by the estimation simulator 120 from the target system 300, and the operation data of the target system 300 itself.
[0066] For example, based on the interaction data, it is possible to learn what training data the data source simulator 110 has sent to the target system 300 and how long it takes for the target system 300 to train a model based on these training data. This allows the training time of the model to be determined to test the training performance of the target system. For example, if the training time is shorter, it can be considered that the training performance of the target system is better.
[0067] For another example, based on the interaction data, it is possible to learn which data to be estimated is sent by the estimation simulator 120 to the target system 300, and the estimation results of the target system 300 for these data to be estimated. Thus, the estimation accuracy of the target model can be determined by comparing the annotations of the data to be estimated and the estimation results. For example, when the estimation accuracy is high, it can be considered that the training effect of the target system on the target model is better.
[0068] Based on the test system according to the embodiment of the present disclosure, Figure 3 As shown, the target scenario can be simulated in the following ways:
[0069] In step S310 , the data source simulator 110 may send training data to the target system, so that the target system 300 may use the training data to train a preset model in the target system 300 to obtain a target model.
[0070] As an example, the data source simulator 110 can simulate a data warehouse or similar data system of a user of the target system, and manage the training data required for use in the use of the target system, and the training data can include a training data set, a verification data set, etc. The target system 300 can train a preset model in the target system 300 based on the training data set received from the data source simulator 110 to obtain a target model. In addition, the target system 300 can also obtain a verification data set from the data source simulator 110 to verify the target model.
[0071] The data source simulator 110 can, for example, but not limited to, save the data required for the entire test process through a local or cloud storage system. The data can, for example, include but are not limited to: training data for the target system training model and / or data annotations corresponding to the training data, verification data for the target system to verify the target model and / or data annotations corresponding to the verification data, data to be estimated for the estimation simulator 120 to perform estimation testing and / or data annotations corresponding to the data to be estimated, etc.
[0072] The data source of the data source simulator 110 may be, for example, but not limited to, at least one of the following data: annotated real business data, automatically generated data, and unannotated real business data.
[0073] Specifically, in one example, real business data can be obtained, and after manual annotation and confirmation by the user, the final annotated data can be obtained, and the annotated data can be provided to the data source simulator 110. For example, taking the OCR financial bill recognition scenario as an example, the bills generated by the user in the real business process, such as invoices, transfer slips, bills of exchange, etc., can be obtained, and these bills can be annotated manually, for example, the invoice date and account information of each bill can be annotated, so that data and corresponding data annotations can be obtained.
[0074] In another example, the data may be automatically generated, e.g. Figure 4 As shown, the test system may further include a data generator 130, which may generate annotated data. For example, taking the OCR financial bill recognition scenario as an example, the data generator 130 may generate some virtual bills, and in the generation process, the information in these virtual bills may be automatically annotated, thereby obtaining data and corresponding data annotations. By using the data generator 130 to generate data, the difficulty and complexity of data collection in the test preparation stage may be reduced, and the test efficiency may be improved.
[0075] In another example, unlabeled real business data can be obtained and stored in the data source simulator 110, and the data source simulator 110 can send the unlabeled data to a system that can provide estimation services, label the data, obtain data labels, and send the data labels back to the data source simulator 110. The data source simulator 110 can organize the data and the data labels into a labeled data set that can be used by the target system. Here, the system that provides the estimation service can be any estimation system, which can be, for example, the target system itself, or other estimation systems that have been launched.
[0076] In the above example, the data annotations obtained by manual annotation, the data annotations automatically generated, and the data annotations annotated by the estimated system can all be saved in the form of a separate annotation file, such as a file in csv format. The annotation file can store data annotations and the correspondence between data annotations and data, so that each data annotation can be mapped to the corresponding data based on the annotation file.
[0077] In addition, the data source simulator 110 can store multiple sets of training data and multiple sets of data to be estimated, so as to be used for more than 300 training models of the target system.
[0078] As an example, the data source simulator 110 may have a calling interface to allow other actors or target systems to call, so as to obtain data from the data source simulator 110 .
[0079] By setting up a data source simulator, the functions of the user's data center of the target system can be simulated to manage training data. At the same time, the data required for online model estimation can be managed. The process of the target system receiving training data in actual use can be simulated, so that the data receiving capability of the target system can be tested.
[0080] Return to reference Figure 3 In step S320 , the estimation simulator 120 may obtain the data to be estimated from the data source simulator 110 , send an estimation request to the target system, and receive a real-time estimation result corresponding to the estimation request from the target system 300 .
[0081] Here, the estimation request may be used to request estimation of the data to be estimated using the target model.
[0082] The estimation simulator 120 can simulate the process of a user using the target system to perform real-time estimation. For example, taking the OCR scenario as an example, the estimation simulator 120 can send an estimation request to the target system so that the target system estimates the character data to be estimated, and receive real-time recognition results of the character data from the target system 300.
[0083] Here, the data to be estimated can be obtained from the data source simulator 110. For example, the estimation simulator 120 can send a request to obtain the data to be estimated to the data source simulator 110 by calling the interface of the data source simulator 110. The data source simulator 110 can respond to the request and send the data to be estimated to the estimation simulator 120.
[0084] In this way, by setting up an estimation simulator, the process of the target system receiving an estimation request and feeding back the estimation result in real time in actual use can be simulated, thereby testing the real-time estimation capability of the target system.
[0085] Based on the above process, the target scenario of interaction with the target system can be simulated through the data source simulator and estimation simulator of the scenario simulation system, so as to simulate the usage status of the target system in actual application, so as to test the target system. Such a test scheme can integrate the test process of each stage, reduce the test time and test cost, and ensure that the system can be tested more realistically and reliably without manual labor.
[0086] In addition, in order to solve the problem that only the functional part of the system is tested in the relevant testing technology, while the automation level of test items such as performance and effects in real scenarios that users are also concerned about is insufficient, the testing method of the embodiment of the present disclosure organizes the test plan with the actual business scenario as the main granularity, and builds a system that can run the entire process automatically in a single scenario. The automated processes of conventional functional testing and special tests such as performance and effects can be integrated in series and executed with one click. In this way, the coordination and sharing of personnel and resources caused by separate testing of multiple modules / special projects can be avoided, and the time loss in the process can be reduced, thereby improving the overall testing efficiency.
[0087] In addition, as an example, the estimation simulator 120 may also simulate a process in which a user of the target system performs a secondary review on the real-time estimation result when using the target system for estimation.
[0088] For example, in the system testing method of the embodiment of the present disclosure, the target scenario can also be simulated in the following manner: the estimation simulator 120 obtains the annotations of the data to be estimated corresponding to the data to be estimated from the data source simulator 110, and analyzes the real-time estimation results based on the annotations of the data to be estimated to obtain effect analysis results that characterize the estimation effect of the real-time estimation results.
[0089] Specifically, in actual applications of the target system, after receiving the real-time estimation result, the user may also manually review the real-time estimation result.
[0090] Taking the OCR financial bill scenario as an example, before the target system such as HyperCycle OCR is connected, the financial bill recognition requires at least two manual confirmations. After the target system is connected, at least one manual confirmation can be reduced. In some cases, due to regulatory reasons, financial users may not fully trust the estimated results generated by the target system and will not replace both manual confirmations with automatic recognition by the target system. Therefore, the target system may be used for the first recognition, and then a second manual confirmation is required to ensure the accuracy of the results.
[0091] Since the data in the data source simulator 110 may be annotated, in order to simulate the manual review process, the estimation simulator 120 may also obtain the data annotations corresponding to the data to be estimated from the data source simulator 110 when or after obtaining the data to be estimated, and analyze the data annotations and the real-time estimation results fed back by the target system 300. As an example, the estimation simulator 120 may send the effect analysis results to the data source simulator 110 to store the effect analysis results in the data source simulator 110.
[0092] For example, the estimation simulator 120 may compare the annotations of the data to be estimated with the real-time estimation results. The smaller the difference between the real-time estimation results and the annotations of the data to be estimated, the more accurate the real-time estimation results are and the better the estimation effect of the target system 300 is. On the contrary, the greater the difference between the real-time estimation results and the annotations of the data to be estimated, the greater the deviation of the real-time estimation results is and the worse the estimation effect of the target system 300 is.
[0093] For example, in an OCR scenario, the estimation simulator 120 may compare the recognition results of the target system's OCR online service with the original data annotations to be estimated field by field to determine whether each field is correctly recognized, or may also return specific fields that are incorrectly recognized.
[0094] In the above example, the estimation simulator can not only simulate the process of requesting an estimation from the target system and receiving the estimation results, but also simulate the manual review of the real-time estimation results, and can review, confirm and store the real-time estimation results. This makes the simulation process closer to the use of the target system in the real world, and can also facilitate the statistical analysis of the estimation effect of the target system, providing guidance for the optimization of the target system.
[0095] Refer to above Figures 1 to 3 An example of a test system and a system test method according to an exemplary embodiment of the present disclosure is described below. Figure 4 Other examples of the scenario simulation system and the target system according to the exemplary embodiment of the present disclosure are described in detail.
[0096] In addition to the data source simulator 110 and the estimation simulator 120 described above, Figure 4 As shown, the scenario simulation system 100 may further include a labeling simulator 140 .
[0097] The annotation simulator 140 may be used to simulate inputting training data annotations corresponding to the training data into the target system 300 .
[0098] Specifically, in the actual process of training the model of the target system, in one example, the training data and the training data annotations can be sent to the target system together, and the target system can perform model training based on the training data and the training data annotations. When simulating this example process, the data source simulator 110 can send the training data and the training data annotations to the target system together.
[0099] In another example, the training data may be sent to the target system, and the training data may be annotated by manual annotation to obtain the training data annotation. In this example, the target system may annotate the training data based on the training data annotation, and then use the training data and the training data annotation to perform model training. When simulating this example process, the data source simulator 110 may only send the training data to the target system, and the annotation simulator 140 is required to simulate the process of manual input annotation and input the training data annotation corresponding to the training data to the target system 300.
[0100] Specifically, in an embodiment of the present disclosure, the target scenario can also be simulated in the following manner: the annotation simulator 140 can obtain training data annotations corresponding to the training data from the data source simulator 110, and send the training data annotations to the target system 300, so that the target system 300 can annotate the training data based on the training data annotations.
[0101] For example, the annotation simulator 140 can obtain an annotation file including training data annotations from the data source simulator 110, and in the automated testing process of the target system 300, call the interface of the target system 300 to enable the target system 300 to map the annotation information in the annotation file with the relative path information of the training data in the target system 300 one by one.
[0102] Here, by setting up a labeling simulator, the process of manual labeling of original data can be simulated in the automated testing process to achieve labeling of original training data. Since only labeled data can be used for model training, by introducing a labeling simulator, the target system 300's ability to manage data and data labeling can be tested, for example, whether the target system can map each label to the corresponding training data.
[0103] It should be noted that, although an example of simulating the annotation of raw data through an annotation simulator is described here, the embodiments of the present disclosure are not limited to this, and the annotation simulator may be omitted. For example, when the data received by the target system itself is annotated (such as automatically generated data), the annotation simulator may be omitted, or the annotation process of the annotation simulator may be automatically skipped after the annotated data enters the target system.
[0104] In addition, if Figure 4As shown, the system tester may include an evaluator 200 , which may be used to evaluate the performance of the target system 300 and / or the estimated effect of the target model and / or the model performance.
[0105] Specifically, the evaluator 200 can save and analyze the performance data and effect data during the use of the target system 300, calculate the performance index and / or effect index, and determine whether the performance and / or effect of the target system meet the standards.
[0106] In the system testing method of the embodiment of the present disclosure, if Figure 5 As shown, the target scenario can also be simulated in the following ways:
[0107] In step S510 , the evaluator 200 may obtain effect analysis results and / or performance data records of the target system during the process of training the preset model.
[0108] In this step, in the example where the estimation simulator 120 sends and stores the effect analysis result to the data source simulator 110, the evaluator 200 may obtain the effect analysis result from the data source simulator 110. However, the embodiments of the present disclosure are not limited thereto, and the evaluator 200 may also directly obtain the effect analysis result from the estimation simulator 120.
[0109] In addition, the evaluator 200 may obtain performance data records from the target system 300 during the process of training the preset model.
[0110] In step S520 , the evaluator 200 may calculate an effect index and / or a performance index based on the effect analysis result and / or the performance data record.
[0111] Here, the effect index may be used to characterize the estimated effect of the target model, and the performance index may be used to characterize the performance of the target system 300 and / or the model performance of the target model.
[0112] The effect index and the performance index may be determined according to the actual application scenario, and the embodiments of the present disclosure do not impose any particular limitation on this. For example, the effect index and the performance index may be existing indicators in the relevant business scenario.
[0113] For example, performance indicators may include but are not limited to at least one of the following indicators: model training time, average response time in online estimation of single concurrency, TP99 and throughput, average response time in online estimation of multiple concurrency, TP99 and throughput. Effect indicators may be related to the current business scenario. For example, in the OCR scenario, effect indicators may include but are not limited to at least one of the following indicators: average field accuracy, single field accuracy.
[0114] Here, model training time refers to the overall time taken from the start to the end of model training, which does not include the time taken to prepare and label data before training, nor does it include the time taken to start the online estimation service after training.
[0115] The average response time in online estimation of single concurrency may refer to the average corresponding time consumed to calculate each piece of data after all estimated data are run when estimating in a single thread. For example, the calculation formula may be: average response time = estimated total time consumed / estimated data volume.
[0116] TP99 in online single-concurrency estimation refers to the calculation of the 99th percentile after running all estimated data when estimating in a single thread. TP stands for Top Percentile, and TP99 represents the response time ranking in the 99th percentile position in the response time of this estimated request.
[0117] The throughput in online estimation of single concurrency may refer to the number of requests processed per second by the estimated service when estimating in a single thread. For example, the calculation formula may be: single concurrency test throughput = 1 / single concurrency average response time.
[0118] The average response time in online estimation of multiple concurrency may refer to the average response time of each piece of data calculated after all estimated data are run when estimating in multiple threads. For example, the calculation formula may be: average response time = total estimated time of multiple threads / total estimated data volume of multiple threads.
[0119] TP99 in online multi-concurrency estimation refers to the calculation of the 99th percentile after running all estimated data during multi-threaded estimation. TP99 represents the response time ranking in the 99th percentile among the response times of this multi-threaded estimated request.
[0120] The online estimation of multi-concurrency throughput may refer to the estimated number of requests processed per second by the service when multiple threads are estimated. For example, the calculation formula may be: multi-concurrency test throughput = the sum of the number of multi-concurrency requests / actual service processing time.
[0121] The average field accuracy can be calculated based on the field as the statistical granularity. For example, the calculation formula can be: average field accuracy = number of correctly identified fields of all data in this batch / (estimated data volume in this batch * number of fields of each data item).
[0122] The single-field accuracy rate can be counted independently for each field. For example, the calculation formula can be: single-field accuracy rate = the number of data correctly identified by this field in this batch / the estimated data volume in this batch.
[0123] According to the calculation formulas of the above indicators, the evaluator 200 can use the corresponding data in the effect analysis results and / or performance data records to calculate indicators to evaluate the performance of the target system and / or the estimated effect and / or model performance of the target model, and can generate a test report (for example, in HTML / PDF format).
[0124] Here, by setting up an evaluator, the effect analysis results and performance data records during the simulation process can be obtained from each simulator and the target system, and relevant indicators can be calculated to achieve quantitative analysis of the test results.
[0125] In addition, if Figure 4 As shown, the scenario simulation system 100 may further include a tuning simulator 160. The tuning simulator 160 may control the scenario simulation system to enter the next simulation or end the simulation based on the effect index and / or performance index obtained from the evaluator 200.
[0126] Specifically, when users actually use the target system, they may not be able to obtain a target model with expected performance and good results after just one training session. Instead, they may adjust some parameters or even processes based on the characteristics of the data and business, and thus obtain the target model after multiple training sessions.
[0127] The tuning simulator 160 may be used to simulate a usage scenario in which a user controls a target system to perform multiple simulations.
[0128] As an example, the system testing method may also include: when the scenario simulation system enters the next simulation, the tuning simulator 160 may execute a tuning strategy corresponding to the current effect indicator and / or performance indicator based on the effect indicator and / or performance indicator.
[0129] Here, the tuning strategy may include but is not limited to at least one of the following items: controlling the data source simulator to adjust the training data sent to the target system; and / or modifying the configuration parameters of the target system during the training of the preset model.
[0130] Specifically, we can collect past implementation experience at the business site and summarize some tuning strategies for different scenarios, different effect indicators and / or performance indicators through empirical methods. The tuning strategy can be pre-set. For example, we can set corresponding tuning strategies for different types of effect indicators and / or performance indicators. When the current effect indicator and / or performance indicator belongs to a certain type, we can adopt the tuning strategy corresponding to the type for tuning.
[0131] For example, it can be determined based on the effect index and / or performance index that the effect and / or performance may be poor due to insufficient training data, and the tuning strategy can be to increase the amount of training data. Based on the tuning strategy, the tuning simulator 160 can control the data source simulator 110 to send more training data to the target system 300 and perform the next simulation. The above process can be looped until the effect index and / or performance index reaches the expected value, or the maximum number of tuning cycles is reached.
[0132] For another example, it can be determined based on the effect index and / or performance index that the effect and / or performance may be poor due to the configuration parameters of the target system, and the tuning strategy can be to modify the configuration parameters of the target system. Based on the tuning strategy, the tuning simulator 160 can send the modified configuration parameters to the target system and perform the next simulation. The above process can be looped until the effect index and / or performance index reaches the expected value, or the maximum number of tuning cycles is reached.
[0133] It should be noted that the tuning strategy can be determined according to the actual business scenario, which is not limited to the above examples, and other strategies can also be added or replaced. The analysis of effect indicators and / or performance indicators can also be determined according to the actual business scenario. For example, in the OCR scenario, when the average field accuracy is less than the first threshold and greater than the second threshold, it can be considered that the low accuracy may be due to insufficient training data; when the average field accuracy is less than the second threshold, it can be considered that the low accuracy may be due to the configuration parameters of the target system. The specific judgment basis can be given according to actual needs, and the present disclosure does not impose any special restrictions on this.
[0134] By setting the tuning simulator 160 , the tuning solution strategies frequently encountered by users of the target system can be automatically simulated based on existing experience, so as to test the tuning process of the system in use.
[0135] It should be noted that, although an example of tuning the training process through simulating the tuning simulator is described here, the embodiments of the present disclosure are not limited to this, and the tuning simulator may also be omitted. For example, the target system may be trained only once, or the training process may be performed separately using different data amounts or different configuration parameters by default to obtain multiple target models, and then a model with better effect or performance may be selected from these target models.
[0136] In addition, if Figure 4 As shown, the scenario simulation system 100 may further include an interactive interface adapter 170 , which may serve as an adapter interface (Application Program Interface, API) for the scenario simulation system 100 to interact with the target system 300 .
[0137] The interactive interface adapter 170 can be used to adapt the scenario simulation system 100 to different target systems so that the scenario simulation system 100 can be reused. Specifically, by encapsulating the interface of the target system, the main test process of the scenario simulation system 100 can be implemented through the encapsulation interface of the interactive interface adapter 170 instead of directly interacting with the target system. In this way, if the system under test needs to be replaced, it is only necessary to adjust the encapsulation interface in the interactive interface adapter 170 without changing the main test process and other module logics.
[0138] By setting the interactive interface adapter 170 (also called an adapter), the scene simulation system 100 can be applicable to different target systems. For example, in the OCR scenario, the scene simulation system 100 can be applicable to the HyperCycleOCR system and can also be applicable to other OCR products.
[0139] As an example, the interactive interface adaptation device 170 may include a parameter configuration interface 171 , a data upload interface 172 , a data annotation interface 173 , a request estimation and return result interface 174 , and a modeling trainer information interface 175 .
[0140] The parameter configuration interface 171 can receive configuration parameters for the target system from the tuning simulator 160 , and send the configuration parameters to the target system for configuring or modifying the parameters of the target system to tune the model training.
[0141] The data upload interface 172 may receive training data for a target system training model from the data source simulator 110 , and send the training data to the target system.
[0142] The data annotation interface 173 may receive training data annotations for training data from the annotation simulator 140 , and send the training data annotations to the target system.
[0143] The request estimation and return result interface 174 can receive an estimation request for real-time estimation service from the estimation simulator 120 and send the estimation request to the target system. The request estimation and return result interface 174 can also receive real-time estimation results from the target system and send the real-time estimation results to the estimation simulator 120.
[0144] The modeling trainer information interface 175 may receive a performance data record of the target system from the target system and send the performance data record to the evaluator 200 .
[0145] Here, by setting the interactive interface adapter 170, the coupling between the test system and the target system under test can be reduced as much as possible, and the reusability of the entire process can be improved. The interactive interface adapter 170 can be responsible for almost all interactions between the test system and the system under test (such as but not limited to artificial network product interface (Website User Interface, Web UI) operations, API operations, data interactions, etc.), and can be simplified into a general management module. In this way, when replacing a new system under test, only part of the logic in the interactive interface adapter 170 needs to be adjusted to quickly complete the development work of docking the new system under test, so that the scene simulation process can be retained as much as possible without the need for complete redevelopment.
[0146] It should be noted that although Figure 4 The various interfaces included in the scenario simulation system are shown as examples, but are not limited thereto. For example, the scenario simulation system may also include more or fewer interfaces as long as it can receive data from the target system and send data to the target system through the interfaces.
[0147] According to the testing method of the exemplary embodiment of the present invention, it is possible to solve the problems of long testing links for real-time estimation systems in business scenarios such as OCR, large numbers of testers / resources required, and poor reliability of test results. From the perspective of the user / subscriber of the system under test and based on the perspective of the scenario, a new integrated automated testing solution is proposed. This solution uses the scenario as the test granularity, stands from the user's perspective, simulates the entire process of users using the product, constructs an automated process for scenario testing solutions, improves the overall testing efficiency and reliability of test results in the system testing phase, ensures the overall quality level of the system when it is implemented in the customer's specified business scenarios, and at the same time reduces testing costs and increases the portability of test codes.
[0148] In addition, according to the testing method of the exemplary embodiment of the present disclosure, the parts of the entire business process that are more difficult to automate can be abstractly simulated to form various types of actors. Specifically, by abstracting some operations in the test process that were originally completed by external entities (such as people or external systems) into some actors or generators, the interaction between the entity and the system under test can be simulated to a certain extent through code, thereby solving the problem that the original entire test process cannot be fully automated without affecting the credibility of the entire test process. By simulating these entities, this method can make the entire test process, from data input to modeling solution exploration completion and online service, and finally complete the overall evaluation and output report, the whole process can be automatically run.
[0149] In addition, according to the testing method of the exemplary embodiment of the present disclosure, a unified interface adapter (such as an interactive interface adapter device) that can be connected to different systems can be designed to solve the problem of low degree of reuse of automated test codes due to changes in the system under test during the testing process. When connecting to different systems under test, a large amount of scenario codes can be reused, thereby improving the universality of the method.
[0150] In addition, according to the testing method of the exemplary embodiment of the present disclosure, it is also possible to integrate the statistics and calculation of indicators of business performance and effects that users are concerned about into the automated testing process to solve the problem that conventional testing schemes focus on functional testing but do not pay enough attention to the performance and effects of the scenarios. Based on this, it is possible to complete the testing of business scenarios in a one-click manner and provide a detailed test report that can reflect the test indicators such as performance and effects that users are concerned about.
[0151] In a second aspect, an exemplary embodiment of the present disclosure provides a scenario simulation method, which can be executed in a scenario simulation system. The scenario simulation system can be used to simulate the use of a target system to be tested to obtain a target model and use the target model to estimate a target scenario, and the target scenario can be used to test the target system. When implemented, the target system is used to estimate the data received in real time in real time.
[0152] Here, the scenario simulation system can run on a device with computing and analysis capabilities, for example, it can run on the same computing device as the target system to be tested, or it can run on another computing device that is communicatively connected to the computing device running the target system, as long as the scenario simulation system can interact with the target system.
[0153] Specifically, the scenario simulation system may include a data source simulator and an estimation simulator. The data source simulator may be used to simulate the data source that provides data, and the estimation simulator may be used to simulate the request to use the target model for estimation. Figure 3 As described, the scenario simulation method may include the following steps:
[0154] In step S310, the data source simulator sends training data to the target system, so that the target system uses the training data to train a preset model in the target system to obtain a target model.
[0155] In step S320, the estimation simulator obtains the data to be estimated from the data source simulator in real time, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request estimation of the data to be estimated using the target model.
[0156] In this exemplary embodiment, the steps and functions of the scene simulation method are the same as those in the above reference. Figures 1 to 5 The embodiments described are similar / identical, so they will not be described again here.
[0157] In a third aspect, an exemplary embodiment of the present disclosure provides a test system, where the test system includes a scenario simulation system and a system tester.
[0158] The scenario simulation system is used to simulate the target system to be tested to obtain the target model and use the target model to estimate the target scenario. In this way, the system tester can be used to test the target system based on the target scenario. The target system is used to estimate the data received in real time in real time.
[0159] The scenario simulation system includes a data source simulator and an estimation simulator. The data source simulator is used to simulate the data source that provides data, and the estimation simulator is used to simulate the request to use the target model for estimation.
[0160] The data source simulator sends training data to the target system, so that the target system uses the training data to train a preset model in the target system to obtain a target model.
[0161] The estimation simulator obtains the data to be estimated from the data source simulator, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request to estimate the data to be estimated using the target model.
[0162] The system tester is used to collect interaction data and determine the test results of the target system based on the interaction data, wherein the interaction data is collected during at least one round of interaction between the scenario simulation system and the target system by simulating the target scenario.
[0163] As an example, the scenario simulation system also includes a labeling simulator, which is used to simulate inputting training data labeling corresponding to the training data into the target system. The labeling simulator obtains the training data labeling corresponding to the training data from the data source simulator, and sends the training data labeling to the target system so that the target system can label the training data based on the training data labeling.
[0164] As an example, the estimation simulator obtains the data annotations to be estimated corresponding to the data to be estimated from the data source simulator, and analyzes the real-time estimation results based on the data annotations to obtain the effect analysis results representing the estimation effect of the real-time estimation results.
[0165] As an example, the system tester includes an evaluator, which is used to evaluate the performance of the target system and / or the estimated effect and / or model performance of the target model. The evaluator obtains the effect analysis results and / or the performance data records of the target system in the process of training the preset model; the evaluator calculates the effect index and / or the performance index based on the effect analysis results and / or the performance data records, wherein the effect index is used to characterize the estimated effect of the target model, and the performance index is used to characterize the performance of the target system and / or the model performance of the target model.
[0166] As an example, the scenario simulation system further includes a tuning simulator, which controls the scenario simulation system to enter the next simulation or end the simulation based on the effect index and / or performance index obtained from the evaluator.
[0167] As an example, when the scenario simulation system enters the next simulation, the tuning simulator executes a tuning strategy corresponding to the current effect indicator and / or performance indicator based on the effect indicator and / or performance indicator, wherein the tuning strategy includes at least one of the following items: controlling the data source simulator to adjust the training data sent to the target system; and / or modifying the configuration parameters of the target system during the training of the preset model.
[0168] As an example, the estimation includes at least one of: optical character recognition, graphic recognition, and audio recognition.
[0169] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0170] In a fourth aspect, an exemplary embodiment of the present disclosure proposes a scenario simulation system, which is used to simulate using a target system to be tested to obtain a target model and use the target model to perform estimation to obtain a target scenario, wherein the target scenario is used to test the target system.
[0171] like Figure 6 As shown, the scenario simulation system includes a data source simulator 110 and an estimation simulator 120. The data source simulator 110 is used to simulate a data source that provides data, and the estimation simulator 120 is used to simulate a request to perform estimation using a target model.
[0172] The data source simulator 110 sends training data to the target system 300, so that the target system 300 can use the training data to train a preset model in the target system 300 to obtain a target model.
[0173] The estimation simulator 120 obtains the data to be estimated from the data source simulator 110, sends an estimation request to the target system 300, and receives a real-time estimation result corresponding to the estimation request from the target system 300, wherein the estimation request is used to request estimation of the data to be estimated using the target model.
[0174] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0175] It should be noted that Figure 2 and Figure 4 Each unit in the test system and scenario simulation system shown can be configured as software, hardware, firmware or any combination of the above items to perform a specific function. For example, each unit can correspond to a dedicated integrated circuit, or a pure software code, or a module that combines software and hardware. In addition, one or more functions implemented by each unit can also be uniformly executed by components in a physical entity device (e.g., a processor, a client or a server, etc.).
[0176] In addition, refer to Figures 1 to 5 The described system testing method and scenario simulation method can be implemented by a program (or instruction) recorded on a computer-readable storage medium. For example, according to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions can be provided, wherein when the instructions are executed by at least one computing device, the at least one computing device is prompted to perform the system testing method or scenario simulation method according to the present disclosure.
[0177] The computer program in the computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. It should be noted that the computer program can also be used to perform additional steps in addition to the above steps or perform more specific processing when performing the above steps. The contents of these additional steps and further processing have been described in reference to Figures 1 to 5 It is mentioned in the description of the related method, so it will not be repeated here to avoid repetition.
[0178] It should be noted that the various units in the test system and scenario simulation system according to the exemplary embodiments of the present disclosure can completely rely on the operation of the computer program to realize the corresponding functions, that is, each unit corresponds to each step in the functional architecture of the computer program, so that the entire system is called through a special software package (for example, lib library) to realize the corresponding function.
[0179] on the other hand, Figure 2 and Figure 4The various units shown may also be implemented by hardware, software, firmware, middleware, microcode, or any combination thereof. When implemented by software, firmware, middleware, or microcode, the program code or code segment for performing the corresponding operation may be stored in a computer-readable medium such as a storage medium, so that the processor may perform the corresponding operation by reading and running the corresponding program code or code segment.
[0180] For example, the exemplary embodiments of the present disclosure may also be implemented as a computing device such as Figure 7 As shown, the computing device 10 includes a processor 101 and a memory 102, wherein the memory 102 stores a set of computer executable instructions. When the computer executable instruction set is executed by the processor 101, a system testing method and a scenario simulation method according to an exemplary embodiment of the present disclosure are executed.
[0181] Specifically, the computing device can be deployed in a server or client, or can be deployed on a node device in a distributed network environment. In addition, the computing device can be a PC, a tablet device, a personal digital assistant, a smart phone, a web application, or other device capable of executing the above instruction set.
[0182] Here, the computing device is not necessarily a single computing device, but may also be any device or circuit collection that can execute the above instructions (or instruction sets) individually or jointly. The computing device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that is interconnected with a local or remote (e.g., via wireless transmission) interface.
[0183] In a computing device, a processor may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, a processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0184] According to the exemplary embodiments of the present disclosure, some operations described in the system testing method and the scenario simulation method may be implemented by software, some operations may be implemented by hardware, and furthermore, these operations may be implemented by a combination of software and hardware.
[0185] The processor may execute instructions or codes stored in one of the memories, which may also store data. Instructions and data may also be sent and received over a network via a network interface device, which may employ any known transmission protocol.
[0186] The memory may be integrated with the processor, for example, RAM or flash memory is arranged within an integrated circuit microprocessor or the like. In addition, the memory may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory and the processor may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the memory.
[0187] In addition, the computing device may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the computing device may be connected to each other via a bus and / or a network.
[0188] The system testing method and scenario simulation method according to the exemplary embodiments of the present disclosure can be described as various interconnected or coupled functional blocks or functional diagrams. However, these functional blocks or functional diagrams can be equally integrated into a single logical device or operated according to non-exact boundaries.
[0189] Therefore, refer to Figures 1 to 5 The described system testing method and scenario simulation method may be implemented by a system including at least one computing device and at least one storage device storing instructions.
[0190] According to an exemplary embodiment of the present disclosure, at least one computing device is a computing device for executing a system testing method or a scenario simulation method according to an exemplary embodiment of the present disclosure, and a computer executable instruction set is stored in the storage device. When the computer executable instruction set is executed by the at least one computing device, the execution reference Figures 1 to 5 The system testing method or scenario simulation method described.
[0191] The above describes various exemplary embodiments of the present disclosure, and it should be understood that the above description is only exemplary and not exhaustive, and the present disclosure is not limited to the disclosed exemplary embodiments. Without departing from the scope and spirit of the present disclosure, many modifications and changes are obvious to those of ordinary skill in the art. Therefore, the scope of protection of the present disclosure should be based on the scope of the claims.
Claims
1. A system testing method, characterized in that: The system testing method is executed in a testing system, and the testing system includes a scenario simulation system and a system tester; The scenario simulation system is used to simulate the target system to be tested to obtain a target model and use the target model to estimate the target scenario, and the system tester is used to test the target system based on the target scenario. The scenario simulation system includes a data source simulator and an estimation simulator, wherein the data source simulator is used to simulate a data source that provides data, and the estimation simulator is used to simulate a request to perform estimation using the target model. Wherein, the system testing method comprises: By simulating the target scenario, performing at least one round of interaction with the target system, and collecting interaction data; Determining a test result of the target system based on the interaction data; The target scenario is simulated in the following manner: The data source simulator sends training data to the target system, so that the target system uses the training data to train a preset model in the target system to obtain a target model; The estimation simulator obtains the data to be estimated from the data source simulator, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request estimation of the data to be estimated using the target model.
2. The system testing method according to claim 1, characterized in that: The scenario simulation system further includes a labeling simulator, which is used to simulate inputting training data labels corresponding to the training data into the target system, wherein the target scenario is further simulated in the following manner: The annotation simulator obtains training data annotations corresponding to the training data from the data source simulator, and sends the training data annotations to the target system, so that the target system annotates the training data based on the training data annotations.
3. The system testing method according to claim 1, characterized in that: The target scenario is also simulated by: The estimation simulator obtains the data to be estimated annotations corresponding to the data to be estimated from the data source simulator, and analyzes the real-time estimation results based on the data to be estimated annotations to obtain effect analysis results characterizing the estimation effect of the real-time estimation results.
4. The system testing method according to claim 3, characterized in that: The system tester includes an evaluator, which is used to evaluate the performance of the target system and / or the estimated effect and / or model performance of the target model, wherein the target scenario is also simulated in the following manner: The evaluator obtains the effect analysis result and / or the performance data record of the target system in the process of training the preset model; The evaluator calculates an effect indicator and / or a performance indicator based on the effect analysis result and / or the performance data record, wherein the effect indicator is used to characterize the estimated effect of the target model, and the performance indicator is used to characterize the performance of the target system and / or the model performance of the target model.
5. A scene simulation method, characterized in that: The scenario simulation method is executed in a scenario simulation system, wherein the scenario simulation system is used to simulate the target system to be tested to obtain a target model and use the target model to estimate a target scenario, wherein the target scenario is used to test the target system. The scenario simulation system includes a data source simulator and an estimation simulator, wherein the data source simulator is used to simulate a data source that provides data, and the estimation simulator is used to simulate a request to perform estimation using the target model, wherein the scenario simulation method includes: The data source simulator sends training data to the target system, so that the target system uses the training data to train a preset model in the target system to obtain a target model; The estimation simulator obtains the data to be estimated from the data source simulator in real time, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request estimation of the data to be estimated using the target model.
6. A testing system, characterized in that: The test system includes a scenario simulation system and a system tester. The scenario simulation system is used to simulate the target system to be tested to obtain a target model and use the target model to estimate the target scenario, and the system tester is used to test the target system based on the target scenario. The scenario simulation system includes a data source simulator and an estimation simulator, wherein the data source simulator is used to simulate a data source that provides data, and the estimation simulator is used to simulate a request to perform estimation using the target model. The data source simulator sends training data to the target system, so that the target system uses the training data to train a preset model in the target system to obtain a target model; The estimation simulator obtains the data to be estimated from the data source simulator, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request the target model to be used to estimate the data to be estimated. The system tester is used to collect interaction data and determine the test results of the target system based on the interaction data, wherein the interaction data is collected during at least one round of interaction between the scenario simulation system and the target system by simulating the target scenario.
7. A scene simulation system, characterized in that: The scenario simulation system is used to simulate the target system to be tested to obtain a target model and use the target model to estimate the target scenario, and the target scenario is used to test the target system. The scenario simulation system includes a data source simulator and an estimation simulator, wherein the data source simulator is used to simulate a data source that provides data, and the estimation simulator is used to simulate a request to perform estimation using the target model. The data source simulator sends training data to the target system, so that the target system uses the training data to train a preset model in the target system to obtain a target model; The estimation simulator obtains the data to be estimated from the data source simulator, sends an estimation request to the target system, and receives a real-time estimation result corresponding to the estimation request from the target system, wherein the estimation request is used to request estimation of the data to be estimated using the target model.
8. A computing device, characterized in that: The computing device comprises: processor; a memory for storing instructions executable by the processor, When the processor executable instructions are executed by the processor, the processor is prompted to execute the system testing method according to any one of claims 1 to 4 or the scenario simulation method according to claim 5.
9. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the system testing method according to any one of claims 1 to 4 or the scenario simulation method according to claim 5 .
10. A system comprising at least one computing device and at least one storage device storing instructions, characterized in that: When the instructions are executed by the at least one computing device, the at least one computing device is prompted to perform the system testing method according to any one of claims 1 to 4 or the scenario simulation method according to claim 5 .
