Test case generation method and device, equipment, storage medium and product

By automatically identifying the text content and transaction names in the system architecture diagram and generating a target test case table, the problem of unstable test case quality is solved, the automatic generation and stability of test cases are achieved, and the test quality is improved.

CN120631783APending Publication Date: 2025-09-12AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510942480.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-09
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

Existing test case generation methods rely on manual settings, resulting in unstable test case quality, large differences, and difficulty in ensuring test quality.

Method used

By identifying the text content in the system architecture diagram, determining the text content set, and combining it with the transaction names in the key transaction list, the target test case table is automatically generated, reducing human intervention and realizing automatic generation of test cases.

Benefits of technology

It realizes the automatic generation of test cases, avoids the influence of testers' subjective experience, ensures the stability and consistency of test case generation, and improves test quality and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120631783A_ABST
    Figure CN120631783A_ABST
Patent Text Reader

Abstract

The invention discloses a test case generation method and device, equipment, a storage medium and a product. Identifying each text content in the system architecture diagram; determining a text content set according to the text contents; determining a transaction name set according to the transaction name of each transaction record in the key transaction list; according to the text content set, the transaction name set and a to-be-filled test case table, a target test case table is determined, and one test case in the target test case table is recorded as one target test case. According to the technical scheme, all the text contents in the system architecture diagram can be automatically recognized and arranged into the text content set, then the transaction names of all the transaction records are automatically extracted from the key transaction list, the transaction name set is formed, the text content set, the transaction name set and the to-be-filled test case table are combined, and the test case table to be filled can be filled. According to the method, related information is automatically filled, the target test case table is generated, the whole process does not need human participation, automatic generation of the test case is achieved, the influence of subjective experience of testers is effectively avoided, and the stability of test case generation is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of software testing technology, and in particular to a test case generation method, apparatus, device, storage medium, and product. Background Art

[0002] Short, fast, and urgent are the abbreviations for the three key characteristics of the agile development model. Short refers to short iteration cycles; fast refers to a user-focused approach to rapidly releasing features to market; and urgent refers to the urgency of development and testing. The pressure of rapid delivery in testing can lead to the following problems: 1. Limited test coverage, lacking exploration of operations outside the main process; 2. Inadequate testing for edge cases, resulting in frequent online issues caused by outliers.

[0003] To address these issues, a dual-stream model is introduced to break down software testing. These two streams are divided into the demand value stream and the R&D engineering stream. Demand value stream testing primarily uses project requirements as a benchmark and is conducted as the project progresses. R&D engineering testing, on the other hand, focuses on the system architecture and conducts regular system checks, focusing on aspects such as fault tolerance, error detection and correction capabilities, stress resistance, and robustness. This checkup is known as reliability testing.

[0004] With the expansion of software system scale, the increase in functionality, and the rapid development of technology, software architecture is becoming increasingly complex. To ensure efficient, continuous, and stable software operation, reliability testing is imperative. Currently, reliability testing is a type of non-functional testing and has not received sufficient attention in system testing. The generation of test cases for reliability testing relies heavily on manual setup and is influenced by the subjective initiative of testers, resulting in unstable quality of generated test cases. In other words, the test cases generated by different testers vary greatly (i.e., "one person, one person"), making it difficult to ensure test quality. Summary of the Invention

[0005] The present invention provides a test case generation method, device, equipment, storage medium and product to solve the problem of unstable test case quality caused by existing test case generation methods.

[0006] According to one aspect of the present invention, a test case generation method is provided, comprising:

[0007] Identify the text content in the system architecture diagram;

[0008] Determining a text content set according to the text contents;

[0009] Determine a transaction name set based on the transaction name of each transaction record in the key transaction list;

[0010] A target test case table is determined according to the text content set, the transaction name set and the test case table to be filled, wherein one test case record in the target test case table is a target test case.

[0011] According to another aspect of the present invention, there is provided a test case generating apparatus, comprising:

[0012] Content recognition module, used to identify the text content in the system architecture diagram;

