Test flow generation method, device and computer readable storage medium

By determining the magnetic connection relationship based on the pixel width and coordinates of the test items in the test process control interface, the test items are automatically connected, solving the time-consuming and labor-intensive problems in the existing technology, and realizing efficient test process generation and intuitive test item connection.

CN117491852BActive Publication Date: 2026-07-21SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUZHOU HUAXING YUANCHUANG TECH CO LTD
Filing Date
2023-11-10
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In existing chip testing machine software, setting up the test items for the chip under test requires a lot of manual operation, which is time-consuming and labor-intensive, especially when there are many test items, resulting in low efficiency.

Method used

By creating test items in the test process control interface, the magnetic connection relationship is determined based on the pixel width and coordinates of the test items, and the test items are automatically connected to form the target test process. The intelligent arrangement and connection of test items are achieved by using pixel width and coordinates.

Benefits of technology

It significantly improves the efficiency of test process generation, simplifies operation complexity, makes test item connections more intuitive and clear, and reduces repetitive manual work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117491852B_ABST
    Figure CN117491852B_ABST
Patent Text Reader

Abstract

The application relates to a test flow generation method and device, computer equipment and a storage medium. The method comprises the following steps: in a test flow control interface, a plurality of test items are created; according to the pixel width of each test item, the plurality of test items are rearranged to corresponding regions in the test flow control interface; according to the first coordinates of each rearranged test item in a first direction in the same region, a magnetic attraction connection relationship between each rearranged test item is determined, and each test item is sequentially connected according to the magnetic attraction connection relationship to form a test item sequence corresponding to each region; a connection path between the test item sequences of adjacent regions is searched, and each test item sequence is sequentially connected according to the connection path to form a target test flow. By using the method, the pixel width of the test item can be used to realize intelligent arrangement of the test item, and the magnetic attraction connection relationship of the test item can be used to realize automatic connection of the test item, so that the generation efficiency of the test flow is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of digital chip inspection and testing machines and testing technology, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for generating a test process. Background Technology

[0002] In the process of digital chip functional testing, the Test Flow View (hereinafter referred to as the Flow View) has become an important part of the chip testing machine software due to its intuitive presentation and convenient human-computer interaction.

[0003] In most existing chip testing software's Flow interface, each test item of the device under test (DUT) is connected via wires. Test results and bin information (grouping information obtained by grouping test results according to preset rules) are also controlled via these wires. During chip testing, the Flow view interface starts from the START item and tests each item sequentially according to the connection order, using the END item as the marker to indicate the end of the test process.

[0004] However, currently, when setting up all the test items for the chip under test, each test item needs to be manually connected sequentially. When testing nearly a hundred test items, a large amount of repetitive manual operation is required, which is time-consuming and labor-intensive. Summary of the Invention

[0005] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for generating a test process that is simple to operate and highly efficient, in order to address the above-mentioned technical problems.

[0006] Firstly, this application provides a method for generating a test process, the method comprising:

[0007] In the test process control interface, create multiple test items;

[0008] Based on the pixel width of each test item, the multiple test items are rearranged to the corresponding areas in the test process control interface;

[0009] Based on the first coordinate of each test item rearranged in the same area in the first direction, the magnetic connection relationship between each test item after rearrangement is determined, and each test item is connected sequentially according to the magnetic connection relationship to form a test item sequence corresponding to each area;

[0010] Search for connection paths between test item sequences in adjacent regions, and connect each test item sequence sequentially according to the connection paths to form a target test process.

[0011] In one embodiment, the step of rearranging the plurality of test items to the corresponding area in the test flow control interface according to the pixel width of each test item includes:

[0012] The pixel widths of a preset number of test items are summed to obtain the region length threshold;

[0013] The pixel width of each test item is sequentially traversed and accumulated. Based on the comparison result between the accumulated width value and the region length threshold, the number of test items displayed in each region is determined.

[0014] Generate a sequence of test items using the number of test items corresponding to each region;

[0015] The test items are rearranged into the corresponding areas of the test process control interface according to the test item sequence.

[0016] In one embodiment, determining the magnetic connection relationship between each rearranged test item based on a first coordinate in a first direction within the same region, and sequentially connecting each test item according to the magnetic connection relationship to form a test item sequence corresponding to each region, includes:

[0017] Based on the first coordinates, determine the first distance in the first direction for each of the test items rearranged in the same area;

[0018] Based on the first distance and the first distance threshold in the first direction, determine the magnetic attraction relationship between each of the test items after rearranging them in the same area;

[0019] Based on the comparison results of the first coordinates between test items that have a magnetic attraction relationship, the magnetic attraction direction between the test items that have a magnetic attraction relationship is determined;

[0020] The magnetic attraction relationship is determined using the magnetic attraction relationship and the magnetic attraction direction;

[0021] According to the magnetic attraction direction in the magnetic attraction connection relationship, each test item with a magnetic attraction relationship is connected in sequence to form a test item sequence corresponding to each region.

[0022] In one embodiment, the search for connection paths between test item sequences in adjacent regions, and the sequential connection of each test item sequence according to the connection paths to form a target test flow, includes:

[0023] Search for the connection path between the last test item in the test item sequence within the i-th region and the first test item in the test item sequence within the adjacent (i+1)-th region;

[0024] The test item sequences are connected from top to bottom according to the connection path to form the target test process.

[0025] In one embodiment, the method further includes:

[0026] In response to a drag operation on a target test item in the target test process, the current drag position of the target test item in the test process control interface is determined;

[0027] Based on the drag position and the second distance threshold in the second direction, filter out the remaining test items in the test process control interface that are not in the same area as the target test item to obtain the test item to be connected.

[0028] Obtain the first distance between the target test item and the test item to be connected in the first direction;

[0029] When the first distance is less than the first distance threshold in the first direction, the magnetic connection relationship between the target test item and the test item to be connected is determined, and the connection is made according to the magnetic connection relationship.

[0030] In one embodiment, the method further includes:

[0031] When the drag position is located between two connected test items in the target test process, the target test item is inserted between the two connected test items to rearrange the target test process and obtain the rearranged target test process.

[0032] In one embodiment, the method further includes:

