System testing method, scene simulation method and system, computing device and medium

The scenario simulation system simulates the interaction between the user and the target system and collects interaction data, which solves the problem of difficulty in testing the application effect and performance of the business system in the existing technology and achieves efficient and accurate system testing.

CN118567969APending Publication Date: 2024-08-30THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310700627.7
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

Technical Problem

Existing technology makes it difficult to comprehensively test the application effects and performance of business systems, especially in the case of multiple machine learning models. Small traffic experiments are time-consuming and difficult to arrange the verification sequence. Common test indicators cannot directly represent system effects.

Method used

Use a scenario simulation system to simulate the interaction scenarios between users and target systems through material simulators and user simulators, collect interaction data, and determine system test results based on the data, including user behavior calculators and material generation simulators to simulate real users and materials. Behavior and data.

Benefits of technology

It realizes the effect and performance test of the business system, simplifies the test process, reduces the test time, and ensures the accuracy and efficiency of the system effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567969A
    Figure CN118567969A
Patent Text Reader

Abstract

The invention provides a system testing method, a scene simulation method and system, a computing device and a medium. The system testing method comprises the following steps: performing at least one round of interaction with a target system by simulating a target scene, and collecting interaction data; based on the interaction data, a test result of the target system is determined, and the target scene is simulated in the following mode: the material simulator sends candidate materials to the target system; the user simulator receives service information from the target system and interacts with the target system. According to the system testing method, the scene simulation method and system, the computing device and the medium disclosed by the invention, the problem that the service system is difficult to test is solved, the actual use scene of interaction between the user and the target system can be simulated, and the test result of the system is ensured to be obtained while the test process is simplified and the test time consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

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] When a business system applicable to a certain application scenario needs to be launched or iterated, it is usually necessary to test whether the system can provide the corresponding service. Generally speaking, there are some simple test plans that can test the correctness and consistency of the system, but it is difficult to formulate a test plan for the application effect and system performance of the system.

[0003] In some related technologies, general measurement indicators of machine learning models can be used as one of the bases for evaluating the effectiveness of the system under test, for example, the area under the receiver operating characteristic curve (ROC) and the coordinate axis (Area Under Curve, AUC). However, such indicators can only characterize the model effect in theory and cannot represent the effectiveness of the entire system.

[0004] In addition, in some cases, a small-traffic experiment can also be used to test the system. A small-traffic experiment means that only a part of the users use the new system to verify the effect of the system. After the effect of the small-traffic experiment reaches the standard, the full system will be launched. However, this small-traffic experiment requires real users to participate in the test, and the entire test plan takes a long time. Summary of the invention

[0005] Exemplary embodiments of the present disclosure may solve at least the above problems.

[0006] According to a first aspect of the present disclosure, a system testing method is provided, wherein the system testing method is used to test a system, wherein the testing system comprises a scenario simulation system and a system tester, wherein the scenario simulation system is used to simulate a target scenario in which a user interacts with a target system, wherein the target scenario is used to test the target system, wherein the scenario simulation system comprises a material simulator and a user simulator, wherein the user simulator is used to simulate user behavior in the target scenario, and the material simulator is used to provide materials for the target scenario, 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; and determining a test result of the target system based on the interaction data, wherein the target scenario is simulated in the following manner: the material simulator sends candidate materials to the target system; the user simulator receives service information from the target system and interacts with the target system, wherein the service information is generated based on the candidate materials.

[0007] As an example, the scenario simulation system also includes a first user behavior calculator, wherein the target scenario is also simulated in the following manner: the first user behavior calculator responds to a first behavior calculation request of the user simulator, and determines request behavior information based on the current time and the user characteristics of the virtual user simulated by the user simulator, wherein the first behavior calculation request is used to obtain a service request that the user simulator needs to initiate to the target system at the current time, and the request behavior information indicates a service request that the user simulator needs to initiate to the target system at the current time; the user simulator initiates a service request to the target system based on the request behavior information received from the first user behavior calculator, so as to receive the service information from the target system.

[0008] As an example, the first user behavior calculator is trained in the following manner: obtaining request data of historical users initiating requests to the target system and time data of initiating requests to the target system; based on the request data and the time data, generating a first historical user feature sample and a first sample label according to at least one time window from each time point in the time data forward, wherein the first historical user feature sample includes the number of requests initiated by the historical user to the target system in each time window forward from the current time point, and the first sample label represents the number of requests initiated by the historical user to the target system at the current time point; based on the first historical user feature sample and the first sample label, the first user behavior calculator is trained.

[0009] As an example, the scenario simulation system also includes a second user behavior calculator, wherein the target scenario is also simulated in the following manner: the user simulator sends the service information to the second user behavior calculator; the second user behavior calculator determines interaction behavior information based on the service information and user characteristics of the virtual user simulated by the user simulator, wherein the interaction behavior information represents the interaction behavior that the user simulator needs to perform on the service information; and the user simulator interacts with the target system based on the interaction behavior information received from the second user behavior calculator.

[0010] As an example, the second user behavior calculator is trained in the following manner: obtaining the interaction behavior data between historical users and the target system and the historical material data of the target system; generating historical material samples, second historical user feature samples and second sample labels based on the interaction behavior data and the historical material data, wherein the historical material samples include key information of historical materials, the second historical user feature samples include key information of historical materials in which historical users have interacted and key information of historical materials in which historical users have not interacted, and the second sample label indicates whether the historical user has interacted with the historical material; based on the historical material samples, the second historical user feature samples and the second sample labels, the second user behavior calculator is trained.

[0011] As an example, the test system also includes an evaluator, wherein the target scenario is also simulated in the following manner: the evaluator calculates test indicators of the target system based on the acquired user behavior of the user simulator, and the test indicators are used to characterize the test results of the target system.

[0012] As an example, the scenario simulation system also includes a user generation simulator and a user information generator, wherein the user simulator is generated in the following manner: the user generation simulator requests user information of a corresponding number of virtual users from the user information generator according to the number of virtual users to be generated at the current time; and the user generation simulator generates a user simulator corresponding to each virtual user based on the user information.

[0013] As an example, the scenario simulation system also includes a material generation simulator, wherein the step of the material simulator sending candidate materials to the target system includes: the material simulator queries the material generation simulator for candidate materials corresponding to the current time based on the current time; and the material simulator sends the candidate materials to the target system in response to the candidate materials corresponding to the current time queried from the material generation simulator.

[0014] As an example, the service information includes at least one of the following items: information recommendation information, product recommendation information, video or audio recommendation strategy, intelligent service information, contact recommendation information, and traffic route recommendation information.

[0015] As an example, the scenario simulation system includes at least one user simulator, and any one of the user simulators is used to simulate the behavior of a user.

