Test case generation method and device, equipment, storage medium and program product
Through multi-threaded parallel processing and buffer queue technology, the problem of low test case generation efficiency caused by large amount of message data and many types in the financial industry is solved, and more efficient test case generation is achieved.
Patent Information
- Application Number
- CN202411620803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-03-07
AI Technical Summary
In the process of digital transformation and development of complex business scenarios in the financial industry, due to the large amount of message data and the large variety of messages, the efficiency of generating test cases is low.
The first sub-threads read packet data from the database in batches, and place each packet data into the corresponding buffer queue according to the transaction code category. The second sub-threads process each packet data in the respective corresponding buffer queues in parallel, obtain target packet data, and generate test cases based on these target packet data.
Improve the efficiency of test case generation, and through multi-threading and buffering queue use, test cases can be processed and generated faster.
Smart Images

Figure CN119576768A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a test case generation method, apparatus, device, storage medium and program product. Background Art
[0002] In the digital transformation and development process of complex business scenarios in the financial industry, test cases are generated based on interface message data, which can be used as a reference for subsequent unit testing and black box testing by developers and testers. However, in related technologies, the efficiency of generating test cases is low due to problems such as large message data volume and multiple message types. Summary of the invention
[0003] The present application provides a test case generation method, apparatus, device, storage medium and program product, which can improve the test case generation efficiency.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for generating a test case, comprising: a plurality of first sub-threads respectively read message data from a database in batches; placing each message data of each first sub-thread into a corresponding buffer queue according to a transaction code category; a plurality of second sub-threads process each message data in their respective corresponding buffer queues in parallel to obtain a plurality of target message data corresponding to each second sub-thread; and generating a test case corresponding to each second sub-thread based on the plurality of target message data corresponding to each second sub-thread.
[0005] In the second aspect, the embodiment of the present disclosure also provides a test case generation device, including: a message data reading module, which is used for multiple first sub-threads to read message data from a database in batches respectively; a message data enqueue module, which is used to place each message data of each first sub-thread into a corresponding buffer queue according to the transaction code category; a message data processing module, which is used for multiple second sub-threads to process each message data in the corresponding buffer queue in parallel to obtain multiple target message data corresponding to each second sub-thread; a test case generation module, which is used to generate a test case corresponding to each second sub-thread based on the multiple target message data corresponding to each second sub-thread.
[0006] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the test case generation method as described in the embodiment of the present disclosure.
[0007] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the test case generation method as described in the embodiment of the present disclosure.
[0008] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the method for generating a test case as described in the embodiment of the present disclosure.
[0009] According to the technical solution of the disclosed embodiment, multiple first sub-threads read message data from the database in batches respectively; according to the transaction code category, each message data of each first sub-thread is placed in a corresponding buffer queue; multiple second sub-threads process each message data in the corresponding buffer queue in parallel to obtain multiple target message data corresponding to each second sub-thread; and based on the multiple target message data corresponding to each second sub-thread, a test case corresponding to each second sub-thread is generated. According to the disclosed embodiment, multiple first sub-threads read message data in batches, and place each message data into a corresponding buffer queue according to the transaction code category, and multiple second sub-threads process each message data in the corresponding buffer queue to obtain multiple target message data, and generate test cases based on multiple target message data, so as to improve the efficiency of test case generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0011] Figure 1 A flow chart of a method for generating a test case provided in an embodiment of the present application;
[0012] Figure 2 A schematic diagram of the structure of a test case generation device provided by an embodiment of the present disclosure;
[0013] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0014] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0015] It should be understood that the various steps recorded in the method implementation of the present disclosure can be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect. The term "including" and its variations used herein are open inclusions, that is, "including but not limited to". It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless otherwise clearly stated in the context, it should be understood as "one or more". It is understandable that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the corresponding laws, regulations and relevant provisions.
[0016] Figure 1 The present invention provides a flow chart of a method for generating a test case according to an embodiment of the present invention. The method can be executed by a test case generating device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC, or a server. Figure 1 As shown, the method includes:
[0017] S110 , multiple first sub-threads read message data from the database in batches respectively.
[0018] The message data may be interface message data related to bank transactions.
[0019] The plurality of first sub-threads or the plurality of second sub-threads may come from a thread pool. A thread pool may be a mechanism for creating and managing threads, which pre-creates a certain number of threads and can assign tasks of reading and processing messages to these threads as needed, thereby reducing the overhead of thread creation and destruction.
[0020] In this embodiment, there is no limit on the number of first sub-threads, which can be determined according to the amount of message data.
[0021] In this embodiment, each first thread can read message data from the database in batches.
[0022] Optionally, the plurality of first sub-threads read the message data from the database in batches respectively, including: for each first sub-thread, reading the message data from the database in batches by paging according to the log number.
[0023] In this embodiment, the message data can be searched and read in pages and batches by the primary key index, that is, the log number. In this embodiment, the efficiency of searching and reading message data can be improved by reading message data from the database in pages and batches according to the log number.
[0024] S120. Place each message data of each first sub-thread into a corresponding buffer queue according to the transaction code category.
[0025] The transaction code may be an identification name of a financial transaction. In this embodiment, there is no limit on the number of transaction code categories.
[0026] The data buffer queue may be a first-in-first-out queue data structure, where message data is written from the end of the queue and read from the head of the queue.
[0027] The category of the buffer queue is the category of the transaction code.
[0028] In this embodiment, each message data of each first subthread is classified according to the transaction code, and is placed in the corresponding buffer queue according to the transaction code category or the buffer queue category, and each message data in the buffer queue is parsed. The read-write load is balanced by decoupling the buffer queue, and the memory overflow problem caused by processing too much message data at the same time is prevented.
[0029] S130. The plurality of second sub-threads process each message data in the corresponding buffer queue in parallel to obtain a plurality of target message data corresponding to each second sub-thread.
[0030] In this embodiment, the first sub-thread and the second sub-thread are different threads. The message data includes multiple fields; the fields include field names and field values. The number of transaction code categories can be the number of buffer queues, the number of second sub-threads, or the number of test case files.
[0031] In this embodiment, each second sub-thread screens valid fields of each parsed message data (ie, multiple fields) in the corresponding buffer queue, and each second sub-thread obtains multiple target message data of its own, wherein one message data may correspond to one target message data.
[0032] Optionally, multiple second sub-threads process each message data in their respective corresponding buffer queues in parallel to obtain multiple target message data corresponding to each second sub-thread, including: for each message data in the buffer queue corresponding to each second sub-thread, screening out multiple first target fields from all fields in the message data; wherein the multiple first target fields are different fields; determining the number of field values corresponding to each first target field; taking the first target field whose number is less than a set threshold as the second target field; deduplicating the field values in each second target field to obtain multiple new second target fields; wherein the new second target field includes non-repetitive field values.
[0033] Among them, one message data corresponds to one target message data; the one target message data is obtained by combining the multiple new second target fields.
[0034] Among them, the first target field is a field for distinguishing different business scenarios. Among them, the first target field can be understood as a representative field, such as a business code, a transaction type, etc. The business code can identify a specific business category or operation, such as transfer, payment, inquiry, etc. The transaction type can identify the specific type of transaction, such as stock trading, foreign exchange trading, etc. However, the timestamp, product number, transaction date, ID number, etc. are not representative and cannot distinguish business scenarios, so they cannot be used as the first target field.
[0035] The second target field can be understood as the first target field whose number of field values is less than the set number threshold (it can also be understood as a field with few value types). In this embodiment, there is no restriction on the set number threshold, which can be determined according to actual conditions, for example, 100, 50, etc. The new second target field can be understood as the first target field without repeated field values.
[0036] Exemplarily, taking a second subthread as an example, all fields in a message data are a, b, c, d, e, and the first target field can be a, c, d. The threshold value of the number of entries is set to 100. Assume that the number of field values of field a is 99, the number of field values of field c is 60, and the number of field values of field d is 101. Since the number of field values of field d, 101, is greater than the set threshold value of 100, the second target field can be a (the number of field values is 99), c. Assume that among the 99 field values of field a, two field values are repeated, then delete any one of the field values, retain the remaining field value, and the number of field values of field a becomes 98. Therefore, the new second target field can be a, c, but the number of field values of a becomes 98.
[0037] In this embodiment, for each message data of each batch of message data, multiple first target fields can be screened out from all fields; and the first target field whose field value number is less than the set number threshold (which can be adjusted dynamically) is used as the second target field; the field value in each second target field is deduplicated to obtain multiple new second target fields. When processing a large amount of data, by setting the number threshold and deduplication operation, memory usage can be effectively controlled to prevent memory overflow problems caused by excessive data volume. At the same time, message data with large data volume and high repetition rate can be dynamically processed, and valid fields can be quickly extracted from the message data, thereby improving the efficiency and quality of test case generation.
[0038] S140. Generate a test case corresponding to each second sub-thread based on the multiple target message data corresponding to each second sub-thread.
[0039] In this embodiment, the test cases corresponding to each second sub-thread may be test cases of different transaction categories, that is, the test cases corresponding to one second sub-thread may be multiple second target fields corresponding to message data of the same transaction category. In this embodiment, each second sub-thread may generate a corresponding test case based on the corresponding multiple target message data.
[0040] Exemplarily, the message data read by each first sub-thread may be message data of different transaction categories, for example, the transaction code of the message data read by a certain first sub-thread may be AABC. Assume that there are three types of buffer queues, the first buffer queue specifically stores message data of transaction code category A, the second buffer queue specifically stores message data of transaction code category B, and the third buffer queue specifically stores message data of transaction code category C. The number of second sub-threads may be 3, for example, the first second sub-thread may specifically process message data in the first buffer queue, the second second sub-thread may specifically process message data in the second buffer queue, the third second sub-thread may specifically process message data in the third buffer queue, and the three second sub-threads read and process message data in their respective corresponding buffer queues in parallel. The file name of the test case generated by each second sub-thread may be named according to the corresponding transaction code. For example, the file name of the test case generated by the first second sub-thread may be recorded as A.csv. The file name of the test case generated by the second second sub-thread may be recorded as B.csv. The file name of the test case generated by the third second sub-thread may be recorded as C.csv.
[0041] According to the technical solution of the disclosed embodiment, multiple first sub-threads read message data from the database in batches respectively; according to the transaction code category, each message data of each first sub-thread is placed in a corresponding buffer queue; multiple second sub-threads process each message data in the corresponding buffer queue in parallel to obtain multiple target message data corresponding to each second sub-thread; and based on the multiple target message data corresponding to each second sub-thread, a test case corresponding to each second sub-thread is generated. According to the disclosed embodiment, multiple first sub-threads read message data in batches, and place each message data into a corresponding buffer queue according to the transaction code category, and multiple second sub-threads process each message data in the corresponding buffer queue to obtain multiple target message data, and generate test cases based on multiple target message data, so as to improve the efficiency of test case generation.
[0042] It should be noted that the solution provided in the embodiment of the present invention can also use a single thread to read and process messages. However, under different data scales, multi-threading consumes less time and is more efficient than single-threading.
[0043] Figure 2 A schematic diagram of a test case generation device provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the device comprises:
[0044] The message data reading module 210 is used for the multiple first sub-threads to read the message data from the database in batches respectively;
[0045] The message data enqueue module 220 is used to place each message data of each first sub-thread into a corresponding buffer queue according to the transaction code category;
[0046] The message data processing module 230 is used for multiple second sub-threads to process each message data in the corresponding buffer queue in parallel, and obtain multiple target message data corresponding to each second sub-thread;
[0047] The test case generating module 240 is used to generate a test case corresponding to each second sub-thread based on the multiple target message data corresponding to each second sub-thread.
[0048] Wherein, the message data includes multiple fields; the fields include field names and field values; the message data processing module is specifically used for: for each message data in the buffer queue corresponding to each second sub-thread, screening out multiple first target fields from all fields in the message data; wherein, the multiple first target fields are different fields; determining the number of field values corresponding to each first target field; taking the first target field whose number is less than a set number threshold as the second target field; deduplicating the field values in each second target field to obtain multiple new second target fields; wherein, the new second target field includes non-repeated field values; wherein, one message data corresponds to one target message data; the one target message data is obtained by combining the multiple new second target fields.
[0049] Among them, the first target field is a field for distinguishing different business scenarios.
[0050] Optionally, the message data reading module is specifically used to: for each first sub-thread, read the message data from the database in pages and batches according to the log number.
[0051] The test case generation device provided in the embodiments of the present disclosure can execute the test case generation method provided in any embodiment of the present disclosure, and has the functional modules and beneficial effects corresponding to the execution method.
[0052] Figure 3 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0053] like Figure 3As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0054] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0055] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the generation of method test cases.
[0056] In some embodiments, the generation of method test cases can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the generation of the method test cases described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the generation of method test cases in any other suitable manner (e.g., by means of firmware).
[0057] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0058] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0059] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0060] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0061] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0062] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0063] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements a test case generation method as provided in any embodiment of the present application.
[0064] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present application, and the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0065] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for generating a test case, characterized in that: include: Multiple first sub-threads read message data from the database in batches respectively; According to the transaction code category, each message data of each first sub-thread is placed into the corresponding buffer queue; The plurality of second sub-threads process each message data in the corresponding buffer queue in parallel to obtain a plurality of target message data corresponding to each second sub-thread; A test case corresponding to each second sub-thread is generated based on the multiple target message data corresponding to each second sub-thread.
2. The method according to claim 1, characterized in that: in, The message data includes multiple fields; the fields include field names and field values; multiple second sub-threads process each message data in the corresponding buffer queues in parallel to obtain multiple target message data corresponding to each second sub-thread, including: For each message data in the buffer queue corresponding to each second sub-thread, a plurality of first target fields are screened out from all fields in the message data; wherein the plurality of first target fields are different fields; Determine the number of field values corresponding to each first target field; The first target field whose number is less than the set number threshold is used as the second target field; De-duplicate the field values in each second target field to obtain multiple new second target fields; wherein the new second target fields include non-repeating field values; wherein one message data corresponds to one target message data; wherein the one target message data is obtained by combining the multiple new second target fields.
3. The method according to claim 2, characterized in that in, The first target field is a field for distinguishing different business scenarios.
4. The method according to claim 1, characterized in that: Multiple first sub-threads read message data from the database in batches, including: For each first sub-thread, message data is read from the database in pages and batches according to the log number.
5. A test case generation device, characterized in that: include: A message data reading module, used for multiple first sub-threads to read message data from the database in batches respectively; The message data enqueue module is used to place each message data of each first sub-thread into a corresponding buffer queue according to the transaction code category; A message data processing module, used for multiple second sub-threads to process each message data in the corresponding buffer queue in parallel, and obtain multiple target message data corresponding to each second sub-thread; A test case generation module is used to generate a test case corresponding to each second sub-thread based on the multiple target message data corresponding to each second sub-thread.
6. The device according to claim 5, characterized in that in, The message data includes a plurality of fields; the fields include field names and field values; the message data processing module is specifically used to: for each message data in the buffer queue corresponding to each second sub-thread, filter out a plurality of first target fields from all fields in the message data; wherein the plurality of first target fields are different fields; Determine the number of field values corresponding to each first target field; The first target field whose number is less than the set number threshold is used as the second target field; De-duplicate the field values in each second target field to obtain multiple new second target fields; wherein the new second target fields include non-repeating field values; wherein one message data corresponds to one target message data; wherein the one target message data is obtained by combining the multiple new second target fields.
7. The device according to claim 6, characterized in that in, The first target field is a field for distinguishing different business scenarios.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the test case generation method as described in any one of claims 1 to 4.
9. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the test case generation method according to any one of claims 1 to 4 when executed by a computer processor.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the test case generation method according to any one of claims 1 to 4.