[0033] When the test item to be connected does not exist, or when the first distance between the test item to be connected and the target test item is greater than the first distance threshold, it is determined that the target test item is separated from the target test process;

[0034] The magnetic connections between the remaining test items adjacent to the target test item before dragging are rearranged in the target test process, and the target test item after dragging is displayed as an independent test process in the test process control interface.

[0035] In one embodiment, the test item contains corresponding test information;

[0036] The method further includes:

[0037] The pixel width of the test item is determined based on the text length of the test information.

[0038] Secondly, this application also provides a test process generation apparatus, comprising:

[0039] The test item creation module is used to create multiple test items in the test process control interface, and each test item contains corresponding test information.

[0040] The test item arrangement module is used to rearrange multiple test items to the corresponding area in the test process control interface according to the pixel width of each test item.

[0041] The magnetic connection module is used to determine the magnetic connection relationship between each rearranged test item in the first direction based on the first coordinate of each rearranged test item in the same area, and to connect each test item sequentially according to the magnetic connection relationship to form a test item sequence corresponding to each area;

[0042] The process generation module is used to search for connection paths between test item sequences in adjacent regions, and connect each test item sequence sequentially according to the connection paths to form a target test process.

[0043] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the test process generation method described in any of the embodiments of the first aspect.

[0044] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the method for generating the test process described in any of the embodiments of the first aspect.

[0045] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the method for generating the test process described in any of the embodiments of the first aspect.

[0046] The aforementioned test flow generation method, apparatus, computer equipment, storage medium, and computer program product, through creating multiple test items in the test flow control interface; rearranging the multiple test items to corresponding areas in the test flow control interface according to the pixel width of each test item; determining the magnetic connection relationship between each rearranged test item in the first direction according to the first coordinate of each rearranged test item in the same area, and sequentially connecting each test item according to the magnetic connection relationship to form a test item sequence corresponding to each area; searching for connection paths between test item sequences in adjacent areas, and sequentially connecting each test item sequence according to the connection path to form a target test flow, can achieve intelligent arrangement of test items in the test flow control interface from the perspective of test item visualization, using the pixel width of the test items, and determining the magnetic connection relationship between test items using the first coordinate of the test items in the first direction, thereby achieving automated connection of test items in the test flow control interface based on the magnetic connection relationship, significantly improving the generation efficiency of the test flow. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is a flowchart illustrating a method for generating a test process in one embodiment;

[0049] Figure 2 This is a flowchart illustrating the test item rearrangement steps in one embodiment;

[0050] Figure 3 This is a flowchart illustrating the test item sequence formation steps in one embodiment;

[0051] Figure 4 This is a flowchart illustrating the target test item dragging steps in one embodiment;

[0052] Figure 5 This is a schematic diagram of a test item in one embodiment;

[0053] Figure 6 This is a flowchart illustrating the method for generating the test process in another embodiment;

[0054] Figure 7 This is a schematic diagram of the target testing process in one embodiment;

[0055] Figure 8 This is a schematic diagram of the step of adding test items in batches in one embodiment;

[0056] Figure 9 This is a structural block diagram of a test process generation device 900 in one embodiment;

[0057] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0060] In one embodiment, such as Figure 1 As shown, a method for generating a test process is provided. This embodiment illustrates the application of this method to a terminal, but it is understood that the method can also be applied to a server, or to a system including both a terminal and a server, and is implemented through the interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart TVs, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. The server can be a standalone server or a server cluster consisting of multiple servers.

[0061] In this embodiment, the method may include steps S102 to S108. Wherein:

[0062] Step S102: Create multiple test items in the test process control interface.

[0063] The Test Flow View interface provides users with visual functions for creating, previewing, executing, or modifying test flows.

[0064] Test items can be used to represent a test method for a certain function or performance of the object under test.

[0065] For example, the terminal can respond to a user's request to run the chip testing machine software by rendering and displaying the test flow control interface of the chip testing machine software in the front-end display component. Through the test flow control interface, in response to user interactions such as clicking the "Add Test Item" button, dragging and dropping test item templates, or selecting items from the test item list, multiple corresponding test items can be created in the test flow control interface.

[0066] Step S104: Based on the pixel width of each test item, rearrange multiple test items to the corresponding areas in the test process control interface.

[0067] Here, pixel width can represent the width of the pixel area (w, h) occupied by the test item when it is rendered and displayed in the test flow control interface. Optionally, in some implementations, the height of the pixel area (w, h) occupied by different test items when they are rendered and displayed in the test flow control interface can be the same to avoid test items located on adjacent view rows from occluding each other.

[0068] The test flow control interface can have multiple areas for rendering and displaying test items. For example, areas can include, but are not limited to, horizontal row areas or vertical column areas.

[0069] Optionally, in some implementations, the terminal can traverse the pixel width of each test item and stack them sequentially. Based on the sum of the pixel widths obtained after stacking, and comparing it with a preset length threshold (such as the maximum view scale that the test flow control interface can currently display, a threshold for user input or selection, or a threshold determined based on the maximum number of test items that each row can accommodate), the area corresponding to each test item in the test flow control interface is determined.

[0070] For example, if test items 1, 2, 3, 4, and 5 exist in the test flow control interface, when the sum of the pixel widths of test item 1 and test item 2 is less than the preset length threshold, and the sum of the pixel widths of test item 1, test item 2, and test item 3 is greater than the preset length threshold, it can be determined that test item 1 and test item 2 can be displayed in the same area, and the first area 1 in the test flow control interface used to render and display test items is taken as the area corresponding to test item 1 and 2.

[0071] Then, the pixel widths of test items 3, 4, and 5 are superimposed. When the sum of the pixel widths of test items 3, 4, and 5 is still less than the preset length threshold, it can be determined that test items 3, 4, and 5 can be displayed in the same area. The second area 2 in the test process control interface used to render and display test items is taken as the area corresponding to test items 3, 4, and 5.