[0016] According to a second aspect of the present disclosure, a scenario simulation method is provided, which is applied to a scenario simulation system, wherein the scenario simulation system is used to simulate a target scenario in which a user interacts with a target system, wherein the target scenario is used to test the target system, wherein the scenario simulation system includes a material simulator and a user simulator, wherein the user simulator is used to simulate user behavior in the target scenario, and the material simulator is used to provide materials for the target scenario, wherein the scenario simulation method includes: the material simulator sends candidate materials to the target system; the user simulator receives service information from the target system and interacts with the target system, wherein the service information is generated by the target system based on the candidate materials.

[0017] According to a third aspect of the present disclosure, a testing system is provided, which includes a scenario simulation system and a system tester, wherein the scenario simulation system is used to simulate a target scenario in which a user interacts with a target system, and the target scenario is used to test the target system, wherein the scenario simulation system includes: a material simulator, wherein the material simulator is used to provide materials for the target scenario, and the material simulator sends candidate materials to the target system; a user simulator, wherein the user simulator is used to simulate user behavior in the target scenario, the user simulator receives service information from the target system and interacts with the target system, and the service information is generated based on the candidate materials, wherein the system tester is used to collect interaction data and determine a 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.

[0018] According to a fourth aspect of the present disclosure, a scenario simulation system is provided, wherein the scenario simulation system is used to simulate a target scenario of user interaction with a target system, wherein the target scenario is used to test the target system, wherein the scenario simulation system comprises: a material simulator, wherein the material simulator is used to provide materials for the target scenario, and wherein the material simulator sends candidate materials to the target system; and a user simulator, wherein the user simulator is used to simulate user behavior in the target scenario, wherein the user simulator receives service information from the target system and interacts with the target system, and wherein the service information is generated based on the candidate materials.

[0019] 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, cause the processor to execute the system testing method according to the exemplary embodiment of the present disclosure or the scenario simulation method according to the exemplary embodiment of the present disclosure.

[0020] 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 described in the exemplary embodiments of the present disclosure or the scenario simulation method described in the exemplary embodiments of the present disclosure.

[0021] 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 according to the exemplary embodiments of the present disclosure or the scenario simulation method according to the exemplary embodiments of the present disclosure.

[0022] According to the system testing method, scenario simulation method and system, computing device, and medium of the exemplary embodiments of the present disclosure, materials can be provided to the target system through a material simulator, and the user simulator can receive service information generated based on these materials from the target system and interact with the target system, thereby simulating the actual usage scenario of the user interacting with the target system. It is not limited to the theoretical calculation of general measurement indicators, and there is no need to summon real users to participate in the test. It can simplify the testing process, reduce the testing time, and ensure the system test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] 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:

[0024] Figure 1 is a flow chart illustrating a system testing method according to an exemplary embodiment of the present disclosure.

[0025] Figure 2 is a schematic block diagram illustrating an example of a test system according to an exemplary embodiment of the present disclosure.

[0026] Figure 3 is a schematic block diagram illustrating an example of a scenario simulation system according to an exemplary embodiment of the present disclosure.

[0027] Figure 4 Detailed description is a flowchart illustrating steps of training a first user behavior calculator in a system testing method according to an exemplary embodiment of the present disclosure.

[0028] Figure 5 is a schematic diagram showing training data used for training a user behavior calculator in a system testing method according to an exemplary embodiment of the present disclosure.

[0029] Figure 6Detailed description is a flowchart illustrating the steps of training a second user behavior calculator in a system testing method according to an exemplary embodiment of the present disclosure.

[0030] Figure 7 is a flowchart illustrating a scenario simulation method according to an exemplary embodiment of the present disclosure.

[0031] Figure 8 is a schematic block diagram illustrating a scenario simulation system according to an exemplary embodiment of the present disclosure.

[0032] Fig. 9 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] Generally speaking, when a business system is launched or iterated, it is necessary to test the business system. Simple testing solutions for testing the correctness and consistency of the system are feasible, but there is a lack of testing solutions for the application effect and system performance of the system.

[0036] Taking the information recommendation system as an example, the information recommendation system can provide such an application scenario: the system can serve information websites such as news applications (APPs), and it can provide each visiting user with the information the user wants to see, so that the user is interested and clicks on the information, thereby increasing the click-through rate of the information website and achieving the dissemination of information. In the information recommendation system, a variety of different strategies such as expert rules and machine learning models are usually integrated. Among them, taking the effect of the machine learning model as an example, how to verify the effect of this model is a problem.

[0037] In some cases, there are some common test metrics for evaluating systems, and these metrics can be used to test the system.

[0038] Specifically, the evaluation index of the machine learning model itself (such as the AUC of the classifier model) can be used as a reference for the model effect. However, such an index cannot fully represent the effect of the model. For example, in the case of highly unbalanced data, assuming that there are a large number of negative samples (i.e., samples that users have not clicked) and a very small number of positive samples (i.e., samples that users have clicked). In this case, the classifier only returns negative results, and a very high AUC value will be calculated. However, this AUC value cannot fully represent the effect of the model. When the model is integrated into the entire business system, other problems such as poor results may occur.

[0039] It can be seen that during the system testing phase, we can focus on indicators such as AUC, but these test indicators cannot directly represent the effectiveness of the entire system. Especially for more complex systems, it is difficult to obtain accurate and comprehensive effect test conclusions.

[0040] In some cases, small-traffic experiments can also be used in application areas. Small-traffic experiments may be effective for effect verification, but if there are a large number of iterations to be verified, it will be difficult to arrange the verification order. Similarly, when the business system contains multiple machine learning models to be verified, similar problems will arise. For example, assuming that there are 10 machine learning models to be verified, small-traffic experiments need to use online traffic, and in order not to affect normal online use, only one model can be verified at a time. Assuming that the verification cycle for a model is 3 days, it will take one month to verify 10 models. In this case, which model to verify first is important for overall efficiency.

[0041] Specifically, if the model tested first has achieved a relatively ideal effect, the testing process of subsequent models can be omitted, which can greatly save the overall test efficiency; however, if the model with better effect is tested last, it will lead to poor overall test efficiency. As mentioned above, the common test indicators of the business system may not be directly used as the evaluation indicators of the effect. In this case, how to arrange the order of the test models becomes an important issue. If the order of the test models is unknown, it may lead to low test efficiency and long test time.

[0042] In view of this, 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, refer to Figure 1 In describing the system testing method according to the exemplary embodiment of the present disclosure, reference will also be made to Figure 2 and Figure 3 Describe the test system and scenario simulation system.

[0046] like Figure 1 As shown, the system testing method may include: step S110, by simulating the target scenario, at least one round of interaction with the target system can be performed, and interaction data can be collected; step S120, the test result of the target system can 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. In specific practice, through the simulation of the scenario simulation system and the interaction with the target system, an effective effect test of the recommended information (such as news information) provided by the target system can be achieved.

[0047] Specifically, it is possible to interact with the target system to be tested. The interaction may be, for example, an interaction behavior with the target system that may occur in the real world. By simulating such 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.

