Medical project test case generation method and device, equipment and storage medium

By obtaining functional test case templates and design specification keywords for medical projects, identifying and citing or copying test case components, and generating medical project test cases, the problems of irregular test case management and low reuse rate in the medical industry are solved, and efficient test case generation and automated testing.

CN119271552APending Publication Date: 2025-01-07HENAN HUJIAJIA HEALTH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411346831.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The existing software testing solutions lack test case management strategies for the medical industry, resulting in irregular test case management, low reuse rate, low efficiency, and difficulty in adapting to rapidly changing needs.

Method used

By obtaining the design specification keywords in the functional test case templates of the medical project and the software requirements specifications, determine the required set of functional test case components, find and reference or copy the corresponding components from the test case component library, and use the template to generate the medical project Test cases and automate testing through interface test templates.

Benefits of technology

It realizes standardized management and high reuse of test cases, improves software testing efficiency, reduces resource waste and human errors, and improves test accuracy and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271552A_ABST
    Figure CN119271552A_ABST
Patent Text Reader

Abstract

The invention discloses a medical project test case generation method. The method comprises the steps of obtaining a function test case template corresponding to a current medical project; acquiring a software demand specification and a design specification keyword corresponding to the current medical project; wherein the design specification keyword is a keyword extracted from a design specification; determining a required function test case component set according to the software demand specification and the design specification keyword; searching each function test case component contained in the function test case component set from a test case component library; and generating a medical project test case corresponding to the current medical project by using the function test case template and each function test case component. According to the method and the device, standard management of the test case is realized, high reuse of the test case component is realized, and the software test efficiency is improved. The invention further discloses a device, equipment and a storage medium, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software testing technology, and in particular to a method, device, equipment and computer-readable storage medium for generating test cases for medical projects. Background Art

[0002] As the complexity of software business continues to accumulate and develop, the speed of software product release is accelerating, and the software needs to be tested before it is released.

[0003] The commonly used software testing solutions currently lack test case management strategies that meet the characteristics of data unification, data specifications, data interconnection, and medical specifications for medical industry software. Test case management is not standardized and it is difficult to adapt to rapidly changing needs. Currently, the traditional manual test case writing method is usually relied on. The testing team usually faces great challenges, such as high test case writing costs, low test case reuse rate, resulting in waste of resources, low testing efficiency, and inability to achieve continuous management of test cases.

[0004] In summary, how to effectively solve the problems of irregular test case management, low test case reuse rate, and low testing efficiency is an issue that technical personnel in this field urgently need to solve. Summary of the invention

[0005] The purpose of this application is to provide a medical project test case generation method, which realizes standardized management of test cases, achieves high reuse of test case components, and improves software testing efficiency; another purpose of this application is to provide a medical project test case generation device, equipment and computer-readable storage medium.

[0006] In order to solve the above technical problems, this application provides the following technical solutions:

[0007] A method for generating test cases for a medical project, comprising:

[0008] Get the functional test case template corresponding to the current medical project;

[0009] Obtaining software requirement specifications and design specification keywords corresponding to the current medical project; wherein the design specification keywords are keywords extracted from the design specifications;

[0010] Determine the required functional test case component set according to the software requirement specification and the design specification keywords;

[0011] Searching for each functional test case component included in the functional test case component set from a test case component library;

[0012] The functional test case template and each functional test case component are used to generate a medical project test case corresponding to the current medical project.

[0013] In a specific implementation of the present application, searching the test case component library for each functional test case component included in the functional test case component set includes:

[0014] When there exists a test case component in the test case component library whose function is consistent with that of the functional test case component included in the functional test case component set, the test case component whose function is consistent with that of the functional test case component included in the functional test case component set is referenced from the test case component library.

[0015] In a specific implementation of the present application, searching the test case component library for each functional test case component included in the functional test case component set includes:

[0016] When there is no test case component in the test case component library that has the same function as the functional test case component included in the functional test case component set, copying a test case component with similar function to the functional test case component included in the functional test case component set from the test case component library;

[0017] The copied test case component is modified to obtain the functional test case component included in the functional test case component set.

[0018] In a specific implementation of the present application, searching the test case component library for each functional test case component included in the functional test case component set includes:

[0019] Respectively obtain the function name and case keyword of each functional test case component included in the functional test case component set;

[0020] The functional test case components included in the functional test case component set are searched from the test case component library according to the functional name and / or the case keyword.

[0021] In a specific implementation of the present application, after generating the medical project test case corresponding to the current medical project using the functional test case template and each functional test case component, it also includes:

[0022] Get the preset interface test case template;

[0023] The medical project test case is tested using the interface test case template.

[0024] In a specific implementation of the present application, after the medical project test case is tested using the interface test case template, it also includes:

[0025] Obtaining the test results of the medical project test cases;

[0026] The execution status of the medical project test case is updated according to the test result.

[0027] In a specific implementation of the present application, the medical project test case corresponding to the current medical project is generated using the functional test case template and each functional test case component, including:

[0028] A mind map is used to generate a medical project test case corresponding to the current medical project according to the functional test case template and various non-universal functional test case components.

[0029] A medical project test case generating device, comprising:

[0030] Functional test case template acquisition module, used to obtain the functional test case template corresponding to the current medical project;

[0031] A specification and specification acquisition module, used to acquire the software requirement specification and design specification keywords corresponding to the current medical project; wherein the design specification keywords are keywords extracted from the design specifications;

[0032] A module for determining a required functional test case component set, used to determine a required functional test case component set according to the software requirement specification and the design specification keywords;

[0033] A functional test case component search module is used to search for each functional test case component included in the functional test case component set from a test case component library;

[0034] The medical project test case generation module is used to generate a medical project test case corresponding to the current medical project using the functional test case template and each functional test case component.

[0035] A medical project test case generating device, comprising:

[0036] Memory for storing computer programs;

[0037] A processor is used to implement the steps of the medical project test case generation method as described above when executing the computer program.

[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the medical project test case generation method as described above.

[0039] The medical project test case generation method provided in the present application obtains a functional test case template corresponding to the current medical project; obtains a software requirement specification and design specification keywords corresponding to the current medical project; wherein the design specification keywords are keywords extracted from the design specifications; determines the required functional test case component set according to the software requirement specification and the design specification keywords; searches for each functional test case component included in the functional test case component set from a test case component library; and generates a medical project test case corresponding to the current medical project using the functional test case template and each functional test case component.

[0040] It can be seen from the above technical solution that by pre-setting the software requirement specification and design specification corresponding to the current medical project, extracting the design specification keywords from the design specification, and determining the required functional test case component set according to the software requirement specification and the design specification keywords, standardized management of test cases is achieved. By pre-setting the functional test case template corresponding to the current medical project and pre-deploying the test case component library, after determining the functional test case component set required to generate the medical project test case corresponding to the current medical project, the functional test case template corresponding to the current medical project is directly obtained, and the functional test case components contained in the functional test case component set are searched from the test case component library, so that a high degree of reuse of test case components is achieved, the test case generation efficiency is improved, and the software testing efficiency is improved.

[0041] Correspondingly, the present application also provides a medical project test case generation device, equipment and computer-readable storage medium corresponding to the above-mentioned medical project test case generation method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 This is an implementation flow chart of the method for generating medical project test cases in the embodiment of the present application;

[0044] Figure 2 Another implementation flow chart of the method for generating a medical project test case in an embodiment of the present application;

[0045] Figure 3 This is a structural block diagram of a device for generating test cases for medical items in an embodiment of the present application;

[0046] Figure 4 A structural block diagram of a medical project test case generation device in an embodiment of the present application;

[0047] Figure 5 A specific structural diagram of a medical project test case generation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0049] See also Figure 1 , Figure 1 This is an implementation flow chart of a method for generating a medical project test case in an embodiment of the present application. The method may include the following steps:

[0050] S101: Obtain a functional test case template corresponding to the current medical project.

[0051] The functional test case template is pre-assembled according to the test requirements of the current medical project. For example, the functional test case template can be assembled according to the test case elements included in the project acceptance of the current hospital. When the test case of the current medical project needs to be generated, the functional test case template corresponding to the current medical project is obtained.

[0052] The functional test case template can be a system default general template, which can meet the test case writing requirements of most projects.

[0053] S102: Obtain software requirement specifications and design specification keywords corresponding to the current medical project.

[0054] The design specification keywords are keywords extracted from the design specifications.

[0055] The software requirement specification and design specification corresponding to the current medical project are preset, and design specification keywords are extracted from the design specifications to obtain the software requirement specification and design specification keywords corresponding to the current medical project.

[0056] S103: Determine the required functional test case component set based on the software requirement specification and design specification keywords.

[0057] After obtaining the software requirement specification and design specification keywords corresponding to the current medical project, the required functional test case component set is determined according to the software requirement specification and design specification keywords.

