Test flow generation method and apparatus, and computer-readable storage medium

MYPI2026002328A0Undetermined Publication Date: 2025-05-10SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI2026002328
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-10
Filing Date
2024-05-08
Publication Date
2025-05-10

AI Technical Summary

Technical Problem

During the digital chip function testing process, the prior art requires manual connection of each test item, resulting in a large number of repeated manual operations when nearly 100 test items are needed, which is time-consuming and labor-consuming.

Method used

By creating multiple test items in the test process control interface, rearrange them to the corresponding area according to the pixel width of each test item, and automatically connect the test items through the magnetic connection relationship to form a target test process.

Benefits of technology

It greatly improves the generation efficiency of the test process, reduces the time and labor of manual operation, and simplifies the test item connection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure PI2026002328_DRAWING_001
    Figure PI2026002328_DRAWING_001
  • Figure PI2026002328_DRAWING_002
    Figure PI2026002328_DRAWING_002
  • Figure PI2026002328_DRAWING_003
    Figure PI2026002328_DRAWING_003
Patent Text Reader

Abstract

The present application relates to a test flow generation method and apparatus, a computer device, and a storage medium. The method comprises: creating a plurality of test items in a test flow control interface; rearranging the plurality of test items into corresponding areas in the test flow control interface on the basis of the pixel width of each test item; on the basis of first coordinates of rearranged test items in a same area in a first direction, determining a magnetic attraction connection relationship between rearranged test items, and sequentially connecting the test items according to the magnetic attraction connection relationship to form a test item sequence corresponding to each area; and searching for connection paths between the test item sequences in adjacent areas, and sequentially connecting the test item sequences on the basis of the connection paths to form a target test flow. Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

Test process generation method, device and computer-readable storage medium

[0001] Related applications

[0002] This application claims priority to Chinese patent application number 2023114972258, filed on November 10, 2023, entitled “Test process generation method, device and computer-readable storage medium,” the entire text of which is hereby incorporated by reference. Technical Field

[0003] The present application relates to the field of digital chip inspection and testing machines and testing technology, and in particular to a method and device for generating a test flow and a computer-readable storage medium. Background Art

[0004] During the digital chip functional testing process, the test flow control interface (Test Flow View, hereinafter referred to as the Flow view interface) becomes an important part of the chip tester software with its intuitive expression and convenient and fast human-computer interaction features.

[0005] In the flow view of most existing chip tester software, each test item of the device under test (DUT) is connected by a line, and the test results and binning information (grouping information obtained by grouping test results according to preset rules) are also controlled by lines. When performing chip testing, the flow view interface starts from the START item at the starting position and tests each test item in the order in which they are connected. The connection to the END item marks the end of the test process.

[0006] However, currently, when setting up all the test items for the chip under test, each test item needs to be manually connected in sequence. When nearly 100 test items need to be tested, a large number of repetitive manual operations are required, which is time-consuming and labor-intensive.

[0007] Summary of the Invention

[0008] According to various embodiments of the present application, a method, apparatus, computer device, computer-readable storage medium, and computer program product for generating a test flow are provided.

[0009] In a first aspect, the present application provides a method for generating a test process, the method comprising:

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

[0011] Rearranging the plurality of test items to corresponding areas in the test process control interface according to the pixel width of each test item;

[0012] determining a magnetic connection relationship between the rearranged test items according to the first coordinates of the rearranged test items in the first direction;

[0013] and sequentially connecting each of the test items according to the magnetic connection relationship to form a test item sequence corresponding to each of the areas; and

[0014] Search for connection paths between test item sequences in adjacent areas, and sequentially connect each of the test item sequences according to the connection paths to form a target test flow.

[0015] In one embodiment, rearranging the plurality of test items to corresponding areas in the test process control interface according to the pixel width of each test item includes:

[0016] Adding pixel widths of a preset number of test items to obtain a region length threshold;

[0017] Traversing the pixel width of each test item in turn and performing accumulation processing;

[0018] Determining the number of test items displayed in each of the regions based on a comparison result of the width accumulated value obtained by the accumulation process and the region length threshold;

[0019] Generating a test item sequence using the number of test items corresponding to each of the regions; and

[0020] The plurality of test items are rearranged to corresponding areas in the test process control interface according to the test item sequence.

[0021] In one embodiment, determining a magnetic connection relationship between each of the rearranged test items according to the first coordinates in the first direction of each of the rearranged test items in the same area, and sequentially connecting each of the test items according to the magnetic connection relationship to form a test item sequence corresponding to each of the areas includes:

[0022] determining, according to the first coordinates, a first distance in the first direction between each of the test items after rearrangement in the same area;

[0023] determining, according to the first distance and a first distance threshold in the first direction, a magnetic attraction relationship between each of the test items after rearrangement in the same area;

[0024] Determining the magnetic attraction direction between the test items having a magnetic attraction relationship according to the comparison result of the first coordinates between the test items having a magnetic attraction relationship;

[0025] Determining the magnetic connection relationship using the magnetic attraction relationship and the magnetic attraction direction; and

[0026] According to the magnetic attraction direction in the magnetic attraction connection relationship, each of the test items in the magnetic attraction relationship is connected in sequence to form a test item sequence corresponding to each of the areas.

[0027] In one embodiment, searching for a connection path between test item sequences in adjacent regions and sequentially connecting each of the test item sequences according to the connection path to form a target test flow includes:

[0028] Searching for a 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

[0029] Two adjacent test item sequences are sequentially connected from top to bottom according to the connection path to form the target test process.

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

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

[0032] filtering, according to the dragging position and a second distance threshold in the second direction, remaining test items in the test process control interface that are not in the same area as the target test item, to obtain test items to be connected;

[0033] Acquire a first distance between the target test item and the test item to be connected in the first direction; and

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

[0035] In one embodiment, the method further comprises:

[0036] When the dragging position is located between two adjacent connected test items in the target test flow, the target test item is inserted between the two adjacent connected test items to rearrange the target test flow to obtain a rearranged target test flow.