[0013] A content set determination module, configured to determine a text content set based on the text contents;

[0014] A name set determination module, configured to determine a transaction name set based on the transaction name of each transaction record in the key transaction list;

[0015] The use case table determination module is used to determine the target test case table according to the text content set, the transaction name set and the test case table to be filled, wherein one test case record in the target test case table is a target test case.

[0016] According to another aspect of the present invention, an electronic device is provided, comprising:

[0017] at least one processor; and

[0018] a memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the test case generation method described in any embodiment of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test case generation method described in any embodiment of the present invention when executed.

[0021] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the test case generating method according to any embodiment of the present invention is implemented.

[0022] The technical solution provided by the embodiment of the present invention identifies each text content in the system architecture diagram; determines a text content set based on the each text content; determines a transaction name set based on the transaction name of each transaction record in the key transaction list; determines a target test case table based on the text content set, the transaction name set and the test case table to be filled, wherein one test case record in the target test case table is a target test case. Through the above technical solution, it is possible to automatically identify each text content in the system architecture diagram and organize it into a text content set, and then automatically extract the transaction name of each transaction record from the key transaction list to form a transaction name set, and automatically fill in relevant information in combination with the text content set, the transaction name set and the test case table to be filled, and generate a target test case table. The entire process does not require human participation, and realizes the automatic generation of test cases, effectively avoids the influence of the tester's subjective experience, and ensures the stability of test case generation.

[0023] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 This is a flow chart of a test case generation method provided by the first embodiment of the present invention;

[0026] Figure 2 This is a schematic diagram of the structure of a test case generation device provided by the second embodiment of the present invention;

[0027] Figure 3 This is a structural diagram of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] It is worth noting that the technical solution of the present invention is implemented based on the concept of Failure Mode and Effects Analysis (FMEA). FMEA is a reliability analysis method that analyzes potential failure modes within a system and classifies them according to severity to determine the ultimate impact of the failure on the system. The specific analysis method is: (1) Provide an initial architecture design diagram; (2) Assume that a component in the architecture fails; (3) Analyze the impact of this failure on the system function; (4) Based on the analysis results, determine whether the architecture needs to be optimized.

[0031] Reliability testing: This activity involves determining whether data leaks exist (stability testing) and how long it takes for the system to recover after a failure (recovery testing). Additionally, it analyzes behavior under peak load (stress / spike testing) and during simulated component failures (failover testing). The goal of reliability testing is to improve mean time between failures (MTBF), mean time to failure (MTTF), and mean time to repair (MTTR), and to provide development teams with a set of improvement guidelines.

[0032] Example 1

[0033] Figure 1 This is a flow chart of a test case generation method provided by the first embodiment of the present invention. This embodiment is applicable to the case of generating test cases. The method can be executed by a test case generation device. The test case generation device can be implemented in the form of hardware and / or software. The test case generation device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0034] S110: Identify the text content in the system architecture diagram.

[0035] In this embodiment, the system architecture diagram is used to intuitively display the overall structure of the software system and the relationships between its components. For example, the system architecture diagram may include text representing each component, such as BJS batch service, mobile marketing public server cluster, load balancing, Redis cluster, Oracle RAC, marketing manager application server cluster, marketing manager (browser), marketing treasure front-end server, Xingyunpai front-end server, financial store front-end server, mobile marketing PAD, marketing treasure app, and financial store, etc.

[0036] Specifically, image recognition technology is used to identify the text content in the system architecture diagram. This embodiment does not limit the specific algorithm of the image recognition technology. For example, the image recognition technology can be an artificial intelligence algorithm or a machine learning algorithm to accurately identify text content by learning patterns and features in the image.

[0037] S120: Determine a text content set based on the text contents.

[0038] Specifically, after identifying each text content, these text contents may be processed to determine a final text content set, wherein the processing operation includes but is not limited to operations such as deduplication and sorting.

[0039] S130. Determine a transaction name set according to the transaction name of each transaction record in the key transaction list.

