Test node configuration method, device, electronic device and storage medium
By displaying the test node association diagram and editing the attribute information in the display interface, the problem of low test node configuration efficiency in the existing technology is solved, the test node path and association relationship are intuitively represented, and the testing efficiency is improved.
Patent Information
- Application Number
- CN202210465254.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-29
AI Technical Summary
The test node configuration method in the prior art results in low test efficiency, and it is impossible to directly obtain the relationships and paths between test nodes.
By displaying the test node association graph in the display interface, users are allowed to edit the attribute information of the test nodes, and configure the association between test nodes through views to visually represent the test node paths.
It improves testing efficiency, simplifies the test node configuration process, directly obtains the relationships and paths between test nodes, and improves configuration efficiency.
Smart Images

Figure CN114880219B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of testing, and in particular to a test node configuration method, device, electronic device and storage medium. Background Art
[0002] When conducting a product function time-consuming test, it is necessary to pre-set the test nodes and determine the time consumption of the corresponding functions of each test node based on the time information corresponding to the test nodes. For example: when testing the screen loading time consumption, it is necessary to implement the screen loading time consumption test based on the difference between the time corresponding to the screen appearance node in the entire test process and the time corresponding to the start node in the entire test process. That is, before conducting a function time consumption test, it is necessary to pre-set the relationship between the test nodes so that the function time consumption test can be implemented based on the time information corresponding to each test node.
[0003] In the related art, the test nodes are configured in a list manner. For example, the test node list can refer to Figure 1 As shown in the figure, the list configures and displays the test nodes in a way that the interaction relationships between the test nodes are too scattered, and it is impossible to directly obtain the association relationship between the test nodes, and thus it is impossible to directly obtain the complete test node path, resulting in low test efficiency. Summary of the invention
[0004] The present disclosure provides a test node configuration method, device, electronic device and storage medium to at least solve the problem of low test efficiency in related technologies. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a test node configuration method is provided, including:
[0006] Displaying a test node association graph in a display interface, wherein the test node association graph includes at least one test node pair, wherein the test node pair includes a first test node and a second test node, and a tail endpoint of the first test node is connected to a head endpoint of the second test node;
[0007] In response to an operation for editing properties of a test node to be configured, the edited property information of the test node to be configured is displayed in the property display area of the display interface, and the test node to be configured is any test node in the test node association diagram.
[0008] In one example, displaying the test node association diagram in the display interface includes:
[0009] In response to an operation for selecting the first test node, displaying the first test node in a first display mode in a display interface;
[0010] In response to the operation for creating the test node, the second test node is displayed below the first test node in the display interface.
[0011] In one example, the first test node is connected to the second test node via a connecting line, a first end of the connecting line is connected to a tail endpoint of the first test node, and a second end of the connecting line is connected to a head endpoint of the second test node, and the method further includes:
[0012] In response to an operation for determining a pair of test nodes to be adjusted, determining the pair of test nodes to be adjusted from the test node association graph;
[0013] In response to an adjustment operation on the connection line in the pair of test nodes to be adjusted, a target end of the connection line is adjusted to a target endpoint connected to a third test node.
[0014] In one example, in response to the operation for editing the properties of the to-be-configured test node, displaying the edited property information of the to-be-configured test node in the property display area of the display interface includes:
[0015] In response to an operation for selecting a test node to be configured, displaying attribute information of the test node to be configured in an attribute display area of the display interface, wherein the attribute display area includes attribute configuration items, and the attribute configuration items are used to configure the attribute information of the test node to be configured;
[0016] In response to an editing operation on a target attribute configuration item, the edited attribute information of the to-be-configured test node is displayed in the display interface.
[0017] In one example, the attribute configuration item includes at least one of a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item.
[0018] In response to the editing operation on the target attribute configuration item, displaying the edited attribute information of the to-be-configured test node in the display interface includes:
[0019] In response to an editing operation on the node name configuration item, displaying the edited node name of the test node to be configured in the display area of the test node name to be configured, the display area of the test node name to be configured includes the node name configuration item and / or the name display area corresponding to the test node to be configured in the test node association diagram; and / or,
[0020] In response to an editing operation on the node image configuration item, displaying the edited node image of the to-be-configured test node in the attribute display area; and / or,
[0021] In response to an edit operation on the node event type configuration item, displaying the node event type of the to-be-configured test node in a second display manner in the attribute display area; and / or,
[0022] In response to an edit operation on the node test threshold configuration item, a preset preset of the test node to be configured is displayed in the node test threshold configuration item.
[0023] In one example, the method further includes:
[0024] In response to an operation for acquiring a target video, acquiring the target video;
[0025] In response to an operation for starting a test, a test operation is performed based on the test node association diagram, the attribute information of each test node, and the target video, and the test result is displayed in a test result display area.
[0026] According to a second aspect of an embodiment of the present disclosure, a test node configuration device is provided, including:
[0027] A first display unit is configured to display a test node association graph in a display interface, wherein the test node association graph includes at least one test node pair, wherein the test node pair includes a first test node and a second test node, and a tail endpoint of the first test node is connected to a head endpoint of the second test node;
[0028] The second display unit is configured to execute a response to an operation for editing properties of the test node to be configured, and to display the edited property information of the test node to be configured in the property display area of the display interface, wherein the test node to be configured is any test node in the test node association diagram.
[0029] In one example, the first display unit is further configured to execute:
[0030] In response to an operation for selecting the first test node, displaying the first test node in a first display mode in a display interface;
[0031] In response to the operation for creating the test node, the second test node is displayed below the first test node in the display interface.
[0032] In one example, the first test node is connected to the second test node via a connecting line, a first end of the connecting line is connected to a tail endpoint of the first test node, and a second end of the connecting line is connected to a head endpoint of the second test node, and the device further includes:
[0033] A first determining unit is configured to execute, in response to an operation for determining a pair of test nodes to be adjusted, to determine the pair of test nodes to be adjusted from the test node association graph;
[0034] The adjusting unit is configured to perform an adjustment operation on the connecting line in the pair of test nodes to be adjusted, and adjust the target end of the connecting line to a target endpoint connected to a third test node.
[0035] In one example, the second display unit is further configured to execute:
[0036] In response to an operation for selecting a test node to be configured, displaying attribute information of the test node to be configured in an attribute display area of the display interface, wherein the attribute display area includes attribute configuration items, and the attribute configuration items are used to configure the attribute information of the test node to be configured;
[0037] In response to an editing operation on a target attribute configuration item, the edited attribute information of the to-be-configured test node is displayed in the display interface.
[0038] In one example, the attribute configuration item includes at least one of a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item.
[0039] The second display unit is further configured to execute:
[0040] In response to an editing operation on the node name configuration item, displaying the edited node name of the test node to be configured in the display area of the test node name to be configured, the display area of the test node name to be configured includes the node name configuration item and / or the name display area corresponding to the test node to be configured in the test node association diagram; and / or,
[0041] In response to an editing operation on the node image configuration item, displaying the edited node image of the to-be-configured test node in the attribute display area; and / or,
[0042] In response to an edit operation on the node event type configuration item, displaying the node event type of the to-be-configured test node in a second display manner in the attribute display area; and / or,
[0043] In response to an edit operation on the node test threshold configuration item, a preset preset of the test node to be configured is displayed in the node test threshold configuration item.
[0044] In one example, the apparatus further comprises:
[0045] an acquisition unit, configured to execute, in response to an operation for acquiring a target video, to acquire the target video;
[0046] The third display unit is configured to execute a test operation in response to an operation for starting a test, based on the test node association diagram and the attribute information of each test node, and the target video, and display the test result in a test result display area.
[0047] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0048] processor;
[0049] a memory for storing instructions executable by the processor;
[0050] The processor is configured to execute the instructions to implement any of the test node configuration methods described above.
[0051] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the test node configuration method as described in any one of the above items.
[0052] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute the test node configuration method as described in any one of the above items.
[0053] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0054] The test node configuration method, device, electronic device and storage medium provided by the embodiments of the present disclosure can display a test node association diagram in a display interface, wherein the test node association diagram includes at least one test node pair, wherein the test node pair includes a first test node and a second test node, and the tail endpoint of the first test node is connected to the head endpoint of the second test node. Further, in response to an operation for editing the properties of the test node to be configured, the edited property information of the test node to be configured is displayed in the property display area of the display interface. Based on the test node configuration method, device, electronic device and storage medium provided by the embodiments of the present disclosure, the association relationship between the test nodes can be intuitively represented by the test node association diagram, and then the association relationship between the test nodes and the test node path can be directly obtained according to the test node association diagram, which can improve the test efficiency, and the configuration of the test nodes is realized in the form of views, which can simplify the configuration process of the test nodes and improve the configuration efficiency of the test nodes.
[0055] 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
[0056] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0057] Figure 1 It is a schematic diagram showing a test node list according to an exemplary embodiment.
[0058] Figure 2 The figure is a flowchart of a test node configuration method according to an exemplary embodiment.
[0059] Figure 3 It is a schematic diagram of a display interface according to an exemplary embodiment.
[0060] Figure 4 The figure is a flowchart of a test node configuration method according to an exemplary embodiment.
[0061] Figure 5 The figure is a flowchart of a test node configuration method according to an exemplary embodiment.
[0062] Figure 6 The figure is a flowchart of a test node configuration method according to an exemplary embodiment.
[0063] Figure 7 The figure is a flowchart of a test node configuration method according to an exemplary embodiment.
[0064] Figure 8 It is a schematic diagram showing a test node configuration method according to an exemplary embodiment.
[0065] Fig. 9 The figure is a block diagram showing a test node configuration device according to an exemplary embodiment.
[0066] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0067] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0068] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. 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.
[0069] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0070] In one embodiment, Figure 2 As shown, a test node configuration method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0071] In step 202, a test node association graph is displayed in a display interface, the test node association graph includes at least one test node pair, the test node pair includes a first test node and a second test node, and the tail endpoint of the first test node is connected to the head endpoint of the second test node.
[0072] In the embodiment of the present disclosure, when performing a function time-consuming test, a corresponding test node can be set for each function to be tested, and an association relationship between the test nodes can be set. The association relationship between the test nodes can include the relationship between the parent node and the child node. When performing a function time-consuming test, the time consumed by the child node corresponding to the function is the difference obtained by subtracting the time node corresponding to the child node from the time node corresponding to the parent node. For example, if the start test node is the parent node of the screen-appearing test node, the time consumed by the screen to appear is the difference between the time node corresponding to the start test node and the time node corresponding to the screen-appearing test node.
[0073] In the embodiment of the present disclosure, after the test nodes are created, the association relationship between the test nodes can be displayed through a test node association graph. The test node association graph includes each test node. Any two test nodes with an association relationship can form a test node pair. The two test nodes in the test node pair have a connection relationship in the test node association graph. The tail endpoint of the first test node as the parent node is connected to the head endpoint of the second test node as the child node.
[0074] For example, refer to Figure 3 The test node association diagram shown in this example includes four test nodes, namely startup, screen appearance, bundle download, and download completion. There are three test node pairs, namely the first test node pair consisting of the startup test node and the screen appearance test node, the second test node pair consisting of the startup test node and the bundle download test node, and the third test node pair consisting of the bundle download test node and the download completion test node. Taking the first test node pair as an example, the startup test node is the parent node, the screen appearance test node is the child node, and the tail endpoint of the startup test node is connected to the head endpoint of the screen appearance test node by a line segment.
[0075] In step 204, in response to an operation for editing properties of a test node to be configured, edited property information of the test node to be configured is displayed in a property display area of a display interface, and the test node to be configured is any test node in a test node association diagram.
[0076] In the embodiment of the present disclosure, the display interface includes an attribute display area, and the attribute display area is used to display the attribute information of the test node to be configured. For any test node to be configured with attributes in the test node association diagram, it can be used as a test node to be configured, and in response to an operation for editing the attributes of the test node to be configured, the attribute information of the test node to be configured can be edited in the attribute display area, and after the editing is completed, the edited attribute information of the test node to be configured is displayed in the attribute display area.
[0077] For example, refer to Figure 3 As shown, the download completed test node is used as the test node to be configured, and the attribute display area can display the attribute information of the download completed test node. Further, in response to the operation for editing the attributes of the download completed test node, the edited attribute information of the download completed test node can be displayed at the corresponding position in the attribute display area.
[0078] The test node configuration method provided in the embodiment of the present disclosure can display a test node association graph in a display interface, and the test node association graph includes at least one test node pair, and the test node pair includes a first test node and a second test node, and the tail endpoint of the first test node is connected to the head endpoint of the second test node. Further, in response to an operation for editing the properties of the test node to be configured, the edited property information of the test node to be configured is displayed in the property display area of the display interface. Based on the test node configuration method provided in the embodiment of the present disclosure, the association relationship between the test nodes can be intuitively represented by the test node association graph, and then the association relationship between the test nodes can be directly obtained according to the test node association graph, which can improve the test efficiency, and the configuration of the test nodes is realized in the form of views, which can simplify the configuration process of the test nodes and improve the configuration efficiency of the test nodes.
[0079] In an exemplary embodiment, referring to Figure 4 As shown, in step 202, displaying the test node association diagram in the display interface can be achieved by the following steps:
[0080] In step 402, in response to an operation for selecting a first test node, the first test node is displayed in a first display mode in a display interface;
[0081] In step 404, in response to the operation for creating a test node, the second test node is displayed below the first test node in the display interface.
[0082] In the embodiment of the present disclosure, in response to the user's creation operation on the test node, the test node association graph can be displayed in the display interface. Exemplarily, when the first test node is created, the test node association graph only includes one test node, which is the test node carried in the test node association graph, and does not need to be manually created by the user.
[0083] Before creating a test node, the user needs to determine the parent node of the test node to be created, and select the parent node through the operation for selecting the parent node. Exemplarily, taking the first test node as the parent node of the second test node to be created as an example, the first test node can be selected through a selection operation (for example: single-click, double-click, touch, etc., the embodiment of the present disclosure does not specifically limit the selection operation), and the terminal device can respond to the selection operation for the first test node and display the first test node in the display interface in a first display mode to indicate that the first test node has been selected as the parent node of the second test node to be created. Among them, the first display mode is a preset display mode, for example, it can be a display mode such as highlighting, virtual box marking, etc., and the embodiment of the present disclosure does not specifically limit the first display mode.
[0084] After selecting the first test node, a second test node may be further created and displayed in the display interface in response to an operation for creating the test node. Exemplarily, the display interface includes a test node creation control, and the operation for creating the test node may include a trigger operation for the test node creation control. The terminal may display the second test node below the first test node in the display interface in response to the trigger operation for the test node creation control, and the head endpoint of the second test node is connected to the tail endpoint of the first test node through a line segment, and a child node including a record of the second test node may be added to the attribute data of the first test node, and a parent node including a record of the first test node may be added to the attribute data of the second test node.
[0085] In one example, after the test nodes with the first test node as the parent node are generated, they are automatically displayed at the preset position at the lower right of the first test node, and further, the test nodes can be moved to the target position in response to the drag operation on each test node. For example: after the second test node is generated, the second test node can be displayed at the preset position at the lower right of the first test node, and if a test node associated with the first test node is already displayed at the preset position, the second test node can be moved to the target position by dragging.
[0086] Alternatively, in another example, the first child node of the first test node may be displayed at a preset position at the lower right, and when the second test node is generated, if the second test node has a sibling node, the second test node may be displayed at a preset position at the lower left of the sibling node, otherwise the second test node may be displayed at a preset position at the lower right of the first test node. For example: after the third test node having the first test node as its parent node has been displayed, the second test node may be displayed at a preset position at the lower left of the third test node.
[0087] Based on the test node configuration method provided by the embodiment of the present disclosure, the association relationship between test nodes can be configured in a visual manner to obtain a test node association graph, which can simplify the test node configuration process and improve the test node configuration efficiency; the association relationship between test nodes can be intuitively represented by the test node association graph, and then the association relationship between test nodes can be directly obtained according to the test node association graph, which can improve the test efficiency.
[0088] In an exemplary embodiment, the first test node is connected to the second test node through a connecting line, the first end of the connecting line is connected to the tail end point of the first test node, and the second end of the connecting line is connected to the head end point of the second test node. Figure 5 As shown, the above method may also include:
[0089] In step 502, in response to an operation for determining a pair of test nodes to be adjusted, a pair of test nodes to be adjusted is determined from a test node association graph;
[0090] In step 504, in response to an adjustment operation on a connection line in a pair of test nodes to be adjusted, a target end of the connection line is adjusted to a target endpoint connected to a third test node.
[0091] In an embodiment of the present disclosure, the association relationship of the test nodes in the test node association diagram can be adjusted. Exemplarily, the operation for determining the test node pair to be adjusted may include selecting a connection line for connecting the first test node and the second test node, and in response to the selection operation for the connection line, the test node pair consisting of the first test node and the second test node may be used as the test node pair to be adjusted. And after determining the test node to be adjusted, the target end of the connection line in the test node pair to be adjusted can be adjusted to the target endpoint connected to the third test node by dragging and other operations. After completing the dragging adjustment of the connection line in the test node pair to be adjusted, the attribute data of the test node can be updated according to the association relationship between the adjusted test nodes.
[0092] Exemplarily, after determining the test node pair to be adjusted, if the parent node of the second test node needs to be adjusted to the third test node, the target end of the connecting line is the first end, and the target endpoint of the third test node is the tail endpoint. Then, by dragging the first end of the connecting line in the test node pair to be adjusted, the first end of the connecting line in the test node to be adjusted can be adjusted from the tail endpoint connected to the first test node to the tail endpoint connected to the third test node, and the record of the second test node can be deleted in the child node of the attribute data of the first test node, the parent node in the attribute data of the second test node can be updated from the first test node to the third test node, and the record of the second test node can be added in the child node in the attribute data of the third test node.
[0093] Alternatively, if the child node of the first test node needs to be adjusted to the third test node, the target end of the connection line is the second end, and the target endpoint of the third test node is the head endpoint. Then, the second end of the connection line in the test node to be adjusted can be adjusted from the head endpoint connected to the second test node to the head endpoint connected to the third test node by dragging the first end of the connection line in the test node to be adjusted. And the child node can be updated from the second test node to the third test node in the child node of the attribute data of the first test node, the first test node can be deleted in the parent node of the attribute data of the second test node, and the record of the first test node can be added in the parent node of the attribute data of the third test node.
[0094] Based on the test node configuration method provided by the embodiment of the present disclosure, the association relationship between the test nodes can be adjusted by adjusting the centering connection lines of the test nodes to be adjusted, which can simplify the configuration process of the test nodes and improve the configuration efficiency of the test nodes; the association relationship between the test nodes can be intuitively represented by a test node association graph, and the association relationship between the test nodes can be directly obtained according to the test node association graph, which can improve the test efficiency.
[0095] In an exemplary embodiment, referring to Figure 6 As shown, in step 204, in response to the operation for editing the properties of the test node to be configured, the edited property information of the test node to be configured is displayed in the property display area of the display interface, which can be achieved by the following steps:
[0096] In step 602, in response to an operation for selecting a test node to be configured, attribute information of the test node to be configured is displayed in an attribute display area of a display interface, wherein the attribute display area includes attribute configuration items, and the attribute configuration items are used to configure the attribute information of the test node to be configured;
[0097] In step 604, in response to the editing operation on the target attribute configuration item, the edited attribute information of the to-be-configured test node is displayed in the display interface.
[0098] In the disclosed embodiment, the test node to be configured may be a test node for which attribute information is to be configured. For example, in response to a trigger operation for creating a control for a test node, after the test node is created and displayed, if the current attribute information of the test node is empty or preset information, the test node may be determined as a test node to be configured. Alternatively, if the attribute information of the test node needs to be updated and modified, the test node may be used as a test node to be configured.
[0099] After determining the test node to be configured, the current attribute information of the test node to be configured can be displayed in the attribute display area of the display interface. Among them, the attribute display area includes multiple attribute configuration items, and each attribute configuration item is used to configure and display various attribute information of the test node to be configured. For example: the attribute configuration item may include a node name configuration item, a node image configuration item, etc., wherein the node name configuration item can be used to configure and display the node name of the test node to be configured, and the node image configuration item can be used to configure and display the node image corresponding to the test node to be configured.
[0100] The target attribute configuration item is the attribute configuration item corresponding to the attribute information to be adjusted of the test node to be configured. The editing operation for the target attribute configuration item may include operations such as inputting / uploading / selecting the attribute information performed in the target attribute configuration item. The user can edit the attribute information of the test node to be configured through the target attribute configuration item, and after completing the editing of the attribute information, the edited attribute information can be displayed in the display interface.
[0101] Based on the test node configuration method provided by the embodiment of the present disclosure, the attribute information of the test node to be configured can be configured in a visual manner, which can simplify the configuration process of the test node and improve the configuration efficiency of the test node; the association relationship between the test nodes can be intuitively represented by the test node association graph, and the association relationship between the test nodes can be directly obtained according to the test node association graph, which can improve the test efficiency.
[0102] In an exemplary embodiment, the attribute configuration item includes at least one of a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item. In the above step 504, in response to an edit operation on the target attribute configuration item, displaying the edited attribute information of the test node to be configured in the display interface can be achieved by the following steps:
[0103] In response to an edit operation on a node name configuration item, displaying the edited node name of the test node to be configured in a display area of the test node name to be configured, the display area of the test node name to be configured including the node name configuration item and / or the name display area corresponding to the test node to be configured in the test node association diagram; and / or,
[0104] In response to an editing operation on a node image configuration item, displaying the edited node image of the test node to be configured in the attribute display area; and / or,
[0105] In response to an edit operation on a node event type configuration item, displaying the node event type of the test node to be configured in a second display manner in the attribute display area; and / or,
[0106] In response to an edit operation on a node test threshold configuration item, a preset preset of a test node to be configured is displayed in the node test threshold configuration item.
[0107] In the disclosed embodiment, the test node may include attribute information such as node name, node image, node event type, node test threshold, etc., wherein the node name is the name of the test node defined by the user. The node image is an image used to characterize the test node during the test process. When the node image is identified from the target video data during the test process, the time information corresponding to the node image in the target video data can be used as the time node corresponding to the test node, and then the function time-consuming test can be implemented based on the time node corresponding to the test node.
[0108] The node event type is used to characterize the node type of the test node. Exemplarily, the node type of the test node may include a when component appears type and a when component disappears type. When the node type of the test node is a when component appears type, the time information corresponding to when the node image is identified from the target video data during the test process can be used as the time node corresponding to the test node; or, when the node type of the test node is a when component disappears type, after the node image is identified from the target video data during the test process, the time information corresponding to when the node image disappears can be used as the time node corresponding to the test node.
[0109] The node test threshold is used to constrain the test accuracy for the test node. Exemplarily, during the test, when the similarity between the currently played video frame image in the target video data and the node image is higher than the node test threshold, it can be determined that the node image of the test node is identified.
[0110] Exemplarily, the attribute configuration items displayed in the attribute display area may include at least one of a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item. Among them, the node name configuration item can be used to configure the node name of the test node to be configured, the node image configuration item can be used to configure the node image corresponding to the test node to be configured, the node time type configuration item can be used to configure the node event type corresponding to the test node to be configured, and the node test threshold configuration item can be used to configure the node test threshold corresponding to the test node to be configured.
[0111] Reference Figure 3 As shown, the attribute configuration items displayed in the attribute display area may include a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item. After the user selects a test node to be configured, the attribute information of the test node to be configured may be displayed in the attribute display area.
[0112] In one example, the node name configuration item includes an input box, in which the user can enter the node name "Download Completed" of the test node to be configured, and then display the node name "Download Completed" of the test node to be configured in the input box of the node name configuration item, and display the node name "Download Completed" of the test node to be configured in the name display area of the test node to be configured in the test node association diagram.
[0113] In one example, the node image configuration item may include two controls: image capture and image upload. The user may trigger the image capture function by triggering the image capture control to use the captured image as the node image, or the user may trigger the image upload function by triggering the image upload control to use the uploaded image as the node image. The acquired node image is displayed in the image display area below the control.
[0114] In one example, the node event type configuration item may include a when component appears type option and a when component disappears type option. The user can configure the node event type of the test node to be configured by selecting the when component appears type option or the when component disappears type option, and display the node event type option of the selected test node to be configured in a second display method (highlighting, changing font color, etc.).
[0115] In one example, the node test threshold configuration item includes a drop-down box (or an input box), in which the user can select and input the node test threshold of the test node to be configured, and then the node test threshold of the test node to be configured is displayed in the drop-down box of the node test threshold configuration item (for example: 0.9).
[0116] In one example, the attribute display area may also include a deletion control. After the test node to be configured is selected, the deletion control can be triggered to delete the test node to be configured from the test node association diagram. At the same time, the attribute data of each test node is updated according to the deleted test node to be configured, that is, the record of the test node to be configured in the attribute data of each test node is deleted.
[0117] Based on the test node configuration method provided by the embodiment of the present disclosure, the attribute information of the test node to be configured can be configured in a visual manner, which can simplify the configuration process of the test node and improve the configuration efficiency of the test node; the association relationship between the test nodes can be intuitively represented by the test node association graph, and the association relationship between the test nodes can be directly obtained according to the test node association graph, which can improve the test efficiency.
[0118] In an exemplary embodiment, referring to Figure 7 As shown, the above method may also include:
[0119] In step 702, in response to an operation for acquiring a target video, a target video is acquired;
[0120] In step 704, in response to the operation for starting the test, the test operation is performed based on the test node association diagram and the attribute information of each test node and the target video, and the test result is displayed in the test result display area.
[0121] In the disclosed embodiment, a product function time-consuming test can be performed based on a target video. Exemplarily, a video of the use process can be collected during the use of the product (experiencing the various functions of the product). The display interface may include a video collection control and a start test control, and the operation for obtaining the target video may include a user triggering the video collection control to start the video upload function to upload at least one collected video as the target video.
[0122] The operation for starting the test may include a trigger operation for starting the test control. The terminal may respond to the trigger operation for starting the test control, based on the association relationship of each test node displayed in the test node association diagram, the attribute information of each test node, and the time-consuming test operation of executing the function of the target video, determine the function node corresponding to each test node based on the time node when the node image of each test node is in the node test type, and determine the time-consuming of each test node function based on the association relationship between each test node, and obtain the test result. The test result can be displayed in the test result display area, wherein the test result display area may include the test result display area of each test node, and the test result of each test node can be displayed in the test result display area of each test node. When multiple target videos are included, the test results of the multiple target videos can be displayed separately in the test node display area of each test node, or the corresponding test result can be displayed for each target video.
[0123] Based on the test node configuration method provided by the embodiment of the present disclosure, the test node association diagram can be configured in a visual manner, which can simplify the configuration process of the test nodes and improve the configuration efficiency of the test nodes; the association relationship between the test nodes can be intuitively represented by the test node association diagram, and then the association relationship between the test nodes can be directly obtained according to the test node association diagram, which can improve the test efficiency.
[0124] In order to enable those skilled in the art to better understand the embodiments of the present disclosure, the embodiments of the present disclosure are described below through specific examples.
[0125] Reference Figure 8As shown, in this example, the user clicks to create or edit different test nodes during the process of editing the test node, and the test nodes are supported to be directly linked to each other, and finally connected to form a complete test node path. The user can add a test node by triggering the test node creation control. An svg rect (rectangle) will be generated on the code side, and the test node name and the endpoints on both sides (the test node connected to the head endpoint and / or the test node connected to the tail endpoint) will be generated on the svg rect, and then the test node will be added to the canvas of the display interface.
[0126] By selecting the test node to be configured, the user triggers the highlighting of the test node to be configured, and the attribute information corresponding to the test node to be configured is displayed in the attribute display area on the right. The user can modify the node name, node test threshold, node image and other attributes of the test node to be configured in the attribute display area according to their needs.
[0127] The user can create multiple test nodes by repeating the above process and obtain a test node association graph.
[0128] The test node configuration method provided by the embodiment of the present disclosure intuitively displays the association relationship between test nodes and the attribute information of the test nodes through a test node association diagram, supports the configuration of test nodes in the form of a mind map, and solves the problem of editing test nodes in the form of a mind map. In the test node association diagram, a parent node can have multiple child nodes, that is, the embodiment of the present disclosure supports the problem of multiple subsets of test nodes.
[0129] It should be understood that although Figure 1-Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 9 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0130] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.
[0131] Fig. 9 is a block diagram of a test node configuration device according to an exemplary embodiment. Fig. 9 , the device includes a first display unit 902 and a second display unit 904.
[0132] A first display unit 902 is configured to display a test node association graph in a display interface, wherein the test node association graph includes at least one test node pair, wherein the test node pair includes a first test node and a second test node, and a tail endpoint of the first test node is connected to a head endpoint of the second test node;
[0133] The second display unit 904 is configured to execute a response to an operation for editing properties of the test node to be configured, and to display the edited property information of the test node to be configured in the property display area of the display interface, wherein the test node to be configured is any test node in the test node association diagram.
[0134] The test node configuration device provided in the embodiment of the present disclosure can display a test node association graph in a display interface, and the test node association graph includes at least one test node pair, and the test node pair includes a first test node and a second test node, and the tail endpoint of the first test node is connected to the head endpoint of the second test node. Further, in response to an operation for editing the properties of the test node to be configured, the edited property information of the test node to be configured is displayed in the property display area of the display interface. Based on the test node configuration device provided in the embodiment of the present disclosure, the association relationship between the test nodes can be intuitively represented by the test node association graph, and then the association relationship between the test nodes and the test node path can be directly obtained according to the test node association graph, which can improve the test efficiency, and the configuration of the test nodes is realized in the form of views, which can simplify the configuration process of the test nodes and improve the configuration efficiency of the test nodes.
[0135] In an exemplary embodiment, the first display unit 902 is further configured to execute:
[0136] In response to an operation for selecting the first test node, displaying the first test node in a first display mode in a display interface;
[0137] In response to the operation for creating the test node, the second test node is displayed below the first test node in the display interface.
[0138] In one example, the first test node is connected to the second test node via a connecting line, a first end of the connecting line is connected to a tail endpoint of the first test node, and a second end of the connecting line is connected to a head endpoint of the second test node, and the device further includes:
[0139] A first determining unit is configured to execute, in response to an operation for determining a pair of test nodes to be adjusted, to determine the pair of test nodes to be adjusted from the test node association graph;
[0140] The adjusting unit is configured to perform an adjustment operation on the connecting line in the pair of test nodes to be adjusted, and adjust the target end of the connecting line to a target endpoint connected to a third test node.
[0141] In one example, the second display unit 904 is further configured to execute:
[0142] In response to an operation for selecting a test node to be configured, displaying attribute information of the test node to be configured in an attribute display area of the display interface, wherein the attribute display area includes attribute configuration items, and the attribute configuration items are used to configure the attribute information of the test node to be configured;
[0143] In response to an editing operation on a target attribute configuration item, the edited attribute information of the to-be-configured test node is displayed in the display interface.
[0144] In one example, the attribute configuration item includes at least one of a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item.
[0145] The second display unit 904 is further configured to execute:
[0146] In response to an editing operation on the node name configuration item, displaying the edited node name of the test node to be configured in the display area of the test node name to be configured, the display area of the test node name to be configured includes the node name configuration item and / or the name display area corresponding to the test node to be configured in the test node association diagram; and / or,
[0147] In response to an editing operation on the node image configuration item, displaying the edited node image of the to-be-configured test node in the attribute display area; and / or,
[0148] In response to an edit operation on the node event type configuration item, displaying the node event type of the to-be-configured test node in a second display manner in the attribute display area; and / or,
[0149] In response to an edit operation on the node test threshold configuration item, a preset preset of the test node to be configured is displayed in the node test threshold configuration item.
[0150] In one example, the apparatus further comprises:
[0151] an acquisition unit, configured to execute, in response to an operation for acquiring a target video, to acquire the target video;
[0152] The third display unit is configured to execute a test operation in response to an operation for starting a test, based on the test node association diagram and the attribute information of each test node, and the target video, and display the test result in a test result display area.
[0153] 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.
[0154] Fig.10 1 is a block diagram of an electronic device 1000 for testing a node configuration method according to an exemplary embodiment. For example, the electronic device 1000 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.
[0155] Reference Fig.10 , the electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .
[0156] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0157] The memory 1004 is configured to store various types of data to support operations on the electronic device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, an optical disk, or a graphene memory.
[0158] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1000.
[0159] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) 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 1008 includes a front camera and / or a rear camera. When the electronic device 1000 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 rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0160] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 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 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting an audio signal.
[0161] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0162] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display and keypad of the electronic device 1000, and the sensor assembly 1014 can also detect changes in the position of the electronic device 1000 or components of the electronic device 1000, the presence or absence of contact between the user and the electronic device 1000, the orientation or acceleration / deceleration of the device 1000, and the temperature change of the electronic device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0163] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1016 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 1016 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.
[0164] In an exemplary embodiment, the electronic device 1000 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.
[0165] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the above instructions can be executed by the processor 1020 of the electronic device 1000 to complete the above method. For example, the 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.
[0166] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by the processor 1020 of the electronic device 1000 to complete the above method.
[0167] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.
[0168] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention 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 claims.
[0169] 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 test node configuration method, characterized in that: include: Displaying a test node association graph in a display interface, wherein the test node association graph includes at least one test node pair, wherein the test node pair includes a first test node and a second test node, and a tail endpoint of the first test node is connected to a head endpoint of the second test node; In response to an operation for selecting a test node to be configured, the attribute information of the test node to be configured is displayed in the attribute display area of the display interface, and in response to an editing operation for a target attribute configuration item, the edited attribute information of the test node to be configured is displayed in the display interface, Wherein, the attribute display area includes attribute configuration items, and the attribute configuration items are used to configure the attribute information of the test node to be configured. The test node to be configured is any test node in the test node association diagram. The attribute configuration items include at least one of a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item. The node image configuration item is used to configure the node image corresponding to the test node to be configured. The node image is an image used to characterize the test node to be configured during the test process. The node event type configuration item is used to configure the node event type corresponding to the test node to be configured. The node event type is used to characterize the node type of the test node to be configured. The node test threshold configuration item is used to configure the node test threshold corresponding to the test node to be configured. The node test threshold is used to constrain the test accuracy for the test node to be configured. Based on each of the test node pairs and the attribute information of each of the test nodes, a time-consuming test of a function corresponding to each of the test nodes is performed.
2. The method according to claim 1, characterized in that The displaying of the test node association diagram in the display interface includes: In response to an operation for selecting the first test node, displaying the first test node in a first display mode in a display interface; In response to the operation for creating the test node, the second test node is displayed below the first test node in the display interface.
3. The method according to claim 1 or 2, characterized in that: The first test node is connected to the second test node via a connecting line, a first end of the connecting line is connected to a tail endpoint of the first test node, and a second end of the connecting line is connected to a head endpoint of the second test node, and the method further includes: In response to an operation for determining a pair of test nodes to be adjusted, determining the pair of test nodes to be adjusted from the test node association graph; In response to an adjustment operation on the connection line in the pair of test nodes to be adjusted, a target end of the connection line is adjusted to a target endpoint connected to a third test node.
4. The method according to claim 1, characterized in that: In response to the editing operation on the target attribute configuration item, displaying the edited attribute information of the to-be-configured test node in the display interface includes: In response to an editing operation on the node name configuration item, displaying the edited node name of the test node to be configured in the display area of the test node name to be configured, the display area of the test node name to be configured includes the node name configuration item and / or the name display area corresponding to the test node to be configured in the test node association diagram; and / or, In response to an editing operation on the node image configuration item, displaying the edited node image of the to-be-configured test node in the attribute display area; and / or, In response to an edit operation on the node event type configuration item, displaying the node event type of the to-be-configured test node in a second display manner in the attribute display area; and / or, In response to an edit operation on the node test threshold configuration item, a preset preset of the test node to be configured is displayed in the node test threshold configuration item.
5. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to an operation for acquiring a target video, acquiring the target video; Based on the target video and the test node association diagram, a product function time-consuming test is performed, including: In response to an operation for starting a test, a product function time consumption test is performed based on the association relationship of each test node displayed in the test node association diagram, the attribute information of each test node, and the target video, so as to determine the function node corresponding to each test node based on the time node when the node image of each test node is in the node test type, and determine the function time consumption of each test node based on the association relationship between each test node, obtain the test result, and display the test result in the test result display area.
6. A test node configuration device, characterized in that: include: A first display unit is configured to display a test node association graph in a display interface, wherein the test node association graph includes at least one test node pair, wherein the test node pair includes a first test node and a second test node, and a tail endpoint of the first test node is connected to a head endpoint of the second test node; a second display unit configured to display the attribute information of the test node to be configured in the attribute display area of the display interface in response to an operation for selecting the test node to be configured, and to display the edited attribute information of the test node to be configured in the display interface in response to an editing operation for a target attribute configuration item, Wherein, the attribute display area includes attribute configuration items, and the attribute configuration items are used to configure the attribute information of the test node to be configured. The test node to be configured is any test node in the test node association diagram. The attribute configuration items include at least one of a node name configuration item, a node image configuration item, a node event type configuration item, and a node test threshold configuration item. The node image configuration item is used to configure the node image corresponding to the test node to be configured. The node image is an image used to characterize the test node to be configured during the test process. The node event type configuration item is used to configure the node event type corresponding to the test node to be configured. The node event type is used to characterize the node type of the test node to be configured. The node test threshold configuration item is used to configure the node test threshold corresponding to the test node to be configured. The node test threshold is used to constrain the test accuracy for the test node to be configured. The time-consuming test unit is configured to perform a time-consuming test of a function corresponding to each of the test nodes based on each of the test node pairs and the attribute information of each of the test nodes.
7. The device according to claim 6, characterized in that The first display unit is further configured to execute: In response to an operation for selecting the first test node, displaying the first test node in a first display mode in a display interface; In response to the operation for creating the test node, the second test node is displayed below the first test node in the display interface.
8. The device according to claim 6 or 7, characterized in that The first test node is connected to the second test node via a connecting line, a first end of the connecting line is connected to a tail endpoint of the first test node, and a second end of the connecting line is connected to a head endpoint of the second test node, and the device further includes: A first determining unit is configured to execute, in response to an operation for determining a pair of test nodes to be adjusted, to determine the pair of test nodes to be adjusted from the test node association graph; The adjusting unit is configured to perform an adjustment operation on the connecting line in the pair of test nodes to be adjusted, and adjust the target end of the connecting line to a target endpoint connected to a third test node.
9. The device according to claim 6, characterized in that The second display unit is further configured to execute: In response to an editing operation on the node name configuration item, displaying the edited node name of the test node to be configured in the display area of the test node name to be configured, the display area of the test node name to be configured includes the node name configuration item and / or the name display area corresponding to the test node to be configured in the test node association diagram; and / or, In response to an editing operation on the node image configuration item, displaying the edited node image of the to-be-configured test node in the attribute display area; and / or, In response to an edit operation on the node event type configuration item, displaying the node event type of the to-be-configured test node in the property display area in a second display manner; and / or, In response to an edit operation on the node test threshold configuration item, a preset preset of the test node to be configured is displayed in the node test threshold configuration item.
10. The device according to claim 6 or 7, characterized in that The device also includes: an acquisition unit, configured to execute, in response to an operation for acquiring a target video, to acquire the target video; The third display unit is configured to perform a product function time consumption test based on the target video and the test node association diagram, including: In response to an operation for starting a test, a product function time consumption test is performed based on the association relationship of each test node displayed in the test node association diagram, the attribute information of each test node, and the target video, so as to determine the function node corresponding to each test node based on the time node when the node image of each test node is in the node test type, and determine the function time consumption of each test node based on the association relationship between each test node, obtain the test result, and display the test result in the test result display area.
11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the test node configuration method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the test node configuration method according to any one of claims 1 to 5.
13. A computer program product, comprising instructions, characterized in that: When the instruction is executed by a processor of an electronic device, the electronic device is enabled to execute the test node configuration method as described in any one of claims 1 to 5.