[0037] In one embodiment, the method further comprises:

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

[0039] Rearranging the magnetic connection relationships between the remaining test items in the target test process that are adjacent to the target test item before dragging; and

[0040] The dragged target test item is displayed as an independent test process in the test process control interface.

[0041] In one embodiment, the test item has corresponding test information embedded therein;

[0042] The method further comprises:

[0043] The pixel width of the test item is determined according to the text length of the test information.

[0044] In a second aspect, the present application further provides a test process generation device, comprising:

[0045] The test item creation module is used to create multiple test items in the test process control interface;

[0046] A test item arrangement module, configured to rearrange the plurality of test items to corresponding areas in the test process control interface according to the pixel width of each test item;

[0047] a magnetic connection module, configured to determine a magnetic connection relationship between each of the rearranged test items in the same area based on the first coordinates of each of the rearranged test items in the first direction, and sequentially connect each of the test items according to the magnetic connection relationship to form a test item sequence corresponding to each of the areas; and

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

[0049] In one embodiment, the test item arrangement module is further configured to:

[0050] Adding pixel widths of a preset number of test items to obtain a region length threshold;

[0051] Traversing the pixel width of each test item in turn and performing accumulation processing;

[0052] Determining the number of test items displayed in each of the regions based on a comparison result of the width accumulated value obtained by the accumulation process and the region length threshold;

[0053] Generating a test item sequence using the number of test items corresponding to each of the regions; and

[0054] The plurality of test items are rearranged to corresponding areas in the test process control interface according to the test item sequence.

[0055] In one embodiment, the magnetic connection module is further used to:

[0056] determining, according to the first coordinates, a first distance in the first direction between each of the test items after rearrangement in the same area;

[0057] determining, according to the first distance and a first distance threshold in the first direction, a magnetic attraction relationship between each of the test items after rearrangement in the same area;

[0058] Determining the magnetic attraction direction between the test items having a magnetic attraction relationship according to the comparison result of the first coordinates between the test items having a magnetic attraction relationship;

[0059] Determining the magnetic connection relationship using the magnetic attraction relationship and the magnetic attraction direction; and

[0060] According to the magnetic attraction direction in the magnetic attraction connection relationship, each of the test items in the magnetic attraction relationship is connected in sequence to form a test item sequence corresponding to each of the areas.

[0061] In one embodiment, the process generation module is further configured to:

[0062] Searching for a 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

[0063] Two adjacent test item sequences are sequentially connected from top to bottom according to the connection path to form the target test flow.

[0064] In one embodiment, the apparatus further comprises:

[0065] a test item dragging module, configured to determine a current dragging position of a target test item in the test process control interface in response to a dragging operation on the target test item in the target test process;

[0066] filtering, according to the dragging position and a second distance threshold in the second direction, remaining test items in the test process control interface that are not in the same area as the target test item, to obtain test items to be connected;

[0067] Acquire a first distance between the target test item and the test item to be connected in the first direction; and

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

[0069] In one embodiment, the test item dragging module is further used to:

[0070] When the dragging position is located between two adjacent connected test items in the target test flow, the target test item is inserted between the two adjacent connected test items to rearrange the target test flow to obtain a rearranged target test flow.

[0071] In one embodiment, the test item dragging module is further used to:

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

[0073] Rearranging the magnetic connection relationships between the remaining test items in the target test process that are adjacent to the target test item before dragging; and

[0074] The dragged target test item is displayed as an independent test process in the test process control interface.

[0075] In one embodiment, the test item has corresponding test information embedded therein;

[0076] The test item creation module is further configured to determine the pixel width of the test item according to the text length of the test information.

[0077] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method for generating a test flow as described in any one of the embodiments of the first aspect.

[0078] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for generating a test flow as described in any one of the embodiments of the first aspect.

[0079] In a fifth aspect, the present application further provides a computer program product, comprising a computer program that, when executed by a processor, implements the method for generating a test flow as described in any one of the embodiments of the first aspect.

[0080] The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below, and other features, objects, and advantages of the application will be apparent from the description, the drawings, and the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the following briefly introduces the drawings required for use in the embodiments or the conventional technology descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.

[0082] FIG1 is a flow chart of a method for generating a test process in one embodiment;

[0083] FIG2 is a schematic flow chart of the test item rearrangement step in one embodiment;

[0084] FIG3 is a schematic flow chart of the test item sequence forming step in one embodiment;

[0085] FIG4 is a schematic diagram of a flow chart of the steps of dragging a target test item in one embodiment;

[0086] FIG5 is a schematic diagram of a test item in one embodiment;

[0087] FIG6 is a flow chart of a method for generating a test process in another embodiment;

[0088] FIG7 is a schematic diagram of a target testing process in one embodiment;

[0089] FIG8 is a schematic diagram of the steps of adding test items in batches according to an embodiment;

[0090] FIG9 is a structural block diagram of a test process generating device 900 according to an embodiment;

[0091] FIG10 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0092] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0093] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0094] 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, stored data, displayed data, 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 relevant data must comply with relevant regulations.

[0095] In one embodiment, as shown in FIG1 , a method for generating a test process is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable 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. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart TVs, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0096] In this embodiment, the method may include the following steps S102 to S108, wherein:

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

[0098] Among them, the test flow control interface, also known as Test Flow View, can be used to provide users with visual test flow creation, preview, execution or modification functions.

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

[0100] For example, in response to a user's request to run the chip tester software, the terminal can render and display the test process control interface of the chip tester software in the front-end display component. In response to user interactions such as clicking a button to add a new test item, dragging a test item template, or selecting a test item from a list, the test process control interface creates multiple corresponding test items.

[0101] Step S104 : rearrange the multiple test items to corresponding areas in the test process control interface according to the pixel width of each test item.

[0102] The pixel width may represent the width of the pixel area (w, h) occupied by the test item when rendered and displayed in the test flow control interface. Optionally, in some embodiments, the height of the pixel area (w, h) occupied by different test items when rendered and displayed in the test flow control interface may be consistent to avoid mutual obstruction between test items located in adjacent view rows.