[0058] S104: searching for each functional test case component included in the functional test case component set from the test case component library.

[0059] According to the characteristics of medical project use cases, all test case contents are designed into a component library through Python to obtain a test case component library, which can contain test case components such as use case number, use case priority, test steps, test results, and expected results. After determining the required functional test case component set, search for each functional test case component contained in the functional test case component set from the test case component library, thereby realizing the rapid retrieval of each functional test case component.

[0060] You can customize the test case component types in advance according to the characteristics of the medical project, including functional testing, user testing, interface testing, configuration testing, interface testing, installation and deployment testing, compatibility testing, security testing, performance testing, etc. Each type has a clear definition and scope of application. When searching for functional test case components, you can search for test case components according to the test case component type.

[0061] You can also classify common system functions and customize test cases that need to be componentized, such as export, download, search, inspection, diagnosis, etc., to facilitate subsequent management and reuse. Componentized test cases are constructed through fuzzy automation of the use case classification program.

[0062] Componentized test cases can be maintained according to the characteristics of the medical industry. For example, componentized test cases can be maintained according to medical record writing specifications, corresponding componentized test cases can be maintained according to UI specifications, and test case componentization can be carried out for medical industry data that needs to be reported to the national platform.

[0063] S105: Generate a medical project test case corresponding to the current medical project using the functional test case template and each functional test case component.

[0064] After obtaining the functional test case template corresponding to the current medical project and finding each functional test case component from the test case component library, the functional test case template and each functional test case component are used to generate the medical project test case corresponding to the current medical project. Through a unified test case writing process and template, the standardization and unification of test cases are achieved, and the quality and reusability of test cases are improved. By encapsulating commonly used test scenarios and test steps into reusable test cases, and supporting the assembly of test cases for different test phases and scenarios, this application can significantly improve the reuse rate of test cases, avoid repeated writing of similar test cases, and effectively reduce resource waste. Thereby realizing the automated and intelligent generation of medical project test cases, compared with the manual generation of test cases, human errors are reduced, the accuracy and consistency of tests are improved, the test case generation efficiency is greatly improved, and the writing cost is reduced.

[0065] It can be seen from the above technical solution that by pre-setting the software requirement specification and design specification corresponding to the current medical project, extracting the design specification keywords from the design specification, and determining the required functional test case component set according to the software requirement specification and the design specification keywords, standardized management of test cases is achieved. By pre-setting the functional test case template corresponding to the current medical project and pre-deploying the test case component library, after determining the functional test case component set required to generate the medical project test case corresponding to the current medical project, the functional test case template corresponding to the current medical project is directly obtained, and the functional test case components contained in the functional test case component set are searched from the test case component library, so that a high degree of reuse of test case components is achieved, the test case generation efficiency is improved, and the software testing efficiency is improved.

[0066] It should be noted that, based on the above embodiments, the embodiments of the present application also provide corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiments can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0067] See also Figure 2 , Figure 2 This is another implementation flow chart of the method for generating a medical project test case in an embodiment of the present application. The method may include the following steps:

[0068] S201: Obtain the functional test case template corresponding to the current medical project.

[0069] S202: Obtain software requirement specifications and design specification keywords corresponding to the current medical project.

[0070] The design specification keywords are keywords extracted from the design specifications.

[0071] S203: Determine the required functional test case component set according to the software requirement specification and design specification keywords.

[0072] S204: Searching for each functional test case component included in the functional test case component set from the test case component library.

[0073] In a specific implementation of the present application, step S204 may include the following steps:

[0074] When there is a test case component in the test case component library that has the same function as the functional test case component included in the functional test case component set, the test case component that has the same function as the functional test case component included in the functional test case component set is referenced from the test case component library.

[0075] When searching for each functional test case component included in the functional test case component set from the test case component library, the test case component can be searched according to the function of the test case component. When there is a test case component in the test case component library that has the same function as the functional test case component included in the functional test case component set, such as export, compatibility and other functions, the test case component that has the same function as the functional test case component included in the functional test case component set is directly referenced from the test case component library. By directly referencing the test case component that has the same function as the functional test case component included in the functional test case component set, there is no need to make any modifications to the test case component, which enables quick retrieval of the test case component and further improves the efficiency of test case generation.

[0076] In a specific implementation of the present application, step S204 may include the following steps:

[0077] Step 1: when there is no test case component in the test case component library that has the same function as the functional test case component included in the functional test case component set, copy a test case component with similar function as the functional test case component included in the functional test case component set from the test case component library;