[0048] As an example, the target system may be a system that recommends services to users, for example, the target system may recommend service information to users, and users may interact with the target system by clicking, browsing, etc. The target system may be, for example, but not limited to: an information recommendation system that recommends information to users, an e-commerce platform that recommends products of interest to users, a video website that recommends videos to users, music software that recommends music to users, social software that recommends contacts and friends to users, an intelligent dialogue system that provides intelligent services to users, an Internet map application (Application, APP) that provides traffic route recommendations to users, etc.

[0049] Taking the target system as an information recommendation system, the information recommendation system can serve information websites such as news apps. It can provide each visiting user with the information the user wants to see, making the user interested and clicking on the information, thereby increasing the click-through rate of the information website.

[0050] The interaction data can reflect the interaction process with the target system. Based on the interaction data, the indicators for evaluating the effectiveness of the target system can be calculated to test the effectiveness of the system. Taking the information recommendation scenario as an example, the number of user views and clicks can be counted based on the obtained interaction data, and the click-through rate can be calculated, for example, click-through rate = number of clicks / number of views. Taking the marketing recommendation scenario as an example, the number of user views and purchases can be counted based on the obtained interaction data, and the purchase rate can be calculated, for example, purchase rate = number of purchases / number of views. In this way, an effective test of the recommendation effect of the information recommendation system can be achieved. In addition, the interaction data will be further described in detail below.

[0051] In the above step S110, the target scenario may be simulated in the following manner: the material simulator may send candidate materials to the target system; the user simulator may receive service information from the target system and interact with the target system, wherein the service information is generated based on the candidate materials.

[0052] The following will refer to Figure 2 and Figure 3 Describe in detail the example process of simulating the target scenario. Figure 2 As shown, the test system may include a scenario simulation system 100 and a system tester. The scenario simulation system 100 may be used to simulate a target scenario in which a user interacts with a target system 300 , and the target scenario may be used to test the target system 300 .

[0053] The scenario simulation system 100 may include a user simulator 110 and a material simulator 120 . The user simulator 110 may be used to simulate user behavior in a target scenario, and the material simulator 120 may be used to provide materials for the target scenario.

[0054] Here, the user simulator 110 and the material simulator 120 can be used to simulate the target scenario. Specifically, the material simulator 120 can send candidate materials to the target system 300, and the user simulator 110 can receive service information from the target system 300 and interact with the target system 300, wherein the service information can be generated based on the candidate materials.

[0055] Specifically, the user simulator 110 can simulate a terminal user. For example, the scenario simulation system may include at least one user simulator, and any user simulator may be used to simulate the behavior of a user. Each user simulator 110 can simulate the behavior of a user in the real world, such as registering an account in the target system, obtaining service information from the target system, and browsing and clicking on service information. For example, the user simulator 110 may open the target system as a news APP at some point, and register an account in the target system, and then send a request to obtain recommended news information to the target system, and browse and click on the information returned by the target system, and report the browsing and clicking behavior information to the target system; for another example, in a marketing recommendation scenario, the user behavior of the user simulator 110 may include opening the target system as an e-commerce platform, and registering an account, and then sending a request to obtain recommended products to the target system, and browsing and purchasing the products returned by the target system. The user simulator 110 needs to simulate the conditions under which the user will make a purchase.

[0056] The material simulator 120 can simulate the production / maintenance of materials. It can simulate the production and update of materials in accordance with the real world situation, and report these materials to the target system through the interactive method of reporting materials, such as Figure 3 As shown, the candidate materials are sent to the target system through the material reporting interface 192.

[0057] The target system 300 may receive candidate materials from the material simulator 120 , generate service information based on the candidate materials, and then provide the service information to the user simulator 110 .

[0058] Candidate materials can be any information or materials used to generate service information, such as but not limited to news information data, product pictures and product information, video, audio, intelligent service corpus, contact data, traffic map, etc. Candidate materials can be in any form, such as but not limited to text, table, image, audio, video, etc.

[0059] The service information may be information generated based on the candidate materials, which may be information for the target system to recommend services to the user. As an example, the target system 300 may process the received candidate materials to generate service information. For example, the service information may be obtained by the target system 300 by modifying, combining, or otherwise processing at least a portion of the candidate materials, but is not limited thereto, and the service information may also be the candidate materials themselves, for example, the target system 300 may select at least a portion of the candidate materials as service information and provide it to the user.

[0060] Here, the service information may include, but is not limited to, at least one of the following items: information recommendation information, product recommendation information, video or audio recommendation information, intelligent service information, contact recommendation information, and traffic route recommendation information, wherein the information recommendation information may be generated based on information data, the product recommendation information may be generated based on product images and product information, the video or audio recommendation information may be generated based on video or audio, the intelligent service information may be generated based on intelligent service corpus, the contact recommendation information may be generated based on contact data, and the traffic route recommendation information may be generated based on traffic map data. The service information may be in any form, such as, but not limited to, text, table, image, audio, video, etc.

[0061] In addition, if Figure 2 As shown, the test system may further 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.

[0062] 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 user simulator and the material simulator and determine the test results of the target system.

[0063] 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 in the test system. For example, the system tester can be integrated in the interface manager 190 or the evaluator 200, or it can be a separately designed processor with data acquisition capabilities and permissions, without exhausting the list.

[0064] The interaction data may record or reflect the interaction process between the user simulator 110 and the target system 300, and the material simulator 120 and the target system 300. As an example, the interaction data may include, but is not limited to: data sent by the user simulator 110 to the target system 300, data received by the user simulator 110 from the target system 300, and data sent by the material simulator 120 to the target system 300.

[0065] Taking the scenario described above as an example, based on the interaction data, it is possible to know which candidate materials the material simulator 120 has sent to the target system 300, and it is also possible to know which information recommendation information, product recommendation information, video recommendation information, music recommendation information, friend recommendation information, etc. the target system 300 has sent to the user simulator 110, and it is possible to know which of these information the user simulator 110 has clicked or browsed. In this way, based on such interaction data, the interaction behavior in the target scenario can be restored, thereby reflecting the effect of the target system. For example, when the click rate of the user simulator 110 is high, it can be considered that the target system 300 can generate service information that better meets user needs, and the system effect is better.

[0066] According to the system testing method of the above exemplary embodiment, the whole process of providing materials to the target system, receiving service information from the target system and interacting with the target system can be simulated through the scenario simulation system, so as to simulate the actual usage scenario of the user's interaction with the target system. It is not limited to the theoretical calculation of general measurement indicators, and there is no need to summon real users to participate in the test. It can simplify the testing process, reduce the testing time, and ensure that the test obtains the systematic effect.

[0067] Refer to above Figure 2 A test system according to an exemplary embodiment of the present disclosure is described below with reference to Figure 3 A scenario simulation system according to an exemplary embodiment of the present disclosure is described in detail.

[0068] In addition to the user simulator 110 and material simulator 120 described above, Figure 3 As shown, the scenario simulation system 100 may further include a first user behavior calculator 130 .