[0103] The test process control interface may include multiple areas for rendering and displaying test items. For example, the areas may include, but are not limited to, horizontal row areas or vertical column areas.

[0104] Optionally, in some embodiments, the terminal may traverse the pixel widths of each test item and stack them in sequence. The area corresponding to each test item in the test process control interface is determined based on a comparison result of the sum of the pixel widths obtained after stacking with a preset length threshold (e.g., the maximum view size that the test process control interface can currently display, a threshold input or selected by the user, or a threshold determined based on the maximum number of test items that can be accommodated per row, etc.).

[0105] For example, when there are test items 1, 2, 3, 4, and 5 in the test process 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 process control interface for rendering and displaying test items is used as the area corresponding to test items 1 and 2.

[0106] Then superimpose the pixel widths of test items 3, 4, and 5. 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, and the second area 2 for rendering and displaying test items in the test process control interface is used as the area corresponding to test items 3, 4, and 5.

[0107] 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 are [(x1, y1), (x2, y1), (x2, y1+h), (x1, y1+h)] (lower left corner coordinate, lower right corner coordinate, upper right corner coordinate, upper left corner coordinate, the same below), and the pixel width of test item 1 is w1 pixels and the pixel width of test item 2 is w2 pixels, the pixel coordinates of test item 1 after rearrangement can be determined to be [(x1, y1), (x1+w1, y1), (x1+w1, y1+h), (x1, y1+h)] and the pixel coordinates of test item 2 after rearrangement can be [(x1+w1, y1)(x1+w1 + w2, y1), (x1 + w1 + w2, y1 + h), (x1 + w1, y1 + h)]. Thus, the multiple test items are rearranged into corresponding areas in the test process control interface according to the pixel coordinates of each test item after rearrangement.

[0108] Step S106, determining the magnetic connection relationship between each rearranged test item according to the first coordinate in the first direction of each rearranged test item in the same area, and connecting each test item in sequence according to the magnetic connection relationship to form a test item sequence corresponding to each area.

[0109] The first direction may be a horizontal direction or a vertical direction. The first coordinate may represent a coordinate value corresponding to a center point of the test item or any corner point on an edge of the test item in the first direction.

[0110] Exemplarily, the terminal may perform the following operations on several (the number may be one or more) test items that are rearranged in step S104 and located in the same area: sort each test item from small to large or from large to small according to the value of the first coordinate. Determine two adjacent test items according to the sorting result of the test items. Alternatively, the distance between the test items may be calculated using the first coordinate, and two adjacent test items may be determined based on the distance. A magnetic connection relationship is established between two adjacent test items, and each test item is connected in sequence 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 after the rearrangement in step S104 is located is obtained.

[0111] Step S108 : 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.

[0112] Exemplarily, the terminal can search for the connection paths between the test item sequences in the adjacent areas in the test process control interface, such as the connection path obtained by searching using the coordinates of the first test item in each test item sequence, the connection path obtained by searching using the coordinates of the last test item in each test item sequence, or the connection path obtained by searching using the coordinates of the last test item in each test item sequence and the coordinates of the first test item in the next test item sequence. According to the arrangement order of each area in the test process control interface, connect each test item sequence in sequence according to the obtained connection path from top to bottom to form the target test process.

[0113] In the above method for generating the test process, by creating multiple test items in the test process control interface; according to the pixel width of each test item, rearranging the multiple test items to the corresponding areas in the test process control interface, determining the magnetic attraction connection relationship between each rearranged test item according to the first coordinates of each rearranged test item in the same area in the first direction, and connecting each test item in sequence according to the magnetic attraction connection relationship to form a test item sequence corresponding to each area; searching for the connection paths between the test item sequences in adjacent areas, and connecting each test item sequence in sequence according to the connection paths to form the target test process, it is possible to start from the perspective of test item visualization, use the pixel width of the test items to realize the intelligent arrangement of the test items in the test process control interface, use the first coordinates of the test items in the first direction to determine the magnetic attraction connection relationship between the test items, and thus realize the automatic connection of the test items in the test process control interface based on the magnetic attraction connection relationship, greatly improving the generation efficiency of the test process.

[0114] In an exemplary embodiment, corresponding test information can be built in the test item.

[0115] In the method for generating the test process provided by this application, it may further include: determining the pixel width of the test item according to the text length of the test information.

[0116] Among them, the test information may include but is not limited to any one or more of information such as the test item name, test item status, and binning information of the test item output port (grouping information obtained by grouping the test results according to a preset rule), etc.

[0117] Exemplarily, for the multiple test items created in step S102 in the above embodiment, the terminal can determine the pixel width of each test item in the test process control interface according to the text length of the test information built in each test item, so that when each test item is rendered and displayed in the test process control interface, it can fully display the complete test information built in it, and at the same time avoid the situation of mutual occlusion when multiple test items are rendered and displayed in the test process control interface.

[0118] Optionally, in some implementations, the test information may be pre-configured in the inherent attributes of a test item. After a test item is created, the terminal may 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 an input operation or selection operation triggered by a user.

[0119] 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 subsequent target test process generated based on the test item connection is more intuitive and clear.

[0120] In an exemplary embodiment, as shown in FIG2 , step S104 , rearranging multiple test items to corresponding areas in the test process control interface according to the pixel width of each test item, may also include the following steps S202 to S208 . Among them:

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

[0122] The preset number may be used to constrain the maximum number of test items displayed on the first line of a subsequently generated target test process.

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

[0124] For example, the terminal may obtain a preset number in response to a user input / selection operation, add the pixel widths of the preset number of test items according to the order in which the test items are arranged in the current test process control interface, and use the sum of the pixel widths of the preset number of test items as the region length threshold.

[0125] Optionally, in some implementations, the terminal may calculate the length threshold by referring to the following formula: L = W1 + W2 + ... + W c ,

[0126] Where L can represent the region length threshold. W1, W2, ..., W c It can represent the pixel width of test items 1, 2, ..., c. c can represent a preset number.