[0072] The terminal can determine the pixel coordinates of each test item after rearrangement based on the coordinates of each region and the pixel width of each test item. For example, when the coordinates of region 1 above are... (The coordinates are, in order, the bottom left corner coordinate, the bottom right corner coordinate, the top right corner coordinate, and the top left corner coordinate, and so on). When the pixel width of test item 1 is w1 pixels and the pixel width of test item 2 is w2 pixels, it can be determined that the pixel coordinates of test item 1 after rearrangement are... The pixel coordinates of test item 2 after rearrangement are Therefore, based on the pixel coordinates of each test item after rearrangement, multiple test items are rearranged into the corresponding areas in the test flow control interface.

[0073] Step S106: Based on the first coordinate of each rearranged test item in the first direction within the same area, determine the magnetic connection relationship between each rearranged test item, and connect each test item sequentially according to the magnetic connection relationship to form a test item sequence corresponding to each area.

[0074] The first direction can be horizontal or vertical. The first coordinate can represent the coordinate value of the center point of the test item or any corner point on the edge of the test item in the first direction.

[0075] For example, the terminal can perform the following operations on several (there can be one or more) test items rearranged in step S104 and located in the same area: sort each test item according to the value of the first coordinate from smallest to largest or from largest to smallest. Determine adjacent test items according to the sorting result. Alternatively, the distance between test items can be calculated using the first coordinate, and adjacent test items can be determined according to the distance. Establish a magnetic connection relationship between adjacent test items, and connect each test item sequentially according to the magnetic connection relationship to form a test item sequence corresponding to the area. Thus, a test item sequence corresponding to the area where each test item is located after rearrangement in step S104 is obtained.

[0076] Step S108: Search for connection paths between test item sequences in adjacent regions, and connect each test item sequence sequentially according to the connection paths to form the target test process.

[0077] For example, the terminal can search for connection paths between test item sequences within adjacent areas in the test flow control interface. This can be achieved by searching for connection paths using the coordinates of the first test item in each sequence, the coordinates of the last test item in each sequence, or the coordinates of the last test item in one sequence and the first test item in the next sequence. Based on the order of each area in the test flow control interface, each test item sequence is connected sequentially from top to bottom using the searched connection paths to form the target test flow.

[0078] In the above-described method for generating test flows, multiple test items are created in the test flow control interface. Based on the pixel width of each test item, these items are rearranged to corresponding areas within the test flow control interface. The magnetic connection between each rearranged test item is determined based on its first coordinate in the first direction within the same area. Each test item is then connected sequentially according to this magnetic connection to form a sequence of test items corresponding to each area. A connection path is searched between test item sequences in adjacent areas, and each sequence is connected sequentially according to this path to form the target test flow. This method, from the perspective of test item visualization, utilizes the pixel width of the test items to achieve intelligent arrangement of test items in the test flow control interface. It also utilizes the first coordinate in the first direction to determine the magnetic connection between test items, thereby achieving automated connection of test items in the test flow control interface based on the magnetic connection, significantly improving the efficiency of test flow generation.

[0079] In one exemplary embodiment, the test item may contain corresponding test information.

[0080] The method for generating the test process provided in this application may further include: determining the pixel width of the test item based on the text length of the test information.

[0081] The test information may include, but is not limited to, any one or more of the following: test item name, test item status, and bin information of the test item output port (grouping information obtained by grouping test results according to preset rules).

[0082] For example, for the multiple test items created in step S102 of the above embodiments, the terminal can determine the pixel width of each test item in the test flow control interface according to the text length of the test information built into each test item, so that each test item can fully display its built-in complete test information when it is rendered and displayed in the test flow control interface, while avoiding the situation where multiple test items obscure each other when they are rendered and displayed in the test flow control interface.

[0083] Optionally, in some implementations, the test information may be information pre-configured in the inherent attributes of the test item. After a test item is created, the terminal can automatically read the corresponding test information directly from the inherent attributes of the test item. Alternatively, in other implementations, the test information may be determined by the terminal in response to user-triggered input or selection operations.

[0084] In this embodiment, since the pixel width of the test item is determined according to the text length of the test information built into the test item, the test information of each test item can be fully displayed, so that the target test process generated based on the connection of the test items is more intuitive and clear.

[0085] In one exemplary embodiment, such as Figure 2 As shown, step S104, which involves rearranging multiple test items to the corresponding areas in the test flow control interface based on the pixel width of each test item, may also include steps S202 to S208. Wherein:

[0086] Step S202: Add the pixel widths of a preset number of test items to obtain the region length threshold.

[0087] The preset quantity can be used to constrain the maximum number of test items displayed in the first row of the subsequently generated target test flow.

[0088] The region length threshold can be used to constrain the sum of the pixel widths of all test items displayed in the same region.

[0089] For example, the terminal can respond to the user's input / selection operation and obtain a preset number. According to the order of the test items in the current test flow control interface, the pixel widths of the preset number of test items are added together, and the sum of the pixel widths of the preset number of test items is used as the region length threshold.

[0090] Alternatively, in some implementations, the terminal can calculate the length threshold using the following formula:

[0091] ,

[0092] Where L can represent the region length threshold. It can represent the pixel width of test items 1, 2, ..., c. c can represent the preset quantity.

[0093] Step S204: Iterate through the pixel width of each test item and perform accumulation processing. Based on the comparison result between the accumulated width value obtained from the accumulation processing and the region length threshold, determine the number of test items displayed in each region.

[0094] For example, the terminal can sequentially traverse the pixel width of each test item and perform accumulation processing according to the order of the test items in the current test process control interface. After each accumulation processing, the accumulated width value obtained in this accumulation processing is compared with the region length threshold obtained in step S202.

[0095] If the accumulated width value is less than the region length threshold, the next accumulation operation is performed using the pixel width of the next test item. This continues until the accumulated width value is greater than the region length threshold. The number of test items before this accumulation process is then used as the number of test items displayed in the same region on the test flow control interface. The test item accumulated this time is then used as the first test item in the next region. This process is repeated, iterating through the pixel widths of subsequent test items and performing the accumulation operation, until all test items have been traversed. This yields the number of test items displayed in each region.

[0096] Step S206: Generate a sequence of test items using the number of test items corresponding to each region.