[0040] In this embodiment, the key transaction list can be understood as a list that records key transaction information in the system, as shown in Table 1, including a module name column, a transaction name column, and a transaction category column.

[0041] Table 1 List of key transactions (partial content)

[0042] Module Name Transaction Name Transaction Type Marketing School Log in Online-Open Marketing School Face Recognition Online-Open Marketing School Query the list of available micro-applications Online-Open Marketing School Detailed transaction registration Online-Open Marketing School Query personal customer information Online-Open Marketing School Check debit card information Online-Open Marketing School Query electronic banking information Online-Open Marketing School Online verification Online-Open

[0043] Specifically, reliability testing of the entire system is a massive and complex undertaking. After weighing the costs and benefits, we found that focusing on key transactions in the system could significantly improve system reliability with minimal human resources. Therefore, we receive a list of key transactions input by the user, identify the transaction name of each transaction record in the list, extract these transaction names, and construct a transaction name set, providing the data foundation for subsequent test case construction.

[0044] S140 . Determine a target test case table according to the text content set, the transaction name set, and the test case table to be filled, wherein one test case record in the target test case table is a target test case.

[0045] In this embodiment, the test case table to be filled can be understood as a pre-set template for generating a target test case table. The basic structure and fields of the test case are defined in the test case table to be filled.

[0046] It should be noted that the test cases involved in the embodiments of the present invention are test cases for performing reliability testing on a system.

[0047] Specifically, each data in the text content set and the transaction name set is processed, and based on the processing results and combined with the test case table to be filled, a target test case table is generated, wherein the target test case table includes at least one test case record, and one test case record represents one target test case.

[0048] The technical solution provided in the first embodiment of the present invention identifies each text content in the system architecture diagram; determines a text content set based on the each text content; determines a transaction name set based on the transaction name of each transaction record in the key transaction list; determines a target test case table based on the text content set, the transaction name set and the test case table to be filled, wherein one test case record in the target test case table is a target test case. Through the above technical solution, it is possible to automatically identify each text content in the system architecture diagram and organize it into a text content set, and then automatically extract the transaction name of each transaction record from the key transaction list to form a transaction name set, and automatically fill in relevant information in combination with the text content set, the transaction name set and the test case table to be filled, to generate a target test case table. The entire process does not require human participation, thus realizing the automatic generation of test cases, effectively avoiding the influence of the tester's subjective experience, and ensuring the stability of test case generation.

[0049] In some embodiments, the target test case table is determined based on the text content set, the transaction name set, and the test case table to be filled, including: for each transaction name in the transaction name set, combining the current transaction name with a first preset word to obtain first target data, and combining the transaction name with a second preset word to obtain second target data; determining a test case record set based on the first target data, the second target data, the text content set, and the test case table to be filled; and determining a target test case table based on each of the test case record sets. Through the above technical solution, the automatic generation of test cases is achieved, human intervention is reduced, the efficiency and stability of test case generation are improved, and the comprehensiveness and consistency of test cases are ensured, effectively improving the test quality and reliability of the system.

[0050] In this embodiment, the first preset term can be understood as a pre-set term that is combined with the current transaction name to obtain the first target data. For example, the first preset term can include "transaction reliability verification." The second preset term can be understood as a pre-set term that is combined with the current transaction name to obtain the second target data. For example, the second preset term can include "transaction failure." It is worth noting that the first target data and the second target data correspond to different fields in the test case table to be populated.

[0051] Specifically, for each transaction name in the transaction name set, the current transaction name and the first preset word are combined to obtain the first target data, and the transaction name and the second preset word are combined to obtain the second target data; then, based on the first target data and the second target data, each text content in the text content set is traversed, and combined with the test case table to be filled, the test case record set is determined; based on each test case record set, the target test case table is determined.