[0127] Step S204 , sequentially traverse the pixel width of each test item and perform accumulation processing, and determine the number of test items displayed in each area based on the comparison result of the width accumulation value obtained by the accumulation processing and the area length threshold.

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

[0129] 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 exceeds the region length threshold. The number of test items before this accumulation operation is used as the number of test items displayed in the same region on the test flow control interface, and the accumulated test item is used as the first test item in the next region. The pixel widths of subsequent test items are repeatedly traversed and accumulated until all test items are traversed, resulting in the number of test items displayed in each region.

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

[0131] Exemplarily, the terminal can construct the number of test items displayed in each area determined in step S204 into an ordered array according to the arrangement order of each area in the test process control interface, and obtain a test item sequence V(n), where n represents the number of rows occupied by the test item when displayed in the test process control interface.

[0132] For example, in the test process control interface, region a and region b are sequentially arranged from top to bottom. The terminal performs the operation in step S204 and determines 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 test item sequence V(2) = {2, 3} can be generated.

[0133] Step S208 : rearrange the plurality of test items to corresponding areas in the test process control interface according to the test item sequence.

[0134] For example, the terminal can determine which area each test item is in and its position in the area based on the number of test items corresponding to each area in the test item sequence and the current test item arrangement order / creation order in the test process control interface.

[0135] For example, the current test flow control interface has test items A, B, and C distributed from left to right. According to the test item sequence V(2)={2,3}, it can be determined that the region position corresponding to test item A is the first position in the first region of the test flow control interface, the row position corresponding to test item B is the second position in the first region, and the row position corresponding to test item C is the first position in the second region.

[0136] The terminal can refer to the method for determining the pixel coordinates of the 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 test items after rearrangement. According to the rearranged pixel coordinates, the multiple test items can be rearranged to the corresponding regions in the test process control interface.

[0137] In some practical application scenarios, since the length of the test information text built into different test items may be different, it is easy to cause the pixel widths of multiple test items in the test process control interface to be different. However, the test item rearrangement method provided in this embodiment can use the preset number based on the user-set preset number to determine the region length threshold to arrange as many test items as possible in each row, making full use of the visual view range of the test process control interface. In addition, since this embodiment uses the sum of the pixel widths of a preset number of test items as the region length threshold to constrain the test items displayed in the same area, it can also ensure that the sum of the pixel widths of the test items in the non-first row of the target test process constructed based on the test item series will not exceed the sum of the pixel widths of the test items in the first row, making the graphic arrangement of the target test process more neat and beautiful.

[0138] In an exemplary embodiment, as shown in FIG3 , the above step S106, based on the first coordinates of each rearranged test item in the same area in the first direction, determines the magnetic connection relationship between each rearranged test item, and sequentially connects each test item 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. In which:

[0139] Step S302 : determining a first distance in a first direction between each test item after rearrangement in the same area according to the first coordinate.

[0140] Step S304 : determining a magnetic attraction relationship between each rearranged test item in the same area according to the first distance and the first distance threshold in the first direction.

[0141] For example, the terminal can perform computational processing using the first coordinates and use the difference in the first coordinates between two adjacent test items as the first distance between the two adjacent test items in the first direction. When the first distance is less than the first distance threshold in the first direction, the two adjacent test items currently being compared are determined to be adjacent test items, and a magnetic attraction relationship is established between the adjacent test items. This results in a magnetic attraction relationship between each rearranged test item within the same area.

[0142] Step S306 , determining the magnetic attraction direction between the test items having the magnetic attraction relationship according to the first coordinate comparison result between the test items having the magnetic attraction relationship.

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

[0144] For example, when the first coordinate of test item x is less than the first coordinate of test item y, which has a magnetic attraction relationship with it, 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 connection relationship can be established between adjacent test items that have been rearranged in the same area.

[0145] Step S310 : connecting each test item in the magnetic connection relationship in sequence according to the magnetic direction in the magnetic connection relationship to form a test item sequence corresponding to each area.

[0146] Exemplarily, the terminal can start from the first test item in each area, and magnetically connect the test item to another test item with which it has a magnetic connection relationship in accordance with the magnetic direction in the magnetic connection relationship corresponding to each test item, thereby forming a test item sequence corresponding to each area.

[0147] In this embodiment, the first distance between the test items is determined by utilizing the first coordinates in the first direction of each test item after rearrangement in the same area, the magnetic relationship between the test items is determined based on the comparison result of the first distance and the first distance threshold, and the magnetic direction between the test items is determined based on the comparison result of the first coordinates. Thus, the magnetic connection relationship constructed by the magnetic relationship and the magnetic direction is utilized to realize automatic connection of the test items to form a corresponding test item sequence, which can improve the construction efficiency and accuracy of the magnetic connection relationship, and realize automatic connection of the test items by utilizing the magnetic connection relationship, thereby improving the generation efficiency of the test item sequence.

[0148] In an exemplary embodiment, step S108 may further include searching for a 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 two adjacent test item sequences are sequentially connected from top to bottom according to the connection path to form a target test flow.

[0149] Exemplarily, the terminal may start from the last test item in the test item sequence in the i-th (i=1, 2, 3, ..., n)-th area in the test process control interface having multiple test item sequences formed after executing the operation of step S310, and perform up, down, left, and right path finding with a fixed step length (e.g., 40 pixels), and calculate the path length from each pixel point at a fixed step length from the last test item to the first test item in the test item sequence in the adjacent i+1-th area, and determine the pixel point with the shortest path length as the path node.

[0150] Starting from this path node, continue pathfinding with a fixed step size, calculating the path length from each pixel point at a fixed step size from this path node to the first test item in the test item sequence in the i+1th region. Repeat the above path node determination operation until the first test item in the test item sequence in the i+1th region is reached. Connect the determined path nodes in sequence to form the shortest 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+1th region.