[0097] For example, the terminal can construct an ordered array of the number of test items displayed in each area as determined in step S204 according to the arrangement order of each area in the test flow control interface, to obtain the test item sequence V(n), where n represents the number of rows occupied by the test item when it is displayed in the test flow control interface.

[0098] For example, in the test flow control interface, regions a and b are distributed from top to bottom. When the terminal executes the operation in step S204, it can determine that the number of test items corresponding to region a is 2, and the number of test items corresponding to region b is 3. Based on the arrangement order of regions a and b, a sequence of test items can be generated. .

[0099] Step S208: Rearrange multiple test items to the corresponding areas in the test process control interface according to the test item number sequence.

[0100] For example, the terminal can determine which area each test item is in and which position it is in within that area based on the number of test items corresponding to each area in the test item count column and the current test item arrangement / creation order in the test flow control interface.

[0101] For example, in the current test flow control interface, test items A, B, and C are distributed from left to right. Based on the sequence of test items... This allows us to determine that the position of test item A is the first position in the first area of ​​the test flow control interface, the position of test item B is the second position in the first area, and the position of test item C is the first position in the second area.

[0102] The terminal can refer to the method for determining the pixel coordinates of test items after rearrangement provided in step S104 above, and use the coordinates of the region and the position information of the test items determined above to generate the pixel coordinates of the rearranged test items. Multiple test items can then be rearranged to the corresponding regions in the test flow control interface according to the rearranged pixel coordinates.

[0103] In some practical applications, the text length of the test information embedded in different test items may vary, which can easily lead to inconsistent pixel widths for multiple test items in the test flow control interface. The test item rearrangement method provided in this embodiment can utilize a preset number set by the user to determine the region length threshold, arranging as many test items as possible in each row, thus fully utilizing the visual view range of the test flow control interface. Furthermore, since this embodiment uses the sum of the pixel widths of a preset number of test items as the region length threshold to constrain test items displayed in the same region, it also ensures that the sum of the pixel widths of test items in non-first rows of the target test flow constructed based on the test item sequence will not exceed the sum of the pixel widths of the test items in the first row, resulting in a neater and more aesthetically pleasing graphical layout of the target test flow.

[0104] In one exemplary embodiment, such as Figure 3 As shown, step S106 above, which determines the magnetic connection relationship between each rearranged test item in the first direction based on the first coordinate of each rearranged test item in the same area, and connects each test item sequentially according to the magnetic connection relationship to form a test item sequence corresponding to each area, may also include the following steps S302 to S310. Wherein:

[0105] Step S302: Determine the first distance in the first direction for each test item after rearrangement in the same area based on the first coordinate.

[0106] Step S304: Determine the magnetic attraction relationship between each test item after rearrangement in the same area based on the first distance and the first distance threshold in the first direction.

[0107] For example, the terminal can perform calculations using the first coordinates, taking the difference between the first coordinates of each pair of test items as the first distance between them in the first direction. When the first distance is less than a first distance threshold in the first direction, the currently compared pair of test items are determined to be adjacent test items, and a magnetic attraction relationship is established between the adjacent test items. This yields the magnetic attraction relationship between each test item after rearrangement within the same area.

[0108] Step S306: Determine the magnetic attraction direction between test items that have a magnetic attraction relationship based on the first coordinate comparison result between the test items that have a magnetic attraction relationship.

[0109] Step S308: Determine the magnetic connection relationship using the magnetic attraction relationship and magnetic attraction direction.

[0110] For example, when the first coordinate of test item x is less than the first coordinate of test item y with which it has a magnetic attraction relationship, the terminal can determine that the magnetic attraction direction of test item x is from left to right, while the magnetic attraction direction of test item y is from right to left. Using the magnetic attraction relationship determined in step S304 and the magnetic attraction direction determined in step S306, a magnetic attraction connection relationship can be established between adjacent test items rearranged in the same area.

[0111] Step S310: According to the magnetic attraction direction in the magnetic attraction connection relationship, connect each test item with magnetic attraction relationship in sequence to form a test item sequence corresponding to each region.

[0112] For example, the terminal can start from the first test item in each area and connect the test item to another test item with which it has a magnetic attraction relationship in a magnetic attraction manner according to the magnetic attraction direction in the magnetic attraction connection relationship corresponding to each test item, thereby forming a test item sequence corresponding to each area.

[0113] In this embodiment, the first distance between test items is determined by using the first coordinate of each test item rearranged in the same area in the first direction. The magnetic attraction relationship between test items is determined by comparing the first distance with the first distance threshold. The magnetic attraction direction between test items is determined by comparing the first coordinates. Thus, the magnetic attraction relationship constructed by the magnetic attraction relationship and the magnetic attraction direction is used to realize the automatic connection of test items to form a corresponding test item sequence. This can improve the efficiency and accuracy of constructing the magnetic attraction relationship and realize the automatic connection of test items, thereby improving the generation efficiency of the test item sequence.

[0114] In an exemplary embodiment, step S108 above may further include the following steps: searching for the connection path between the last test item in the test item sequence within the i-th region and the first test item in the test item sequence within the adjacent (i+1)-th region. Connecting pairs of test item sequences from top to bottom according to the connection path to form the target test flow.

[0115] For example, in the test flow control interface with multiple test item sequences formed after performing step S310, the terminal can start from the last test item in the test item sequence of the i-th (i=1,2,3,...,n) region, perform pathfinding in the up, down, left, and right directions with a fixed step size (e.g., 40 pixels), calculate the path length from each pixel point that is a fixed step size away from the last test item to the first test item in the test item sequence of the adjacent i+1 region, and determine the pixel point with the shortest path length as the path node.

[0116] Starting from this path node, continue pathfinding with a fixed step size. Calculate the path length from each pixel at a fixed step size from this path node to the first test item in the test item sequence within the (i+1)th region. Repeat the path node determination operation until the first test item in the test item sequence within the (i+1)th region is reached. Connect the determined path nodes sequentially to form the shortest connection path between the last test item in the test item sequence within the i-th region and the first test item in the adjacent (i+1)th region's test item sequence.