[0069] According to an embodiment of the present disclosure, the target scenario can also be simulated in the following manner: the first user behavior calculator 130 can respond to the first behavior calculation request of the user simulator 110, and determine the request behavior information based on the current time and the user characteristics of the virtual user simulated by the user simulator 110; the user simulator 110 can initiate a service request to the target system 300 based on the request behavior information received from the first user behavior calculator 130, so as to receive service information from the target system 300.

[0070] Here, the virtual user may be generated based on a real user, or may be designed and given according to test requirements, and the user characteristics may be extracted or given in the process of generating the virtual user, and the user characteristics may include but are not limited to the user's behavior habits, the materials that the user is interested in, etc. As an example, the virtual user may be generated based on a user information generator, which will be described in detail below.

[0071] Here, the first behavior calculation request may be used to obtain the service request that the user simulator 110 needs to initiate to the target system 300 at the current time, and the request behavior information may indicate the service request that the user simulator needs to initiate to the target system at the current time.

[0072] As an example, the service request may include, but is not limited to: an information recommendation request, a product recommendation request, a video or audio recommendation request, an intelligent service request, a contact recommendation request, and a traffic route recommendation request.

[0073] Specifically, in the process of simulating terminal users, it is necessary to simulate when users will obtain service information, such as when users will need the target system to recommend information, products, intelligent services, traffic routes, etc. The number of services and / or service content requested by users at different times may be different. For example, users may browse less news in the morning, but browse a lot of news in the evening; for another example, users may browse current affairs news in the morning and entertainment news in the evening. In addition, different users may have different habits of requesting services. For example, some users browse a lot of news in the evening, while others browse a lot of news in the morning.

[0074] Based on the above considerations, according to an embodiment of the present disclosure, after being pulled up, or after starting to run, the user simulator 110 can send a first behavior calculation request to the first user behavior calculator 130 to inquire whether a service request needs to be initiated to the target system 300 at the current time, and / or which services need to be initiated, for example, to calculate how many requests the user simulator 110 needs to send in the time slice to be simulated. Here, the time slice may refer to a virtual time period in the scenario simulation process.

[0075] In response to the first behavior calculation request, the first user behavior calculator 130 may inform each user simulator 110 whether it needs to request a service at the current time and / or which services it needs to request. For example, the first user behavior calculator 130 may calculate how many requests to send in the current time slice according to the current time and the previous behavior of the user simulated by the user simulator 110.

[0076] As an example, the first user behavior calculator 130 may return the request behavior information to the user simulator 110. The request behavior information includes whether the user simulator 110 should request a service from the target system at the current time and / or which services to request, for example, whether to request to browse current political news (for example, to access the column page of current political news in the target system) or to browse entertainment news (for example, to access the column page of entertainment news in the target system); for another example, whether to request to access 10 information pages or to request to access 1 information page.

[0077] The user simulator 110 may initiate a service request to the target system 300 according to the instructions in the request behavior information, such as accessing an information page. The target system 300 may respond to the service request of the user simulator 110 by providing corresponding service information. For example, the service information may be returned to the user simulator 110, and the information may be further displayed on the page.

[0078] The above-mentioned first user behavior calculator 130 can be implemented based on a machine learning model, for example. The process of training the machine learning model to obtain the first user behavior calculator 130 will be described in detail later. However, the embodiments of the present disclosure are not limited to this. The first user behavior calculator 130 can also be implemented in other ways, such as according to preset expert rules.

[0079] In an embodiment of the present disclosure, by setting a first user behavior calculator, guidance can be provided for the request behavior of the user simulator, so that the user simulator requests services in a manner that is more consistent with the behavioral habits of users in the real world, making the target scenario more realistic, thereby obtaining more accurate system test results.

[0080] It should be noted that, although an example is described here of instructing a user simulator on how to request a service through a first user behavior calculator, the embodiments of the present disclosure are not limited to this, and the first user behavior calculator may be omitted. For example, the user simulator itself may be trained or designed to be able to determine how to request a service, or the user simulator may randomly request a service from the target system.

[0081] In addition, before the user simulator 110 sends a service request, the user simulator 110 can first check whether its current status has registered an account in the target system. If not, the user simulator 110 can first request to register the user interface 191, and then send a service request by requesting the service information interface 193 to simulate the user's behavior of accessing the target system.

[0082] In addition, if Figure 3 As shown, the scenario simulation system 100 may further include a second user behavior calculator 140 .

[0083] According to an embodiment of the present disclosure, the target scenario can also be simulated in the following manner: the user simulator 110 can send service information to the second user behavior calculator 140; the second user behavior calculator 140 can determine the interactive behavior information based on the service information and the user characteristics of the virtual user simulated by the user simulator 110; the user simulator 110 can interact with the target system 300 based on the interactive behavior information received from the second user behavior calculator.

[0084] Here, the interactive behavior information may represent the interactive behavior that the user simulator 110 needs to perform on the service information. As an example, the interactive behavior may include but is not limited to browsing, visiting, clicking, purchasing, downloading, marking, forwarding, and the like.

[0085] Specifically, in the process of simulating terminal users, it is necessary to simulate what kind of interactive behavior the user will take on the service information returned from the target system. For example, in the information recommendation scenario, the service information may include multiple news information. After seeing these news information, the user may click on some of the news information, but for other news information, he will only browse but not click.

[0086] Based on the above considerations, according to an embodiment of the present disclosure, after obtaining the service information returned by the target system, the user simulator 110 can request the second user behavior calculator 140 to calculate one by one whether it will click on these returned service information, so that the browsing and clicking behaviors can be reported to the target system based on the calculation results of the second user behavior calculator 140.

[0087] The above-mentioned second user behavior calculator 140 can be implemented based on a machine learning model, for example. The process of training the machine learning model to obtain the second user behavior calculator 140 will be described in detail later. However, the embodiments of the present disclosure are not limited to this. The second user behavior calculator 140 can also be implemented in other ways, such as according to preset expert rules.

[0088] In the embodiments of the present disclosure, by setting up a second user behavior calculator, guidance can be provided for the interactive behavior of the user simulator, so that the user simulator interacts with the target system in a manner that is more consistent with the behavioral habits of users in the real world, making the target scene more realistic, thereby obtaining more accurate system test results.

[0089] It should be noted that, although an example is described here in which a second user behavior calculator is used to instruct a user simulator to interact with a target system, the embodiments of the present disclosure are not limited to this, and the second user behavior calculator may be omitted. For example, the user simulator itself may be trained or designed to be able to determine how to interact with the target system, or the user simulator may interact with the target system according to preset decision rules.

[0090] In addition, if Figure 3 As shown, the scenario simulation system 100 may further include a user generation simulator 150 and a user information generator 160 .

[0091] According to an embodiment of the present disclosure, the target scenario can also be simulated in the following manner: the user generation simulator 150 can request user information of a corresponding number of virtual users from the user information generator 160 according to the number of virtual users to be generated at the current time; the user generation simulator 150 can generate a user simulator corresponding to each virtual user based on the acquired user information.