[0052] For example, the transaction name set is set B, which includes transaction names such as login, face recognition, available micro-app list query, detailed transaction registration, personal customer information query, debit card information query, electronic banking information query, and online verification. The text content set is set A, which includes text content such as BJS batch service, mobile marketing public server cluster, load balancing, Redis cluster, Oracle RAC, marketing manager application server cluster, marketing manager (browser), marketing treasure front-end server, Xingyunpai front-end server, financial store front-end server, mobile marketing PAD, marketing treasure app, and financial store.

[0053] Assuming that the current transaction name is "login", the first preset word is "transaction reliability verification", and the second preset word is "transaction failure", then login and transaction reliability verification are combined to obtain "login transaction reliability verification", and login and transaction failure are combined to obtain "login transaction failure"; then, according to "login transaction reliability verification" and "login transaction failure", the text content set is traversed, and combined with the test case table to be filled, the test case record set is determined; then, based on each of the test case record sets, the target test case table is determined.

[0054] In some embodiments, the test case table to be filled includes at least a function point field, a fault mode field, a fault impact field, and a severity field; the test case record set is determined based on the first target data, the second target data, the text content set, and the test case table to be filled, including: for each text content in the text content set, combining the current text content with a third preset word to obtain third target data, and writing it into the fault mode field of the test case table to be filled; writing the first target data into the function point field of the record corresponding to the third target data, writing the second target data into the fault impact field of the record, and writing the preset severity word into the severity field of the record to obtain a test case record corresponding to the third target data; determining the test case record set based on the test case record corresponding to each third target data. Through the above technical solution, the automatic generation and filling of test cases is realized, human intervention is reduced, and the problem of unstable test case quality caused by differences in subjective experience of testers is avoided, the efficiency and accuracy of test case generation are effectively improved, while ensuring the comprehensiveness and consistency of test cases, and significantly improving the test quality and reliability of the system.

[0055] In this embodiment, the test case table to be filled includes at least a function point field, a failure mode field, a failure impact field, and a severity field. Optionally, the test case table to be filled may also include a solution field, a follow-up plan field, and a sequence number. The third preset word can be understood as a pre-set word used to combine with the text content to obtain the third target data. For example, the third preset word can include "unusable" or "failure". The preset degree word can be understood as a pre-set word, for example, the preset degree word can be "high".

[0056] Specifically, on the basis of having determined the first target content and the second target content, for each text content in the text content set, the current text content and the third preset word are combined to obtain the third target data, and written into the fault mode field of the test case table to be filled; then, the first target data is written into the function point field of the record corresponding to the third target data, the second target data is written into the fault impact field of the record, and the preset degree word is written into the severity field of the record to obtain the test case record corresponding to the third target data; according to the test case record corresponding to each third target data, the test case record set is determined.

[0057] For example, let's determine the first target data as "Login Transaction Reliability Verification" and the second target data as "Login Transaction Failure." Assuming the current text content is "Load Balancing," the third preset word is "Unavailable," and the preset severity is "High," then "Load Balancing" and "Unavailable" are combined to produce "Load Balancing Unavailable," which is written into the Failure Mode field. Furthermore, the Function Point field of the record corresponding to "Load Balancing Unavailable" is written into "Login Transaction Reliability Verification," the Failure Impact field of the record is written into "Login Transaction Failure," and the Severity field of the record is written into "High." This yields the test case record shown in the following table:

[0058]

[0059] Since each third target data corresponds to a test case record, a test case record set can be obtained according to the test case record corresponding to each third target data.

[0060] In some embodiments, identifying text content in the system architecture diagram includes: using target detection technology to identify target graphics in the system architecture diagram; and using optical character technology to identify text content within the target graphics. This technical solution effectively improves the accuracy and efficiency of text content recognition, laying a solid foundation for generating test cases.

[0061] In this embodiment, object detection technology is used to locate all objects of interest in an image and determine their categories and locations. This embodiment does not limit the specific algorithms used in object detection technology. Optical character recognition (OCR) is a specialized form of image recognition that involves identifying text in an image and converting it into machine-readable text.