[0117] Optionally, in some implementations, each test item and the pixels at its boundary can be added to a closed list as obstacle avoidance points. This prevents path calculations from being performed on these obstacle avoidance points during pathfinding, reducing the amount of data computation required by the terminal during pathfinding and improving the efficiency of connection path determination. It also ensures that connection paths between multiple test item sequences do not overlap or obstruct test items, making subsequent target testing processes more intuitive and clear. Furthermore, after each connection path is formed, the pixels on the connection path can also be added to the closed list as obstacle avoidance points to prevent overlapping or intersection between connection paths.

[0118] The terminal can connect the last test item in the test item sequence of each area to the first test item in the next adjacent area according to the determined connection path, thus forming a complete target test process.

[0119] In some practical applications, the sum of pixel widths for each test item sequence may differ, potentially leading to different positions for the first and last test items within each sequence. The target test flow connection method provided in this embodiment utilizes path search to find the shortest connection path, automating the connection of test items and simplifying the generation of the target test flow, thus improving its efficiency. Furthermore, the connection path determination method provided in this embodiment avoids overlapping and intersecting connection paths between multiple test item sequences, making the target test flow more intuitive and clear.

[0120] In one exemplary embodiment, such as Figure 4 As shown, the test process generation method provided in this application may further include the following steps S402 to S408. Wherein:

[0121] Step S402: In response to the drag operation of the target test item in the target test process, determine the current drag position of the target test item in the test process control interface.

[0122] For example, the terminal can detect drag operations triggered by the user through the test flow control interface, and take the dragged test item in the target test flow as the current target test item. In response to the user's drag operation on the target test item in the target test flow, the terminal determines the current drag position of the target test item in the test flow control interface after it has been dragged.

[0123] Step S404: Based on the drag position and the second distance threshold in the second direction, filter out the remaining test items in the test process control interface that are not in the same area as the target test item, and obtain the test item to be connected.

[0124] The second direction can represent a direction different from the first direction. For example, when the first direction is horizontal, the second direction can be vertical. When the first direction is vertical, the second direction can be horizontal.

[0125] For example, the terminal can obtain the second coordinates of the remaining test items within the target test flow in the second direction within the test flow control interface. Using the second coordinates of the remaining test items and the coordinates of the target test item's drag position in the second direction, the second distance between the remaining test items and the target test item in the second direction is determined. Test items whose second distance from the target test item is greater than a second distance threshold are considered test items not in the same area as the target test item in the test flow control interface and are filtered. The remaining test items in the target test flow after filtering are considered as the test items to be connected to the target test item.

[0126] Alternatively, in some implementations, the terminal can filter out the remaining test items if the following relationship is satisfied:

[0127] ,

[0128] in, It can represent the second coordinate where the target test item is located. It can represent the second coordinate where the other test items are located. This can represent the second distance threshold.

[0129] Step S406: Obtain the first distance between the target test item and the test item to be connected in the first direction.

[0130] For example, the terminal can determine the first distance between the target test item and the test item to be connected in the first direction based on the coordinate value of the target test item's current drag position in the first direction and the first coordinate of the test item to be connected in the first direction in the test flow control interface obtained after filtering in step S404.

[0131] Step S408: When the first distance is less than the first distance threshold, determine the magnetic connection relationship between the target test item and the test item to be connected, and connect them according to the magnetic connection relationship.

[0132] In this embodiment, magnetic connections are used to directly attach and connect test items in pairs. Compared to the traditional method of connecting test items by drawing lines between them, this allows for a tighter connection between test items, enabling the arrangement of more test items in the test flow control interface. Compared to the traditional method of determining the connection relationship by traversing the distances between test items, the technique in this embodiment performs two coordinate comparison operations in different directions. First, it filters out test items that are not in the same area as the dragged target test item in the second direction. Then, based on the comparison results of the first distance and the first distance threshold between the remaining test items to be connected and the target test item in the first direction, as well as the comparison results of the coordinate values ​​of the test items to be connected and the target test item in the first direction, the magnetic connection relationship is determined, achieving automated connection between test items. This reduces the computational load during test item connection and improves the connection efficiency.

[0133] Optionally, in some implementations, the first direction can be set to the horizontal direction. When the horizontal coordinate of the target test item is less than the horizontal coordinate of the test item to be connected, and the horizontal distance between the target test item and the test item to be connected is less than the horizontal distance threshold, the target test item can be magnetically attracted from left to right to the left side of the test item to be connected, and the output port of the target test item can be magnetically connected to the input port of the test item to be connected.

[0134] Alternatively, when the x-coordinate of the target test item is greater than the x-coordinate of the test item to be connected, and the horizontal distance between the target test item and the test item to be connected is less than the horizontal distance threshold, the target test item can be magnetically attracted from right to left to the right side of the test item to be connected, and the input port of the target test item can be magnetically connected to the output port of the test item to be connected.

[0135] Optionally, in some implementations, when the first direction is horizontal, the terminal can determine the magnetic attraction relationship if the following relationship is satisfied:

[0136] ,

[0137] in, It can represent the x-coordinate of test item 1. It can represent the x-coordinate of test item 2. It can represent the horizontal distance threshold.

[0138] Optionally, in some implementations, the terminal can also configure the left and top ports of the test item as input ports, and the right and bottom ports of the test item as output ports. For example... Figure 5 As shown, the terminal can also use different display styles to distinguish the output ports under different test results.