[0151] Optionally, in some implementations, each test item and pixel points at its boundaries can be set as obstacle avoidance points and added to a closed list. This prevents path calculations from being performed on these obstacle avoidance points during pathfinding. This not only reduces the amount of data computation required by the terminal during pathfinding and improves the efficiency of determining connection paths, but also ensures that connection paths between multiple test item sequences do not overlap or obstruct the test items, making the subsequent target testing process more intuitive and clear. Furthermore, after each connection path is formed, the pixel points along the connection path can also be set as obstacle avoidance points and added to the closed list to prevent overlap between connection paths.

[0152] The terminal may connect the last test item in the test item sequence in each area with the first test item in the test item sequence in the next adjacent area in order from top to bottom according to the determined connection path, thereby forming a complete target test process.

[0153] In some practical application scenarios, the sum of the pixel widths of each test item sequence may be different, which can easily lead to different positions of the first and last test items in each test item sequence. However, the target test process connection method provided in this embodiment can use path search to obtain the shortest connection path to achieve automated connection of test items, thereby simplifying the target test process generation operation and improving the efficiency of target test process generation. Furthermore, when using the connection path determination method provided in this embodiment, it can also avoid overlapping connection paths between multiple test item sequences, making the target test process more intuitive and clear.

[0154] In an exemplary embodiment, as shown in FIG4 , the test flow generation method provided by the present application may further include the following steps S402 to S408 .

[0155] Step S402 : In response to a drag operation on a target test item in a target test process, determining a current drag position of the target test item in the test process control interface.

[0156] For example, the terminal can detect a user-triggered drag operation through the test flow control interface, set the dragged test item in the target test flow as the current target test item, and determine the drag position of the target test item in the test flow control interface after the drag operation is performed by the user.

[0157] Step S404 : filtering the remaining test items in the test process control interface that are not in the same area as the target test item according to the dragging position and the second distance threshold in the second direction to obtain the test items to be connected.

[0158] The second direction may represent another direction different from the first direction. For example, when the first direction is horizontal, the second direction may be vertical. When the first direction is vertical, the second direction may be horizontal.

[0159] Exemplarily, the terminal may obtain the second coordinates of the remaining test items in the target test process in the second direction in the test process control interface. The second coordinates of the remaining test items and the coordinate values ​​in the second direction corresponding to the drag position of the target test item are used to determine the second distance in the second direction between the remaining test items and the target test item. Test items among the remaining test items whose second distance from the target test item is greater than a second distance threshold are treated as test items that are not in the same area as the target test item in the test process control interface and are filtered. The test items remaining in the target test process after filtering are treated as test items to be connected corresponding to the target test item.

[0160] Optionally, in some implementations, the terminal may filter the remaining test items when it is determined that the following relationship is satisfied: |y1-y2|>y max ,

[0161] Wherein, y1 can represent the second coordinate of the target test item. y2 can represent the second coordinate of the remaining test items. max may represent a second distance threshold.

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

[0163] Exemplarily, the terminal can determine the first distance in the first direction between the target test item and the test item to be connected based on the coordinate value in the first direction corresponding to the current drag position of the target test item and the first coordinate in the first direction of the test item to be connected in the test process control interface obtained after filtering in step S404.

[0164] Step S408 : When the first distance is less than the first distance threshold, a magnetic connection relationship between the target test item and the test item to be connected is determined, and the connection is performed according to the magnetic connection relationship.

[0165] In this embodiment, a magnetic connection relationship is used to directly connect two adjacent test items. Compared with the traditional method of connecting two adjacent test items by connecting them with a line, the connection between the test items can be made tighter, thereby facilitating the arrangement of more test items in the test process control interface. Compared with the technical means of traversing the distance between test items in the traditional technology to determine the connection relationship between the test items, the technical means of this embodiment is used to perform two coordinate comparison operations in different directions, first filtering out the remaining test items that are not in the same area as the dragged target test item in the second direction, and then determining the magnetic connection relationship based on the comparison result 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 result of the coordinate values ​​of the test items to be connected and the target test item in the first direction to achieve automatic connection between the test items. This can reduce the amount of calculation when connecting test items and improve the efficiency of test item connection.

[0166] Optionally, in some embodiments, the first direction may be set to a horizontal direction. When the horizontal coordinate of the target test item is smaller 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 smaller than a horizontal distance threshold, the target test item may be controlled to 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 may be magnetically connected to the input port of the test item to be connected.

[0167] Alternatively, when the horizontal coordinate of the target test item is greater 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 controlled to 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.

[0168] Optionally, in some implementations, when the first direction is a horizontal direction, the terminal may determine the magnetic attraction relationship when the following relationship is satisfied: |x1-x2|<x max ,

[0169] Among them, x1 can represent the horizontal coordinate of test item 1. x2 can represent the horizontal coordinate of test item 2. max It can represent the horizontal distance threshold.

[0170] Optionally, in some embodiments, the terminal may further configure the left port and upper port of the test item as input ports, and the right port and lower port of the test item as output ports. As shown in FIG5 , the terminal may further use different display styles to distinguish output ports under different test results.

[0171] For example, the output port on the right side of the test item can be marked green (that is, the port at (1,1) in Figure 5) to identify it as the output port when the test result is passed. That is, the output port on the right side can have built-in Pass Bin information (grouping information obtained by grouping test results with passed results based on preset rules).

[0172] Correspondingly, the output port below the test item can also be marked in red (that is, the port at (2,2) in Figure 5) to identify it as the output port when the test result is failed. That is, the output port below can have built-in Fail Bin information (grouping information obtained by grouping test results with failed test results based on preset rules).

[0173] Compared with traditional technologies that require manual connection of each test item and Bin information, this method can greatly simplify the complexity of connection operations between test items, and at the same time make the test information and connection relationships of test items more intuitive and clear.

[0174] Optionally, in other embodiments, when magnetically connecting adjacent test items based on a magnetic connection relationship, the terminal may determine, in response to a user selection, 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 fail result, is currently connected. The input ports to the left and above the test item can be connected to any different input ports, without specific limitation herein.

