Test case determination method and device, electronic equipment and storage medium

By comparing the first code and the second code, the library table usage is determined to determine the target test cases, which solves the problem that the test cases cannot be determined in a timely and accurate manner after the code changes in the existing technology, and improves the test case determination during code changes. Efficiency and reliability.

CN119292946APending Publication Date: 2025-01-10PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411571134.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

After the software code changes, the prior art needs to execute test cases in advance and establish the relationship between the use cases and the code path, resulting in increased complexity of code engineering and unpredictable risks, and the test cases corresponding to the change code cannot be determined in a timely and accurate manner.

Method used

By obtaining the first code and the updated second code, comparing it to determine the usage of the library table corresponding to the second code, determining the target test case based on the usage of the library table, and ensuring the implementation of the test service.

Benefits of technology

When the code changes, the test cases corresponding to the changed code can be determined in a timely and accurate manner, which improves practicality and operability, and reduces the complexity and risks of code engineering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292946A_ABST
    Figure CN119292946A_ABST
Patent Text Reader

Abstract

The invention provides a test case determination method and device, electronic equipment and a storage medium, and the method comprises the steps that a first code and a second code are obtained, and the second code is obtained by updating the first code; the first code and the second code are compared to determine at least one first library table usage corresponding to the second code, and the first library table usage is used for indicating an updating function of the second code; the target test case corresponding to the second code is determined according to the first library table usage, and the target test case realizes the test service based on the second code, so that the test case corresponding to the changed code can be determined timely and accurately under the condition that the code is changed, and the method has high practicability and operability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of software development technology, and in particular to a test case determination method, device, electronic device and storage medium. Background Art

[0002] After the software code changes, testing is required to verify the functions implemented by the new code and the functions affected, so as to determine whether the system functions correctly, whether new errors are introduced or errors are caused in other codes. Therefore, test cases need to be selected for comprehensive verification.

[0003] In the related technology, it is necessary to execute test cases in advance and establish the association relationship between the test cases and the code path before selecting test cases. If test cases are added or modified, they need to be executed to establish the correct association relationship, and the original code project needs to add additional code to establish the association relationship between the test cases and the code path, which will increase the complexity of the code project and unpredictable risks. Summary of the invention

[0004] The present disclosure proposes a test case determination method, device, electronic device, storage medium and computer program product, aiming to solve the technical problems in the related technologies at least to a certain extent.

[0005] An embodiment of the first aspect of the present disclosure proposes a test case determination method, the method comprising: obtaining a first code and a second code, wherein the second code is obtained by updating the first code, comparing the first code and the second code to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate an update function of the second code, and determining a target test case corresponding to the second code based on the first library table usage, wherein the target test case implements a test service based on the second code.

[0006] The second aspect of the present disclosure proposes a test case determination device, which includes: an acquisition module, used to acquire a first code and a second code, wherein the second code is obtained by updating the first code; a first determination module, used to compare the first code and the second code to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate the update function of the second code; a second determination module, used to determine a target test case corresponding to the second code based on the first library table usage, wherein the target test case implements a test service based on the second code, thereby being able to promptly and accurately determine the test case corresponding to the changed code when the code is changed, and having high practicality and operability.

[0007] An embodiment of the third aspect of the present disclosure proposes an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement a test case determination method as described in the embodiment of the first aspect of the present disclosure.

[0008] The fourth aspect embodiment of the present disclosure proposes a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by the processor of an electronic device, the electronic device can implement the test case determination method as in the first aspect embodiment of the present disclosure.

[0009] The fifth aspect embodiment of the present disclosure proposes a computer program product, including a computer program, characterized in that the computer program is executed by a processor as the test case determination method of the first aspect embodiment of the present disclosure.

[0010] The test case determination method, device, electronic device, storage medium and computer program product proposed in this embodiment have at least the following beneficial effects: by obtaining a first code and a second code, wherein the second code is obtained by updating the first code; comparing the first code and the second code to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate the update function of the second code; determining a target test case corresponding to the second code according to the first library table usage, wherein the target test case implements a test service based on the second code, thereby being able to timely and accurately determine the test case corresponding to the changed code in the event of a code change, and having high practicality and operability.

[0011] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0013] Figure 1 is a flowchart of a test case determination method according to the first embodiment of the present disclosure;

[0014] Figure 2 is a flow chart of a test case determination method according to the second embodiment of the present disclosure;

[0015] Figure 3 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0016] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present disclosure, and are not to be construed as limitations of the present disclosure. On the contrary, the embodiments of the present disclosure include all changes, modifications, and equivalents that fall within the spirit and connotation of the appended claims.

[0017] It should be noted that the execution subject of the test case determination method of this embodiment may be a first server, and the first server may be configured in an electronic device, and the electronic device may include but is not limited to a terminal, a server, and the like.