[0092] The user information generator 160 can be implemented by pre-storing user information. For example, preset user information can be stored, which can be real user information or virtual user information generated as needed. In addition to the method of pre-storing user information, the user information generator 160 can also dynamically generate user information. User information, for example, may include but is not limited to the user's identity document (ID), user characteristics, etc. As an example, the user information generator 160 can implement the storage of user information through but not limited to a storable method such as a database or a data server. The user information generator can directly use the data of online users (for example, the user information pre-stored in the previous text) to generate virtual users, or it can also generate virtual users through statistical methods or generative models (such as GMM models, GPT models, etc.).

[0093] The user generation simulator 150 is used to generate the user simulator 110. Specifically, the user generation simulator 150 can determine whether to generate users and how many users to generate according to the current time, and obtain the corresponding amount of user information from the user information generator 160, so as to generate a user simulator based on each piece of user information, and each generated user simulator can simulate one user.

[0094] Specifically, before the scenario simulation starts running, the user generation simulator 150, the material simulator 120 and the evaluator 200 can be started. At the beginning of the test, the user generation simulator 150 can request the user information generator 160 to generate a corresponding amount of user information according to the pre-configured user level, and based on the user information, generate the user simulator 110 and assign the corresponding user information. As an example, the user generation simulator 150 can run on a scheduled basis, and the number of users generated in the initial stage and at predetermined time intervals (e.g., one day) thereafter can be configured.

[0095] As an example, a rule for generating virtual users may be preset, and the preset rule may specify how many virtual users need to be generated at each time. In this way, the user generation simulator 150 may generate a user simulator according to the preset rule.

[0096] In the real world, there are many kinds of users, so the logic of generating users is relatively complicated. According to the embodiments of the present invention, by abstracting the user generation simulator and the user information generator, various kinds of user information can be prepared in advance, and then the user simulator can be generated according to the current time and user information, so that user simulators for simulating various users can be generated. The user feature distribution of these user simulators is more consistent with the users in the real world. In this way, more accurate test results that are closer to the real interaction process can be obtained.

[0097] It should be noted that although an example of generating a user simulator through a user-generated simulator and a user information generator is described here, the embodiments of the present disclosure are not limited to this, and the user-generated simulator and the user information generator may also be omitted. For example, at least one user simulator may be generated in advance, or a user simulator may be randomly generated.

[0098] In addition, if Figure 3 As shown, the scenario simulation system 100 may also include a material generation simulator 170. In this case, the step of the material simulator 120 sending candidate materials to the target system 300 may specifically include: the material simulator 120 queries the material generation simulator 170 for candidate materials corresponding to the current time according to the current time; the material simulator 120 sends the candidate materials to the target system 300 in response to querying the candidate materials corresponding to the current time from the material generation simulator 170.

[0099] Here, the material generation simulator 170 can generate materials by processing pre-stored material data. The material generation simulator 170 can store material data in a storage method such as, but not limited to, a database or a data server. As an example, the material generation simulator 170 can use the material data in the database or the data server to generate materials by performing secondary processing or processing on the material data.

[0100] The material data may include candidate materials corresponding to each time point or time slice. For example, the material data may include, but are not limited to: candidate materials corresponding to different time periods every day, candidate materials corresponding to different dates, candidate materials corresponding to different quarters, etc. Taking the information recommendation scenario as an example, the material data may include news materials from 7 to 8 o'clock, news materials from 9 to 10 o'clock, etc. When the current time is between 7 and 8 o'clock, the material generation simulator 170 may provide the news materials from 7 to 8 o'clock to the material simulator 120, and the material simulator 120 may provide the news materials as candidate materials to the target system.

[0101] Material data may be, for example, but not limited to, real historical data. In this example, the pre-stored material data may be real historical data from the target system; however, the embodiments of the present disclosure are not limited thereto, and the material data may also be virtual data generated according to actual needs. The present disclosure does not impose any particular restrictions on the method of obtaining material data.

[0102] As an example, a correspondence between a time point or a time slice and a candidate material may be preset, and the correspondence may indicate the candidate material that needs to be provided to the target system at each time point or time slice. For example, in an example where the material data is real historical data, each candidate material in the material data may correspond to a time point or time period recorded in the real historical data, such as the real time when the news occurred.

[0103] Specifically, in the process of simulating the target scenario, the material simulator 120 may request the material generation simulator 170 for the candidate materials that need to be reported to the target system at the current time, and the material generation simulator 170 may send the candidate materials corresponding to the current time to the material simulator 120. In this way, the material simulator 120 may report to the target system, for example, through a candidate material reporting interface (described in detail below).

[0104] According to an exemplary embodiment of the present disclosure, the material generation simulator 170 can provide materials corresponding to different times to the material simulator 120, so that the process of the target system acquiring materials can be more realistically simulated, making the test results of the target system more accurate. However, the embodiments of the present disclosure are not limited to this, and the material generation simulator can be omitted, and the material simulator 120 can also obtain candidate materials from other data sources or databases.

[0105] In addition, if Figure 3 As shown, the test system may further include an evaluator 200 . In this case, the target scenario may also be simulated in the following manner: the evaluator 200 may calculate the test index of the target system 300 based on the user behavior acquired from the user simulator 110 .

[0106] Here, the user behavior may include, but is not limited to: the user sending a service request to the target system, and the user's interaction behavior with the target system.

[0107] The evaluator 200 can be used as a tool for calculating test indicators. That is, in a possible embodiment, the system tester can also be called an evaluator, an effect evaluator, an effect tester, etc., and this application has no particular limitation on this. In one example, the evaluator 200 can communicate with the user simulator 110 to obtain user behavior from the user simulator 110; in another example, Figure 3 As shown, during the scenario simulation process, the user simulator 110 can record its own user behavior in a storage medium, which can be, for example, but not limited to, a database or a log. In this way, the evaluator 200 can read the relevant records of the user behavior from the storage medium and perform calculations.

[0108] The test indicator can be used to characterize the test results of the target system 300. As an example, the test indicator can be an indicator used to measure the effectiveness of the target system. For example, the test indicator in the recommendation scenario can include but is not limited to at least one of the following: click-through rate, purchase rate; for another example, the test indicator in the anti-fraud scenario can include but is not limited to at least one of the following: coverage rate, accuracy rate. The credibility of the test indicator is related to the realism of the scenario simulation system simulating the real world. The higher the realism of the scenario simulation system, the higher the credibility of the test indicator and the more accurate the test results of the target system.

[0109] Taking the information recommendation scenario as an example, the evaluator 200 can count the total number of views and clicks by all user simulators based on the acquired user behaviors, and calculate the click-through rate, for example, click-through rate = number of clicks / number of views. Taking the marketing recommendation scenario as an example, the evaluator 200 can count the total number of views and purchases by all user simulators based on the acquired user behaviors, and calculate the purchase rate, for example, purchase rate = number of purchases / number of views.