[0175] In addition, because the pixel widths of various test items vary in actual application scenarios, and the connections between test items are often made with the right side of the test item connected to the test result via the corresponding output port, this embodiment focuses on the implementation of left-right magnetic connections between test items. However, those skilled in the art will appreciate that, based on the magnetic connection method provided in this embodiment, vertical magnetic connections between test items can also be implemented.

[0176] Optionally, in other embodiments, adjacent test items displayed in the same area in the target test flow, as well as multiple end-to-end test item sequences, may also be connected via magnetic attraction. When the terminal detects a user-triggered drag operation, it may first release the magnetic connection between the target test item and the remaining test items, and then rearrange the magnetic connection between the target test item and the test items to be connected in the target test flow based on the dragged position of the target test item after being dragged.

[0177] In an exemplary embodiment, based on the test process generation method shown in Figure 4, it can also include: when the drag position is between two adjacent connected test items in the target test process, the target test item is inserted between the two adjacent connected test items to rearrange the target test process to obtain the rearranged target test process.

[0178] Exemplarily, when there are multiple test items to be connected whose horizontal distance from the target test item is less than a horizontal threshold, it can be determined whether the multiple test items to be connected are connected. In the case that multiple test items to be connected are connected, it can be determined that the drag position of the target test item is located between two adjacent test items to be connected that are already connected in the target test process. The target test item can be inserted between two adjacent test items that are already connected, and the magnetic connection relationship between the two adjacent test items to be connected can be released to rearrange the target test process: 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 to obtain the rearranged target test process.

[0179] In this embodiment, the target test flow is rearranged by inserting the dragged target test item between two adjacent connected test items to obtain a rearranged target test flow, thereby enabling flexible adjustment of the order of test items in the target test flow.

[0180] In an exemplary embodiment, based on the test flow generation method shown in FIG4 , the following steps may also be included:

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

[0182] Rearrange the magnetic connection relationship between the remaining test items adjacent to the target test item before dragging in the target test process, and display the dragged target test item as an independent test process in the test process control interface.

[0183] For example, after the terminal performs the filtering operation in step S404 to filter all remaining test items in the target test flow, that is, when no test item to be connected exists, or after 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 no test item in the target test flow is connectable to the currently dragged target test item. In other words, it can be determined that the target test item has been separated from the target test flow.

[0184] The terminal can rearrange the magnetic connection relationship between the remaining test items adjacent to the target test item before dragging in the target test flow: when there is a test item connected to the output port of the target test item before dragging in the target test flow, a magnetic connection relationship 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 as to connect the output port of the test item located to the left of the target test item before dragging with the input port of the test item located to the right of the target test item before dragging, thereby forming the rearranged target test flow. Otherwise, the magnetic connection relationship of the test item located to the left of the target test item before dragging is directly released, and the result is used as the end item of the test flow.

[0185] The terminal can display the dragged target test item as an independent test process at the drag location of the current target test item in the test process control interface. Alternatively, the dragged target test item can be moved to a blank location in the test process control interface for display, such as below the rearranged target test process.

[0186] In this embodiment, after separating the target test items from the target test process, the connection relationship of the test items in the target test process and the display position of the target test items in the test process control interface are rearranged, thereby enabling flexible adjustment of the target test items at any position in the target test process.

[0187] In an exemplary embodiment, as shown in FIG6 , a method for generating a test process is also provided, including the following steps S602 to S610 .

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