[0062] Specifically, after determining the system architecture diagram, object detection technology is used to identify target graphics within the diagram. These are graphics with bounding boxes. This is because each bounding box in the diagram represents a component. For example, rectangles, circles, and diamonds in the diagram are examples. Furthermore, OCR is used to identify the text within these target graphics to obtain the text content.

[0063] In some embodiments, determining the text content set based on the various text contents includes: performing a deduplication operation on the various text contents to obtain the text content set.

[0064] Specifically, considering the possibility of duplication among the text contents, after obtaining each text content, duplicates are removed from each text content to obtain a text content set. For example, if each text content includes three load balancing, after deduplication, only one is retained in the text content set. This effectively saves storage space and reduces the complexity of subsequent data processing.

[0065] In some embodiments, before identifying the text contents in the system architecture diagram, the method further includes: receiving a project plan input by a user; and determining the system architecture diagram in the project plan.

[0066] For example, the tester receives the project plan corresponding to the Agricultural Bank of China project and determines the system architecture diagram in the project plan.

[0067] Exemplarily, a project plan input by a user is received, a system architecture diagram in the project plan is determined, target graphics in the system architecture diagram are identified using target detection technology, text content in each target graphic is identified using optical character technology, duplicates are removed from the text content to obtain a text content set, a key transaction list input by the user is received, a transaction name set is determined based on the transaction names of each transaction record in the key transaction list, the transaction name set is traversed, and if the transaction name set has not been completely traversed, a transaction name is sequentially extracted from the transaction name set, and the first and second preset words are combined to obtain first target data and second target data, respectively. Furthermore, the text content set is traversed, and if the text content set has not been completely traversed, a text content is extracted from the text content set, combined with a third preset word, to obtain third target data and write it into the fault mode field, the first target data is written into the function point field, the second target data is written into the fault impact field, and the preset severity word is written into the severity field. The above process is repeated until the transaction name set is completely traversed.

[0068] Example 2

[0069] Figure 2 This is a structural diagram of a test case generation device provided in Example 2 of the present invention.

[0070] like Figure 2 As shown, the device includes:

[0071] Content recognition module 21, used to recognize the text content in the system architecture diagram;

[0072] A content set determination module 22, configured to determine a text content set based on the text contents;

[0073] A name set determining module 23, configured to determine a transaction name set based on the transaction name of each transaction record in the key transaction list;

[0074] The test case table determination module 24 is configured to determine a target test case table according to the text content set, the transaction name set, and the test case table to be filled, wherein one test case record in the target test case table is a target test case.

[0075] The technical solution provided by the second embodiment of the present invention does not require human participation in the entire process, realizes the automatic generation of test cases, effectively avoids the influence of the tester's subjective experience, and ensures the stability of test case generation.

[0076] Optionally, the use case table determination module 24 includes:

[0077] a target data determining unit, configured to, for each transaction name in the transaction name set, combine the current transaction name with a first preset word to obtain first target data, and combine the transaction name with a second preset word to obtain second target data;

[0078] a record set determining unit, configured to determine a test case record set according to the first target data, the second target data, the text content set, and the test case table to be filled;

[0079] The use case table determining unit is used to determine a target test case table based on each of the test case record sets.

[0080] Optionally, the test case table to be filled includes at least a function point field, a failure mode field, a failure impact field, and a severity field;

[0081] Optionally, the record set determination unit includes:

[0082] a target data determination subunit, configured to combine the current text content with a third preset word for each text content in the text content set to obtain third target data, and write the third target data into the failure mode field of the to-be-filled test case table;

[0083] a data writing subunit, configured to write the first target data into the function point field of the record corresponding to the third target data, write the second target data into the fault impact field of the record, and write the preset severity word into the severity field of the record, to obtain a test case record corresponding to the third target data;

[0084] The record set determination subunit includes determining a test case record set according to the test case record corresponding to each third target data.

[0085] Optionally, the content identification module 21 includes:

[0086] A graphic recognition unit, configured to recognize target graphics in the system architecture diagram using target detection technology;