[0018] It should be noted that the process of obtaining, storing, using, and processing information in the disclosed technical solution complies with the relevant provisions of national laws and regulations and does not violate public order and good morals.

[0019] It should be noted that in the embodiments of the present application, there may be existing solutions in the industry such as certain software, components, models, etc., which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the relevant content of the solution.

[0020] Figure 1 is a flow chart of a test case determination method according to the first embodiment of the present disclosure, such as Figure 1 As shown, the method includes:

[0021] S101: Acquire a first code and a second code, wherein the second code is obtained by updating the first code.

[0022] The code used to execute the test task described by a test case determined in the initial stage is the first code, and the first code may also be empty, and there is no limitation on this.

[0023] Among them, the new code set obtained after updating the first code is the second code, and the updating of the first code can be, for example, the code directly generated when the first code does not exist (that is, the first code is empty), or the first code can be modified, deleted, etc. to obtain the second code, and there is no limitation on this.

[0024] In the embodiment of the present disclosure, the first code may be obtained from a code library, and when it is detected that the first code is updated, the updated second code is obtained.

[0025] S102: Compare the first code and the second code to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate an update function of the second code.

[0026] Among them, the first library table usage is used to indicate the update function of the second code. The first library table usage can refer to the functional description information of the updated part of the second code compared with the first code. The first library table usage can be, for example: list addition, list query, etc., without limitation.

[0027] In an embodiment of the present disclosure, after obtaining the first code and the second code, the first code and the second code can be compared to determine the portion of code that is updated in the second code compared to the first code, and determine the functional description information corresponding to the portion of code, and use the functional description information as the first library table usage.

[0028] Optionally, in some embodiments, the first code and the second code are compared to determine at least one first library table usage corresponding to the second code. The first code and the second code may be compared to determine at least one update code group, determine functional description information corresponding to each update code group, and then generate the first library table usage corresponding to the second code group based on the functional description information.

[0029] Among them, the part of the second code that is updated compared to the first code is the updated code group, and each code group can be used to implement corresponding functional operations, such as querying a list, storing a list, etc., without limitation.

[0030] The information used to describe the functional operation implemented by each code group is the functional description information.

[0031] That is to say, in the embodiment of the present disclosure, the first code and the second code can be compared, and the parts of the second code group that are different from the first code group can be used as update code groups, and then the function description information corresponding to each update code group can be determined, and the function description information can be used as the first library table.

[0032] Optionally, in some embodiments, generating a first library table usage corresponding to the second code group based on the function description information may be performed by extracting a first label value from the function description information based on a preset operation label, wherein the preset label includes: operation object information and operation behavior information, and determining the first label value as the first library table usage corresponding to the second code group.

[0033] The operation object may refer to object information that needs to be processed when executing a test service based on a code, and the first label value corresponding to the operation object may be, for example, student name information, class information, etc., without limitation.

[0034] Among them, the operation behavior information refers to the operation behavior that needs to be performed on the object to be processed when the code-based test service is executed, and the first label value corresponding to the operation behavior object can be, for example, deletion, modification, addition, etc., without limitation.

[0035] That is to say, in the embodiment of the present disclosure, the first label value may be extracted from the function description information based on the preset operation label, and the first label value may be determined as the first library table usage corresponding to the second code group.

[0036] For example, if the operation object is table A and the operation behavior information is update, then the first library table usage is: "Table A-Update"; if the operation object is table A and the operation behavior information is delete, then the first library table usage is: "Table A-Delete"; if the operation object is table A and the operation behavior information is query, then the first library table usage is: "Table A-Query"; there is no restriction on this.

[0037] S103: Determine a target test case corresponding to the second code according to the usage of the first library table, wherein the target test case implements a test service based on the second code.

[0038] In an embodiment of the present disclosure, after comparing the first code and the second code to determine at least one first library table usage corresponding to the second code, a target test case corresponding to the second code can be determined based on the first library table usage, wherein the target test case implements a test service based on the second code.

[0039] In some embodiments, determining a target test case corresponding to the second code based on the first library table usage can be accomplished by obtaining a mapping relationship between a reference library table usage and a reference test case, and after determining the first library table usage, determining a reference test case corresponding to the first library table usage based on the mapping relationship between the reference library table usage and the reference test case, and using the reference test case corresponding to the first library table usage as the target test case.

[0040] In some other embodiments, a combined large model can be used to determine the target test case corresponding to the second code based on the usage of the first library table. That is, the usage of the first library table can be input into the large model to obtain the use case description information output by the large model, and the target test case can be determined based on the use case description information. There is no limitation to this.