[0078] Step 2: Modify the copied test case component to obtain the functional test case component included in the functional test case component set.

[0079] For the convenience of description, the above two steps can be combined for explanation.

[0080] When searching for each functional test case component included in the functional test case component set from the test case component library, if there is no test case component with the same function as the functional test case component included in the functional test case component set in the test case component library, copy the test case component with similar function as the functional test case component included in the functional test case component set from the test case component library, modify the copied test case component, and obtain the functional test case component included in the functional test case component set. By copying the test case component with similar function as the functional test case component included in the functional test case component set from the test case component library and slightly modifying the copied test case component, a non-universal functional test case component can be obtained, without the need to manually write test cases from scratch, which greatly improves the efficiency of test case generation.

[0081] In a specific implementation of the present application, step S204 may include the following steps:

[0082] Step 1: respectively obtain the function name and case keyword of each functional test case component contained in the functional test case component set;

[0083] Step 2: Search for each functional test case component included in the functional test case component set from the test case component library according to the function name and / or the case keyword.

[0084] For the convenience of description, the above two steps can be combined for explanation.

[0085] When searching for each functional test case component included in the functional test case component set from the test case component library, the functional name can be used alone to search for each functional test case component included in the functional test case component set, or the case keyword can be used alone to search for each functional test case component included in the functional test case component set, or the functional name and the case keyword can be combined to search for each functional test case component included in the functional test case component set. The functional name and the case keyword of each functional test case component included in the functional test case component set are obtained respectively, and each functional test case component included in the functional test case component set is searched from the test case component library according to the functional name and / or the case keyword. It can also support assembling test cases according to multiple-select keyword combinations or and relationships to fuzzily match qualified cases. By combining one or both of the function name and the case keyword, the accuracy of each functional test case component included in the functional test case component set found is improved, the workload of frequent writing is reduced, and the search efficiency of each functional test case component included in the functional test case component set is improved.

[0086] It can also support building test cases for different testing stages according to priority.

[0087] S205: Generate a medical project test case corresponding to the current medical project according to the functional test case template and each functional test case component using a mind map.

[0088] Use Python to establish the correspondence between mind map nodes and test case component libraries, such as mind map Figure 1 The level nodes correspond to the test case component serial numbers, the mind map notes correspond to the test case component prerequisites, etc. After searching for each functional test case component included in the functional test case component set from the test case component library, the mind map is used to generate the medical project test cases corresponding to the current medical project according to the functional test case template and each functional test case component included in the functional test case component set. By using the mind map to generate medical project test cases, the advantages of the clear structure of the mind map and the ability to integrate a large amount of information are fully utilized to achieve rapid assembly of test cases.

[0089] It should be noted that in addition to using mind maps to generate medical project test cases, medical project test cases can also be generated by document editing (i.e., list mode writing), and users can choose according to their own needs. This embodiment of the application does not limit this. By supporting list mode writing and mind map mode writing, both modes support mutual viewing and editing to meet the demand for efficient writing of test cases.

[0090] The embodiments of the present application support assembling test cases according to the testing process, release process, SIT and UAT on-site delivery process, etc., so as to facilitate testers to execute test cases quickly and efficiently.

[0091] S206: Obtain a preset interface test case template.

[0092] Pre-set a general interface test case template. After generating a medical project test case corresponding to the current medical project, obtain a preset interface test case template.

[0093] S207: Testing the medical project test case using the interface test case template.

[0094] After obtaining the preset interface test case template, use the interface test case template to test the medical project test case. Maintain the interface automation case according to the assembled interface test case template. At the same time, the system supports online debugging of interface cases, supports the import of interface test cases written by other tools, and the written interface test cases support export to the Jmter test tool. The written interface test cases can be associated with specific projects, which is convenient for carrying out different types of tests for different projects to ensure the completeness of the test. The system can set the time for scheduled execution according to the rules and set the result notification according to the execution results. The system will execute the test regularly and record the test results, and synchronize the test results to the project management tool. By pre-setting the interface test case template to test the medical project test case, the automatic testing of the generated medical project test cases is realized, which greatly improves the test case testing efficiency and improves the test quality.

[0095] S208: Obtain test results of medical project test cases.

[0096] After testing the medical project test case using the interface test case template, the test result of the medical project test case is obtained. The test result is generally any one of test pass, test fail, and test block.

[0097] S209: Update the execution status of the medical project test case according to the test results.