[0110] In addition, the evaluator 200 may also obtain a behavior record of the material simulator 120. Specifically, the material simulator 120 may record the behavior of providing the material to the target system in a memory, and in some cases, when the test indicator involves the behavior of the material simulator 120, the evaluator 200 may obtain the behavior record of the material simulator 120 from the memory.

[0111] As an example, the evaluator 200 can periodically and incrementally obtain the behavior records of the user simulator and the material simulator from the storage medium during the test and generate a report. The report must include the important test index of this business scenario, that is, click-through rate = number of user clicks / number of user views. This can be obtained through statistics.

[0112] Here, by setting up an evaluator, the data records in the simulation process can be automatically obtained, and the relevant evaluation indicators of the target system under test can be calculated to achieve quantitative calculation of the test results.

[0113] The functions of the first user behavior calculator and the second user behavior calculator are described above. An example process of constructing the first user behavior calculator and the second user behavior calculator will be described in detail below.

[0114] like Figure 4 As shown, the first user behavior calculator can be trained in the following way:

[0115] In step S410, request data of historical users initiating requests to the target system and time data of initiating requests to the target system may be obtained.

[0116] In this step, the request data and the corresponding time data may be obtained from real historical data, but it is not limited thereto, and virtual request data and the corresponding time data may also be generated according to test requirements.

[0117] For example, Figure 5 FIG. 2 shows training data for training the first user behavior calculator and the second user behavior calculator in the information recommendation scenario. Figure 5 As shown in , the training data may include an online material table and an online user behavior table, wherein an action trajectory table for each user may be generated based on the online user behavior table. For example, the data in the "time when the behavior occurs" field and the "user id" field may be obtained from the online user behavior table, and the data may be used as the request data and the corresponding time data for each user. Here, each request may have a corresponding time, i.e., the time when the request occurs. For example, the user has requested at 9 o'clock and at 12 o'clock, etc. In addition, a material feature table may be generated based on the online material table, and a user feature table may be generated based on the online user behavior table and the material feature table. Thus, a user click behavior record table may be generated based on the online user behavior table, the material feature table, and the user feature table.

[0118] In this way, feature extraction can be performed based on each user's action trajectory table, and modeling can be performed based on the extracted features to generate a first user behavior calculator. Feature extraction can be performed based on the user's click behavior record table, and modeling can be performed based on the extracted features to generate a second user behavior calculator (the training process of the second user behavior calculator will be described in detail below).

[0119] In step S420, a first historical user feature sample and a first sample label may be generated based on the request data and the time data according to at least one time window from each time point in the time data forward.

[0120] In this step, the first historical user feature sample may include the number of requests initiated by historical users to the target system in each time window forward from the current time point, and the first sample label may represent the number of requests initiated by historical users to the target system at the current time point.

[0121] The time window can be set arbitrarily according to actual needs, for example, it can be several hours or several days, etc. There can be multiple time windows, for example, the time window can include the 48th hour from the current time point, the 47th hour from the current time point, and the 1st hour from the current time point. Multiple time points can be selected, and the data in each time window for each time point can be counted in a sliding window manner to obtain the first historical user feature sample.

[0122] As an example, Figure 5 As shown in the table on the right of , in each user's action trajectory table, by counting the user's request data and the corresponding time data, the user's browsing information (such as the number of views) and click information (such as the number of clicks) from the 48th hour to the 1st hour from the current time point can be obtained as the first historical user feature sample, and the request initiated by the user in the current hour (such as the number of initiated requests) can be obtained as the first sample label (Label), so that the first historical user feature sample can be extracted, such as Figure 5 The list of features in the table on the right.

[0123] In step S430, a first user behavior calculator may be trained based on the first historical user feature sample and the first sample label.

[0124] In this step, the first historical user feature sample and the first sample label can be used as feature modeling, for example, a machine learning model can be trained to obtain a first user behavior calculator. Here, the machine learning model can be, for example, but not limited to, a linear regressor.

[0125] As an example, the input of the trained first user behavior calculator may include the current time and user features, and the output of the first user behavior calculator may include request behavior information, which indicates a service request that needs to be initiated to the target system at the current time, such as the content of the service request, the number of service requests, etc.

[0126] According to an exemplary embodiment of the present disclosure, feature analysis and statistics can be performed on the request data of the user initiating the request to the target system and the corresponding time data to obtain a first historical user feature sample and a corresponding first sample label, and modeling can be performed to obtain a first user behavior calculator, so as to provide guidance for the request behavior of the user simulator, so that the request behavior of the user simulator is more consistent with the behavior of users in the real world.

[0127] It should be noted that the construction method of the first user behavior calculator is not limited to the above-mentioned training process, and it can also be constructed in other ways, for example, it can be constructed based on preset decision rules.

[0128] In addition, if Figure 6 As shown, the second user behavior calculator can be trained in the following way:

[0129] In step S610, historical interaction behavior data between the user and the target system and historical material data of the target system may be obtained.

[0130] In this step, the interactive behavior data may include, but is not limited to, service requests sent by users to the target system, service information received by users from the service system, and user interactions on the service information such as clicks and browsing. Here, historical users may be real users who have used the target system, for example, online interactive behaviors of real users may be counted to obtain interactive behavior data; historical users may also be virtual users, for example, users may be generated by the user information generator described above, and interactive behavior data for each user may be generated.

[0131] The historical material data may include, for example, but is not limited to, historical candidate materials received by the target system. Here, the historical candidate materials may be materials provided by a real material provider, or may be materials generated by the material generator described above.

[0132] As an example, Figure 5 As shown, the interactive behavior data may include an online user behavior table, and the historical material data may include an online material table. The online user behavior table records the user ID, material ID, the user's behavior on the material, and the time when the behavior occurred. The online material table records the material ID, material title, material content, material classification, and the time when the material occurred. However, the embodiments of the present disclosure are not limited to this. The online user behavior table and the online material table may also include other fields, or the interactive behavior data and the historical material data may not be presented in the form of a table, but in other forms such as text, mapping relationship, image, etc.

[0133] In step S620, a historical material sample, a second historical user feature sample, and a second sample label may be generated based on the interaction behavior data and the historical material data.

[0134] In this step, the historical material sample may include key information of the historical material, the second historical user feature sample may include key information of the historical material in which the historical user has interacted and key information of the historical material in which the historical user has not interacted, and the second sample label may indicate whether the historical user has interacted with the historical material.

[0135] As an example, the key information of the historical material may include but is not limited to a material tag, which may be extracted from at least one of the material classification, the material title, and the material content. Here, the material tag may also be referred to as a material keyword.

[0136] The second historical user feature sample can reflect which materials the historical user has interacted with and which materials the historical user has not interacted with. As an example, the second historical user feature sample and the second sample label can be extracted from the user interaction behavior record.