[0041] Optionally, in some embodiments, determining a target test case corresponding to the second code based on the first library table usage may be by obtaining a plurality of candidate test cases, wherein each candidate test case includes a plurality of test process information; determining a second library table usage based on each test process information, wherein the second library table usage is used to indicate a test requirement corresponding to each test process information; and determining a target test case corresponding to the second code based on the first library table usage and the second library table usage.

[0042] Each candidate test case includes a plurality of test process information, and the test process information may refer to test steps.

[0043] For example, the test function of the candidate test case is to test the function of adding new students. The test process information included in the candidate test case includes: Step 1: query the students table to confirm the current number of students Step 2: call the addstudent method to add a new student Step 3: query the students table to confirm that the number of students has increased, and there is no restriction on this.

[0044] That is to say, in the embodiment of the present disclosure, multiple candidate test cases can be obtained, and the test process information corresponding to each candidate test case can be determined, and then keywords related to the test requirements can be extracted from the test process information, and the aforementioned extracted keywords related to the test requirements can be used as the second library table, and there is no restriction on this.

[0045] Optionally, in some embodiments, the usage of the second library table is determined according to each test process information, and the second label value can be extracted from the functional description information based on a preset test requirement label, wherein the preset test requirement label includes: test object information and test behavior information, and the second label value is determined as the usage of the second library table.

[0046] The test object information is used to indicate the object to be processed in this test step, such as student name, student number, etc., and there is no restriction on this.

[0047] The test behavior information is used to indicate the test behavior that needs to be performed on the object to be processed in this test step, for example, querying, calling xx method, etc., and there is no restriction on this.

[0048] That is to say, in the embodiment of the present disclosure, the second label value may be extracted from the functional description information based on the preset test requirement label, and the second label value may be determined as the second library table usage, and there is no limitation on this.

[0049] For example, if the steps of the candidate test case include an operation of querying data in table A, the usage of the second library table is determined to be: "Table A-Query"; if the steps of the candidate test case include an operation of adding data to table A, the usage of the second library table is determined to be: "Table A-Add", and there is no restriction on this.

[0050] In the embodiment of the present disclosure, after determining the usage of the first library table and the usage of the second library table, a target test case compatible with the second code can be determined based on the usage of the first library table and the second library table, so that the test service described by the target test case can be executed based on the second code.

[0051] Optionally, in some embodiments, a target test case corresponding to the second code is determined based on the first library table usage and the second library table usage. The first library table usage and each second library table usage may be matched separately to determine multiple matching degree values. When the matching degree value is greater than or equal to a matching degree threshold, the candidate test case corresponding to the second library table usage is determined as the target test case.

[0052] The matching degree value may be, for example, a text similarity value between the first library table usage and the second matching usage, or the number of matching library table usages in the first library table usage and the second library table usage, etc., and there is no limitation on this.

[0053] The matching degree threshold can be determined in conjunction with test cases in actual business scenarios and can be set adaptively without any restrictions.

[0054] That is to say, in the embodiment of the present disclosure, the first library table usage and each second library table usage may be matched separately to determine multiple matching degree values. When the matching degree value is greater than or equal to the matching degree threshold, the candidate test case corresponding to the second library table usage is determined as the target test case.

[0055] For example, if the "first library table usage" corresponding to the second code contains "Table A-query", then it can be determined that the target test case in which the second library table usage contains "Table A-query" is selected; if the "first library table usage" corresponding to the second code contains "Table A-addition" or "Table A-modification" or "Table A-deletion", then it can be determined that the target test case in which the second library table usage contains "Table A-addition" or "Table A-modification" or "Table A-deletion" is selected; there is no restriction on this.

[0056] In the disclosed embodiment, a first code and a second code are obtained, wherein the second code is obtained by updating the first code; the first code and the second code are compared to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate an update function of the second code; and a target test case corresponding to the second code is determined according to the first library table usage, wherein the target test case implements a test service based on the second code. Thus, in the event of a code change, the test case corresponding to the changed code can be determined in a timely and accurate manner, which has high practicality and operability.

[0057] Figure 2 is a block diagram of a test case determination device according to the present disclosure, such as Figure 2 As shown, the test case determination device 20 includes:

[0058] An acquisition module 201 is used to acquire a first code and a second code, wherein the second code is obtained by updating the first code;

[0059] A first determination module 202, configured to compare the first code with the second code to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate an update function of the second code;

[0060] The second determination module 203 is used to determine a target test case corresponding to the second code according to the usage of the first library table, wherein the target test case implements a test service based on the second code.

[0061] In some embodiments of the present disclosure, the first determining module 202 is further configured to:

[0062] comparing the first code and the second code to determine at least one updated code group;

[0063] Determining functional description information corresponding to each update code group;

[0064] A first library table usage corresponding to the second code group is generated according to the functional description information.