[0098] After obtaining the test results of the medical project test cases, the execution status of the medical project test cases is updated according to the test results. By updating the execution status of the medical project test cases according to the test results, the user can timely understand the test status of the medical project test cases according to the updated execution status.

[0099] You can also conduct in-depth analysis of test case test results, and then calculate test case coverage and defect rate and other multi-dimensional analysis. This is to facilitate the control of the entire test process. By collecting and analyzing test data, real-time monitoring of test supervision and test quality, and providing support for test decision-making. The following analysis dimensions can be included:

[0100] Statistics of test case execution times ({statistical period}{case execution times} / {statistical period}{total case execution times});

[0101] Statistics of test case citation times ({statistical period}{number of citations} / {statistical period}{total number of citations});

[0102] Test case reference phase statistics ({statistical period}{referenced case phase} / {statistical period}{total number of referenced case phases});

[0103] Test case creator distribution statistics ({statistical period}{number of test case creators} / {statistical period}{total number of test cases});

[0104] Test case coverage statistics ({statistical period}{number of test cases passed in the current stage} / {number of test cases passed in the current stage});

[0105] Defect rate statistics ({statistical period}{number of defects} / {statistical period}{total number of use cases});

[0106] Test case execution statistics at different test phases ({statistical period}{test case statistics by test phase} / {statistical period}{total number of test cases}).

[0107] By analyzing the execution of test cases in real time and calculating test case coverage and defect rates, these real-time data and measurement results can provide strong data support for test decisions, detect and fix potential problems in a timely manner, and help the test team better understand the test progress and quality.

[0108] Corresponding to the above method embodiment, the present application also provides a medical project test case generation device. The medical project test case generation device described below and the medical project test case generation method described above can refer to each other.

[0109] See also Figure 3 , Figure 3 This is a structural block diagram of a medical project test case generation device in an embodiment of the present application, and the device may include:

[0110] Functional test case template acquisition module 31, used to acquire the functional test case template corresponding to the current medical project;

[0111] The specification and specification acquisition module 32 is used to obtain the software requirement specification and design specification keywords corresponding to the current medical project; wherein the design specification keywords are keywords extracted from the design specifications;

[0112] A required functional test case component set determination module 33 is used to determine the required functional test case component set according to the software requirement specification and the design specification keywords;

[0113] A functional test case component search module 34 is used to search for each functional test case component included in the functional test case component set from the test case component library;

[0114] The medical project test case generation module 35 is used to generate a medical project test case corresponding to the current medical project by using the functional test case template and each functional test case component.

[0115] It can be seen from the above technical solution that by pre-setting the software requirement specification and design specification corresponding to the current medical project, extracting the design specification keywords from the design specification, and determining the required functional test case component set according to the software requirement specification and the design specification keywords, standardized management of test cases is achieved. By pre-setting the functional test case template corresponding to the current medical project and pre-deploying the test case component library, after determining the functional test case component set required to generate the medical project test case corresponding to the current medical project, the functional test case template corresponding to the current medical project is directly obtained, and the functional test case components contained in the functional test case component set are searched from the test case component library, so that a high degree of reuse of test case components is achieved, the test case generation efficiency is improved, and the software testing efficiency is improved.

[0116] In a specific embodiment of the present application, the functional test case component search module 34 is specifically a module that references the test case component that is consistent with the functional test case group included in the functional test case component set from the test case component library when there is a test case component that is consistent with the functional test case component included in the functional test case component set in the test case component library.

[0117] In a specific implementation of the present application, the functional test case component search module 34 includes:

[0118] The test case component copy submodule is used to copy the test case component with similar functions to the functional test case group included in the functional test case component set from the test case component library when there is no test case component with the same functions as the functional test case group included in the functional test case component set in the test case component library;

[0119] The test case component modification submodule is used to modify the copied test case component to obtain the functional test case component included in the functional test case component set.

[0120] In a specific implementation of the present application, the functional test case component search module 34 includes:

[0121] The function name and use case keyword acquisition submodule is used to respectively acquire the function name and use case keyword of each function test case component contained in the function test case component set;

[0122] The non-general function test case component search submodule is used to search for each function test case component included in the function test case component set from the test case component library according to the function name and / or case keyword.

[0123] In a specific embodiment of the present application, the device may further include:

[0124] An interface test case template acquisition module is used to obtain a preset interface test case template;

[0125] The test case testing module is used to test the medical project test cases using the interface test case template.

[0126] In a specific embodiment of the present application, the device may further include:

[0127] A test result acquisition module, used to acquire the test result of the medical project test case after testing the medical project test case using the interface test case template;

[0128] The execution status update module is used to update the execution status of the medical project test cases according to the test results.

[0129] In a specific implementation of the present application, the medical project test case generation module 35 is specifically a module that uses a mind map to generate a medical project test case corresponding to the current medical project according to a functional test case template and each functional test case component.

[0130] Corresponding to the above method embodiment, see Figure 4 , Figure 4 A schematic diagram of a device for generating test cases for medical projects provided in this application, which device may include:

[0131] A memory 332, for storing computer programs;

[0132] The processor 322 is used to implement the steps of the medical project test case generation method of the above method embodiment when executing the computer program.

[0133] For details, please refer to Figure 5 , Figure 5 A specific structural diagram of a medical project test case generation device provided for this embodiment, the medical project test case generation device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the medical project test case generation device 301.

[0134] The medical project test case generating device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0135] The steps in the medical project test case generation method described above can be implemented by the structure of the medical project test case generation device.

[0136] Corresponding to the above method embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0137] Obtain a functional test case template corresponding to the current medical project; obtain a software requirement specification and design specification keywords corresponding to the current medical project; wherein the design specification keywords are keywords extracted from the design specifications; determine the required functional test case component set according to the software requirement specification and the design specification keywords; search for each functional test case component included in the functional test case component set from the test case component library; generate a medical project test case corresponding to the current medical project using the functional test case template and each functional test case component.

[0138] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0139] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0140] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0141] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.

Claims

1. A method for generating test cases for medical projects, characterized in that: include: Get the functional test case template corresponding to the current medical project; Obtaining software requirement specifications and design specification keywords corresponding to the current medical project; wherein the design specification keywords are keywords extracted from the design specifications; Determine the required functional test case component set according to the software requirement specification and the design specification keywords; Searching for each functional test case component included in the functional test case component set from a test case component library; The functional test case template and each functional test case component are used to generate a medical project test case corresponding to the current medical project.

2. The method for generating medical project test cases according to claim 1, characterized in that: Searching each functional test case component included in the functional test case component set from the test case component library includes: When there exists a test case component in the test case component library whose function is consistent with that of the functional test case component included in the functional test case component set, the test case component whose function is consistent with that of the functional test case component included in the functional test case component set is referenced from the test case component library.

3. The method for generating medical project test cases according to claim 1, characterized in that: Searching each functional test case component included in the functional test case component set from the test case component library includes: When there is no test case component in the test case component library that has the same function as the functional test case component included in the functional test case component set, copying a test case component with similar function to the functional test case component included in the functional test case component set from the test case component library; The copied test case component is modified to obtain the functional test case component included in the functional test case component set.

4. The method for generating medical project test cases according to claim 1, characterized in that: Searching each functional test case component included in the functional test case component set from the test case component library includes: Respectively obtain the function name and case keyword of each functional test case component included in the functional test case component set; The functional test case components included in the functional test case component set are searched from the test case component library according to the functional name and / or the case keyword.

5. The method for generating medical project test cases according to any one of claims 1 to 4, characterized in that: After generating the medical project test case corresponding to the current medical project by using the functional test case template and each functional test case component, the method further includes: Get the preset interface test case template; The medical project test case is tested using the interface test case template.

6. The method for generating medical project test cases according to claim 5, characterized in that: After testing the medical project test case using the interface test case template, the method further includes: Obtaining the test results of the medical project test cases; The execution status of the medical project test case is updated according to the test result.

7. The method for generating medical project test cases according to claim 1, characterized in that: Generating a medical project test case corresponding to the current medical project using the functional test case template and each functional test case component includes: A mind map is used to generate a medical project test case corresponding to the current medical project according to the functional test case template and each functional test case component.

8. A medical project test case generation device, characterized in that: include: Functional test case template acquisition module, used to obtain the functional test case template corresponding to the current medical project; A specification and specification acquisition module, used to acquire the software requirement specification and design specification keywords corresponding to the current medical project; wherein the design specification keywords are keywords extracted from the design specifications; A module for determining a required functional test case component set, used to determine a required functional test case component set according to the software requirement specification and the design specification keywords; A functional test case component search module is used to search for each functional test case component included in the functional test case component set from a test case component library; The medical project test case generation module is used to generate a medical project test case corresponding to the current medical project using the functional test case template and each functional test case component.

9. A medical project test case generation device, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the medical project test case generation method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the medical project test case generation method according to any one of claims 1 to 7 are implemented.