Generation method and device of test function library, equipment and storage medium
In the field of test management technology, using standardized format templates and business logic to generate test function topology diagrams and use cases, the problem of low efficiency in testing function point management is solved, and efficient test function point management and automated use case matching is achieved.
Patent Information
- Application Number
- CN202510459886.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, the management efficiency of test function points is low. Testers have different description methods according to personal understanding and records, and there is a lack of effective correlation between different types of test function points, making it difficult to effectively manage.
By obtaining parameter information of each test function point, entering this information based on a preset standardized format template, dynamically combining it according to business logic, generating an interactive test function topology diagram, and correlating corresponding test cases to form a structured test function library.
It improves the management efficiency of test function points, reduces manual intervention, automatically matches test cases, forms a structured test function library, and improves testing efficiency.
Smart Images

Figure CN120336180A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of test management technology, is applicable to the medical field and the financial field, and particularly relates to a method, device, equipment and storage medium for generating a test function library. Background Art
[0002] With the rapid advancement of enterprise informatization, the number of internal systems of each enterprise has also shown an explosive growth trend, and the functional points between the internal systems of the enterprise are highly coupled. For example, in the financial field, there are a large number of functional point couplings between the transaction systems, risk control systems and payment systems of banks, securities and other institutions, and these coupled functional points are all test functional points that need to be maintained during software testing.
[0003] At present, there are two main methods for maintaining test function points in the industry: one is for testers to maintain the test function points within their respective responsibilities; the other is for the business group to maintain the test function points in a shared knowledge base. However, these two methods have obvious shortcomings in actual applications. Testers record test points according to their personal understanding, which leads to different descriptions of the same function. There is also a lack of effective association between different types of test function points, making it difficult to effectively manage each test function point.
[0004] In view of this, how to improve the management efficiency of test function points is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present invention provides a method, device, equipment and storage medium for generating a test function library, which are used to solve the technical problem of low efficiency in the existing test function point management.
[0006] In a first aspect, the present invention provides a method for generating a test function library, comprising:
[0007] Obtain parameter information of each test function point, and enter the obtained parameter information of each test function point based on a preset standardized format template;
[0008] Dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram;
[0009] Corresponding test cases are associated with each test function point in the test function topology diagram, and a test function library including the test function topology diagram and corresponding test cases is generated.
[0010] In a second aspect, the present invention provides a device for generating a test function library, comprising:
[0011] An acquisition module, configured to acquire parameter information of each test function point and input the acquired parameter information of each test function point based on a preset standardized format template;
[0012] A combination module, configured to dynamically combine the parameter information of the test function points input in the standardized format template according to the business logic to generate an interactive test function topology diagram;
[0013] A generation module, configured to associate corresponding test cases with each test function point in the test function topology diagram to generate a test function library including the test function topology diagram and the corresponding test cases.
[0014] In a third aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned method for generating a test function library are implemented.
[0015] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for generating a test function library are implemented.
[0016] In the above-mentioned method, device, equipment, and storage medium for generating a test function library, in the implemented solution, parameter information of each test function point can be acquired through a client, and the acquired parameter information of each test function point is input based on a preset standardized format template; the parameter information of the test function points input in the standardized format template is dynamically combined according to the business logic to generate an interactive test function topology diagram; corresponding test cases are associated with each test function point in the test function topology diagram to generate a test function library including the test function topology diagram and the corresponding test cases. In the present invention, by inputting the parameter information of each test function point into the standardized format template, the management efficiency of the test function points is effectively improved, and corresponding test cases are automatically matched for each test function point to form a structured test function library, reducing manual intervention and effectively improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings without creative efforts based on these drawings.
[0018] Figure 1 It is a schematic diagram of an application environment of the method for generating a test function library in an embodiment of the present invention;
[0019] Figure 2 It is a schematic flowchart of a method for generating a test function library in an embodiment of the present invention;
[0020] Figure 3 is Figure 2 a schematic flowchart of a specific implementation manner of step S20 in
[0021] Figure 4 is Figure 2 a schematic flowchart of a specific implementation manner of step S30 in
[0022] Figure 5 It is a schematic structural diagram of a device for generating a test function library in an embodiment of the present invention;
[0023] Figure 6 It is a schematic structural diagram of a computer device in an embodiment of the present invention;
[0024] Figure 7 It is another schematic structural diagram of a computer device in an embodiment of the present invention. Specific implementation manner
[0025] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0026] The method for generating a test function library provided by the embodiments of the present invention can be applied in an application environment such as Figure 1 ; Figure 1 It is a schematic application environment diagram of a method for generating a test function library in an embodiment of the present invention; wherein, the client communicates with the server through a network. The server can obtain the parameter information of each test function point through the client, and enter the obtained parameter information of each test function point based on a preset standardized format template; dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram; associate corresponding test cases with each test function point in the test function topology diagram, and integrate the test function topology diagram after associating the test cases into the test function library to generate a test function library including the test function topology diagram and the corresponding test cases. In the present invention, by entering the parameter information of each test function point into the standardized format template, the management efficiency of the test function points is effectively improved, and a corresponding test case is automatically matched for each test function point, forming a structured test function library, reducing manual intervention, and effectively improving the test efficiency. The present invention will be described in detail below through specific embodiments.
[0027] Please refer to Figure 2 as shown Figure 2 which is a schematic flowchart of a method for generating a test function library provided by an embodiment of the present invention. The method for generating the test function library specifically includes the following steps:
[0028] S10: Obtain the parameter information of each test function point, and enter the obtained parameter information of each test function point based on a preset standardized format template.
[0029] When the present invention generates a test function library, first, it is necessary to obtain the parameter information of each test function point. In the financial field, the test function points may include function points such as user login, account management, fund transfer, and transaction record query. In the medical system, the test function points may involve function points such as patient registration, electronic medical record management, medical insurance settlement, and drug prescription. After obtaining the parameter information of each test function point, it is also necessary to create a standardized format template and enter the obtained parameter information of each test function point into the standardized format template. For example, the standardized format template includes function point name, function description, input parameters, output results, and expected behaviors. Specifically, it includes the following steps S11 - S12:
[0030] S11: Obtain the function name, function description, input parameters, and output parameters of each test function point, and preset the structured conversion rules of the standardized format template. Specifically, in the embodiment of the present invention, it is necessary to extract the function name, function description, input parameters, and output parameters of each test function point from the business requirements document. Among them, the function description can briefly describe the purpose and operation of the function. For example, "Allow users to access the system by entering a username and password"; the input parameters are the input data required to implement the function. For example, in a financial scenario, the input parameters of the fund transfer function may include the transfer - out account, transfer - in account, etc.; the output parameters represent the results generated after the function is executed. For example, the output parameters of the fund transfer may include whether the transfer is successful.
[0031] S12: According to the preset structured conversion rules of the standardized format template, map the function name, function description, input parameters, and output parameters of each test function point to a set of key - value pairs. Specifically, in the embodiment of the present invention, by mapping the function name, function description, input parameters, and output parameters of each test function point to a set of key - value pairs, it can ensure that subsequent data processing is simpler and more efficient.
[0032] S20: Dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram. After the present invention obtains the parameter information of each test function point in step S10 and enters the obtained parameter information of each test function point based on a preset standardized format template, it is also necessary to dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram including nodes and connection edges, where the nodes are test function points and the connection edges are the logical relationships between the test function points. Specifically, as Figure 3 described, Figure 3 Figure is a schematic flowchart of a specific implementation manner of step S20, which specifically includes the following steps S21 - S23:
[0033] S21. Analyze the input parameters and output parameters of each test function point, and construct a dependency matrix between the input parameters and output parameters of each test function point according to the analysis results. Specifically, in the embodiment of the present invention, the constructed dependency matrix is a two-dimensional array used to represent the dependency relationship between function points. Each row and each column represent a function point, and the elements in the matrix represent the dependency relationship between two function points, which needs to be the relationship that the output of each test function point is the input of other test function points. For example, in a financial scenario, the output of an account balance check may be one of the inputs of a fund transfer. In a medical scenario, the output of patient registration may be the input of subsequent electronic medical record entry. By constructing a dependency matrix between the input parameters and output parameters of each test function point, the direct dependency relationship between each test function point can be obtained.
[0034] S22. Analyze the constructed dependency matrix based on the topological sorting algorithm to generate an initial topological sequence of each test function point. Specifically, in the embodiment of the present invention, after constructing a dependency matrix between the input parameters and output parameters of each test function point in step S21, it is also necessary to analyze the constructed dependency matrix based on the topological sorting algorithm to generate an initial topological sequence of each test function point. Among them, the initial topological sequence reflects the execution order of each test function point, ensuring that all test function points on which a certain test function point depends have been completed before executing this test function point. For example, during a fund transfer process, account verification and balance check must be completed first before the transfer can be executed; before entering an electronic medical record, patient registration must be completed first, and then patient information can be entered into the electronic medical record.
[0035] In an embodiment of the present invention, step S22: Analyze the constructed dependency matrix based on the topological sorting algorithm to generate an initial topological sequence of each test function point. Specifically, it includes step 221: Analyze the constructed dependency matrix based on the depth - first dependency algorithm to generate an initial topological sequence of each test function point.
[0036] In the embodiments of the present invention, the constructed dependency matrix can be analyzed based on the depth-first dependency algorithm. Depth-first search is an algorithm used to traverse or search a tree. Starting from a node in the test function topology graph, it explores nodes as deeply as possible along a branch until there are no unvisited nodes, and then backtracks to the previous node. Using this algorithm to traverse the test function points, starting from each test function point, delving into the dependencies, and recording the access order can ensure that in the topological sequence of the generated test function topology graph, all the test function points on which each test function point depends have been completed before its execution.
[0037] S23. Adjust the order of the initial topological sequence of each test function point according to the preset business logic to generate an interactive test function topology graph. Specifically, in the embodiments of the present invention, the initial topological sequence also needs to be adjusted according to the specific business logic to ensure that it conforms to the actual operation process. For example, when processing fund transfers, user authentication, risk assessment, etc. may need to be performed before the transfer, and the order of these steps may need to be adjusted in the initial topological sequence.
[0038] S30: Associate corresponding test cases with each test function point in the test function topology graph to generate a test function library containing the test function topology graph and the corresponding test cases. Specifically, in the present invention, after generating the interactive test function topology graph in step S20, it is also necessary to associate corresponding test cases with each test function point in the test function topology graph. For example, in a financial scenario, the test cases for the transaction function should include normal transactions, abnormal transactions, and boundary conditions. In a medical scenario, the test cases for the electronic medical record function point should include the effectiveness of privacy protection measures, etc. Specifically, as Figure 4 described, Figure 4 is Figure 2 a schematic flowchart of a specific implementation manner of step S30 in it, which specifically includes the following steps S31 - S33:
[0039] S31. Extract keyword features from the function descriptions of each test function point and each test case in the test case library to obtain the keyword feature vectors of each test function point and the keyword feature vectors of each test case. Specifically, in the embodiments of the present invention, for the function description and test cases of each test function point, the keywords are extracted. For the fund transfer function, the keywords that may be extracted from its function description include funds, transfer, account, verification, etc., and the related test cases contain information such as verifying the account balance and confirming whether the transfer is successful. Among them, the extracted keywords include account, balance, transfer, success, etc.
[0040] S32. Calculate the cosine similarity between the keyword feature vectors of each test function point and the keyword feature vectors of each test case, and screen out the test cases with a similarity higher than the preset similarity threshold for each test function point. Specifically, in the embodiments of the present invention, the cosine similarity between the keyword feature vectors of each test function point and the keyword feature vectors of each test case can be calculated, and the cosine similarity between the keyword feature vectors of each test function point and the keyword feature vectors of each test case is compared with the preset similarity threshold. If the cosine similarity between the keyword feature vectors of the test function point and the keyword feature vectors of each test case is higher than the preset similarity threshold, it is considered that the test case is associated with the current test function point. For example, the preset similarity threshold is 0.8. In a financial scenario, if the similarity between the feature vector of the fund transfer function and the feature vector of the test case for verifying the account balance is 0.85, the test case for verifying the account balance is associated with the fund transfer test function point.
[0041] S33. Establish an index relationship between each test function point and the screened test cases, and generate a test function library containing the test function topology graph and the corresponding test cases. Specifically, in the embodiments of the present invention, it is necessary to establish an index relationship between the screened test cases and the corresponding test function points. For example, a data structure can be created, with the test function point as the key and the corresponding list of test cases as the value, to establish an index relationship between each test function point and the screened test cases, and generate a test function library containing the test function topology graph and the corresponding test cases.
[0042] In an embodiment of the present invention, after generating the test function library containing the test function topology graph and the corresponding test cases, the method further includes: synchronously sending the generated test function library containing the test function topology graph and the corresponding test cases to an external test execution platform through a preset API interface or message queue interface. Specifically, in the embodiments of the present invention, by synchronously sending the generated test function library to the external test execution platform, when the test function library is adjusted, the external platform can obtain the latest version in real time, effectively ensuring the accuracy of test execution.
[0043] In an embodiment of the present invention, after generating the test function library including the test function topology diagram and the corresponding test cases, the method further includes: online publishing the generated test function library including the test function topology diagram and the corresponding test cases, and configuring different levels of permissions for the test function library based on user roles; exporting the online published test function library into a preset format file, and storing the test function library of the exported preset format file in the blockchain. Specifically, in the embodiment of the present invention, the generated test function library including the test function topology diagram and the corresponding test cases can be online published to ensure that all testers, developers and relevant stakeholders can obtain the latest test function library in a timely manner. After publishing, access permissions need to be configured according to the roles of different users, and user roles may include administrators, testers, developers, etc. In addition, the online published test function library can also be exported into a preset format file, so that the data of the test library can be easily integrated or shared with other platforms. Finally, the test function library in the exported preset format file can be stored in the blockchain, and the integrity and security of the test function library can be ensured by using the immutable characteristics of the blockchain.
[0044] It can be seen that in the above solution, when generating the test database, by entering the parameter information of each test function point into the standardized format template, the management efficiency of the test function points is effectively improved, and the corresponding test cases are automatically matched for each test function point, forming a structured test function library, reducing manual intervention and effectively improving the test efficiency.
[0045] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
[0046] In an embodiment, a test function library generation device is provided, and the test function library generation device corresponds one-to-one with the test function library generation method in the above embodiment. As Figure 5 shown, Figure 5 is a structural schematic diagram of a test function library generation device in an embodiment of the present invention. The test function library generation device includes an acquisition module 51, a combination module 52, and a generation module 53. The detailed descriptions of each functional module are as follows:
[0047] The acquisition module 51 is configured to acquire the parameter information of each test function point, and enter the acquired parameter information of each test function point based on a preset standardized format template;
[0048] The combination module 52 is configured to dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram;
[0049] A generation module 53, configured to associate corresponding test cases with each test function point in the test function topology diagram, and generate a test function library including the test function topology diagram and the corresponding test cases.
[0050] In one embodiment, the acquisition module 51 is specifically configured to:
[0051] Obtain the function name, function description, input parameters, and output parameters of each test function point, and preset the structured conversion rules of the standardized format template;
[0052] According to the preset structured conversion rules of the standardized format template, map the function name, function description, input parameters, and output parameters of each test function point to a key-value pair set.
[0053] In one embodiment, the combination module 52 is specifically configured to:
[0054] Analyze the input parameters and output parameters of each test function point, and construct a dependency matrix between the input parameters and output parameters of each test function point according to the analysis results;
[0055] Analyze the constructed dependency matrix based on the topological sorting algorithm to generate an initial topological sequence of each test function point;
[0056] Adjust the order of the initial topological sequence of each test function point according to the preset business logic to generate an interactive test function topology diagram.
[0057] In one embodiment, the combination module 52 is specifically configured to:
[0058] Analyze the constructed dependency matrix based on the depth-first dependency algorithm to generate an initial topological sequence of each test function point.
[0059] In one embodiment, the generation module 53 is specifically configured to:
[0060] Extract keyword features from the function descriptions of each test function point and each test case in the test case library to obtain the keyword feature vectors of each test function point and the keyword feature vectors of each test case.
[0061] Calculate the cosine similarity between the keyword feature vectors of each test function point and the keyword feature vectors of each test case, and screen out the test cases with a similarity higher than the preset similarity threshold for each test function point.
[0062] Establish an index relationship between each test function point and the screened test cases, and generate a test function library including the test function topology diagram and the corresponding test cases.
[0063] In one embodiment, the generation device of the test function library is further configured to:
[0064] Through a preset API interface or message queue interface, synchronously send the generated test function library containing the test function topology diagram and corresponding test cases to an external test execution platform.
[0065] In one embodiment, the generating device of the test function library is further configured to:
[0066] Publish the generated test function library containing the test function topology diagram and corresponding test cases online, and configure different levels of permissions for the test function library based on user roles;
[0067] Export the test function library published online to a preset format file, and store the test function library of the exported preset format file in the blockchain.
[0068] The present invention provides a generating device of a test function library. When generating a test database, by entering parameter information of each test function point into a standardized format template, the management efficiency of test function points is effectively improved, and a corresponding test case is automatically matched for each test function point, forming a structured test function library, reducing manual intervention, and effectively improving test efficiency.
[0069] For specific limitations on the generating device of the test function library, reference can be made to the limitations on the generating method of the test function library in the above text, which will not be elaborated here. Each module in the above generating device of the test function library can be implemented in whole or in part through software, hardware, and their combinations. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above modules.
[0070] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 6 shown Figure 6 is a schematic structural diagram of a computer device in an embodiment of the present invention. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client through a network connection. When the computer program is executed by the processor, it realizes the functions or steps on the server side of a generating method of a test function library.
[0071] In one embodiment, a computer device is provided. The computer device can be a client, and its internal structure diagram can be as shown in Figure 7 as follows. Figure 7 FIG. Figure 7 is another structural schematic diagram of the computer device in an embodiment of the present invention. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer program is executed by the processor, it realizes the functions or steps on the client side of a method for generating a test function library.
[0072] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0073] Obtain the parameter information of each test function point, and enter the obtained parameter information of each test function point based on a preset standardized format template;
[0074] Dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram;
[0075] Associate corresponding test cases with each test function point in the test function topology diagram to generate a test function library including the test function topology diagram and the corresponding test cases.
[0076] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0077] Obtain the parameter information of each test function point, and enter the obtained parameter information of each test function point based on a preset standardized format template;
[0078] Dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram;
[0079] Associate corresponding test cases with each test function point in the test function topology diagram to generate a test function library including the test function topology diagram and the corresponding test cases.
[0080] It should be noted that for the functions or steps that can be achieved by the above computer-readable storage medium or computer device, reference can be made to the relevant descriptions on the server side and the client side in the foregoing method embodiments. To avoid repetition, they will not be described in detail here.
[0081] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above method embodiments. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0082] Those skilled in the art can clearly understand that for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0083] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for generating a test function library, characterized in that Including: Obtain the parameter information of each test function point, and input the obtained parameter information of each test function point based on a preset standardized format template; Dynamically combine the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram; Associate corresponding test cases with each test function point in the test function topology diagram to generate a test function library including the test function topology diagram and the corresponding test cases.
2. The method for generating a test function library according to claim 1, wherein Obtain the parameter information of each test function point, and input the obtained parameter information of each test function point based on a preset standardized format template, including: Obtain the function name, function description, input parameters, and output parameters of each test function point, and preset the structured conversion rules of the standardized format template; According to the structured conversion rules of the preset standardized format template, map the function name, function description, input parameters, and output parameters of each test function point to a key-value pair set.
3. The method for generating a test function library according to claim 1, wherein, The step of dynamically combining the parameter information of the test function points entered in the standardized format template according to the business logic to generate an interactive test function topology diagram includes: Analyze the input parameters and output parameters of each test function point, and construct a dependency matrix between the input parameters and output parameters of each test function point according to the analysis results; Analyze the constructed dependency matrix based on the topological sorting algorithm to generate an initial topological sequence of each test function point; Adjust the order of the initial topological sequence of each test function point according to the preset business logic to generate an interactive test function topology diagram.
4. The method for generating a test function library according to claim 3, wherein, The step of analyzing the constructed dependency matrix based on the topological sorting algorithm to generate an initial topological sequence of each test function point includes: Analyze the constructed dependency matrix based on the depth-first dependency algorithm to generate an initial topological sequence of each test function point.
5. The method for generating a test function library according to claim 1, wherein The step of associating corresponding test cases with each test function point in the test function topology diagram to generate a test function library including the test function topology diagram and the corresponding test cases includes: Extract keyword features from the function descriptions of each test function point and each test case in the test case library to obtain the keyword feature vectors of each test function point and the keyword feature vectors of each test case; Calculate the cosine similarity between the keyword feature vectors of each test function point and the keyword feature vectors of each test case, and screen out the test cases with a similarity higher than the preset similarity threshold for each test function point; Establish an index relationship between each test function point and the screened test cases to generate a test function library including the test function topology diagram and the corresponding test cases.
6. The method for generating a test function library according to claim 1, wherein After generating the test function library including the test function topology diagram and the corresponding test cases, the method further includes: Synchronously send the generated test function library including the test function topology diagram and the corresponding test cases to an external test execution platform through a preset API interface or message queue interface.
7. The method for generating a test function library according to claim 1, wherein After generating the test function library including the test function topology diagram and the corresponding test cases, the method further includes: Publish the generated test function library including the test function topology diagram and the corresponding test cases online, and configure different levels of permissions for the test function library based on user roles. Export the test function library released online as a preset format file, and store the test function library of the exported preset format file in the blockchain.
8. A generating device for a test function library, characterized in that, Including: An acquisition module, configured to acquire parameter information of each test function point, and input the acquired parameter information of each test function point based on a preset standardized format template; A combination module, configured to dynamically combine the parameter information of the test function points input in the standardized format template according to the business logic to generate an interactive test function topology diagram; A generation module, configured to associate corresponding test cases with each test function point in the test function topology diagram, and generate a test function library including the test function topology diagram and the corresponding test cases.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method for generating the test function library according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method for generating the test function library according to any one of claims 1 to 7 are implemented.