[0137] by Figure 5 As an example, as described above, a material feature table can be generated based on the online material table, and a user feature table can be generated based on the online user behavior table and the material feature table. Thus, a user click behavior record table can be generated based on the online user behavior table, the material feature table and the user feature table. For example, an online user behavior table and an online material table including user interaction behavior records can be obtained, and the basic characteristics of the user and the basic characteristics of the material can be generated from these two tables. Among them, the basic characteristics of the material may include but are not limited to the material tag of the current material (for example, it can be called itemtag). The basic characteristics of the user may include but are not limited to: material tags that the user has viewed but not clicked (for example, it can be called showtag); material tags that the user has viewed and clicked (for example, it can be called clicktag).

[0138] As an example, the second historical user feature sample may be obtained by collecting statistics on user interaction behavior records.

[0139] Here, the statistical steps may include, but are not limited to: counting the material tags (i.e., the above-mentioned showtag and clicktag) of the materials that the user browsed but did not click and the materials that the user browsed and clicked; counting the overlapping tags in these material tags and the number of overlapping tags; counting the tags that appear in clicktag but not in itemtag; counting the proportion of tags that appear in clicktag but not in itemtag to clicktag, etc.

[0140] In step S630, a second user behavior calculator may be trained based on the historical material sample, the second historical user feature sample, and the second sample label.

[0141] In this step, the historical material sample, the second historical user feature sample and the second sample label can be used as feature modeling, for example, the machine learning model can be trained to obtain the second user behavior calculator. Here, the machine learning model can be, for example, but not limited to, a linear classifier.

[0142] As an example, the input of the trained second user behavior calculator may include current service information and user characteristics, wherein the service information may include at least one material, and the output of the second user behavior calculator may include interactive behavior information, which may indicate whether the user needs to perform a certain interactive behavior on the service information, such as whether to click on information information.

[0143] According to an exemplary embodiment of the present disclosure, feature analysis and statistics can be performed on the interaction behavior between the user and the target system to obtain material samples, second historical user feature samples and corresponding second sample labels, and modeling can be performed to obtain a second user behavior calculator, so as to provide guidance for the interaction behavior of the user simulator, so that the interaction behavior of the user simulator is more consistent with the behavior of users in the real world.

[0144] It should be noted that the construction method of the second user behavior calculator is not limited to the above-mentioned training process, and it can also be constructed in other ways, for example, it can be constructed based on preset decision rules.

[0145] In addition, if Figure 3 As shown, the scenario simulation system may further include an interface manager 190, which may include a user registration interface 191, a material reporting interface 192, a service information acquisition interface 193, and a user behavior reporting interface 194. Each interface may be used to send or receive data between a user simulator or a material simulator and a target system.

[0146] Specifically, as mentioned above, the registration user interface 191 can be used to send the registration request from the user simulator 110 to the target system. The reporting material interface 192 can be used to send the candidate materials from the material simulator 120 to the target system. The acquisition service information interface 193 can be used to send the service request from the user simulator 110 to the target system, for example, it can be used to obtain the recommendation results or recommendation list of the target system. The reporting user behavior interface 194 can be used to send the interactive behavior from the user simulator 110 to the target system, for example, it can report user behaviors such as clicks, purchases, etc.

[0147] Here, it should be noted that although Figure 3 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.

[0148] According to an exemplary embodiment of the present disclosure, a virtual world that simulates the real world as much as possible can be constructed through a scenario simulation system for the application scenario of the target system to be tested. The scenario simulation system can simulate business-related entities (i.e., users and material providers), and can simulate the interaction between entities and the target system. The evaluator can also calculate key test indicators. In this way, the target system to be tested and the scenario simulation system constitute a test system, and the scenario simulation system is run to obtain test indicators. The effect of the system can be evaluated directly based on the test indicator, or the test indicator can be used as a preliminary screening basis before a small flow experiment to screen out systems with better effects for small flow experiments.

[0149] In a second aspect, an exemplary embodiment of the present disclosure proposes a scenario simulation method, which can be applied to a scenario simulation system. The scenario simulation system is used to simulate a target scenario of a user interacting with a target system, and the target scenario is used to test the target system.

[0150] 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.

[0151] Specifically, the scenario simulation system may include a material simulator and a user simulator. The user simulator is used to simulate user behavior in the target scenario, and the material simulator is used to provide materials for the target scenario.

[0152] like Figure 7 As shown, the scenario simulation method may include the following steps:

[0153] In step S710, the material simulator sends candidate materials to the target system.

[0154] In step S720 , the user simulator receives service information from the target system and interacts with the target system, wherein the service information is generated based on the candidate material by the target system.

[0155] 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 6 The embodiments described are similar / identical, so they will not be described again here.

[0156] In a third aspect, an exemplary embodiment of the present disclosure proposes a test system, which includes a scenario simulation system and a system tester. The scenario simulation system is used to simulate a target scenario of user interaction with a target system, and the target scenario is used to test the target system.

[0157] The scenario simulation system may include: a material simulator, which is used to provide materials for the target scenario and sends candidate materials to the target system; a user simulator, which is used to simulate user behavior in the target scenario and receives service information from the target system and interacts with the target system, and the service information is generated based on the candidate materials.

[0158] The system tester can be 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.

[0159] As an example, the scenario simulation system also includes a first user behavior calculator, which responds to a first behavior calculation request of the user simulator and determines request behavior information based on the current time and user characteristics of the virtual user simulated by the user simulator, wherein the first behavior calculation request is used to obtain a service request that the user simulator needs to initiate to the target system at the current time, and the request behavior information indicates the service request that the user simulator needs to initiate to the target system at the current time; the user simulator initiates a service request to the target system based on the request behavior information received from the first user behavior calculator to receive service information from the target system.

[0160] As an example, the first user behavior calculator is trained in the following manner: obtaining request data of historical users initiating requests to the target system and time data of initiating requests to the target system; based on the request data and the time data, generating a first historical user feature sample and a first sample label according to at least one time window from each time point in the time data forward, wherein the first historical user feature sample includes the number of requests initiated by historical users to the target system in each time window forward from the current time point, and the first sample label represents the number of requests initiated by historical users to the target system at the current time point; based on the first historical user feature sample and the first sample label, the first user behavior calculator is trained.

[0161] As an example, the scenario simulation system also includes a second user behavior calculator, and the user simulator sends service information to the second user behavior calculator; the second user behavior calculator determines interaction behavior information based on the service information and user characteristics of the virtual user simulated by the user simulator, wherein the interaction behavior information indicates the interaction behavior that the user simulator needs to perform on the service information; the user simulator interacts with the target system based on the interaction behavior information received from the second user behavior calculator.

[0162] As an example, the second user behavior calculator is trained in the following manner: obtaining the interaction behavior data between historical users and the target system and the historical material data of the target system; generating historical material samples, second historical user feature samples and second sample labels based on the interaction behavior data and the historical material data, wherein the historical material samples include key information of the historical materials, the second historical user feature samples include key information of historical materials in which the historical users have interacted and key information of historical materials in which the historical users have not interacted, and the second sample label indicates whether the historical users have interacted with the historical materials; based on the historical material samples, the second historical user feature samples and the second sample labels, the second user behavior calculator is trained.

