User behavior simulation method and device, equipment and storage medium
By constructing a directed acyclic graph and calling the corresponding simulation task nodes, the automated simulation of user behavior is realized, and the problems of high difficulty and low accuracy of manual encoding in the existing technology are solved, which improves the accuracy and efficiency of user behavior simulation.
Patent Information
- Application Number
- CN202310500709.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-05
AI Technical Summary
In the prior art, user behavior simulation solutions rely on developers to manually write a large amount of code, which is difficult and consumes a lot of manpower and material resources, and the simulated user behavior is low, which cannot meet the testing needs of a large number of user usage scenarios in real environments.
By obtaining user behavior scene files, a directed acyclic graph is built, and corresponding simulation task nodes are called based on the dependencies of the vertices in the graph, and user behavior simulation is automatically realized, reducing development difficulty and improving accuracy.
There is no need to manually write a large amount of code, and automatically and programmatically simulate user behavior, which improves the accuracy and efficiency of simulation and can meet the application needs of full-link pressure testing and other applications.
Smart Images

Figure CN118897788A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a user behavior simulation method, device, equipment and storage medium. Background Art
[0002] With the rapid development of terminal and computer technology, more and more Internet products have emerged on the market, and most of these Internet products can support a large user base. For the testing of such products, if conventional testing methods are used, only the scenarios of a small number of users or the performance of some modules can be tested. It is difficult to achieve a complete test of the product scenarios of a large number of users in a real environment. Therefore, one of the current solutions is to simulate user behavior, and then conduct tests based on the simulated user behavior in the future.
[0003] However, user behavior simulation solutions in related technologies usually rely on developers to manually write a large amount of code, which is not only difficult to develop and consumes a lot of manpower and material resources, but also has low accuracy in simulated user behavior and cannot meet the needs of subsequent testing and other applications. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a user behavior simulation method, apparatus, device and storage medium to solve the defects in the related art.
[0005] According to a first aspect of an embodiment of the present disclosure, a user behavior simulation method is provided, the method comprising:
[0006] Acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user;
[0007] Constructing at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task;
[0008] Based on the dependency relationship between each vertex in the directed acyclic graph, each vertex is called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node.
[0009] In some embodiments, constructing the at least one directed acyclic graph based on the target information includes:
[0010] Acquire node information of multiple real task nodes in each of the user's real tasks from the target information;
[0011] Determine vertex information of a plurality of vertices in each directed acyclic graph to be constructed based on the node information, wherein the vertex information corresponds one-to-one to the node information;
[0012] Based on the vertex information, multiple vertices in each directed acyclic graph to be constructed are linked to obtain each constructed directed acyclic graph.
[0013] In some embodiments, linking multiple vertices in each directed acyclic graph to be constructed based on the vertex information includes:
[0014] Determine the dependency relationship between the plurality of vertices based on the vertex information;
[0015] Add a directed edge between every two vertices that have a dependency relationship.
[0016] In some embodiments, determining the dependency relationship between the plurality of vertices based on the vertex information includes:
[0017] Determine the dependency relationship between the first part of vertices based on vertex information of the first part of vertices among the multiple vertices and a preset link node order;
[0018] Based on vertex information of second-part vertices, dependencies between the second-part vertices and / or dependencies between the second-part vertices and the first-part vertices are determined, and the second-part vertices are vertices among the plurality of vertices except the first-part vertices.
[0019] In some embodiments, calling each vertex to execute a simulation node task of a corresponding simulation task node based on the dependency relationship between each vertex in each directed acyclic graph includes:
[0020] Determine a calling order of calling each of the vertices based on the dependency relationship;
[0021] Based on a preset traversal algorithm, each of the vertices is called in the calling order to execute the simulated node task.
[0022] In some embodiments, calling each vertex to execute the simulation node task in the calling order includes:
[0023] In response to calling a first vertex among the vertices in the calling order, determining the number of vertices whose tasks have been completed among second vertices on which the first vertex depends, the first vertex having the dependency relationship with the second vertex;
[0024] When the number reaches a set number threshold, allowing the call to the first vertex;
[0025] If the number does not reach the set number threshold, the calling of the first vertex is prevented.
[0026] In some embodiments, calling each vertex to execute the simulation node task in the calling order includes:
[0027] In response to calling a first vertex among the vertices in the calling order, determining a task execution result of a second vertex on which the first vertex depends, the first vertex having the dependency relationship with the second vertex;
[0028] When the task execution result satisfies a preset condition, allowing the call to the first vertex;
[0029] When the task execution result does not satisfy the preset condition, the calling of the first vertex is prevented.
[0030] According to a second aspect of an embodiment of the present disclosure, a user behavior simulation device is provided, the device comprising:
[0031] A file acquisition module, used to acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user;
[0032] An image construction module, configured to construct at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task;
[0033] The behavior simulation module is used to call each vertex to execute the simulation node task of the corresponding simulation task node based on the dependency relationship of each vertex in each directed acyclic graph, so as to obtain the user behavior simulation result of the real task node.
[0034] In some embodiments, the image construction module includes:
[0035] An information acquisition unit, used for acquiring node information of a plurality of real task nodes in each of the real tasks of the user from the target information;
[0036] An information determining unit, used to determine vertex information of a plurality of vertices in each directed acyclic graph to be constructed based on the node information, wherein the vertex information corresponds one-to-one to the node information;
[0037] The image construction unit is used to link multiple vertices in each directed acyclic graph to be constructed based on the vertex information to obtain each constructed directed acyclic graph.
[0038] In some embodiments, the image construction unit is further configured to:
[0039] Determine the dependency relationship between the plurality of vertices based on the vertex information;
[0040] Add a directed edge between every two vertices that have a dependency relationship.
[0041] In some embodiments, the image construction unit is further configured to:
[0042] Determine the dependency relationship between the first part of vertices based on vertex information of the first part of vertices among the multiple vertices and a preset link node order;
[0043] Based on vertex information of second-part vertices, dependencies between the second-part vertices and / or dependencies between the second-part vertices and the first-part vertices are determined, and the second-part vertices are vertices among the plurality of vertices except the first-part vertices.
[0044] In some embodiments, the behavior simulation module includes:
[0045] An order determination unit, configured to determine a calling order of calling each of the vertices based on the dependency relationship;
[0046] The vertex calling unit is used to call each vertex in the calling order to execute the simulation node task based on a preset traversal algorithm.
[0047] In some embodiments, the vertex calling unit is further configured to:
[0048] In response to calling a first vertex among the vertices in the calling order, determining the number of vertices whose tasks have been completed among second vertices on which the first vertex depends, the first vertex having the dependency relationship with the second vertex;
[0049] When the number reaches a set number threshold, allowing the call to the first vertex;
[0050] If the number does not reach the set number threshold, the calling of the first vertex is prevented.
[0051] In some embodiments, the vertex calling unit is further configured to:
[0052] In response to calling a first vertex among the vertices in the calling order, determining a task execution result of a second vertex on which the first vertex depends, the first vertex having the dependency relationship with the second vertex;
[0053] When the task execution result satisfies a preset condition, allowing the call to the first vertex;
[0054] When the task execution result does not satisfy the preset condition, the calling of the first vertex is prevented.
[0055] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the device comprising:
[0056] a processor and a memory for storing a computer program;
[0057] Wherein, the processor is configured to implement, when executing the computer program:
[0058] Acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user;
[0059] Constructing at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task;
[0060] Based on the dependency relationship between each vertex in the directed acyclic graph, each vertex is called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node.
[0061] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the following is implemented:
[0062] Acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user;
[0063] Constructing at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task;
[0064] Based on the dependency relationship between each vertex in the directed acyclic graph, each vertex is called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node.
[0065] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0066] The present disclosure obtains a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to execute a user simulation task, each user simulation task is used to simulate a user real task, and at least one directed acyclic graph is constructed based on the target information, each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulation task, and each simulated task node is used to simulate each real task node in the corresponding user real task, and then based on the dependency relationship of each vertex in each directed acyclic graph, each vertex can be called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node. Since the user behavior simulation result of each real task node is automatically realized by calling each vertex in the directed acyclic graph to execute the simulated node task of the corresponding simulated task node, there is no need to rely on developers to manually write a large amount of code to perform user behavior simulation, which can reduce the development difficulty and save manpower and material resources. In addition, by automating and programmatically simulating the user behavior of the real task node, the accuracy of the user behavior simulation can be improved, and the needs of subsequent full-link stress testing and other applications can be met.
[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0069] Figure 1 is a flow chart of a user behavior simulation method according to an exemplary embodiment of the present disclosure;
[0070] Figure 2 is a flowchart showing how to construct the at least one directed acyclic graph based on the target information according to an exemplary embodiment of the present disclosure;
[0071] Figure 3 is a flowchart showing how to link multiple vertices in each directed acyclic graph to be constructed based on the vertex information according to an exemplary embodiment of the present disclosure;
[0072] Figure 4A is a flowchart showing how to determine the dependency relationship between the plurality of vertices based on the vertex information according to an exemplary embodiment of the present disclosure;
[0073] Figure 4B is a schematic diagram of various real task nodes in an online shopping task according to an exemplary embodiment of the present disclosure;
[0074] Figure 5 is a flowchart showing how to call each vertex to execute a simulation node task of a corresponding simulation task node according to an exemplary embodiment of the present disclosure;
[0075] Figure 6 is a flowchart showing how to call each vertex to execute the simulation node task according to the calling sequence according to an exemplary embodiment of the present disclosure;
[0076] Figure 7 is a flowchart showing how to call each vertex to execute the simulation node task according to the calling sequence according to another exemplary embodiment of the present disclosure;
[0077] Figure 8 is a block diagram of a user behavior simulation device according to an exemplary embodiment of the present disclosure;
[0078] Fig. 9 is a block diagram of another user behavior simulation device according to an exemplary embodiment of the present disclosure;
[0079] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0080] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0081] Figure 1 is a flow chart of a user behavior simulation method according to an exemplary embodiment; the method of this embodiment can be executed by a user behavior simulation device, which can be configured in an electronic device, such as a server, a workstation, a personal computer, a mobile terminal (such as a mobile phone, a tablet computer, etc.), a wearable device (such as glasses, a watch, etc.), etc. Specifically, Figure 1As shown, the method includes the following steps S101-S103:
[0082] In step S101, a user behavior scenario file is obtained.
[0083] In this embodiment, when simulating the user behavior of at least one user in the process of performing his or her own real user task, the user behavior scenario file can be obtained.
[0084] The user behavior scenario file includes target information for constructing at least one directed acyclic graph (DAG), each of which is used to execute a user simulation task, and each of which is used to simulate a user's real task. In other words, one user behavior scenario file can be used to draw multiple DAG graphs at the same time, thereby achieving the purpose of simulating the user behavior of multiple users executing their own real user tasks in parallel, and improving the efficiency of user behavior simulation.
[0085] In step S102, at least one directed acyclic graph is constructed based on the target information.
[0086] In this embodiment, after obtaining the user behavior scenario file, at least one directed acyclic graph can be constructed based on the target information, and each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulation task, and each simulated task node is used to simulate each real task node in the corresponding user real task.
[0087] For example, after obtaining the above user behavior scenario file, the user behavior scenario file can be parsed to obtain target information for constructing at least one directed acyclic graph. The target information may include vertex information of each vertex in each directed acyclic graph, such as at least one of the request interface address, input parameters, assertion conditions, output parameters, and filtering conditions of each vertex, which is not limited in this embodiment.
[0088] In some other embodiments, the above-mentioned construction of at least one directed acyclic graph based on the target information can also refer to the following Figure 2 The illustrated embodiment will not be described in detail here.
[0089] In step S103, based on the dependency relationship between each vertex in the directed acyclic graph, each vertex is called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node.
[0090] In this embodiment, after constructing at least one directed acyclic graph based on the target information, the simulated node tasks of the corresponding simulated task nodes can be called to execute each vertex based on the dependency relationship between the vertices in each directed acyclic graph to obtain the user behavior simulation results of the real task nodes.
[0091] In some embodiments, the dependency relationship between each vertex in the directed acyclic graph can be determined based on the linking method of each vertex in the directed acyclic graph, and then the simulated node tasks of the corresponding simulated task nodes are called to execute the simulated node tasks of the respective vertices based on the dependency relationship, so as to simulate the user behavior simulation results of the real task nodes corresponding to the simulated task nodes.
[0092] In some other embodiments, the above-mentioned method of calling each vertex to execute the simulation node task of the corresponding simulation task node can also refer to the following Figure 5 The illustrated embodiment will not be described in detail here.
[0093] From the above description, it can be seen that in the method of this embodiment, since the user behavior simulation result of each real task node is automatically realized by calling each vertex in the directed acyclic graph to execute the simulation node task of the corresponding simulation task node, there is no need to rely on developers to manually write a large amount of code to perform user behavior simulation, which can save manpower and material resources; and DAG-based orchestration can better realize interface node orchestration and dependency management, allowing developer users to configure interface nodes in a visual way, thereby reducing the development difficulty and ensuring the correctness of the dependency relationship between task nodes; in addition, DAG-based orchestration can also improve the scenario flexibility of user behavior simulation, that is, different user behavior simulation scenarios can be created by configuring different DAG graphs, thereby further improving the accuracy of user behavior simulation; on this basis, it can meet the needs of subsequent full-link stress testing and other applications.
[0094] Figure 2 It is a flowchart showing how to construct the at least one directed acyclic graph based on the target information according to an exemplary embodiment of the present disclosure; this embodiment, based on the above embodiment, uses an example of how to construct the at least one directed acyclic graph based on the target information to exemplify.
[0095] like Figure 2 As shown, the step S102 described above of constructing the at least one directed acyclic graph based on the target information may include the following steps S201-S203:
[0096] In step S201, node information of a plurality of real task nodes in each of the user's real tasks is obtained from the target information.
[0097] In this embodiment, when constructing the at least one directed acyclic graph, node information of multiple real task nodes in the user real task corresponding to each directed acyclic graph (i.e., the user real task corresponding to the user simulation task executed by each directed acyclic graph) can be obtained from the target information.
[0098] In some embodiments, the content of the above-mentioned node information may include at least one item of the request interface address, input parameters, assertion conditions, output parameters and extraction expressions, filtering conditions and other information of the corresponding node. This embodiment does not limit this. This embodiment does not limit this.
[0099] In step S202, vertex information of a plurality of vertices in each directed acyclic graph to be constructed is determined based on the node information.
[0100] In this embodiment, after the node information of multiple real task nodes in each of the user's real tasks is obtained from the target information, the vertex information of multiple vertices in each directed acyclic graph to be constructed can be determined based on the node information.
[0101] In some embodiments, the real task nodes correspond one-to-one to the vertices in the corresponding directed acyclic graph, so the vertex information of multiple vertices in the directed acyclic graph also corresponds one-to-one to the node information of multiple real task nodes in the user's real task. Specifically, the vertex information of a vertex in the directed acyclic graph can contain all the node information of the corresponding real task node. Furthermore, after the directed acyclic graph is subsequently constructed, the vertex information of the vertex can also be added with information of the directed edge with the vertex as the starting point for subsequent use.
[0102] In step S203, multiple vertices in each directed acyclic graph to be constructed are linked based on the vertex information to obtain each constructed directed acyclic graph.
[0103] In this embodiment, after the vertex information of multiple vertices in each directed acyclic graph to be constructed is determined based on the node information, the multiple vertices in each directed acyclic graph to be constructed can be linked based on the vertex information to obtain each constructed directed acyclic graph.
[0104] In some embodiments, the manner in which the multiple vertices in each of the directed acyclic graphs are linked may include adding a directed edge between two vertices among the multiple vertices, wherein the directed edge may be used to describe the dependency relationship between the two vertices. For example, if the call and / or task execution of vertex B depends on the task execution result of vertex A (e.g., the output parameter of vertex A is the input parameter of vertex B, or the assertion condition and / or filtering condition of vertex B involves the output parameter of vertex A, etc.), then vertex B may be considered to be dependent on vertex A, that is, there is a dependency relationship between vertex A and vertex B. Furthermore, the directed edge added between vertex A and vertex B may be from vertex A to vertex B.
[0105] In some other embodiments, the above-mentioned method of linking multiple vertices in each directed acyclic graph to be constructed based on the vertex information can also refer to the following Figure 3 The illustrated embodiment will not be described in detail here.
[0106] From the above description, it can be seen that this embodiment obtains the node information of multiple real task nodes in each of the user's real tasks from the target information, and determines the vertex information of multiple vertices in each directed acyclic graph to be constructed based on the node information, and the vertex information corresponds to the node information one by one, and then based on the vertex information, the multiple vertices in each directed acyclic graph to be constructed are linked to obtain each constructed directed acyclic graph, which can realize the construction of at least one directed acyclic graph based on the target information, and then realize the subsequent automatic and programmatic simulation of user behavior of real task nodes based on the at least one constructed directed acyclic graph, which can improve the accuracy of user behavior simulation.
[0107] Figure 3 It is a flowchart showing how to link multiple vertices in each directed acyclic graph to be constructed based on the vertex information according to an exemplary embodiment of the present disclosure; this embodiment, based on the above embodiment, uses the example of how to link multiple vertices in each directed acyclic graph to be constructed based on the vertex information as an example to exemplify.
[0108] like Figure 3 As shown, linking the multiple vertices in each directed acyclic graph to be constructed based on the vertex information described in the above step S203 may include the following steps S301-S302:
[0109] In step S301, the dependency relationship between the plurality of vertices is determined based on the vertex information.
[0110] In this embodiment, when it is necessary to link multiple vertices in each directed acyclic graph to be constructed based on the vertex information, the dependency relationship between the multiple vertices can be first determined based on the vertex information.
[0111] In some embodiments, vertex information of each of the multiple vertices may be obtained, and each vertex information may be analyzed. For example, based on at least one of the input parameters, assertion conditions, and filtering conditions of each vertex, the dependent vertex on which the call or task execution of the vertex depends may be determined. For example, if the input parameter of vertex B is parameter n, and parameter n is the output parameter of vertex A, then it may be determined that there is a dependency relationship between vertex B and vertex A, and the dependency relationship is that vertex B depends on vertex A. For another example, if the assertion condition and / or filtering condition of vertex B involves information value m, and the information value m is the task execution result of vertex A, then it may also be determined that there is a dependency relationship between vertex B and vertex A, and the dependency relationship is that vertex B depends on vertex A.
[0112] In some other embodiments, the method of determining the dependency relationship between the plurality of vertices based on the vertex information described in the above step S301 can also refer to the following Figure 4A The illustrated embodiment will not be described in detail here.
[0113] In step S302, a directed edge is added between every two vertices having a dependency relationship.
[0114] In this embodiment, after the dependency relationship between the plurality of vertices is determined based on the vertex information, a directed edge may be added between every two vertices having the dependency relationship.
[0115] Still taking the above-mentioned vertices A and B as an example, when it is determined that there is a dependency relationship between vertices A and B, and the specific dependency relationship is that vertex B depends on vertex A, a directed edge can be added between vertex A and vertex B, and the directed edge can be drawn from vertex A to vertex B. In this way, the dependency relationship between vertex B and vertex A, the order of task execution and other information can be vividly and figuratively described based on the direction of the directed edge.
[0116] From the above description, it can be seen that this embodiment determines the dependency relationship between the multiple vertices based on the vertex information, and adds directed edges between every two vertices with the dependency relationship, so as to accurately link the multiple vertices in each directed acyclic graph to be constructed based on the vertex information, thereby laying the foundation for the subsequent automatic and programmatic simulation of user behaviors of real task nodes based on at least one constructed directed acyclic graph, and can improve the accuracy of user behavior simulation.
[0117] Figure 4AIt is a flowchart showing how to determine the dependency relationship between the multiple vertices based on the vertex information according to an exemplary embodiment of the present disclosure; this embodiment, based on the above embodiment, uses an example of how to determine the dependency relationship between the multiple vertices based on the vertex information to exemplify.
[0118] like Figure 4A As shown, the determination of the dependency relationship between the multiple vertices based on the vertex information in the above step S301 may include the following steps S401-S402:
[0119] In step S401, based on vertex information of a first part of vertices among the plurality of vertices and a preset link node order, a dependency relationship between the first part of vertices is determined;
[0120] In step S402, based on vertex information of the second part vertices, the dependency relationship between the second part vertices and / or the dependency relationship between the second part vertices and the first part vertices is determined. The second part vertices may be vertices other than the first part vertices among the plurality of vertices.
[0121] For example, a preset link in the user's real task can be pre-specified, and then based on the dependency relationship of the real task nodes in the link, the dependency relationship between the first part of vertices in the corresponding directed acyclic graph (i.e., the vertices corresponding to the real task nodes in the link) can be determined. Figure 4B is a schematic diagram showing various real task nodes in an online shopping task according to an exemplary embodiment of the present disclosure; Figure 4B As shown in FIG. 1 , it is assumed that the preset link in the pre-specified user real task is the link of “search product - product list - product details - shopping cart - settlement”, and Figure 4B It can be seen that the dependencies of each real task node in the link, and thus the dependencies between some vertices in the corresponding directed acyclic graph (i.e., the vertices corresponding to each real task node in the above link, i.e., the vertices of the first part of the above vertices) can be determined based on the dependencies of these real task nodes. Accordingly, directed edges can be added between every two vertices according to the dependencies between the vertices of the first part. For example, there is a dependency between vertex A corresponding to the real task node "Search for Products" and vertex B corresponding to the real task node "Product List", and there is also a dependency between vertex B corresponding to the real task node "Product List" and vertex C corresponding to the real task node "Product Details". Therefore, directed edges can be added between vertex A and vertex B and vertex B and vertex C, and the directed edges are from the dependent vertex to the dependent vertex (i.e., from vertex A to vertex B, and from vertex B to vertex C), which are not listed one by one here.
[0122] On this basis, for the second part of vertices in the directed acyclic graph (that is, the vertices in the multiple vertices of the directed acyclic graph except the first part of vertices, such as Figure 4B The real task node "order" in the directed acyclic graph corresponds to the vertex in the directed acyclic graph, etc.), and the vertex information of each vertex (such as at least one of the request address, input parameters, call conditions, etc.) can be specifically analyzed to determine the dependency between two vertices in the second part of vertices, and / or the dependency between each vertex in the second part of vertices and each vertex in the first part of vertices. The method of determining the dependency based on vertex information can refer to the above Figure 3 The explanations and descriptions in the illustrated embodiments are not repeated here for this embodiment.
[0123] From the above description, it can be seen that this embodiment determines the dependency between the vertices of the first part of the multiple vertices based on the vertex information of the first part of the vertices and the preset link node order, and determines the dependency between the vertices of the second part and / or the dependency between the vertices of the second part and the vertices of the first part based on the vertex information of the vertices of the second part. This can achieve accurate determination of the dependency between the multiple vertices based on the vertex information, and then subsequent addition of directed edges between every two vertices with dependencies. On this basis, it can lay the foundation for automatically and programmatically simulating user behaviors of real task nodes based on at least one directed acyclic graph that is constructed, thereby improving the accuracy of user behavior simulation.
[0124] Figure 5 It is a flowchart showing how to call each vertex to execute the simulation node task of the corresponding simulation task node according to an exemplary embodiment of the present disclosure; this embodiment, based on the above embodiment, uses the example of how to call each vertex to execute the simulation node task of the corresponding simulation task node to illustrate the above embodiment.
[0125] like Figure 5 As shown, the calling of each vertex to execute the simulation node task of the corresponding simulation task node in the above step S103 may include the following steps S501-S502:
[0126] In step S501, the order of calling the vertices is determined based on the dependency relationship;
[0127] In step S502, based on a preset traversal algorithm, each vertex is called in the calling order to execute the simulated node task.
[0128] In this embodiment, when calling each of the vertices to execute the simulation node task of the corresponding simulation task node, the calling order of calling each of the vertices can be determined based on the dependency relationship. For example, if there is a dependency relationship between vertex B and vertex A, and the dependency relationship is that vertex B depends on vertex A, then when determining the calling order of the two, the calling order can be determined based on the above dependency relationship as calling A first and then calling B. For another example, if vertex B has a dependency relationship with both vertex A and vertex C, and the dependency relationship is that vertex B depends on vertex A and vertex C, then when determining the calling order between them, the calling order can be determined based on the above dependency relationship as calling vertex A and vertex C first and then calling B. That is to say, after determining the dependent vertex and the dependent vertex in the dependency relationship, the calling order of the vertices can be determined based on the dependency relationship as calling the dependent vertex first and then calling the dependent vertex. On this basis, the various vertices can be called in sequence according to the calling order based on the preset traversal algorithm to execute the simulation node task.
[0129] It is worth noting that the above-mentioned preset traversal algorithm can be set based on actual scenario requirements, such as being set to a breadth-first traversal algorithm BFS, or a depth-first traversal algorithm DFS, etc., and this embodiment does not limit this.
[0130] It can be understood that the above preset traversal algorithm can more accurately and conveniently realize information transmission and sharing between various vertices according to the calling order of various vertices, thereby better realizing data exchange and collaboration between various vertices.
[0131] In some other embodiments, the above method of calling each vertex to execute the simulation node task in the calling sequence can also refer to the following Figure 6 or Figure 7 The illustrated embodiment will not be described in detail here.
[0132] From the above description, it can be seen that this embodiment determines the calling order of calling the various vertices based on the dependency relationship, and based on a preset traversal algorithm, calls the various vertices in the calling order to execute the simulated node task, thereby accurately calling the various vertices to execute the simulated node tasks of the corresponding simulated task nodes, thereby realizing automatic and programmatic simulation of user behaviors of real task nodes, and improving the accuracy of user behavior simulation.
[0133] Figure 6 It is a flowchart showing how to call each vertex to execute the simulation node task according to the calling order according to an exemplary embodiment of the present disclosure; this embodiment, based on the above embodiment, uses the example of how to call each vertex to execute the simulation node task according to the calling order to illustrate.
[0134] like Figure 6 As shown, calling each vertex in the calling order to execute the simulated node task in the above step S502 may include the following steps S601-S604:
[0135] In step S601 , in response to calling a first vertex among the vertices in the calling order, the number of vertices whose tasks have been completed among the second vertices on which the first vertex depends is determined.
[0136] In this embodiment, when calling each vertex to execute the simulated node task in the calling order, if it is detected that the first vertex needs to be called currently, the number of vertices whose tasks have been completed among the second vertices on which the first vertex depends can be determined. It can be understood that the second vertex on which the first vertex depends can be at least one vertex.
[0137] For example, if vertex A depends on vertex B and vertex C (that is, in the dependency relationship of vertex A, vertex A is the dependent vertex, and vertex B and vertex C are dependent vertices), then vertex A can record a number 2 (that is, the total number of vertices on which vertex A depends) when it is initialized; further, in the specific user behavior simulation process, when the task of vertex B is completed, the number recorded by vertex A can be subtracted by 1, that is, the number becomes 2-1=1; further, when the task of vertex C is also completed, the number recorded by vertex A can be further subtracted by 1, and the number becomes 1-1=0.
[0138] In step S602, determine whether the quantity reaches a set quantity threshold: if so, execute step S603; if not, execute step S604;
[0139] In step S603, the call to the first vertex is allowed;
[0140] In step S604, the call to the first vertex is blocked.
[0141] In this embodiment, after determining the number of the first vertex records, the number can be compared with a set number threshold, and when it is detected that the number reaches the set number threshold, the call to the dependent vertex can be allowed; on the contrary, when it is detected that the number does not reach the set number threshold, the call to the dependent vertex can be blocked.
[0142] Still taking the above vertex A as an example, the above set quantity threshold can be set to 0. Then, when the number of records of vertex A is reduced to 0, it can be known that the tasks of vertex B and vertex C on which vertex A depends have been completed, so the call to vertex A can be allowed at this time.
[0143] From the above description, it can be seen that this embodiment, in response to calling the first vertex among the vertices in the calling order, determines the number of vertices in the second vertex on which the first vertex depends whose tasks have been executed, and then allows the call to the first vertex when the number reaches a set number threshold, and blocks the call to the first vertex when the number does not reach the set number threshold, which can ensure the task execution order of the dependent vertex and the dependent vertex, and thus ensure the accuracy of the user behavior simulation, and can lay the foundation for the subsequent implementation of more complex test scenarios based on user behavior simulation.
[0144] Figure 7 It is a flowchart showing how to call each vertex to execute the simulation node task according to the calling order according to another exemplary embodiment of the present disclosure; this embodiment, based on the above embodiment, uses the example of how to call each vertex to execute the simulation node task according to the calling order to illustrate.
[0145] like Figure 7 As shown, calling each vertex in the calling order to execute the simulated node task in the above step S502 may include the following steps S701-S704:
[0146] In step S701 , in response to calling a first vertex among the vertices in the calling order, a task execution result of a second vertex on which the first vertex depends is determined.
[0147] When calling the respective vertices in the calling order to execute the simulated node task, if it is detected that the first vertex needs to be called currently, the task execution result of the second vertex on which the first vertex depends can be determined.
[0148] For example, if vertex A depends on vertex B (that is, in the dependency relationship of vertex A, vertex A is the dependent vertex and vertex B is the dependent vertex), then when it is detected that vertex A needs to be called, the task execution result of vertex B can be obtained, such as the specific value of the output parameter of vertex B.
[0149] In step S702, it is determined whether the task execution result meets the preset condition: if so, step S703 is executed; if not, step S704 is executed;
[0150] In step S703, the call to the first vertex is allowed;
[0151] In step S704, the call to the first vertex is blocked.
[0152] In this embodiment, after the task execution result of the second vertex is determined, the task execution result can be matched with the preset conditions, and then when it is detected that the task execution result meets the preset conditions (such as, the task execution result contains the content specified in the preset conditions, etc.), the call to the first vertex can be allowed; otherwise, if it is detected that the task execution result does not meet the preset conditions, the call to the first vertex can be blocked.
[0153] Still taking the above-mentioned vertex A as an example, the above-mentioned preset condition can be set to "including code=500". Then, after obtaining the task execution result of vertex B, if it is parsed that the task execution result contains code=500, it can be known that the calling condition of vertex A is met at this time, and therefore the call to vertex A can be allowed at this time.
[0154] It is worth noting that the above-mentioned setting conditions are only for exemplary explanation. In actual applications, they can be freely set based on scenario requirements, such as setting it to "does not contain code=500" (that is, when the task execution result of vertex B contains code=500, the call to the first vertex is blocked; and when the task execution result of vertex B does not contain code=500, the call to the first vertex is allowed), etc.
[0155] From the above description, it can be seen that this embodiment determines the task execution result of the second vertex on which the first vertex depends in response to calling the first vertex among the vertices in the calling order, and allows the call to the first vertex when the task execution result meets the preset condition, and blocks the call to the first vertex when the task execution result does not meet the preset condition. This can achieve accurate control of the task execution conditions of dependent vertices, thereby ensuring the accuracy of user behavior simulation, and laying the foundation for the subsequent implementation of more complex test scenarios based on user behavior simulation.
[0156] Figure 8 It is a block diagram of a user behavior simulation device according to an exemplary embodiment of the present disclosure; the user behavior simulation device of this embodiment can be configured in electronic devices, such as servers, workstations, personal computers, mobile terminals (such as mobile phones, tablet computers, etc.), wearable devices (such as glasses, watches, etc.), etc.
[0157] like Figure 8 As shown, the device includes: a file acquisition module 110, an image construction module 120 and a behavior simulation module 130, wherein:
[0158] A file acquisition module 110, used to acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user;
[0159] An image construction module 120, configured to construct the at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task;
[0160] The behavior simulation module 130 is used to call each vertex to execute the simulation node task of the corresponding simulation task node based on the dependency relationship of each vertex in the directed acyclic graph, so as to obtain the user behavior simulation result of the real task node.
[0161] As can be seen from the above description, the device of this embodiment obtains a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each of which is used to perform a user simulation task, each of which is used to simulate a user real task, and constructs the at least one directed acyclic graph based on the target information, each vertex in the directed acyclic graph is used to characterize each simulated task node in the corresponding user simulation task, and each of which is used to simulate each real task node in the corresponding user real task, and then based on the dependency relationship between each vertex in each directed acyclic graph, calls each vertex to execute the simulated node task of the corresponding simulated task node, and obtains the user behavior simulation result of the real task node. Since the user behavior simulation result of each real task node is automatically realized by calling each vertex in the directed acyclic graph to execute the simulated node task of the corresponding simulated task node, there is no need to rely on developers to manually write a large amount of code to perform user behavior simulation, which can reduce the development difficulty and save manpower and material resources. Moreover, by automating and programmatically simulating the user behavior of the real task node, the accuracy of the user behavior simulation can be improved, thereby meeting the needs of subsequent full-link stress testing and other applications.
[0162] Fig. 9 It is a block diagram of another user behavior simulation device according to an exemplary embodiment of the present disclosure; the user behavior simulation device of this embodiment can be configured in electronic devices, such as servers, workstations, personal computers, mobile terminals (such as mobile phones, tablet computers, etc.), wearable devices (such as glasses, watches, etc.), etc.
[0163] The file acquisition module 210, the image construction module 220 and the behavior simulation module 230 are the same as those described above. Figure 7 The functions of the file acquisition module 110, the image construction module 120 and the behavior simulation module 130 in the illustrated embodiment are the same and will not be described in detail herein.
[0164] like Fig. 9 As shown, the image construction module 220 may include:
[0165] An information acquisition unit 221 is used to acquire node information of multiple real task nodes in each of the user's real tasks from the target information;
[0166] An information determining unit 222 is used to determine vertex information of a plurality of vertices in each directed acyclic graph to be constructed based on the node information, wherein the vertex information corresponds to the node information in a one-to-one manner;
[0167] The image construction unit 223 is used to link multiple vertices in each directed acyclic graph to be constructed based on the vertex information to obtain each constructed directed acyclic graph.
[0168] In some embodiments, the image construction unit 223 may also be used to:
[0169] Determine the dependency relationship between the plurality of vertices based on the vertex information;
[0170] Add a directed edge between every two vertices that have a dependency relationship.
[0171] In some embodiments, the image construction unit 223 may also be used to:
[0172] Determine the dependency relationship between the first part of vertices based on vertex information of the first part of vertices among the multiple vertices and a preset link node order;
[0173] Based on vertex information of second-part vertices, dependencies between the second-part vertices and / or dependencies between the second-part vertices and the first-part vertices are determined, and the second-part vertices are vertices among the plurality of vertices except the first-part vertices.
[0174] In some embodiments, the behavior simulation module 230 may include:
[0175] An order determination unit 231, configured to determine a calling order of calling each of the vertices based on the dependency relationship;
[0176] The vertex calling unit 232 is used to call each vertex in the calling order to execute the simulated node task based on a preset traversal algorithm.
[0177] In some embodiments, the vertex calling unit 232 may also be used to:
[0178] In response to calling a first vertex among the vertices in the calling order, determining the number of vertices whose tasks have been completed among second vertices on which the first vertex depends, the first vertex having the dependency relationship with the second vertex;
[0179] When the number reaches a set number threshold, allowing the call to the first vertex;
[0180] If the number does not reach the set number threshold, the calling of the first vertex is prevented.
[0181] In some embodiments, the vertex calling unit 232 may also be used to:
[0182] In response to calling a first vertex among the vertices in the calling order, determining a task execution result of a second vertex on which the first vertex depends, the first vertex having the dependency relationship with the second vertex;
[0183] When the task execution result satisfies a preset condition, allowing the call to the first vertex;
[0184] When the task execution result does not satisfy the preset condition, the calling of the first vertex is prevented.
[0185] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0186] Fig.10 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0187] Reference Fig.10 , device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0188] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0189] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0190] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0191] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display panel and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0192] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0193] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0194] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display panel and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0195] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0196] In an exemplary embodiment, the device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0197] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0198] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0199] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A user behavior simulation method, It is characterized in that The method comprises: Acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user; Constructing at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task; Based on the dependency relationship between each vertex in the directed acyclic graph, each vertex is called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node.
2. The method according to claim 1, It is characterized in that The constructing the at least one directed acyclic graph based on the target information comprises: Acquire node information of multiple real task nodes in each of the user's real tasks from the target information; Determine vertex information of a plurality of vertices in each directed acyclic graph to be constructed based on the node information, wherein the vertex information corresponds one-to-one to the node information; Based on the vertex information, multiple vertices in each directed acyclic graph to be constructed are linked to obtain each constructed directed acyclic graph.
3. The method according to claim 2, It is characterized in that The linking of the plurality of vertices in each directed acyclic graph to be constructed based on the vertex information comprises: Determine the dependency relationship between the plurality of vertices based on the vertex information; Add a directed edge between every two vertices that have a dependency relationship.
4. The method according to claim 3, It is characterized in that The determining the dependency relationship between the plurality of vertices based on the vertex information includes: Determine the dependency relationship between the first part of vertices based on vertex information of the first part of vertices among the multiple vertices and a preset link node order; Based on vertex information of second-part vertices, dependencies between the second-part vertices and / or dependencies between the second-part vertices and the first-part vertices are determined, and the second-part vertices are vertices among the plurality of vertices except the first-part vertices.
5. The method according to claim 1, It is characterized in that The step of calling each vertex to execute a simulation node task of a corresponding simulation task node based on the dependency relationship between each vertex in each directed acyclic graph includes: Determine a calling order of calling each of the vertices based on the dependency relationship; Based on a preset traversal algorithm, each of the vertices is called in the calling order to execute the simulated node task.
6. The method according to claim 5, It is characterized in that The calling each vertex to execute the simulation node task in the calling order includes: In response to calling a first vertex among the vertices in the calling order, determining the number of vertices whose tasks have been completed among second vertices on which the first vertex depends, the first vertex having the dependency relationship with the second vertex; When the number reaches a set number threshold, allowing the call to the first vertex; If the number does not reach the set number threshold, the calling of the first vertex is prevented.
7. The method according to claim 5, It is characterized in that The calling each vertex to execute the simulation node task in the calling order includes: In response to calling a first vertex among the vertices in the calling order, determining a task execution result of a second vertex on which the first vertex depends, the first vertex having the dependency relationship with the second vertex; When the task execution result satisfies a preset condition, allowing the call to the first vertex; When the task execution result does not satisfy the preset condition, the calling of the first vertex is prevented.
8. A user behavior simulation device, It is characterized in that The device comprises: A file acquisition module, used to acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user; An image construction module, configured to construct at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task; The behavior simulation module is used to call each vertex to execute the simulation node task of the corresponding simulation task node based on the dependency relationship of each vertex in each directed acyclic graph, so as to obtain the user behavior simulation result of the real task node.
9. An electronic device, It is characterized in that The device comprises: a processor and a memory for storing a computer program; Wherein, the processor is configured to implement, when executing the computer program: Acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user; Constructing at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task; Based on the dependency relationship between each vertex in the directed acyclic graph, each vertex is called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by the processor, it realizes: Acquire a user behavior scenario file, wherein the user behavior scenario file includes target information for constructing at least one directed acyclic graph, each directed acyclic graph is used to perform a user simulation task, and each user simulation task is used to simulate a real task of a user; Constructing at least one directed acyclic graph based on the target information, wherein each vertex in the directed acyclic graph is used to represent each simulated task node in the corresponding user simulated task, and each simulated task node is used to simulate each real task node in the corresponding user real task; Based on the dependency relationship between each vertex in the directed acyclic graph, each vertex is called to execute the simulated node task of the corresponding simulated task node to obtain the user behavior simulation result of the real task node.
