Test sequence generation methods, apparatus, devices and media
By automatically generating test sequences and utilizing the pre-built mapping relationship between the function list and the test case library, the problems of complex, time-consuming, and omission-prone test sequence compilation in existing technologies are solved, achieving efficient and complete test sequence generation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TRAFFIC CONTROL TECH CO LTD
- Filing Date
- 2022-07-26
- Publication Date
- 2026-08-04
AI Technical Summary
In existing technologies, the process of compiling test sequences is complex, time-consuming, and prone to omissions. Furthermore, when upgrading project software or data, test case sequences need to be manually repeated, resulting in low testing efficiency.
By pre-building a mapping relationship between the feature list and the test case library, test sequences are automatically generated. This includes analyzing the features that match the change list, identifying target test cases, and generating target test sequences based on the test sequence library, thus avoiding the manual compilation process.
It improves testing efficiency, avoids missing test sequences, ensures the integrity of test sequences, and reduces redundancy.
Smart Images

Figure CN115292168B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rail transit technology, and in particular to a test sequence generation method, apparatus, equipment, and medium. Background Technology
[0002] In the field of rail transit technology, before a control system is put into application, it needs to undergo relevant testing and verification to ensure the safety of the control system in the later stages. Currently, the main method for accepting control systems is to rely on automated testing procedures using test sequences.
[0003] Currently, the process of creating test sequences relies entirely on manual identification of which test cases should be included in the sequence. This process is complex, time-consuming, and prone to omissions. Furthermore, when a project's software or data is upgraded, it is necessary to verify the test cases affected by the changes. During test execution, only one test case can be executed at a time, consuming testing time. If a test sequence needs to be generated, the relevant test cases must be manually sequenced again, making the process repetitive. Summary of the Invention
[0004] This invention provides a test sequence generation method, apparatus, device, and medium to address the shortcomings of existing technologies where automated testing requires manual compilation of test sequences, resulting in a complex, time-consuming process and a high risk of omissions.
[0005] This invention provides a test sequence generation method, comprising:
[0006] Upon receiving a change list, the change list is analyzed to determine at least one target function that matches the change list;
[0007] Based on the pre-built function list-test case library mapping relationship, determine at least one target test case in the test case library for each target function in the function list;
[0008] The target test sequence corresponding to the target test case is generated based on the pre-built test sequence library.
[0009] According to the present invention, a test sequence generation method is provided, wherein before determining at least one target test case matching each target function in the test case library based on a pre-built function list-test case library mapping relationship, the method specifically includes:
[0010] The test cases in the test case library are functionally divided, the functions matched by each test case are determined, and a function list corresponding to the function is generated.
[0011] Establish a test case mapping relationship between each test case and the functions that match each test case, so as to obtain the function list-test case library mapping relationship.
[0012] According to the present invention, a test sequence generation method is provided, which, after generating the function list-test case library mapping relationship based on the test case mapping relationship, further includes:
[0013] Receive user function selection instructions for each test subsequence to be generated in each test sequence to be generated, and determine the matching function for each test subsequence to be generated based on the function selection instructions;
[0014] Based on the mapping relationship between the function list and the test case library, determine at least one test case in the test case library that matches each function in the function list;
[0015] Receive the user's test case selection instruction and generate each test sub-sequence based on the test case selection instruction.
[0016] According to the present invention, a test sequence generation method is provided, which, after generating each test sub-sequence based on the test case selection instruction, further includes:
[0017] Establish a sequence mapping relationship between each test sub-sequence and the test cases that match the test case selection instruction;
[0018] Generate test sequences corresponding to each test subsequence and establish a test sequence library corresponding to the test sequences;
[0019] The test case-test sequence library mapping relationship is obtained based on the sequence mapping relationship described above.
[0020] According to the present invention, a test sequence generation method is provided, which, after establishing the test sequence library corresponding to the test sequence, further includes:
[0021] Iterate through and verify the test cases mapped to each test sequence in the test sequence library.
[0022] According to the present invention, a test sequence generation method is provided, which, after traversing and verifying the test cases mapped to each test sequence in the test sequence library, further includes:
[0023] If, during the traversal and verification, it is found that there is at least one first test case in the test case library that does not have a sequence mapping relationship with the test sequence, a first prompt message is output to notify the user to correct the sequence mapping relationship of the first test case.
[0024] According to the present invention, a test sequence generation method is provided, which, after traversing and verifying the test cases mapped to each test sequence in the test sequence library, further includes:
[0025] If, after traversing and verifying, at least one second test case in the test case library has at least two sequence mapping relationships with the test sequence, a second prompt message is output to notify the user to correct the sequence mapping relationship of the second test case.
[0026] The present invention also provides a test sequence generation apparatus, comprising:
[0027] An analysis unit is configured to analyze a change list upon receiving it, and determine at least one target function that matches the change list.
[0028] The determining unit is used to determine, based on a pre-built function list-test case library mapping relationship, at least one target test case that matches each of the target functions in the test case library from the function list;
[0029] The generation unit is used to generate the target test sequence corresponding to the target test case based on the pre-built test sequence library.
[0030] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the test sequence generation method as described above.
[0031] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the test sequence generation method as described above.
[0032] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the test sequence generation method as described above.
[0033] The test sequence generation method, apparatus, device, and medium provided by this invention analyze a change list upon receipt to determine at least one target function that matches the change list; based on a pre-built function list-test case library mapping relationship, determine at least one target test case that matches each target function in the test case library; and generate a target test sequence corresponding to the target test case according to a pre-built test sequence library. Thus, based on the pre-built function list, test case library, function list-test case library mapping relationship, and test sequence library, test sequences are automatically generated according to the change content, thereby improving testing efficiency and further avoiding test sequence omissions caused by human operation, thus ensuring the integrity of the test sequences and reducing redundancy. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0035] Figure 1 This is one of the flowcharts illustrating the test sequence generation method provided by the present invention;
[0036] Figure 2 This is a schematic diagram of the test sequence generation device provided by the present invention;
[0037] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0039] The following is combined Figure 1 This invention describes a method for generating test sequences.
[0040] Figure 1 This is one of the flowcharts illustrating the test sequence generation method provided by the present invention, such as... Figure 1 As shown, the method includes:
[0041] Step 100: Upon receiving a change list, analyze the change list to determine at least one target function that matches the change list;
[0042] Specifically, an impact analysis is performed on each change included in the change list. This impact analysis refers to analyzing the code and documentation affected by the change, and whether the change will affect the project schedule. In this embodiment, the analysis mainly focuses on identifying the affected target functions for each change, such as the daily inspection function, the rollback function, and the single-vehicle operation function.
[0043] Step 200: Based on the pre-built function list-test case library mapping relationship, determine at least one target test case in the test case library that matches each target function in the function list;
[0044] The Function List - Test Case Library Mapping Relationship refers to the mapping relationship between each function and the test cases under each function in the test case library.
[0045] In this step, after analyzing the affected target functions, in order to improve the automatic generation speed of test sequences, all test cases that match each target function in the test case library can be determined from the function list based on the pre-built function list-test case library mapping relationship, and all test cases are used as target test cases.
[0046] In addition, to improve the accuracy of automatic test sequence generation, the system can first determine all test cases that match each target function in the test case library based on the pre-built function list-test case library mapping relationship. Then, all test cases that match each target function are displayed in a list for visualization. Users can select target test cases from the visualized list to accurately identify the relevant target test cases.
[0047] Step 300: Generate the target test sequence corresponding to the target test case based on the pre-built test sequence library.
[0048] The pre-built test sequence library refers to a sequence library that is pre-divided based on functions. Each sequence in the test sequence library is mapped to at least one function, and the relevant test cases for each function can be determined from the function list based on the pre-built function list-test case library mapping relationship.
[0049] In other words, in practical applications, a certain function may contain several test cases. These test cases may belong to different test sequences or to the same test sequence. Therefore, in this embodiment, the test cases in the test case library are allocated according to the sequence division method to form a test sequence library.
[0050] In this step, after obtaining the target test cases, the target test cases are verified according to the relevant test cases matched with the functions and the test cases under the functions recorded in the test sequence library. Specifically, the test cases are verified to be complete and to be duplicated. If the verification is passed, the corresponding target test sequence is generated according to the test sequences in which each test case exists and their order in the test sequence recorded in the test sequence library.
[0051] In this step, the target test sequence is automatically generated by using a pre-built test sequence library to assist test cases. Due to the completeness of the test content in the pre-built test sequence library, the completeness of the test content of the target test sequence is thus guaranteed.
[0052] The test sequence generation method provided by this invention analyzes a change list upon receiving it to determine at least one target function that matches the change list; based on a pre-built function list-test case library mapping relationship, it determines at least one target test case that matches each target function in the test case library; and it calls a pre-built test sequence library to generate target test sequences from the target test cases. Thus, based on the pre-built function list, test case library, function list-test case library mapping relationship, and test sequence library, it automatically generates test sequences according to the change content, thereby improving testing efficiency and further avoiding test sequence omissions caused by human operation, thus ensuring the integrity of the test sequences and reducing redundancy.
[0053] Based on the above embodiments, before step 200, the method further includes:
[0054] The test cases in the test case library are functionally divided, the functions matched by each test case are determined, and a function list corresponding to the function is generated.
[0055] Establish a test case mapping relationship between each test case and the functions that match each test case, so as to obtain the function list-test case library mapping relationship.
[0056] The function list-test case library mapping relationship refers to the mapping relationship between each function in the function list and the test cases in the test case library. For example, X = function 1, Y = test case 2, test case 3, test case 6, test case 10, which means that test case 2, test case 3, test case 6, and test case 10 are all test cases corresponding to function 1.
[0057] In this step, each test case in the test case library is traversed and labeled with functional tags. Specifically, each test case in the test case library is visualized one by one, and the functional tags marked by the user are received, such as daily inspection function, reverse function, and bicycle operation.
[0058] After visualizing and receiving the corresponding function tags one by one, the function tags are summarized to generate a function list corresponding to each function. This ensures that the function list fully covers the test case library.
[0059] After obtaining the function list, a test case mapping relationship is established between each test case and its matching function based on the function tags marked on each test case. In this embodiment, in order to improve the efficiency of subsequent automatic generation, a test case mapping relationship is established between each function in the function list and several test cases. That is, in actual application, one test case corresponds to only one function, while a function can have a mapping relationship with several test cases.
[0060] Therefore, in this step, by first dividing the test cases into functions to obtain a function list, and then generating a function list-test case library mapping relationship between the two, users can automatically select the test cases involved in the functions they select through this pre-built mapping relationship, thereby greatly saving the time of manually compiling test cases.
[0061] Based on the above embodiments, in order to save time in manually compiling test sequences, this embodiment, after generating the function list-test case library mapping relationship according to the various test case mapping relationships, further includes:
[0062] Receive user function selection instructions for each test subsequence to be generated in each test sequence to be generated, and determine the matching function for each test subsequence to be generated based on the function selection instructions;
[0063] Based on the mapping relationship between the function list and the test case library, determine at least one test case in the test case library that matches each function in the function list;
[0064] Receive the user's test case selection instruction and generate each test sub-sequence based on the test case selection instruction.
[0065] In this step, the test sequences are divided according to the run level and mode matched by the test sequence. First, the functions included in the test sequence are selected. Specifically, a list of functions is displayed visually, allowing users to click and select the corresponding functions in sequence. Then, based on the pre-built mapping relationship between the function list and the test case library, a list of test cases corresponding to each function is displayed visually. Users then select the corresponding test cases as the first, second, etc., test cases under that function, thereby generating each test subsequence.
[0066] In this step, test cases are selected based on functionality, making the subsequent process of compiling test sequences clear and straightforward, eliminating the need to analyze each test case individually.
[0067] Furthermore, in another embodiment, after dividing the test cases into various test sub-sequences according to their functions, to avoid a certain test case not being included in any test sequence, after generating each test sub-sequence based on the test case selection instruction, the method further includes:
[0068] Establish a sequence mapping relationship between each test sub-sequence and the test cases that match the test case selection instruction;
[0069] Generate test sequences corresponding to each test subsequence and establish a test sequence library corresponding to the test sequences;
[0070] The test case-test sequence library mapping relationship is obtained based on the sequence mapping relationship described above.
[0071] In this step, a sequence mapping relationship between each test subsequence and the test cases is first constructed based on the test case selection instructions. Each test subsequence refers to a subsequence formed by at least one test case under a certain function.
[0072] In this embodiment, since in actual testing, it is possible to test only one function or multiple functions, after establishing the sequence mapping relationship, the test sub-sequences are displayed in a list format, and the user's test sequence selection instructions are received, thereby generating the test sequences under each selection instruction, and summarizing all generated test sequences to form a pre-built test sequence library.
[0073] Furthermore, to ensure that a test case exists in only one test sequence and to avoid repeated testing of subsequent test cases, in another embodiment, after establishing the test sequence library corresponding to the test sequence, the method further includes:
[0074] Iterate through and verify the test cases mapped to each test sequence in the test sequence library.
[0075] Specifically, this step verifies whether the test case exists in two or more test sequences simultaneously. In addition, to avoid a test case not being included in any test sequence, it is also necessary to verify whether all test cases in the test sequence library are included in a certain test sequence.
[0076] Specifically, in another embodiment, if it is found through traversal and verification that there is at least one first test case in the test case library that does not have a sequence mapping relationship with the test sequence, a first prompt message is output to notify the user to correct the sequence mapping relationship of the first test case.
[0077] In this step, when it is found that a first test case does not have a sequence mapping relationship with the test sequence, a first prompt message indicating that the first test case does not exist in the test sequence is displayed visually, prompting the user to manually enter the relevant sequence mapping relationship. After receiving the relevant sequence mapping relationship entered by the user, the verification operation of the test case is automatically started until the test case is accurately assigned to a certain test sequence, thereby ensuring the integrity of the test content in the subsequent testing process.
[0078] Specifically, in another embodiment, if it is found that there is at least one second test case in the test case library that has at least two sequence mapping relationships with the test sequence, a second prompt message is output to notify the user to correct the sequence mapping relationship of the second test case.
[0079] In this step, when a second test case is found to exist in at least two test sequences, a second prompt message is displayed visually, indicating that the test case and its at least two related test sequences. This prompts the user to reselect the target test sequence to which the second test case belongs, thereby ensuring that each test case in the test case library exists in one test sequence and only in one test sequence, thus avoiding duplicate testing of test cases.
[0080] The test sequence generation apparatus provided by the present invention is described below. The test sequence generation apparatus described below and the test sequence generation method described above can be referred to in correspondence.
[0081] refer to Figure 2 , Figure 2 This is a schematic diagram of the test sequence generation device provided by the present invention, as shown below. Figure 2 As shown, the test sequence generation device includes: an analysis unit 210, configured to analyze the change list upon receiving it, and determine at least one target function matched by the change list; a determination unit 220, configured to determine at least one target test case matched by each target function in the test case library based on a pre-built function list-test case library mapping relationship; and a generation unit 230, configured to generate a target test sequence corresponding to the target test case according to a pre-built test sequence library.
[0082] Furthermore, the determining unit 220 is also used to perform functional division of each test case in the test case library, determine the function matched by each test case, and generate a function list corresponding to the function; establish a test case mapping relationship between each test case and the function matched by each test case to obtain the function list-test case library mapping relationship.
[0083] Furthermore, the determining unit 220 is also configured to receive a user's function selection instruction for each sub-sequence to be generated in each test sequence to be generated, and determine the function matching each sub-sequence to be generated based on the function selection instruction; determine at least one test case matching each function in the test case library from the function list based on the function list-test case library mapping relationship; receive the user's test case selection instruction for the test case, and generate each test sub-sequence based on the test case selection instruction.
[0084] Furthermore, the determining unit 220 is also used to establish a sequence mapping relationship between each test sub-sequence and the test cases that match the test case selection instruction; generate test sequences corresponding to each test sub-sequence, and establish a test sequence library corresponding to the test sequences; and obtain a test case-test sequence library mapping relationship based on each sequence mapping relationship.
[0085] Furthermore, the determining unit 220 is also used to traverse and verify the test cases mapped to each test sequence in the test sequence library.
[0086] Furthermore, the determining unit 220 is also configured to output a first prompt message to notify the user to correct the sequence mapping relationship of the first test case when it is found through traversal verification that there is at least one first test case in the test case library that does not have a sequence mapping relationship with the test sequence.
[0087] Furthermore, the determining unit 220 is also configured to, when it is verified that there is at least one second test case in the test case library that has at least two sequence mapping relationships with the test sequence, output a second prompt message to notify the user to correct the sequence mapping relationship of the second test case.
[0088] The test sequence generation device provided by this invention analyzes a change list upon receiving it to determine at least one target function that matches the change list; it then determines at least one target test case in the test case library that matches each target function from the function list based on a pre-built function list-test case library mapping relationship; and finally, it generates a target test sequence corresponding to the target test case based on the pre-built test sequence library. Thus, based on the pre-built function list, test case library, function list-test case library mapping relationship, and test sequence library, it automatically generates test sequences according to the changes, thereby improving testing efficiency and further avoiding test sequence omissions caused by human operation, thus ensuring the integrity of the test sequences and reducing redundancy.
[0089] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3As shown, the electronic device may include a processor 310, a communications interface 320, a memory 330, and a communication bus 340, wherein the processor 310, communications interface 320, and memory 330 communicate with each other via the communication bus 340. The processor 310 can invoke logical instructions in the memory 330 to execute a test sequence generation method. This method includes: upon receiving a change list, analyzing the change list to determine at least one target function matched by the change list; determining at least one target test case matched by each target function in the test case library from the function list based on a pre-built function list-test case library mapping relationship; and generating a target test sequence corresponding to the target test case according to a pre-built test sequence library.
[0090] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0091] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the test sequence generation method provided by the above methods. The method includes: upon receiving a change list, analyzing the change list to determine at least one target function that matches the change list; determining at least one target test case that matches each target function in the test case library from the function list based on a pre-built function list-test case library mapping relationship; and generating a target test sequence corresponding to the target test case according to a pre-built test sequence library.
[0092] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a test sequence generation method provided by the above methods. The method includes: upon receiving a change list, analyzing the change list to determine at least one target function matched by the change list; determining at least one target test case in the test case library that matches each target function from the function list based on a pre-built function list-test case library mapping relationship; and generating a target test sequence corresponding to the target test case according to a pre-built test sequence library.
[0093] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0094] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating test sequences, characterized in that, include: Upon receiving a change list, the change list is analyzed to determine at least one target function that matches the change list; Based on the pre-built function list-test case library mapping relationship, determine at least one target test case in the test case library for each target function in the function list; Generate the target test sequence corresponding to the target test case based on the pre-built test sequence library; Before determining at least one target test case in the test case library that matches each target function in the function list based on the pre-built function list-test case library mapping relationship, the process includes: The test cases in the test case library are functionally divided, the functions matched by each test case are determined, and a function list corresponding to the function is generated. Establish a test case mapping relationship between each test case and the functions that match each test case to obtain the function list-test case library mapping relationship; wherein, each test case corresponds to only one function, and each function corresponds to several test cases; Receive user function selection instructions for each test subsequence to be generated in each test sequence to be generated, and determine the matching function for each test subsequence to be generated based on the function selection instructions; Based on the mapping relationship between the function list and the test case library, determine at least one test case in the test case library that matches each function in the function list; Receive the user's test case selection instruction for the test cases, and generate each test sub-sequence based on the test case selection instruction; Establish a sequence mapping relationship between each test sub-sequence and the test cases that match the test case selection instruction; Generate test sequences corresponding to each test subsequence and establish a test sequence library corresponding to the test sequences; The test case-test sequence library mapping relationship is obtained based on the sequence mapping relationships described above; The test cases mapped to each test sequence in the test sequence library are traversed and verified to ensure that each test case in the test case library exists in one and only one test sequence.
2. The test sequence generation method according to claim 1, characterized in that, The step of traversing and verifying the test cases mapped to each test sequence in the test sequence library also includes: If, during the traversal and verification, it is found that there is at least one first test case in the test case library that does not have a sequence mapping relationship with the test sequence, a first prompt message is output to notify the user to correct the sequence mapping relationship of the first test case.
3. The test sequence generation method according to claim 1, characterized in that, The step of traversing and verifying the test cases mapped to each test sequence in the test sequence library also includes: If, after traversing and verifying, at least one second test case in the test case library has at least two sequence mapping relationships with the test sequence, a second prompt message is output to notify the user to correct the sequence mapping relationship of the second test case.
4. A test sequence generation device, characterized in that, include: An analysis unit is configured to analyze a change list upon receiving it, and determine at least one target function that matches the change list. The determining unit is used to determine, based on a pre-built function list-test case library mapping relationship, at least one target test case that matches each of the target functions in the test case library from the function list; The generation unit is used to generate the target test sequence corresponding to the target test case based on the pre-built test sequence library; Before determining at least one target test case in the test case library that matches each target function in the function list based on the pre-built function list-test case library mapping relationship, the process includes: The test cases in the test case library are functionally divided, the functions matched by each test case are determined, and a function list corresponding to the function is generated. Establish a test case mapping relationship between each test case and the functions that match each test case to obtain the function list-test case library mapping relationship; wherein, each test case corresponds to only one function, and each function corresponds to several test cases; Receive user function selection instructions for each test subsequence to be generated in each test sequence to be generated, and determine the matching function for each test subsequence to be generated based on the function selection instructions; Based on the mapping relationship between the function list and the test case library, determine at least one test case in the test case library that matches each function in the function list; Receive the user's test case selection instruction for the test cases, and generate each test sub-sequence based on the test case selection instruction; Establish a sequence mapping relationship between each test sub-sequence and the test cases that match the test case selection instruction; Generate test sequences corresponding to each test subsequence and establish a test sequence library corresponding to the test sequences; The test case-test sequence library mapping relationship is obtained based on the sequence mapping relationships described above; The test cases mapped to each test sequence in the test sequence library are traversed and verified to ensure that each test case in the test case library exists in one and only one test sequence.
5. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the test sequence generation method as described in any one of claims 1 to 3.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the test sequence generation method as described in any one of claims 1 to 3.