[0139] For example, the output port on the right side of the test item can be marked in green (i.e., Figure 5 The port at (1,1) is used to identify the output port when the test result is passed. That is, the output port on the right can contain Pass Bin information (grouping information obtained by grouping test results that are passed based on preset rules).

[0140] Correspondingly, the output ports below the test items can also be marked in red (i.e., Figure 5 The port at (2,2) is used to identify the output port when the test result is a failure. That is, the output port below can contain Fail Bin information (grouping information obtained by grouping test results that are failures based on preset rules).

[0141] Compared with traditional techniques that require manual connection of each test item and sub-bin information, this method greatly simplifies the complexity of connecting test items and makes the test information and connection relationships of test items more intuitive and clear.

[0142] Optionally, in other embodiments, when the terminal magnetically connects adjacent test items based on the magnetic connection relationship, it can determine, in response to the user's selection operation, that the output interface to the right of the test item corresponding to a pass result, or the output interface below the test item corresponding to a failure result, needs to be connected. The input ports to the left and above the test item can be connected to different arbitrary input ports, without specific limitations.

[0143] Furthermore, since the pixel widths of each test item differ in practical applications, and the connections between test items are often made by linking the right side of the test item to the test result through corresponding output ports, this embodiment focuses on the implementation method of left-right magnetic connection between test items. However, those skilled in the art will understand that, based on the magnetic connection method provided in this embodiment, it is also possible to achieve top-bottom magnetic connection of test items.

[0144] Optionally, in other implementations, adjacent test items displayed in the same area in the target test flow, as well as multiple sequences of test items connected end-to-end, can also be connected magnetically. When the terminal detects a drag operation triggered by the user, the magnetic connection between the target test item and the other test items can be released first, and then the magnetic connection between the target test item and the test items to be connected in the target test flow can be rearranged according to the drag position of the target test item after dragging.

[0145] In one exemplary embodiment, in Figure 4 Based on the method for generating the test flow shown, it may further include: when the drag position is located between two connected test items in the target test flow, inserting the target test item between the two connected test items to rearrange the target test flow and obtain the rearranged target test flow.

[0146] For example, when there are multiple test items to be connected that are less than a horizontal threshold in horizontal distance from the target test item, it can be determined whether the multiple test items to be connected are already connected. If the multiple test items to be connected are already connected, it can be determined that the drag position of the target test item is located between any two connected test items in the target test flow. The target test item can be inserted between any two connected test items to release the magnetic connection between the two test items to be connected, thereby rearranging the target test flow: for the test item to be connected on the left, its output port is connected to the input port of the target test item. For the test item to be connected on the right, its input port is connected to the output port of the target test item, resulting in the rearranged target test flow.

[0147] In this embodiment, the target test flow is rearranged by inserting the dragged target test item between two connected test items, resulting in a rearranged target test flow. This allows for flexible adjustment of the order of test items in the target test flow.

[0148] In one exemplary embodiment, in Figure 4 Based on the method for generating the test process shown, it may also include:

[0149] When the test item to be connected does not exist, or when the first distance between the test item to be connected and the target test item is greater than the first distance threshold, the target test item is determined to be separated from the target test process;

[0150] The magnetic connection between the target test item and the other test items adjacent to the target test item before dragging is rearranged in the target test process, and the target test item after dragging is displayed as an independent test process in the test process control interface.

[0151] For example, after the terminal performs the filtering operation in step S404 to filter all other test items in the target test process, that is, when the test item to be connected does not exist, or when the terminal performs step S406 to obtain the first distance and determines that the first distance between the test item to be connected and the target test item is greater than the first distance threshold, it can be determined that there is no test item in the target test process that can be connected to the currently dragged target test item. That is, it can be determined that the target test item has been separated from the target test process at this time.

[0152] The terminal can rearrange the magnetic connections between other test items adjacent to the target test item before dragging in the target test flow: when there is a test item in the target test flow connected to the output port of the target test item before dragging, a magnetic connection is established between the test item connected to the input port of the target test item before dragging and the test item connected to the output port of the target test item before dragging, so that the output port of the test item to the left of the target test item before dragging is connected to the input port of the test item to the right of the target test item before dragging, forming the rearranged target test flow. Otherwise, the magnetic connection of the test item to the left of the target test item before dragging is directly released, serving as the END item of the test flow.

[0153] The terminal can display the dragged target test item as an independent test process at its current dragged position in the test process control interface. Alternatively, the dragged target test item can be moved to an empty space in the test process control interface, such as below the rearranged target test process.

[0154] In this embodiment, by rearranging the connection relationships of test items in the target test process and the display position of the target test items in the test process control interface after the target test items are separated from the target test process, it is possible to flexibly adjust the target test items at any position in the target test process.

[0155] In one exemplary embodiment, such as Figure 6 As shown, a method for generating a test process is also provided, including the following steps S602 to S610. Wherein:

[0156] Step S602: Create multiple test items in the test process control interface, and determine the pixel width of each test item based on the built-in test information in each test item.

[0157] For example, the terminal may be equipped with chip testing machine software, which may include a test item content design module, a test item UI (User Interface) redrawing module, a parameter configuration module, a test item magnetic collision module, a test item intelligent sorting module, a Flow (test process) interface rearrangement module, and a quick operation module.

[0158] The terminal can display a test flow control interface to the user by running chip testing software. Responding to user-triggered interactive operations, multiple test items are created in the test flow control interface. The parameter configuration module receives the test information configured for each test item from the user input. The test item content design module embeds the test item name from the test information into each test item and determines the pixel width occupied by the test item when displayed in the test flow control interface based on the text length of the test item name.

[0159] The test item UI redrawing module configures the ports on the left and top of each test item as input ports. It also configures the port on the right of each test item as the output port corresponding to a pass result, embedding the Pass bin information (grouping information obtained by grouping test results with pass results based on preset rules) into the right-hand output port. Finally, the test item UI redrawing module configures the port below each test item as the output port corresponding to a failure result, embedding the Fail bin information (grouping information obtained by grouping test results with failure results based on preset rules) into the bottom output port.

[0160] Step S604: Iterate through the pixel width of each test item and perform accumulation processing. Based on the comparison result between the accumulated width value obtained from the accumulation processing and the region length threshold, determine the number of test items displayed in the same row region and construct a test item sequence.

[0161] For example, the terminal can receive a preset number (e.g., 10) of test items input by the user through the intelligent test item sorting module. Based on the distribution order or creation order of the test items in the current test flow control interface, starting from the first test item, the terminal sequentially obtains the pixel width of the preset number of test items. The sum of the pixel widths of the preset number of test items is then used as the region length threshold.

[0162] The intelligent sorting module iterates through the pixel width of each test item and accumulates it, comparing the accumulated width value with a region length threshold. Based on the comparison result, the number of test items displayed in the same row is determined. A test item count is constructed using the number of test items corresponding to each row.

[0163] Step S606: Rearrange multiple test items to their corresponding row positions according to the test item sequence, establish magnetic connection relationships based on the horizontal coordinates of the test items, and connect multiple test items in the same row area from left to right according to the magnetic connection relationships to form a multi-row test item sequence.

[0164] For example, the terminal can use the Flow interface rearrangement module to determine the row position of each test item based on the test item sequence, and rearrange multiple test items in the test flow control interface to the corresponding row position (i.e., the position of the test item in which row region). The test item magnetic collision module determines the horizontal distance between test items based on their x-coordinates, establishing magnetic attraction relationships between test items whose horizontal distance is less than a threshold. The magnetic attraction direction between test items is determined based on the x-coordinate comparison results. Magnetic connection relationships are established using the magnetic attraction relationships and directions. For each row of test items, the output and input ports of two adjacent test items within the same row region are magnetically connected sequentially from left to right according to the magnetic connection relationships, thus forming a multi-row test item sequence.

[0165] Step S608: Search for the connection path between the last test item in each row of the test item sequence and the first test item in the next row of the test item sequence.

[0166] For example, the terminal can rearrange modules through the Flow interface and set test items and the pixels on the boundaries of test items as obstacle avoidance points to turn off attention to the path passing through the obstacle avoidance points, and search for the shortest connection path between the last test item in each row of the test item sequence and the first test item in the next row of the test item sequence in a fixed step size (e.g., 40 pixels).

[0167] Optionally, in some implementations, when a test item is detected to be outside any row of the test item sequence, the test item can be displayed as an independent test process in the blank space below the test item sequence in the test process control interface through the Flow interface rearrangement module.

[0168] Optionally, in other embodiments, the terminal can also respond to dragging operations on any test item via a shortcut operation module, filtering out other test items in the test flow control interface that are not currently in the same row as the dragged test item based on the dragged position of the test item. Based on the dragged position of the test item and the horizontal distance between the remaining test items to be connected after filtering, the magnetic connection relationship between the dragged test item and the test items to be connected is rearranged. The specific rearrangement method can be implemented with reference to steps S402 to S408 provided in the above embodiments. Similarly, the terminal can also insert test items between pairs of already connected test items, or separate test items from the test item sequence, using the shortcut operation module with reference to the operation steps provided in the above embodiments.

[0169] Step S610: Connect the test item sequences from top to bottom according to the connection path to form the target test process.

[0170] For example, the terminal can use the test item magnetic collision module to connect pairs of test item sequences sequentially from top to bottom, that is, from the last test item of the previous row to the first test item of the next row, according to the shortest connection path between rows, forming a sequence like this. Figure 7 The target test process is shown.

[0171] Optionally, in some implementations, the chip testing machine software may also include a batch addition driver module for test items. For example... Figure 8 As shown, the terminal can receive test information for multiple test items input by the user in batches through the batch add driver module: ItemName (test item name), TestName (test case name), SW_Bin (switch group), HW_Bin (hardware group), and Flag (test item status).

[0172] according to Figure 8 The sequence numbers 1-8 shown represent multiple test items created sequentially in the test flow control interface. Each test item contains built-in test information, and its pixel width is equal to the text length of the built-in test information. The test item intelligent sorting module and the Flow interface rearrangement module are invoked to execute steps S604 to S610 above, generating the corresponding target test flow.

[0173] In this embodiment, by embedding the test item name and determining the pixel width of the test item based on its name length, the test item name can be displayed completely, preventing overlapping and occlusion between multiple test items. A length threshold for constraining the length of the test item sequence is obtained by adding the pixel widths of a preset number of test items. The pixel width of each test item is then accumulated sequentially. Based on the comparison between the accumulated width value and the region length threshold, the number of test items displayed in each row is determined to construct a test item sequence. Multiple tests are distributed to their corresponding row positions according to this sequence. From left to right, the output and input ports of adjacent test items in the same row are magnetically connected. A fixed step size is used to search for the shortest connection path between rows, thus sequentially connecting to form the target test flow. This not only simplifies the connection steps of the target test flow and improves its generation efficiency but also makes the target test flow more intuitive and clear. Furthermore, by responding to the user's drag operation triggered by the test item, the dragged test item can be inserted between two connected test items, or the dragged test item can be brought close to a certain test item to achieve magnetic connection between test items, or the dragged test item can be separated from the test item sequence to form an independent test process. This enables flexible adjustment and change of test items and target test processes, simplifying the user's operation.

[0174] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0175] Based on the same inventive concept, this application also provides a test flow generation apparatus for implementing the test flow generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations of one or more test flow generation apparatus embodiments provided below can be found in the limitations of the test flow generation method described above, and will not be repeated here.

[0176] In one exemplary embodiment, such as Figure 9As shown, a test flow generation device 900 is provided, including: a test item creation module 902, a test item arrangement module 904, a magnetic connection module 906, and a flow generation module 908, wherein:

[0177] The test item creation module 902 is used to create multiple test items in the test process control interface.

[0178] The test item arrangement module 904 is used to rearrange multiple test items to the corresponding area in the test flow control interface according to the pixel width of each test item.

[0179] The magnetic connection module 906 is used to determine the magnetic connection relationship between each rearranged test item based on the first coordinate of each test item in the first direction in the same area, and to connect each test item in sequence according to the magnetic connection relationship to form a test item sequence corresponding to each area.

[0180] The process generation module 908 is used to search for connection paths between test item sequences in adjacent areas, and connect each test item sequence sequentially according to the connection path to form the target test process.

[0181] In an exemplary embodiment, the test item arrangement module 904 is further configured to add the pixel widths of a preset number of test items to obtain a region length threshold; sequentially traverse the pixel width of each test item and perform accumulation processing; determine the number of test items to be displayed in each region based on the comparison result between the accumulated width value obtained from the accumulation processing and the region length threshold; generate a test item sequence using the number of test items corresponding to each region; and rearrange multiple test items to the corresponding regions in the test process control interface according to the test item sequence.

[0182] In an exemplary embodiment, the magnetic connection module 906 is further configured to: determine a first distance in a first direction for each test item rearranged in the same area based on a first coordinate; determine a magnetic attraction relationship between each test item rearranged in the same area based on the first distance and a first distance threshold in the first direction; determine a magnetic attraction direction between test items with a magnetic attraction relationship based on a comparison result of the first coordinates between the test items with a magnetic attraction relationship; determine a magnetic connection relationship using the magnetic attraction relationship and the magnetic attraction direction; and sequentially connect each test item with a magnetic attraction relationship according to the magnetic attraction direction in the magnetic connection relationship to form a test item sequence corresponding to each area.

[0183] In an exemplary embodiment, the process generation module 908 is further configured to search for the connection path between the last test item in the test item sequence in the i-th region and the first test item in the test item sequence in the adjacent i+1-th region; and connect the test item sequences from top to bottom according to the connection path to form the target test process.

[0184] In an exemplary embodiment, the test flow generation device 900 further includes: a test item dragging module, configured to, in response to a dragging operation on a target test item in the target test flow, determine the current dragging position of the target test item in the test flow control interface; filter out other test items in the test flow control interface that are not in the same area as the target test item based on the dragging position and a second distance threshold in a second direction, to obtain test items to be connected; obtain a first distance between the target test item and the test item to be connected in a first direction; when the first distance is less than the first distance threshold, determine the magnetic connection relationship between the target test item and the test item to be connected, and connect them according to the magnetic connection relationship.

[0185] In an exemplary embodiment, the test item dragging module is further configured to insert the target test item between the connected test items when the dragging position is between the connected test items in the target test flow, so as to rearrange the target test flow and obtain the rearranged target test flow.

[0186] In an exemplary embodiment, the test item dragging module is further configured to determine that the target test item is separated from the target test process when the test item to be connected does not exist, or when the first distance between the test item to be connected and the target test item is greater than the first distance threshold; rearrange the magnetic connection relationship between the remaining test items in the target test process that are adjacent to the target test item before dragging; and display the target test item after dragging as an independent test process in the test process control interface.

[0187] Each module in the above-described test process generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0188] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a method for generating a test process. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0189] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0190] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0191] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method embodiments.