[0087] The content recognition unit is used to recognize the text content in each target graphic by using optical character technology.

[0088] Optionally, the content set determination module 22 includes:

[0089] The content set determination subunit is configured to perform a deduplication operation on each of the text contents to obtain a text content set.

[0090] Optionally, the test case generating device further includes:

[0091] A solution receiving module is used to receive a project solution input by a user;

[0092] The architecture diagram determination module is used to determine the system architecture diagram in the project plan.

[0093] The test case generation device provided in the embodiment of the present invention can execute the test case generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0094] Example 3

[0095] Figure 3 : is a structural diagram of an electronic device provided in Example 3 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, 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 only examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0096] like Figure 3 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. 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 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0097] Multiple 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 magnetic 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 via a computer network such as the Internet and / or various telecommunication networks.

[0098] The processor 11 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors for running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the test case generation method.

[0099] In some embodiments, the test case generation method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the test case generation method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the test case generation method in any other appropriate manner (e.g., by means of firmware).

[0100] Various embodiments of the systems and techniques described 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), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes 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.

[0101] Computer programs for implementing the methods of the present invention 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, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0102] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0103] To provide interaction with a user, the systems and techniques described herein can 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0104] The systems and techniques described herein can be implemented in a computing system that includes back-end 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 front-end components (e.g., a user computer with a graphical user interface or 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 back-end components, middleware components, or front-end components. The components of the system can 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.

[0105] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0106] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0107] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

[0108] An embodiment of the present invention further provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implements the test case generation method provided in any embodiment of the present application.

[0109] The computer program product may be implemented by writing computer program code for performing the operations of the present invention in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0110] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention 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 invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A test case generation method, characterized in that: include: Identify the text content in the system architecture diagram; Determining a text content set according to the text contents; Determine a transaction name set based on the transaction name of each transaction record in the key transaction list; A target test case table is determined according to the text content set, the transaction name set and the test case table to be filled, wherein one test case record in the target test case table is a target test case.

2. The method according to claim 1, characterized in that The determining of the target test case table according to the text content set, the transaction name set, and the test case table to be filled includes: For each transaction name in the transaction name set, combining the current transaction name with a first preset word to obtain first target data, and combining the transaction name with a second preset word to obtain second target data; Determine a test case record set according to the first target data, the second target data, the text content set, and the test case table to be filled; Based on each of the test case record sets, a target test case table is determined.

3. The method according to claim 2, characterized in that The test case table to be filled includes at least a function point field, a failure mode field, a failure impact field and a severity field; The step of determining a test case record set according to the first target data, the second target data, the text content set, and the test case table to be filled includes: For each text content in the text content set, combining the current text content with a third preset word to obtain third target data, and writing the third target data into the failure mode field of the to-be-filled test case table; Writing the first target data into the function point field of the record corresponding to the third target data, writing the second target data into the fault impact field of the record, and writing the preset severity word into the severity field of the record, to obtain a test case record corresponding to the third target data; A test case record set is determined according to the test case record corresponding to each third target data.

4. The method according to claim 1, wherein The text content in the recognition system architecture diagram includes: Using target detection technology to identify target graphics in the system architecture diagram; Optical character technology is used to identify the text content in each target graphic.

5. The method according to claim 1, wherein Determining a text content set based on each text content includes: A deduplication operation is performed on the text contents to obtain a text content set.

6. The method according to claim 1, characterized in that Before each text content in the recognition system architecture diagram, it also includes: Receive project plans input by users; Determine the system architecture diagram in the project plan.

7. A test case generating device, characterized in that: include: Content recognition module, used to identify the text content in the system architecture diagram; A content set determination module, configured to determine a text content set based on the text contents; A name set determination module, configured to determine a transaction name set based on the transaction name of each transaction record in the key transaction list; The use case table determination module is used to determine the target test case table according to the text content set, the transaction name set and the test case table to be filled, wherein one test case record in the target test case table is a target test case.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the test case generating method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test case generation method according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, and 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 6.