[0189] Exemplarily, a chip tester software can be installed in the terminal, wherein the chip tester software can be deployed with a test item content design module, a test item UI (Uesr 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.

[0190] The terminal can run the chip tester software to display a test flow control interface to the user. In response to user-triggered interactive operations, multiple test items are created in the test flow control interface. The parameter configuration module receives user-entered test information for each test item. The test item content design module embeds the test item name in the test information into each test item. The pixel width of the test item displayed in the test flow control interface is determined based on the text length of the test item name.

[0191] The port on the left and the port above each test item are configured as input ports through the test item UI redraw module. The port on the right side of each test item is configured as an output port corresponding to the test result of pass through the test item UI redraw module, and the Pass Bin information in the test information is built into the right output port (the grouping information obtained by grouping the test results with a pass result based on the preset rules). The port below each test item is configured as an output port corresponding to the test result of fail through the test item UI redraw module, and the Fail Bin information in the test information is built into the lower output port (the grouping information obtained by grouping the test results with a fail result based on the preset rules).

[0192] Step S604 , sequentially traverse the pixel width of each test item and perform accumulation processing, determine the number of test items displayed in the same row area based on the comparison result of the width accumulation value obtained by the accumulation processing and the area length threshold, and construct a test item sequence.

[0193] For example, the terminal can receive a preset number (e.g., 10) input by the user through the test item intelligent sorting module, and sequentially obtain the pixel widths of the preset number of test items, starting with the first test item, based on the distribution order or creation order of the test items in the current test process control interface. The sum of the pixel widths of the preset number of test items obtained by adding them up is used as the region length threshold.

[0194] The test item intelligent sorting module sequentially traverses and accumulates the pixel width of each test item. The accumulated width value obtained from each accumulation is compared with the region length threshold. Based on the comparison result of the accumulated width value and the region length threshold, the number of test items displayed in the same row area is determined. The number of test items corresponding to each row is used to construct a test item sequence.

[0195] In step S606, the test items are rearranged to corresponding row positions according to the test item sequence, a magnetic connection relationship is established according to the horizontal coordinates of the test items, and the test items in the same row area are connected in sequence from left to right according to the magnetic connection relationship to form a multi-row test item sequence.

[0196] Exemplarily, the terminal can determine the row position of each test item according to the test item sequence through the Flow interface rearrangement module, and rearrange the multiple test items in the test process control interface to the corresponding row position (that is, the order of the test item in which row area) according to the row position. The horizontal distance between the test items in the horizontal direction is determined according to the horizontal coordinates of the test items through the test item magnetic collision module, and a magnetic relationship is established between the test items whose horizontal distance is less than the horizontal distance threshold. According to the comparison results of the horizontal coordinates of the test items, the magnetic direction between the test items is determined. A magnetic connection relationship is established using the magnetic relationship and the magnetic direction. For the test items in each row, the output ports and input ports of two adjacent test items in the same row area are magnetically connected in sequence from left to right according to the magnetic connection relationship, thereby forming a multi-row test item sequence.

[0197] Step S608: searching for a 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.

[0198] Exemplarily, the terminal can rearrange the modules through the Flow interface and set the test items and the pixel points on the boundaries of the test items as obstacle avoidance points to close the focus on 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 with a fixed step size (for example, 40 pixels).

[0199] Optionally, in some embodiments, when it is detected that there is a test item that is not in any row of the test item sequence, the test item can be displayed as an independent test flow in a blank position below the test item sequence in the test flow control interface through the Flow interface rearrangement module.

[0200] Optionally, in other embodiments, the terminal may also respond to the drag operation on any test item through the quick operation module, and filter the remaining test items in the test process control interface that are not currently in the same row as the dragged test item according to the drag position of the test item after being dragged. According to the drag position of the test item after being dragged and the horizontal distance in the horizontal direction of 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 embodiment. Similarly, the terminal can also insert a test item between two adjacent connected test items or separate a test item from a test item sequence by referring to the operation steps provided in the above embodiment through the quick operation module.

[0201] Step S610: connect two adjacent test item sequences from top to bottom according to the connection path to form a target test flow.

[0202] Exemplarily, the terminal can use the test item magnetic collision module to connect two adjacent test item sequences in sequence from top to bottom, that is, from the last test item of the test item sequence in the previous row to the first test item of the test item sequence in the next row, according to the shortest connection path between rows, to form a target test process as shown in Figure 7.

[0203] Optionally, in some implementations, the chip tester software may also include a test item batch addition driver module. As shown in FIG8 , the terminal can use the test item batch addition driver module to receive test information for multiple test items entered by the user in batches: ItemName test item name, TestName test case name, SW_Bin switch group, HW_Bin hardware group, and Flag test item status.

[0204] Following the sequence numbers 1-8 shown in Figure 8, multiple test items are sequentially created in the test flow control interface, each containing test information and having a pixel width 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.

[0205] In this embodiment, by embedding the test item name and determining the pixel width of the test item based on the length of the test item name, the test item name can be displayed completely, eliminating overlap and occlusion between multiple test items. By summing the pixel widths of a preset number of test items to obtain a length threshold for constraining the length of the test item sequence, the pixel widths of each test item are sequentially traversed and accumulated. Based on the comparison result of the accumulated width value obtained from the accumulation process and the region length threshold, the number of test items displayed in each row is determined to construct a test item sequence. Based on the test item sequence, multiple tests are distributed to corresponding row positions. The output ports and input ports of adjacent test items in the same row are sequentially connected from left to right. The shortest connection path between rows is searched with a fixed step size, thereby sequentially connecting to form a target test flow. This not only simplifies the connection steps of the target test flow and improves the efficiency of generating the target test flow, but also makes the target test flow more intuitive and clear. In addition, by responding to the drag operation triggered by the user on the test item, the dragged test item is inserted between two adjacent connected test items, or the dragged test item is moved close to a certain test item to achieve a magnetic connection between the test items, or the dragged test item is separated from the test item sequence to form an independent test process, it is possible to achieve flexible adjustment and change of the test items and the target test process, thereby simplifying the user's operation difficulty.

[0206] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and 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 to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

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

[0208] In an exemplary embodiment, as shown in FIG9 , a test process generation device 900 is provided, comprising: a test item creation module 902 , a test item arrangement module 904 , a magnetic connection module 906 , and a process generation module 908 , wherein:

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

[0210] The test item arrangement module 904 is configured to rearrange the multiple test items to corresponding areas in the test process control interface according to the pixel width of each test item.

[0211] a magnetic connection module 906 for determining a magnetic connection relationship between each rearranged test item in the same region based on the first coordinate of each rearranged test item in the first direction, and sequentially connecting each test item according to the magnetic connection relationship to form a test item sequence corresponding to each region;

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

[0213] In an exemplary embodiment, the test item arrangement module 904 is further used to add the pixel widths of a preset number of test items to obtain an area length threshold; traverse the pixel width of each test item in turn and perform accumulation processing, and determine the number of test items displayed in each area based on the comparison result of the width accumulation value obtained by the accumulation processing and the area length threshold; generate a test item sequence using the number of test items corresponding to each area; and rearrange multiple test items to corresponding areas in the test process control interface according to the test item sequence.

[0214] In an exemplary embodiment, the magnetic connection module 906 is further used to determine the first distance in the first direction of each test item after rearrangement in the same area based on the first coordinate; determine the magnetic 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; determine the magnetic direction between the test items with a magnetic relationship based on the first coordinate comparison result between the test items with a magnetic relationship; determine the magnetic connection relationship using the magnetic relationship and the magnetic direction; and connect each test item with a magnetic relationship in turn according to the magnetic direction in the magnetic connection relationship to form a test item sequence corresponding to each area.

[0215] In an exemplary embodiment, the process generation module 908 is further configured to search for a 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; and connect the two adjacent test item sequences in sequence from top to bottom according to the connection path to form a target test process.

[0216] In an exemplary embodiment, the test process generation device 900 also includes: a test item dragging module, which is used to determine the current drag position of the target test item in the test process control interface in response to a drag operation on the target test item in the target test process; filter the remaining test items in the test process control interface that are not in the same area as the target test item according to the drag position and the second distance threshold in the second direction 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, 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.

[0217] In an exemplary embodiment, the test item dragging module is also used to insert the target test item between two adjacent connected test items when the dragging position is between two adjacent connected test items in the target test process, so as to rearrange the target test process and obtain the rearranged target test process.

[0218] In an exemplary embodiment, the test item dragging module is further used 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 the first distance between the test item to be connected and the target test item is greater than a first distance threshold; rearrange the magnetic connection relationship between the remaining test items adjacent to the target test item before dragging in the target test process, and display the target test item after dragging as an independent test process in the test process control interface.

[0219] In an exemplary embodiment, the test item has corresponding test information built in. The test item creation module 902 is further configured to determine the pixel width of the test item according to the text length of the test information.

[0220] Each module in the test flow generation device described above may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0221] In an exemplary embodiment, a computer device is provided, which may be a terminal. A diagram of its internal structure may be shown in FIG10 . The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and an external device. The communication interface of the computer device is configured to communicate with an external terminal via wired or wireless communication, where the wireless communication may be achieved via Wi-Fi, a mobile cellular network, NFC (near field communication), or other technologies. When executed by the processor, the computer program implements a method for generating a test flow. The display unit of the computer device is configured to produce a visually visible image, and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.