[0192] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0193] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0194] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0195] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for generating a test flow, characterized in that, The method includes: In the test process control interface, create multiple test items; Based on the pixel width of each test item, the multiple test items are rearranged to the corresponding areas in the test process control interface; Based on the first coordinate of each test item rearranged in the same area in the first direction, the magnetic connection relationship between each test item after rearrangement is determined, and each test item is connected sequentially according to the magnetic connection relationship to form a test item sequence corresponding to each area; Search for connection paths between test item sequences in adjacent regions, and connect each test item sequence sequentially according to the connection paths to form a target test process.

2. The method according to claim 1, characterized in that, The step of rearranging multiple test items to the corresponding area in the test process control interface according to the pixel width of each test item includes: The pixel widths of a preset number of test items are summed to obtain the region length threshold; The pixel width of each test item is sequentially traversed and accumulated. Based on the comparison result between the accumulated width value and the region length threshold, the number of test items displayed in each region is determined. Generate a sequence of test items using the number of test items corresponding to each region; The test items are rearranged into the corresponding areas of the test process control interface according to the test item sequence.

3. The method according to claim 1, characterized in that, The step of determining the magnetic connection relationship between each rearranged test item in a first direction based on the first coordinate of each rearranged test item in the same area, and sequentially connecting each test item according to the magnetic connection relationship to form a test item sequence corresponding to each area, includes: Based on the first coordinates, determine the first distance in the first direction for each of the test items rearranged in the same area; Based on the first distance and the first distance threshold in the first direction, determine the magnetic attraction relationship between each of the test items after rearranging them in the same area; Based on the comparison results of the first coordinates between test items that have a magnetic attraction relationship, the magnetic attraction direction between the test items that have a magnetic attraction relationship is determined; The magnetic attraction relationship is determined using the magnetic attraction relationship and the magnetic attraction direction; According to the magnetic attraction direction in the magnetic attraction connection relationship, each test item with a magnetic attraction relationship is connected in sequence to form a test item sequence corresponding to each region.