[0065] In some embodiments of the present disclosure, the first determining module 202 is further configured to:

[0066] Extracting a first tag value from the function description information based on a preset operation tag, wherein the preset tag includes: operation object information and operation behavior information;

[0067] The first tag value is determined as a first library table usage corresponding to the second code group.

[0068] In some embodiments of the present disclosure, the second determining module 203 is further configured to:

[0069] Acquire multiple candidate test cases, wherein each candidate test case includes multiple test process information;

[0070] Determine the usage of the second library table according to each test process information, wherein the usage of the second library table is used to indicate the test requirement corresponding to each test process information;

[0071] According to the first library table usage and the second library table usage, a target test case corresponding to the second code is determined.

[0072] In some embodiments of the present disclosure, the second determining module 203 is further configured to:

[0073] Matching the first library table usage and each second library table usage respectively to determine a plurality of matching degree values;

[0074] When the matching degree value is greater than or equal to the matching degree threshold, the candidate test case corresponding to the second library table usage is determined as the target test case.

[0075] Extracting a second tag value from the functional description information based on a preset test requirement tag, wherein the preset test requirement tag includes: test object information and test behavior information;

[0076] The second label value is determined as the second library table usage.

[0077] In the disclosed embodiment, a first code and a second code are obtained, wherein the second code is obtained by updating the first code; the first code and the second code are compared to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate an update function of the second code; and a target test case corresponding to the second code is determined according to the first library table usage, wherein the target test case implements a test service based on the second code. Thus, in the event of a code change, the test case corresponding to the changed code can be determined in a timely and accurate manner, which has high practicality and operability.

[0078] Figure 3 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown.

[0079] Figure 3 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0080] like Figure 3 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that connects various system components (including the memory 28 and the processing unit 16).

[0081] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0082] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0083] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 3 Not shown, often called a "hard drive").

[0084] although Figure 3 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (hereinafter referred to as: CD-ROM), a digital versatile disc read only memory (hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.

[0085] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0086] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable the human body to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0087] The processing unit 16 executes various functional applications and parameter information determination by running the program stored in the memory 28, such as implementing the business data storage method mentioned in the above embodiment, or implementing the business data acquisition method mentioned in the above embodiment.

[0088] It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "plurality" is two or more.

[0089] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.

[0090] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0091] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps in the method embodiment.

[0092] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0093] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0094] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0095] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.

Claims

1. A test case determination method, characterized in that: The method comprises: Obtaining a first code and a second code, wherein the second code is obtained by updating the first code; Comparing the first code and the second code to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate an update function of the second code; According to the first library table usage, a target test case corresponding to the second code is determined, wherein the target test case implements a test service based on the second code.

2. The method according to claim 1, characterized in that The comparing the first code and the second code to determine at least one first library table usage corresponding to the second code includes: comparing the first code and the second code to determine at least one updated code group; Determining functional description information corresponding to each of the update code groups; The first library table usage corresponding to the second code group is generated according to the functional description information.

3. The method according to claim 2, characterized in that The step of generating the first library table usage corresponding to the second code group according to the functional description information includes: Extracting a first tag value from the function description information based on a preset operation tag, wherein the preset tag includes: operation object information and operation behavior information; The first label value is determined as the first library table usage corresponding to the second code group.

4. The method according to claim 1, characterized in that The step of determining a target test case corresponding to the second code according to the usage of the first library table includes: Acquire multiple candidate test cases, wherein each of the candidate test cases includes multiple test process information; Determine a second library table usage according to each of the test process information, wherein the second library table usage is used to indicate a test requirement corresponding to each of the test process information; The target test case corresponding to the second code is determined according to the first library table usage and the second library table usage.

5. The method according to claim 4, characterized in that The step of determining the target test case corresponding to the second code according to the first library table usage and the second library table usage includes: Matching the first library table usage and each of the second library table usages respectively to determine a plurality of matching degree values; When the matching degree value is greater than or equal to a matching degree threshold, the candidate test case corresponding to the second library table usage is determined as the target test case.

6. The method according to claim 4, characterized in that Determining the usage of the second library table according to each of the test process information includes: Extracting a second tag value from the functional description information based on a preset test requirement tag, wherein the preset test requirement tag includes: test object information and test behavior information; The second label value is determined as the second library table usage.

7. A test case determination device, characterized in that: The device comprises: An acquisition module, configured to acquire a first code and a second code, wherein the second code is obtained by updating the first code; A first determination module, configured to compare the first code and the second code to determine at least one first library table usage corresponding to the second code, wherein the first library table usage is used to indicate an update function of the second code; The second determination module is used to determine a target test case corresponding to the second code according to the usage of the first library table, wherein the target test case implements a test service based on the second code.

8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.