[0222] Those skilled in the art will understand that the structure shown in FIG10 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0223] In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0224] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0225] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0226] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may 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 may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0227] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned 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.

[0228] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A method for generating a test process, characterized in that: The method comprises: In the test process control interface, create multiple test items; According to the pixel width of each of the test items, rearrange the plurality of the test items to corresponding areas in the test process control interface; Determine a magnetic connection relationship between each of the rearranged test items according to a first coordinate in a first direction of each of the rearranged test items in the same area; and sequentially connecting each of the test items according to the magnetic connection relationship to form a test item sequence corresponding to each of the areas; and Search for connection paths between test item sequences in adjacent areas, and sequentially connect each of the test item sequences according to the connection paths to form a target test flow.

2. The method according to claim 1, characterized in that The step of rearranging the plurality of test items to corresponding areas in the test flow control interface according to the pixel width of each test item includes: Adding pixel widths of a preset number of the test items to obtain a region length threshold; Traversing the pixel width of each test item in turn and performing accumulation processing; Determine the number of test items displayed in each of the regions according to a comparison result of the width accumulated value obtained by the accumulation processing and the region length threshold; Generate a test item sequence using the number of test items corresponding to each of the regions; and The plurality of test items are rearranged to corresponding areas in the test process control interface according to the test item sequence.

3. The method according to claim 1, characterized in that The method of determining the magnetic connection relationship between each of the rearranged test items according to the first coordinates in the first direction of each of the rearranged test items in the same area, and sequentially connecting each of the test items according to the magnetic connection relationship to form a test item sequence corresponding to each of the areas includes: Determine, according to the first coordinates, a first distance in the first direction between each of the test items after rearrangement in the same area; Determine, according to the first distance and the first distance threshold in the first direction, a magnetic attraction relationship between each of the test items after rearrangement in the same area; Determining the magnetic attraction direction between the test items having a magnetic attraction relationship according to the first coordinate comparison result between the test items having a magnetic attraction relationship; Determining the magnetic connection relationship by using the magnetic attraction relationship and the magnetic attraction direction; and According to the magnetic attraction direction in the magnetic attraction connection relationship, each of the test items in the magnetic attraction relationship is connected in sequence to form a test item sequence corresponding to each of the areas.

4. The method according to claim 1, characterized in that: The searching for connection paths between test item sequences in adjacent areas and sequentially connecting each of the test item sequences according to the connection paths to form a target test process includes: Searching for a 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 Two adjacent test item sequences are sequentially connected from top to bottom according to the connection path to form the target test flow.

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

6. The method according to claim 5, characterized in that The method further comprises: When the dragging position is located between two adjacent test items that are connected in the target test flow, the target test item is inserted between the two adjacent test items that are connected to rearrange the target test flow to obtain a rearranged target test flow.

7. The method according to claim 5, characterized in that The method further comprises: When the test item to be connected does not exist, or the first distance between the test item to be connected and the target test item is greater than the first distance threshold, determining that the target test item is separated from the target test flow; 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 The dragged target test item 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 item has built-in corresponding test information; The method further comprises: The pixel width of the test item is determined according to the text length of the test information.

9. A test flow generation device, characterized in that: The device comprises: The test item creation module is used to create multiple test items in the test process control interface; A test item arrangement module, used for rearranging the plurality of test items to corresponding areas in the test process control interface according to the pixel width of each test item; a magnetic connection module, for determining a magnetic connection relationship between each of the rearranged test items according to a first coordinate in a first direction of each of the rearranged test items in the same area, and sequentially connecting each of the test items according to the magnetic connection relationship to form a test item sequence corresponding to each of the areas; and The process generation module is used to search for connection paths between test item sequences in adjacent areas, and sequentially connect each of the test item sequences according to the connection paths to form a target test process.

10. The device according to claim 9, characterized in that The test item arrangement module is further used for: Adding pixel widths of a preset number of the test items to obtain a region length threshold; Traversing the pixel width of each test item in turn and performing accumulation processing; Determine the number of test items displayed in each of the regions according to a comparison result of the width accumulated value obtained by the accumulation processing and the region length threshold; Generate a test item sequence using the number of test items corresponding to each of the regions; as well as The plurality of test items are rearranged to corresponding areas in the test process control interface according to the test item sequence.

11. The device according to claim 9, characterized in that The magnetic connection module is also used for: Determine, according to the first coordinates, a first distance in the first direction between each of the test items after rearrangement in the same area; Determine, according to the first distance and the first distance threshold in the first direction, a magnetic attraction relationship between each of the test items after rearrangement in the same area; Determining the magnetic attraction direction between the test items having a magnetic attraction relationship according to the first coordinate comparison result between the test items having a magnetic attraction relationship; Determine the magnetic connection relationship by using the magnetic attraction relationship and the magnetic attraction direction; as well as According to the magnetic attraction direction in the magnetic attraction connection relationship, each of the test items in the magnetic attraction relationship is connected in sequence to form a test item sequence corresponding to each of the areas.

12. The device according to claim 9, characterized in that The process generation module is also used for: Searching for a 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; as well as Two adjacent test item sequences are sequentially connected from top to bottom according to the connection path to form the target test flow.

13. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method for generating a test flow according to any one of claims 1 to 8 is implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the test flow generation method according to any one of claims 1 to 8 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the test flow generation method according to any one of claims 1 to 8 is implemented.