4. The method according to claim 1, characterized in that, The search for connection paths between test item sequences in adjacent regions, and the sequential connection of each test item sequence according to the connection paths to form a target test flow, includes: Search for the connection path between the last test item in the test item sequence within the i-th region and the first test item in the test item sequence within the adjacent (i+1)-th region; The test item sequences are connected from top to bottom according to the connection path to form the target test process.

5. The method according to claim 1, characterized in that, The method further includes: In response to a drag operation on a target test item in the target test process, the current drag position of the target test item in the test process control interface is determined; Based on the drag position and the second distance threshold in the second direction, filter out the remaining test items in the test process control interface that are not in the same area as the target test item to obtain the test item to be connected. Obtain the first distance between the target test item and the test item to be connected in the first direction; When the first distance is less than the first distance threshold in the first direction, the magnetic connection relationship between the target test item and the test item to be connected is determined, and the connection is made according to the magnetic connection relationship.

6. The method according to claim 5, characterized in that, The method further includes: When the drag position is located between two connected test items in the target test process, the target test item is inserted between the two connected test items to rearrange the target test process and obtain the rearranged target test process.

7. The method according to claim 5, characterized in that, The method further includes: When the test item to be connected does not exist, or when the first distance between the test item to be connected and the target test item is greater than the first distance threshold, it is determined that the target test item is separated from the target test process; The magnetic connections between the remaining test items adjacent to the target test item before dragging are rearranged in the target test process, and the target test item after dragging is displayed as an independent test process in the test process control interface.

8. The method according to any one of claims 1 to 7, characterized in that, The test items contain corresponding test information; The method further includes: The pixel width of the test item is determined based on the text length of the test information.

9. A test procedure generation device, characterized in that, The device includes: The test item creation module is used to create multiple test items in the test process control interface; The test item arrangement module is used to rearrange multiple test items to the corresponding area in the test process control interface according to the pixel width of each test item. The magnetic connection module is used to determine the magnetic connection relationship between each rearranged test item in the first direction based on the first coordinate of each rearranged test item in the same area, and to connect each test item sequentially according to the magnetic connection relationship to form a test item sequence corresponding to each area; The process generation module is used to search for connection paths between test item sequences in adjacent regions, and connect each test item sequence sequentially according to the connection paths to form a target test process.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.