[0163] As an example, the test system further includes an evaluator, which calculates a test index of the target system based on the acquired user behavior of the user simulator, and the test index is used to characterize a test result of the target system.

[0164] As an example, the scenario simulation system also includes a user generation simulator and a user information generator, wherein the user simulator is generated in the following manner: the user generation simulator requests user information of a corresponding number of virtual users from the user information generator according to the number of virtual users to be generated at the current time; the user generation simulator generates a user simulator corresponding to each virtual user based on the user information.

[0165] As an example, the scenario simulation system also includes a material generation simulator, which queries the material generation simulator for candidate materials corresponding to the current time based on the current time; the material simulator sends the candidate materials to the target system in response to the candidate materials corresponding to the current time queried from the material generation simulator.

[0166] As an example, the service information includes at least one of the following items: information recommendation information, product recommendation information, video or audio recommendation strategy, intelligent service information, contact recommendation information, and traffic route recommendation information.

[0167] As an example, the scenario simulation system includes at least one user simulator, and any one of the user simulators is used to simulate the behavior of a user.

[0168] 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.

[0169] In a fourth aspect, an exemplary embodiment of the present disclosure provides a scenario simulation system, which is used to simulate a target scenario of a user interacting with a target system, and the target scenario is used to test the target system, wherein: Figure 8 As shown, the scenario simulation system 100 includes: a material simulator 120, which is used to provide materials for the target scenario, and the material simulator 120 sends candidate materials to the target system 300; a user simulator 110, which is used to simulate user behavior in the target scenario, and the user simulator 110 receives service information from the target system and interacts with the target system 300, and the service information is generated based on the candidate materials.

[0170] 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.

[0171] It should be noted that Figure 2 and Figure 3 Each unit in the device shown may be configured as software, hardware, firmware, or any combination of the above items to perform a specific function. For example, each unit may correspond to a dedicated integrated circuit, or may correspond to a pure software code, or may correspond to a module that combines software and hardware. In addition, one or more functions implemented by each unit may also be uniformly performed by components in a physical entity device (e.g., a processor, a client, or a server, etc.).

[0172] In addition, the method described above 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 and / or scenario simulation method according to the present disclosure.

[0173] 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 7 It is mentioned in the description of the related method, so it will not be repeated here to avoid repetition.

[0174] It should be noted that the various units in the object registration device according to the exemplary embodiment 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.

[0175] on the other hand, Figure 2 and Figure 3 The 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.

[0176] For example, the exemplary embodiments of the present disclosure may also be implemented as a computing device such as Fig. 9 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, the system testing method or scenario simulation method described in the exemplary embodiments of the present disclosure is executed.

[0177] 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.

[0178] 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.

[0179] 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.

[0180] According to the exemplary embodiments of the present disclosure, some operations described in the system testing method or 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.

[0181] The processor may execute instructions or codes stored in one of the storage components, 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.

[0182] The storage component may be integrated with the processor, for example, RAM or flash memory is arranged within an integrated circuit microprocessor, etc. In addition, the storage component 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 storage component 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 storage component.

[0183] 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.

[0184] The system testing method or scenario simulation method according to the exemplary embodiment 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.

[0185] Therefore, the system testing method or scenario simulation method described above may be implemented by a system including at least one computing device and at least one storage device storing instructions.

[0186] 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 system testing method or scenario simulation method described above is executed.

[0187] 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 used to test the system, the testing system includes a scenario simulation system, the scenario simulation system is used to simulate a target scenario of user interaction with the target system, the target scenario is used to test the target system, the scenario simulation system includes a material simulator and a user simulator, the user simulator is used to simulate user behavior in the target scenario, and the material simulator is used to provide materials for the target scenario, wherein the system testing method includes: By simulating a target scenario, performing at least one round of interaction with the target system, and collecting interaction data; Based on the interaction data, determining a test result of the target system, The target scenario is simulated in the following manner: The material simulator sends candidate materials to the target system; The user simulator receives service information from the target system and interacts with the target system, the service information being generated based on the candidate material.

2. The system testing method according to claim 1, characterized in that: The scenario simulation system further includes a first user behavior calculator, wherein the target scenario is simulated in the following manner: The first user behavior calculator determines the request behavior information in response to the first behavior calculation request of the user simulator based on the current time and the user characteristics of the virtual user simulated by the user simulator, wherein the first behavior calculation request is used to obtain the service request that the user simulator needs to initiate to the target system at the current time, and the request behavior information indicates the service request that the user simulator needs to initiate to the target system at the current time; The user simulator initiates a service request to the target system based on the request behavior information received from the first user behavior calculator to receive the service information from the target system.

3. The system testing method according to claim 2, characterized in that: The first user behavior calculator is trained in the following manner: Acquire historical request data of users initiating requests to the target system and time data of initiating requests to the target system; Based on the request data and the time data, generating a first historical user feature sample and a first sample label according to at least one time window from each time point in the time data forward, wherein the first historical user feature sample includes the number of requests initiated by the historical user to the target system in each time window forward from the current time point, and the first sample label indicates the number of requests initiated by the historical user to the target system at the current time point; The first user behavior calculator is trained based on the first historical user feature sample and the first sample label.

4. The system testing method according to claim 1, characterized in that: The scenario simulation system further includes a second user behavior calculator, wherein the target scenario is simulated in the following manner: The user simulator sends the service information to the second user behavior calculator; The second user behavior calculator determines the interactive behavior information based on the service information and the user characteristics of the virtual user simulated by the user simulator, wherein the interactive behavior information indicates the interactive behavior that the user simulator needs to perform on the service information; The user simulator interacts with the target system based on the interaction behavior information received from the second user behavior calculator.

5. A scene simulation method, characterized in that: The scenario simulation method is applied to a scenario simulation system, the scenario simulation system is used to simulate a target scenario of user interaction with a target system, the target scenario is used to test the target system, the scenario simulation system includes a material simulator and a user simulator, the user simulator is used to simulate user behavior in the target scenario, and the material simulator is used to provide materials for the target scenario, wherein the scenario simulation method includes: The material simulator sends candidate materials to the target system; The user simulator receives service information from the target system and interacts with the target system, the service information being generated by the target system based on the candidate material.

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 a target scenario of interaction between a user and a target system. The target scenario is used to test the target system. Wherein, the scene simulation system comprises: A material simulator, the material simulator is used to provide materials for the target scenario, and the material simulator sends candidate materials to the target system; a user simulator, the user simulator being used to simulate user behavior in the target scenario, the user simulator receiving service information from the target system and interacting with the target system, the service information being generated based on the candidate material, 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 a target scenario in which a user interacts with a target system, and the target scenario is used to test the target system, wherein the scenario simulation system includes: A material simulator, the material simulator is used to provide materials for the target scenario, and the material simulator sends candidate materials to the target system; A user simulator is used to simulate user behavior in the target scenario, the user simulator receives service information from the target system and interacts with the target system, and the service information is generated based on the candidate material.

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 .