Test procedure analysis methods, apparatus, electronic equipment and storage media
By automating the determination of node parsing order and configuration of business information, the increased workload and accuracy issues caused by user participation in parsing were resolved, thus achieving automated and accurate execution of the experimental process.
Patent Information
- Application Number
- CN202211376098.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-04
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2042-11-04
AI Technical Summary
In existing technologies, the analysis process of automated testing procedures requires user participation, which increases the workload and makes it difficult to guarantee the accuracy of the analysis results.
A method for parsing test processes is provided. By obtaining the connection relationship of multi-input and multi-output nodes, the parsing order of nodes is automatically determined, and the business information of the nodes is configured to the corresponding nodes, so as to parse the test process into multiple ordered operations and reduce the manual parsing operations of users.
It enables automatic and rapid parsing before the execution of the test process, reducing the user's workload and ensuring the accuracy of the parsing results and the smooth execution of the process.
Smart Images

Figure CN115903687B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automatic control, and more specifically to a test process analysis method, a test process analysis device, an electronic device, and a storage medium. Background Technology
[0002] Currently, many technological fields are continuously undergoing automation transformation to free up manpower and improve efficiency. Whether it's automated manufacturing, automated testing, or automated experimentation, automation systems are used extensively. Users can leverage the interfaces provided by these systems to build complete automated processes.
[0003] Before execution, the established automated testing process needs to be analyzed to break it down into multiple minimum execution steps, and tasks for executing these minimum steps are assigned to each device. By ensuring that each device completes its assigned task, the smooth execution of each minimum step is guaranteed, thus completing the overall automated process.
[0004] In existing technologies, the aforementioned analysis process mostly requires user intervention, meaning users manually analyze the automated experimental process. This significantly increases the user's workload, and the accuracy of the manually analyzed results is difficult to guarantee, which may cause the automated process to fail to execute properly. Summary of the Invention
[0005] The present invention addresses the aforementioned problems. According to one aspect of the invention, a method for parsing a test process is provided. The test process includes multiple input / output nodes. The method includes: acquiring input nodes connected to multiple input lines connected to the multiple input / output nodes, output nodes connected to multiple output lines connected to the multiple input / output nodes, and service information of the multiple input / output nodes, wherein the service information of the nodes includes pre-set node information and node information set when building the test process; determining the node parsing order based on the connection relationships between the nodes, wherein the parsing order of the input nodes precedes the parsing order of the multiple input / output nodes and the output nodes; and configuring the service information of the nodes to the corresponding nodes according to the determined node parsing order, so as to parse the test process into multiple ordered operations.
[0006] For example, the node parsing order is determined based on the connection relationship between nodes, including determining the following parsing order based on the connection relationship between nodes: parsing the input nodes connected to each input connection on a unit basis; parsing multiple-input-multiple-output nodes after all input nodes have been parsed; and parsing the output nodes connected to each output connection on a unit basis after the multiple-input-multiple-output nodes have been parsed.
[0007] For example, according to the determined node parsing order, the business information of the nodes is configured to the corresponding nodes to parse the test process into multiple ordered operations, including: configuring the business information of the nodes to the corresponding nodes according to the determined node parsing order to determine the ordered first operation corresponding to the input node, the ordered second operation corresponding to the multi-input multi-output node, and the ordered third operation corresponding to the output node; and obtaining the multiple ordered operations in the parsed test process based on the order of the first operation, the third operation, and the second operation.
[0008] For example, according to the determined node parsing order, the business information of the nodes is configured to the corresponding nodes to determine the ordered first operation corresponding to the input node, the ordered second operation corresponding to the multiple-input multiple-output node, and the ordered third operation corresponding to the output node. This includes: determining the dependency relationship between the current node and the preceding adjacent nodes according to the determined node parsing order; and configuring the current node according to the dependency relationship using the business information of the preceding adjacent nodes and the business information of the current node to determine one or more ordered operations corresponding to the current node.
[0009] For example, the method further includes: during the configuration phase of the test process, in response to a user's setting operation regarding the desired execution order of nodes in the test process, determining the desired execution order information; configuring the business information of the nodes to the corresponding nodes according to the determined node parsing order, so as to parse the test process into multiple ordered operations, including: configuring the desired execution order information to the corresponding nodes according to the determined node parsing order, to determine the original dependency relationship between the current node and the original preceding adjacent nodes, wherein the original preceding adjacent nodes are the preceding adjacent nodes of the current node before the user's setting operation; configuring the current node according to the original dependency relationship using the business information of the original preceding adjacent nodes and the business information of the current node, so as to determine one or more ordered operations corresponding to the current node.
[0010] For example, acquiring the input nodes connected to multiple input lines connected to the MIMO node, the output nodes connected to multiple output lines connected to the MIMO node, and the service information of the MIMO node includes: for adjacent connected device nodes in the test process, acquiring the pre-operation and / or post-operation related information of the device nodes; configuring the service information of the nodes to the corresponding nodes according to the determined parsing order, so as to determine the ordered first operation corresponding to the input node, the ordered second operation corresponding to the MIMO node, and the ordered third operation corresponding to the output node, including: determining the execution order of the pre-operation and / or post-operation of the device nodes and the self-operation of the device nodes based on the adjacent connection relationship between different device nodes in the test process and the pre-operation and / or post-operation related information of the device nodes.
[0011] For example, based on the adjacent connection relationship between different device nodes in the test process and the relevant information of the previous operation and / or subsequent operation of the device node, the execution order of the previous operation and / or subsequent operation of the device node and the operation of the device node itself is determined, including: for cases where there is at least one duplicate operation between the subsequent operation of the previous device node and the previous operation of the subsequent device node in the adjacent connected device nodes, the duplicate operations in the subsequent operation of the previous device node and the previous operation of the subsequent device node are merged accordingly, so that each merged operation appears as an operation in the execution order.
[0012] For example, based on the connection relationship between nodes, the parsing order of input nodes is determined before the parsing order of multi-input multi-output nodes and output nodes, in order to determine the node parsing order, including: for the case where there are flow control nodes in the experimental process, for each flow control node, the node between the start position and the end position of the flow control node is parsed as a parsing unit.
[0013] For example, the method further includes: providing a user interface with operable controls for obtaining business information of the node.
[0014] According to another aspect of the present invention, a test procedure analysis apparatus is also provided, comprising:
[0015] The information acquisition module is used to acquire the input nodes connected to the multiple input lines connected to the multiple input-output nodes, the output nodes connected to the multiple output lines connected to the multiple input-output nodes, and the business information of the multiple input-output nodes. The business information of the nodes includes the node information set in advance and the node information set when setting up the test process.
[0016] The node parsing module is used to determine the parsing order of input nodes based on the connection relationships between nodes, prior to the parsing order of multi-input multi-output nodes and output nodes, in order to determine the node parsing order.
[0017] The operation parsing module is used to configure the business information of the nodes to the corresponding nodes according to the determined node parsing order, so as to parse the test process into multiple ordered operations.
[0018] According to another aspect of the present invention, an electronic device is also provided, including a processor and a memory, wherein the memory stores computer program instructions, which are executed by the processor to perform the test process parsing method as described above.
[0019] According to another aspect of the present invention, a storage medium is also provided, on which program instructions are stored, which, when executed, are used to perform the test process parsing method as described above.
[0020] Based on the above technical solution, automatic parsing of multi-input multi-output (MIMO) nodes, as well as the input and output nodes connected to these MIMO nodes, can be achieved in the experimental process. Therefore, after the user sets up the experimental process, no manual parsing is required; the process can be automatically executed based on the parsing results. This significantly reduces the user's workload and provides a strong guarantee for the smooth and accurate execution of the experimental process.
[0021] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0022] The above and other objects, features, and advantages of the present invention will become more apparent from the more detailed description of the embodiments of the invention in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same parts or steps.
[0023] Figure 1 A schematic flowchart of a test procedure analysis method according to an embodiment of the present invention is shown;
[0024] Figure 2 A schematic flowchart illustrating how, according to an embodiment of the present invention, service information of a node is configured to the corresponding node to resolve the experimental process into multiple ordered operations is shown.
[0025] Figure 3 A schematic flowchart is shown, according to an embodiment of the present invention, in which service information of nodes is configured to corresponding nodes to determine ordered input operations corresponding to input nodes, ordered current operations corresponding to multiple-input multiple-output nodes, and ordered output operations corresponding to output nodes.
[0026] Figure 4 A schematic block diagram of a test procedure analysis apparatus according to an embodiment of the present invention is shown; and
[0027] Figure 5 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely a part of the embodiments of the present invention, and not all of the embodiments of the present invention. It should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described herein, all other embodiments obtained by those skilled in the art without inventive effort should fall within the protection scope of the present invention.
[0029] As mentioned earlier, with the continuous development of automation technology, automation systems have been used in many fields to achieve automation transformation. Users can use the interface provided by the automation system to build an overall automated process. Before execution, the built automated process needs to be parsed. For example, the built experimental process includes: Sample plate one is pipetted from the pipetting workstation and then enters the incubator. Correspondingly, this can be parsed as follows: First, the robotic arm of the automation system transfers sample plate one to the inlet plate position of the pipetting workstation; then, the transfer module inside the pipetting workstation transfers sample plate one from the inlet plate position to the pipetting operation area, where the pipetting workstation performs the pipetting operation; next, the transfer module inside the pipetting workstation transfers sample plate one from the pipetting operation area to the outlet plate position; finally, the robotic arm of the automation system transfers sample plate one from the outlet plate position of the pipetting workstation to the inlet of the incubator. Sample plate two is centrifuged in a centrifuge, pipetted from the pipetting workstation, and then enters the plate washer. Correspondingly, this can be analyzed as follows: First, the robotic arm of the automated system opens the centrifuge compartment door and simultaneously transfers sample plate two into the centrifuge; then, the robotic arm closes the centrifuge compartment door; the centrifuge performs the centrifugation operation; next, the robotic arm opens the centrifuge compartment door again and transfers sample plate two to the inlet plate position of the pipetting workstation; the transfer module inside the pipetting workstation transfers sample plate two from the inlet plate position to the pipetting operation area, where the pipetting workstation performs the pipetting operation; the transfer module inside the pipetting workstation transfers sample plate two from the pipetting operation area to the outlet plate position; finally, the robotic arm of the automated system transfers sample plate two from the outlet plate position of the pipetting workstation to the inlet of the plate washer. If the above analysis process is all performed manually by the user, it not only increases the user's workload and makes the process analysis too time-consuming, but also makes it difficult to guarantee the accuracy of the analysis results.
[0030] To address the aforementioned technical problems, this invention provides a method for analyzing experimental procedures. Based on this method, the experimental procedure can be automatically and quickly analyzed before execution.
[0031] Figure 1 A schematic flowchart of a test procedure analysis method 100 according to an embodiment of the present invention is shown. Figure 1As shown, the analysis method 100 may include the following steps. The test process includes multiple-input multiple-output (MIMO) nodes. MIMO nodes can be any of the following: loop nodes, device nodes, or process control nodes. For ease of understanding and description, the following explanation will use a device node as an example of a MIMO node.
[0032] Step S110: Obtain the input nodes connected to the multiple input lines connected to the multiple input-multiple-output nodes, the output nodes connected to the multiple output lines connected to the multiple input-multiple-output nodes, and the service information of the multiple input-multiple-output nodes. The service information of the nodes includes the node information set in advance and the node information set when building the test process.
[0033] For example, the host computer can receive business information from the user regarding input nodes, output nodes, and multiple-input multiple-output (MIMO) nodes. For instance, the host computer can provide a visual interface to the user. Based on the visual interface, the user can input the node's business information using the host computer's input device (e.g., mouse, keyboard). Alternatively, the host computer's storage device can pre-store the node's business information. The node's business information can include pre-set node information and node information set when building the test process. The node's business information includes attribute information and operation-related information, where attribute information can be the node's name, function, device node identifier information, etc.; operation information includes the operation instructions executed by the node, execution time, and related information about the device node's previous and / or subsequent operations, etc.; the node's business information can include the node's name, function, corresponding operation instructions, and execution time, etc. In one specific embodiment, the user can input the node information set when building the test process using an input device. Specific examples of the node information set when building the test process include: device node identifier information, previous and / or subsequent operation information, loop count information for loop nodes, and loop exit condition information, etc. The pre-operation of a device node is executed by the executing device before the device corresponding to the control device node performs its own operation. The post-operation of a device node is executed by the executing device after the device corresponding to the control device node performs its own operation. The executing device for the pre-operation and / or post-operation can be the same device as the device corresponding to the device node, or it can be a different device. For nodes corresponding to pre-set node information, if the established test process involves such nodes, the host computer can retrieve the pre-set node information from the storage device. The pre-set node information includes, for example, the business information of the device nodes in the test process, such as the function, location, and other parameter information of the device corresponding to the device node. It can be understood that the pre-set node information can be pre-set by the user through the input device and the visual interface before the test process is established, or it can be set by the device or apparatus corresponding to the node at the factory. Here, pre-setting can refer to the process that precedes the establishment of the test process.
[0034] In the experimental procedure, a multi-input multi-output (MIMO) node refers to a node with multiple input nodes and multiple output nodes. Each input node corresponds one-to-one with one of the multiple input lines of the MIMO node. Similarly, each output node corresponds one-to-one with one of the multiple output lines of the MIMO node.
[0035] Step S120: Based on the connection relationship between nodes, determine the node parsing order, wherein the parsing order of input nodes precedes the parsing order of multi-input multi-output nodes and output nodes.
[0036] For example, the input or output relationship can be determined by the direction of the connections between each node, i.e., the connection relationship between nodes can be determined. Based on the connection relationship between nodes, each node can be ordered sequentially. For example, for a node in a test flow, its order is after its input node and before its output node. Specifically, for example, the test flow includes three nodes: node 1 is the input node of node 2, node 2 is the input node of node 3, and the three nodes are connected sequentially. For node 2, its order is after node 1. For node 3, its order is after node 2. Nodes that appear earlier in the node order are parsed first. Nodes that appear later in the node order are parsed later. It can be understood that in this application, "earlier" and "later" can refer to the start and end positions of the test flow. For example, a node closer to the start position is called an earlier node, and a node closer to the end position is called a later node. In this embodiment, based on the connection relationship between nodes, the parsing order of all input nodes is determined to be prioritized over multi-input multi-output nodes and output nodes. That is, compared to MIMO nodes and output nodes, each input node is parsed first. The parsing order of MIMO nodes and output nodes is not specified here. Therefore, the parsing order of nodes in the experimental process can be determined.
[0037] Step S130: Based on the determined node parsing order, configure the business information of the nodes to the corresponding nodes so as to parse the test process into multiple ordered operations.
[0038] For example, after determining the node parsing order in step S120, the service information of the nodes obtained in step S110 can be filled into each corresponding node, thereby obtaining a sequence of nodes with a certain parsing order and containing service information. It is understood that when filling in the service information of nodes, the filling order does not necessarily have to follow the parsing order. Nodes can be divided into multiple groups, for example, the first two nodes can be divided into one group, and the following nodes into another group. During filling, two nodes can be filled as a group, then the last three nodes as a group, and finally, the service information of the connecting nodes (nodes 2 and 3) can be supplemented according to the service information. Alternatively, they can be divided into three groups, etc. According to the order of the nodes in the sequence, the nodes are parsed sequentially to obtain the step information corresponding to each node, such as what operation the device corresponding to that node will perform and the execution time of that operation. Then, according to the order of the nodes in the sequence, the step information corresponding to all nodes in the parsed experimental process is concatenated to obtain multiple operations arranged in an ordered manner. Based on these ordered operations, the experimental process can be executed in an orderly manner.
[0039] Based on the above technical solution, automatic parsing of multi-input multi-output (MIMO) nodes, as well as the input and output nodes connected to these MIMO nodes, can be achieved in the experimental process. Therefore, after the user sets up the experimental process, no manual parsing is required; the process can be automatically executed based on the parsing results. This significantly reduces the user's workload and provides a strong guarantee for the smooth and accurate execution of the experimental process.
[0040] For example, method 100 may further include providing a user interface. The user interface may have operable controls. These operable controls are used to obtain business information about the node.
[0041] It's understandable that a visual interface can be provided for user interaction to facilitate operation. Users can use input devices such as a mouse to click on controls on the visual interface to access the user interface, which will then be displayed. The user interface includes operable controls. These operable controls can respond to user actions and retrieve business information from the node. Operable controls can be text input boxes or filter boxes, etc.
[0042] Therefore, users can input business information of nodes in a visual form based on the user interface, which facilitates user operation and improves the user experience.
[0043] For example, step S120 determines the parsing order of input nodes before the parsing order of multi-input multi-output nodes and output nodes based on the connection relationship between nodes. To determine the node parsing order, it may include determining the following parsing order based on the connection relationship between nodes: parsing the input nodes connected to each input connection on a unit basis; parsing the multi-input multi-output nodes after all input nodes have been parsed; and parsing the output nodes connected to each output connection on a unit basis after the multi-input multi-output nodes have been parsed.
[0044] In this embodiment, nodes are parsed on a per-connection basis. Taking two input connections and two output connections as an example, the following explanation is provided. Optionally, the input nodes connected to input connection 1 can be parsed first to determine the parsing order of the multiple input nodes connected to input connection 1. Next, the input nodes connected to input connection 2 are parsed to determine the parsing order of the multiple input nodes connected to input connection 2. At this point, all input nodes have been parsed. Next, the multi-input multi-output nodes are parsed. After the multi-input multi-output nodes are parsed, the output nodes connected to output connection 1 are parsed to determine the parsing order of the multiple output nodes connected to output connection 1. Finally, the output nodes connected to output connection 2 are parsed to determine the parsing order of the multiple output nodes connected to output connection 2. Thus, nodes can be parsed according to the parsing order described above to determine the parsing order of all nodes.
[0045] Therefore, parsing each node connected by a single line ensures that every node connected to a line is resolved, avoiding the risk of missing nodes during the parsing process. This guarantees the accuracy and reliability of the parsing results.
[0046] For example, step S120 determines the parsing order of input nodes based on the connection relationship between nodes, prior to the parsing order of multi-input multi-output nodes and output nodes, in order to determine the node parsing order. This may include: for cases where there are flow control nodes in the experimental process, for each flow control node, the node between the start position and the end position of the flow control node is parsed as a parsing unit.
[0047] For example, the starting node of the test process can be a consumable node. Starting from the consumable node, the next node can be determined sequentially according to the direction of the connections between each node. In a specific embodiment, the next node after the consumable node is a centrifuge node. The next node after the centrifuge node is a process control node. In this embodiment, the process control node can include a decision node and a loop node. Therefore, the next node after the centrifuge node can be the starting position node 1 of the decision node. The ending position node 1 of the decision node is found starting from the starting position node of the decision node. When parsing the decision node, all nodes between the starting position node and the ending position node can be parsed together as a single parsing unit. The node after the decision node is a loop node. For a loop node in the test process, its starting position is the starting position node 2, and its ending position is the ending position node 2. When parsing the loop node, all nodes between the starting position node 2 and the ending position node 2 are parsed together as a single parsing unit. The next node after the loop node is the ending position node of the test process. It can be understood that the ending position node may not perform any operation and is only used to place consumables at the end of the test process.
[0048] In the above technical solution, treating the process control node as a parsing unit can ensure the logical accuracy of the test process parsing, that is, ensure the accuracy of the parsing results.
[0049] For example, step S110, acquiring the input nodes connected to the multiple input lines connected to the multi-input multi-output node, the output nodes connected to the multiple output lines connected to the multi-input multi-output node, and the business information of the multi-input multi-output node, may include: for adjacent connected device nodes in the experimental process, acquiring pre-operation and / or post-operation related information of the device node. In this embodiment, the business information of the device node may include pre-operation and / or post-operation information of the device node. Pre-operation information may include the name of the execution device performing the pre-operation and the pre-operation instruction. Post-operation information may include the name of the execution device performing the post-operation and the post-operation instruction. Specifically, for example, the device corresponding to the device node is a pipetting workstation, which may have pre-operation and / or post-operation information. Specifically, before performing its own pipetting operation, the pipetting workstation needs to place the sample plate in the pipetting operation area, i.e., the work area, within the pipetting workstation. Therefore, a pre-operation can be set: sample plate insertion. Sample plate insertion may refer to the operation of the transfer module inside the pipetting workstation moving the sample plate from the inlet plate position to the pipetting operation area. Afterward, the pipetting workstation performs the pipetting operation. After the pipetting operation is completed, a follow-up operation can be set up on the pipetting workstation in a similar manner to dispense the sample plate. Dispensing the sample plate refers to the operation in which the transfer module inside the pipetting workstation moves the sample plate from the pipetting operation area to the outlet plate position of the pipetting workstation.
[0050] Step S130 configures the business information of the nodes to the corresponding nodes according to the determined parsing order, so as to determine the ordered input operation (referred to as the first operation) corresponding to the input node, the ordered current operation (referred to as the second operation) corresponding to the multi-input multi-output node, and the ordered output operation (referred to as the third operation) corresponding to the output node. This may include: Step S131, based on the adjacent connection relationship between different device nodes in the test process and the relevant information of the device node's previous operation and / or subsequent operation, determining the execution order of the device node's previous operation and / or subsequent operation and the device node's own operation.
[0051] As described above, after determining the node parsing order in step S120, the business information of the nodes obtained in step S110 can be configured onto each corresponding node to obtain a node sequence. Then, based on the node sequence, the nodes can be parsed sequentially. For a single node, the execution order of all operations contained within that node can be obtained through parsing. For example, for device node A, it has pre-operations and post-operations. After parsing device node A, the execution order of operations can be obtained: pre-operation of device node A → self-operation of device node A → post-operation of device node A. After parsing all device nodes and other nodes in the test process, the test process can be parsed into multiple ordered operations according to the determined parsing order, each operation having its own execution device.
[0052] Therefore, when a node is a device node and has pre-operations and / or post-operations configured, all operations contained in that node can be parsed and sorted. This ensures the accuracy of the parsing results, thus facilitating the smooth execution of the test procedure.
[0053] For example, step S131, based on the adjacent connection relationships between different device nodes in the test process and information related to the preceding and / or following operations of the device nodes, determines the execution order of the preceding and / or following operations of the device nodes and the self-operations of the device nodes. This may include: step S131a, where, for cases where at least one of the following operations of the preceding device node and the preceding operations of the following device node are duplicated, the duplicated operations in the following operations of the preceding device node and the preceding operations of the following device node are merged accordingly, so that each merged operation appears as an operation in the execution order. Here, a duplicated operation may refer to an operation where the executing device, operation instruction, and execution time are all the same.
[0054] For example, device node A and device node B are two adjacent device nodes. Device node A is referred to as the preceding device node, and device node B as the succeeding device node. Assume that device node A has four subsequent operations, a, b, c, and d. Device node B has three preceding operations, c, d, and e. The subsequent operation c of device node A and the preceding operation c of device node B, as well as the subsequent operation d of device node A and the preceding operation d of device node B, can be considered as repeated operations. Therefore, the subsequent operation c of device node A and the preceding operation c of device node B can be merged, and the subsequent operation d of device node A and the preceding operation d of device node B can be merged. Furthermore, in this embodiment, for device node A and device node B, the execution order of the determined preceding operations and / or subsequent operations can be: subsequent operation a of device node A → subsequent operation b of device node A → subsequent operation c of device node A (preceding operation c of device node B) → subsequent operation d of device node A (preceding operation d of device node B) → preceding operation e of device node B.
[0055] Therefore, when there are duplicate operations between subsequent operations of a previous device node and preceding operations of a subsequent device node, these duplicate operations can be merged into a single operation. This effectively reduces the number of operations in the parsed result, simplifying the parsing process. It also avoids conflicts arising from duplicate operations in the parsed result, ensuring the accuracy of the parsed result.
[0056] Figure 2 A schematic flowchart illustrating step S130 of the present invention, according to an embodiment of the invention, configures the service information of the nodes to the corresponding nodes according to the determined node parsing order, so as to parse the test process into multiple ordered operations. Figure 2 As shown, step S130 may include the following steps.
[0057] Step S132: Based on the determined node parsing order, configure the business information of the nodes to the corresponding nodes to determine the ordered input operations corresponding to the input nodes, the ordered current operations corresponding to the multiple-input multiple-output nodes, and the ordered output operations corresponding to the output nodes.
[0058] As mentioned earlier, after filling the corresponding nodes with the service information of the nodes obtained in step S110 according to the parsing order of the nodes determined in step S120, a sequence of nodes with a certain parsing order and containing service information can be obtained. Specifically, for input nodes, a sequence of input nodes with a certain parsing order and containing the service information of the input nodes can be obtained. According to the order of the input nodes in the sequence, the input nodes are parsed sequentially to obtain the step information corresponding to each input node, such as what operation the device corresponding to each input node will perform and the execution time of this operation. Then, according to the order of the input nodes in the sequence, the step information corresponding to all the parsed input nodes can be concatenated to obtain multiple input operations arranged in an ordered manner. Multiple output operations corresponding to output nodes and ordered current operations corresponding to multi-input multi-output nodes can be obtained in a similar way, which will not be elaborated here for the sake of simplicity.
[0059] Step S133: Based on the order of input operations, output operations, and the current operation, obtain multiple ordered operations in the parsed experimental process.
[0060] After obtaining the ordered input operations, output operations, and current operation according to step S132, all the obtained operations can be sorted in the order of input operation → current operation → output operation. This allows the determination of multiple ordered operations in the parsed experimental procedure. Based on these multiple ordered operations, the experimental procedure can be executed in an orderly manner.
[0061] Therefore, it can be determined not only that the input operations, output operations, and operations within the current operation are ordered, but also that the input operations, current operation, and output operations are ordered among themselves. This ensures the accuracy of the analysis results and guarantees the smooth and accurate execution of the experimental procedure.
[0062] Figure 3 A schematic flowchart illustrating step S132 of the present invention is shown, which configures the service information of the nodes to the corresponding nodes according to the determined node parsing order to determine the ordered input operation corresponding to the input node, the ordered current operation corresponding to the MIMO node, and the ordered output operation corresponding to the output node. Figure 3 As shown, step S132 may include the following steps.
[0063] Step S132a: Determine the dependency relationship between the current node and its preceding adjacent nodes based on the determined node parsing order.
[0064] For example, the preceding adjacent node can refer to a node that is closer to the start of the test flow than the current node and is adjacent to the current node. As mentioned earlier, the parsing order can include the ordering information of each node in the test flow. This ordering information is determined based on the connection relationship between each node. For a node in the test flow other than the start node and the end node, such as node Y, it can have at least one input node X and at least one output node Z. It can be determined that node Y (the current node) depends on its input node X. And for output node Z, when it is the current node, node Y is also the input node of node Z. It can be determined that node Z (the current node) depends on its input node Y. It can be understood that in this embodiment, the dependency relationship between nodes is direct. Here, "direct" can mean that, for node Z, although node X is also located before node Z in the parsing order, node X and node Z are not adjacent, and there is a node Y between them, so this dependency relationship is indirect.
[0065] Step S132b: Based on the dependency relationship, configure the current node using the business information of the preceding adjacent nodes and the business information of the current node, so as to determine one or more ordered operations corresponding to the current node.
[0066] After determining the dependencies between nodes according to step S132a, the business information of the current node and its preceding adjacent nodes (the nodes that the current node depends on), obtained in step S110, can be filled into the current node without filling in the business information of other nodes. Therefore, the current node can be parsed based on its business information and that of its preceding adjacent nodes, thereby determining one or more ordered operations corresponding to the current node.
[0067] Therefore, by using the direct dependencies between nodes to parse nodes, the amount of data in the parsing process is effectively reduced, and interference from other nodes besides the preceding adjacent nodes on the parsing results of the current node is avoided, thus ensuring the accuracy of the parsing results.
[0068] In one specific embodiment, when the MIMO node (current node) is a device node, a dependency relationship between the device node and the control source node can be configured. The control source node is the input node of the device node. In other words, the control source node and the device node are adjacent to each other. The execution of the device node depends on the resolution of the control source node. During the execution of the test process, the control source node can be resolved based on the execution status of nodes preceding the control source node in the test process. Preferably, in this embodiment, during the test process setup phase, to facilitate user operation, the output lines corresponding to the control source node can be omitted from the multiple output connections of the MIMO node.
[0069] In the above scheme, the control source node is parsed only when the parsing conditions are met. This ensures the effective parsing of the control source node. That is, the control source node is only parsed when the operation corresponding to the device node as input can actually be executed. This avoids invalid parsing operations and speeds up the parsing process of the experiment.
[0070] For example, method 100 may further include: during the configuration phase of the test process, determining desired execution order information in response to a user's setting operation regarding the desired execution order of nodes in the test process.
[0071] It is understandable that during the configuration phase of the experimental process, users can adjust the execution order of the experimental process according to their needs. For example, users can use the input devices provided by the host computer to set the execution order of nodes in the experimental process to obtain the desired execution order. In response to this desired execution order, the desired execution order information of the nodes can be determined.
[0072] In this embodiment, step S130 configures the service information of the nodes to the corresponding nodes according to the determined node parsing order, so as to parse the test process into multiple ordered operations, which may include:
[0073] Step S134: Based on the determined node parsing order, configure the expected execution order information to the corresponding node to determine the original dependency relationship between the current node and the original preceding neighbor node, wherein the original preceding neighbor node is the preceding neighbor node of the current node before responding to the user's setting operation.
[0074] As mentioned earlier, the parsing order can include the ordering information of each node in the experimental process. This ordering information is determined based on the connection relationships between each node. In one embodiment, the determined node parsing order is A→B→C→D. The expected execution order is: A→C→B→D. In this case, the expected execution order information is configured to the corresponding nodes, namely nodes B and C. For example, for node B, its original input node is node A, and its original output node is node C. Therefore, it can be determined that node B (the current node) depends on its original input node A. Thus, the original dependency relationship between the current node and its preceding adjacent nodes is determined.
[0075] Step S135: Based on the original dependency relationship, configure the current node using the business information of the original preceding adjacent nodes and the business information of the current node, so as to determine one or more ordered operations corresponding to the current node.
[0076] Step S134 determines the original dependencies between nodes. Then, the business information of the current node and its original preceding adjacent nodes (the nodes the current node depends on), obtained in step S110, can be filled into the current node without needing to fill in the business information of other nodes. Therefore, the current node can be parsed based on its business information and that of its original preceding adjacent nodes, thereby determining one or more ordered operations corresponding to the current node.
[0077] Therefore, by utilizing the original dependencies between nodes to resolve nodes, the amount of data in the resolution process is effectively reduced, and interference from nodes other than the original adjacent nodes is avoided, ensuring the accuracy of the resolution results. At the same time, it meets different user needs and improves the user experience.
[0078] According to another aspect of the present invention, an apparatus for analyzing experimental procedures is also provided. Figure 4 A schematic block diagram of a test procedure analysis apparatus 400 according to an embodiment of the present invention is shown. Figure 4 As shown, the device 400 includes an information acquisition module 410, a node parsing module 420, and an operation parsing module 430.
[0079] The information acquisition module 410 is used to acquire the input nodes connected to the multiple input lines connected to the multiple input-output nodes, the output nodes connected to the multiple output lines connected to the multiple input-output nodes, and the business information of the multiple input-output nodes. The business information of the nodes includes the node information set in advance and the node information set when setting up the test process.
[0080] The node parsing module 420 is used to determine the parsing order of input nodes based on the connection relationship between nodes, prior to the parsing order of multi-input multi-output nodes and output nodes, so as to determine the node parsing order.
[0081] The operation parsing module 430 is used to configure the business information of the nodes to the corresponding nodes according to the determined node parsing order, so as to parse the test process into multiple ordered operations.
[0082] For example, the operation parsing module 430 may include an information configuration module and an operation determination module. The information configuration module is used to configure the business information of the nodes to the corresponding nodes according to the determined node parsing order, thereby determining the ordered input operations corresponding to input nodes, the ordered current operations corresponding to multi-input multi-output nodes, and the ordered output operations corresponding to output nodes. The operation determination module is used to obtain multiple ordered operations in the parsed test process based on the order of input operations, output operations, and the current operation.
[0083] For example, the information configuration module is specifically used to determine the dependency relationship between the current node and the preceding adjacent nodes according to the determined node parsing order; and to configure the current node using the business information of the preceding adjacent nodes and the business information of the current node according to the dependency relationship, so as to determine one or more ordered operations corresponding to the current node.
[0084] Exemplarily, the device 400 may further include a sequence setting module, used to determine the desired execution order information in response to a user's setting operation regarding the desired execution order of nodes in the test process during the configuration phase of the test process. In this embodiment, the operation parsing module 430 is further used to configure the desired execution order information to the corresponding nodes according to the determined node parsing order, so as to determine the original dependency relationship between the current node and the original preceding adjacent nodes, wherein the original preceding adjacent nodes are the preceding adjacent nodes of the current node before the user's setting operation; and to configure the current node according to the original dependency relationship using the business information of the original preceding adjacent nodes and the business information of the current node, so as to determine one or more ordered operations corresponding to the current node.
[0085] For example, the information acquisition module 410 is specifically used to acquire information related to the preceding and / or following operations of adjacent connected device nodes in the test process. The information configuration module is specifically used to determine the execution order of the preceding and / or following operations of the device nodes and the device nodes' own operations based on the adjacent connection relationships between different device nodes in the test process and the information related to the preceding and / or following operations of the device nodes.
[0086] For example, the information configuration module includes an operation merging module, which is used to merge the duplicate operations in the subsequent operation of the preceding device node and the preceding operation of the following device node when there is at least one duplicate operation in the subsequent operation of the preceding device node and the preceding operation of the following device node in adjacent connected device nodes, so that each merged operation appears as an operation in the execution order.
[0087] For example, the node parsing module 420 is specifically used to parse each of the process control nodes in the test process as a parsing unit, for each process control node, when there are process control nodes in the process control node.
[0088] For example, the device 400 may also include a display module for providing a user interface, on which operable controls are provided for obtaining business information of the node.
[0089] According to another aspect of the present invention, an electronic device is also provided. Figure 5 A schematic block diagram of an electronic device 500 according to an embodiment of the present invention is shown. Figure 5 As shown, the electronic device 500 may include a processor 510 and a memory 520. The processor and memory are included, wherein the memory 520 stores computer program instructions that are executed by the processor 510 to perform the test procedure parsing method as described above.
[0090] According to another aspect of the present invention, a storage medium is also provided. Program instructions are stored on the storage medium, which, when executed, perform the experimental procedure parsing method as described above. The storage medium may, for example, include a storage component of a tablet computer, a hard disk of a personal computer, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. A computer-readable storage medium may be any combination of one or more computer-readable storage media.
[0091] Those skilled in the art can understand the specific implementation schemes of the above-mentioned test process analysis device, electronic equipment and storage medium by reading the relevant descriptions of the test process analysis method above, and will not be described in detail here for the sake of brevity.
[0092] Although exemplary embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above exemplary embodiments are merely illustrative and are not intended to limit the scope of the invention. Various changes and modifications can be made therein by those skilled in the art without departing from the scope and spirit of the invention. All such changes and modifications are intended to be included within the scope of the invention as claimed in the appended claims.
[0093] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed.
[0095] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0096] Similarly, it should be understood that, in order to streamline the invention and aid in understanding one or more of the various aspects of the invention, features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the description of exemplary embodiments of the invention. However, this approach should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the corresponding claims, its inventive point lies in solving the corresponding technical problem with fewer features than all of those in a single disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the invention.
[0097] Those skilled in the art will understand that, apart from the mutual exclusion of features, all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or apparatus so disclosed can be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0098] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features but not others included in other embodiments, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments can be used in any combination.
[0099] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some modules in the experimental process analysis apparatus according to embodiments of the present invention. The present invention can also be implemented as an apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0100] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0101] The above description is merely a specific embodiment of the present invention or an explanation of that embodiment. The scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. The scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A test procedure parsing method, characterized by, The test flow is an automatic flow built, and the test flow includes multiple-in multiple-out nodes, and the method comprises: Obtaining the input nodes connected by multiple input lines connected to the multiple-in multiple-out nodes, the output nodes connected by multiple output lines connected to the multiple-in multiple-out nodes, and the service information of the multiple-in multiple-out nodes, wherein the service information of the nodes includes pre-set node information and node information set when the test flow is built; Based on the connection relationship between the nodes, the node analysis order is determined, wherein the analysis order of the input nodes is prior to the analysis order of the multiple-in multiple-out nodes and the output nodes; According to the determined node analysis order, the service information of the nodes is configured to the corresponding nodes to parse the test flow into multiple ordered operations performed by the devices corresponding to the nodes.
2. The method of claim 1, wherein, The determination of the node analysis order based on the connection relationship between the nodes comprises determining the following analysis order based on the connection relationship between the nodes: The input nodes connected by each input line are parsed in units of input lines; After the input nodes are completely parsed, the multiple-in multiple-out nodes are parsed; After the multiple-in multiple-out nodes are parsed, the output nodes connected by each output line are parsed in units of output lines.
3. The method of claim 1 or 2, wherein, According to the determined node analysis order, the service information of the nodes is configured to the corresponding nodes to determine the ordered first operation corresponding to the input nodes, the ordered second operation corresponding to the multiple-in multiple-out nodes, and the ordered third operation corresponding to the output nodes; Based on the order of the first operation, the third operation, and the second operation, the multiple ordered operations in the parsed test flow are obtained. According to the determined node analysis order, the service information of the nodes is configured to the corresponding nodes to determine the ordered first operation corresponding to the input nodes, the ordered second operation corresponding to the multiple-in multiple-out nodes, and the ordered third operation corresponding to the output nodes, comprising:
4. The method of claim 3, wherein, According to the determined node analysis order, the dependency relationship between the current node and the previous adjacent node is determined; According to the dependency relationship, the service information of the previous adjacent node and the service information of the current node are used to configure the current node to determine one or more ordered operations corresponding to the current node. The method further comprises:
5. The method of claim 1 or 2, wherein, In the configuration stage of the test flow, in response to the user's setting operation on the expected execution order of the nodes in the test flow, the expected execution order information is determined; According to the determined node analysis order, the service information of the nodes is configured to the corresponding nodes to parse the test flow into multiple ordered operations performed by the devices corresponding to the nodes, comprising: According to the determined node analysis sequence, the expected execution sequence information is configured to the corresponding node to determine the original dependency relationship between the current node and the original previous adjacent node, wherein the original previous adjacent node is the previous adjacent node of the current node before the setting operation of the user. According to the original dependency relationship, the current node is configured by using the service information of the original previous adjacent node and the service information of the current node to determine one or more ordered operations corresponding to the current node.
6. The method of claim 1 or 2, wherein, The service information of the input node connected by the plurality of input wires connected to the multi-input multi-output node, the service information of the output node connected by the plurality of output wires connected to the multi-input multi-output node, and the service information of the multi-input multi-output node are obtained, comprising: For the adjacent connected device nodes in the test process, the front operation and / or the rear operation related information of the device node is obtained. The service information of the node is configured to the corresponding node according to the determined analysis sequence to determine the ordered first operation corresponding to the input node, the ordered second operation corresponding to the multi-input multi-output node, and the ordered third operation corresponding to the output node, comprising: Based on the adjacent connection relationship between different device nodes in the test process and the front operation and / or the rear operation related information of the device node, the execution sequence of the front operation and / or the rear operation of the device node and the self-operation of the device node is determined.
7. The method of claim 5, wherein, The execution sequence of the front operation and / or the rear operation of the device node and the self-operation of the device node is determined based on the adjacent connection relationship between different device nodes in the test process and the front operation and / or the rear operation related information of the device node, comprising: For the case that at least one of the rear operation of the previous device node and the front operation of the next device node in the adjacent connected device nodes is a repeated operation, the repeated operation in the rear operation of the previous device node and the front operation of the next device node is correspondingly merged, so that each merged operation appears as an operation in the execution sequence.
8. The method of claim 1 or 2, wherein, The analysis sequence of the input node is determined to be earlier than the analysis sequence of the multi-input multi-output node and the output node based on the connection relationship between the nodes to determine the node analysis sequence, comprising: For the case that there is a flow control node in the test process, for each of the flow control nodes, the nodes between the start position and the end position of the flow control node are analyzed as an analysis unit.
9. The method of claim 1 or 2, wherein, The method further comprises: A user interface is provided, and the user interface is provided with an operable control for obtaining the service information of the node.
10. A test procedure analysis device, characterized by, The test process is a built automatic process, and the test process includes a multi-input multi-output node, and the device comprises: An information obtaining module is configured to obtain service information of an input node connected by a plurality of input lines connected to a multi-input multi-output node, service information of an output node connected by a plurality of output lines connected to the multi-input multi-output node, and service information of the multi-input multi-output node, wherein the service information of a node comprises pre-set node information and node information set when the test flow is built; A node analysis module is configured to determine, based on a connection relationship between nodes, that an analysis order of the input node is prior to an analysis order of the multi-input multi-output node and the output node, to determine a node analysis order; An operation analysis module is configured to configure, according to the determined node analysis order, service information of a node to a corresponding node, to analyze the test flow into a plurality of ordered operations performed by devices corresponding to the nodes.
11. An electronic device comprising a processor and a memory, wherein, The memory stores computer program instructions, and the computer program instructions are run by the processor to execute the test flow analysis method according to any one of claims 1 to 9.
12. A storage medium, on which program instructions are stored, and the program instructions are run to execute the test flow analysis method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Establishment method of process model in manufacturing execution system, electronic equipment and analysis method of process model
CN112365192A
Method for automatically arranging service flow, electronic device and storage medium
CN113672674A