Test management method and device and storage medium

By automatically generating test cases in the test management platform, the problem of the test management platform manually updating test cases after the program version changes in the existing technology is solved, which improves the intelligence and automation level of the test management platform, and improves the efficiency and quality of the test management.

CN119576780APending Publication Date: 2025-03-07NINGBO JOYNEXT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411692193.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

After the software development team program version changes, developers need to manually update test cases, which affects the intelligence and automation level of the test management platform in the existing technology, thereby reducing the efficiency of test management.

Method used

By obtaining test user information, performing identity authentication, obtaining test data, analyzing and processing to generate preliminary test strategies, and using historical test case data to generate target test cases, realizing the automated generation of test cases.

Benefits of technology

It improves the intelligence and automation level of the test management platform, reduces the workload of manually generating and maintaining test cases, and improves the efficiency and quality of test management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576780A_ABST
    Figure CN119576780A_ABST
Patent Text Reader

Abstract

The invention provides a test management method and device and a storage medium, and the test management method is applied to a test management platform, and comprises the steps: obtaining test user information, and sending the test user information to a user authentication login system; after identity authentication of the test user information is completed, test data corresponding to the test user information is acquired; analyzing and processing the test data to obtain a preliminary test strategy; according to historical test case data of a test case system, processing the preliminary test strategy to generate a target test case; the technical problems that in the prior art, a test management platform can only conduct test management, and after a software development team changes a program version, an enterprise needs to continue to input developers to regenerate a target test case according to a test result obtained after the program version is changed; therefore, the intelligent level and the automation level of the test management platform are affected, and the test management efficiency of the test management platform is further affected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software test management, and in particular to a test management method, device and storage medium. Background Art

[0002] Regarding the testing platform, there are many interface automation testing platforms, performance testing platforms, etc. on the market. The test management platform in the existing technology includes an interface automation management unit, a user interface (UI) automation management unit, a full-link stress testing unit, a scheduled execution unit, and a project test report unit; the test report summarized by the project test report unit is sent uniformly through the platform; the test management platform realizes interface automation testing, UI function automation testing, performance testing, full-link stress testing, test data statistics, functional testing management and daily work management within the department, integrating the basic testing, automation testing and performance testing of the testing department to meet the testing needs of different products.

[0003] However, there is at least one of the following problems in the related technology: the test management platform in the prior art can only perform test management. When the software development team changes the program version, the enterprise needs to continue to invest developers to regenerate target test cases based on the test results after the program version change, thereby affecting the intelligence level and automation level of the test management platform, and further affecting the test management efficiency of the test management platform. Summary of the invention

[0004] The technical problem that this application intends to solve is that the test management platform in the prior art can only perform test management. When the software development team changes the program version, the company needs to continue to invest developers to regenerate target test cases based on the test results after the program version change, which affects the intelligence and automation level of the test management platform, and further affects the test management efficiency of the test management platform.

[0005] To solve the above problems, on the first aspect, the present application provides a test management method, which is applied to a test management platform. The test management method includes: obtaining test user information, and sending the test user information to a user authentication login system to authenticate the test user information through the user authentication login system; after the test user information completes the identity authentication, obtaining test data corresponding to the test user information; analyzing and processing the test data to obtain a preliminary test strategy; and processing the preliminary test strategy according to the historical test case data of the test case system to generate a target test case.

[0006] Compared with the existing technology, the technical effect achieved by adopting this technical solution is: this solution improves the intelligence and automation level of the test management platform, thereby improving the test management efficiency and quality of the test management platform.

[0007] Specifically, in order to overcome the limitation of the existing test management platform that test cases need to be manually updated after the program version is changed, this scheme proposes a test management method applied to the test management platform. The test management method aims to improve the intelligence and automation of the test management platform, thereby improving the efficiency of test management.

[0008] In one example of the present application, test data is analyzed and processed to obtain a preliminary test strategy, including: obtaining a test category of a test case system from a test case system based on the test data, the test category including one or more of test vulnerability data, test project progress, and test requirement information; performing statistical analysis on the test data to obtain analysis results, and generating an analysis report based on the analysis results; and determining a processing strategy for the test category based on the analysis report to obtain a preliminary test strategy.

[0009] Compared with the existing technology, the technical effect achieved by adopting this technical solution is as follows: In this solution, the test management platform obtains the test category of the test case system from the test case system, where the test category covers one or more of the test vulnerability data, test project progress, and test requirement information, ensuring that the formulation of the preliminary test strategy is based on comprehensive and real-time data, thereby improving the practicality of the results of the formulation of the preliminary test strategy.

[0010] In one example of the present application, the test category is test vulnerability data, statistical analysis is performed on the test data to obtain analysis results, and an analysis report is generated based on the analysis results, including: analyzing the test vulnerability data to obtain vulnerability analysis results, the vulnerability analysis results include the number of vulnerabilities and vulnerability types of the test vulnerability data; according to the vulnerability analysis results, obtaining the vulnerability causes of the test vulnerabilities corresponding to various vulnerability types, and establishing a vulnerability distribution tree; obtaining the processing status of the test vulnerability, and performing vulnerability rating on the test vulnerability; statistically displaying the results of the vulnerability number, vulnerability distribution tree and vulnerability rating through statistical views and / or statistical charts to generate analysis results.

[0011] Compared with the existing technology, the technical effect achieved by adopting this technical solution is as follows: this solution improves the convenience of the test management platform by performing statistical analysis on the test data when the test category is test vulnerability data, and automatically generates the results of the statistical analysis as an analysis report, thereby further reducing the workload of manual analysis and improving the test management efficiency of the test management platform.

[0012] Specifically, the results of the number of vulnerabilities, vulnerability distribution tree, and vulnerability rating are displayed through statistical views and / or statistical charts, which intuitively display the test data and help test managers better understand and grasp the test vulnerability data during the testing process.

[0013] In one instance of the present application, the test category is the progress of the test project, statistical analysis is performed on the test data to obtain analysis results, and an analysis report is generated based on the analysis results, including: obtaining test information of the test project from the test case system; displaying the test information through statistical views and / or statistical charts to generate an analysis report, wherein the test information includes one or more of the test progress of the test project, the milestone completion progress of the test project, and the number of legacy tests of the test project.

[0014] Compared with the existing technology, the technical effect achieved by adopting this technical solution is as follows: this solution makes it easier for managers to track the completion of projects. At the same time, the test information is displayed through statistical views and / or statistical charts to generate analysis reports, which reduces the time for testers to manually prepare reports, thereby further improving the test management efficiency of the test management platform.

[0015] In one example of the present application, the test category is test requirement information, statistical analysis is performed on the test data to obtain analysis results, and an analysis report is generated based on the analysis results, including: obtaining use case information of the test requirement information from the test case system; obtaining the execution status of the test requirement information based on the use case information; and displaying the use case information and execution status through statistical views and / or statistical charts to generate an analysis report.

[0016] Compared with the prior art, the technical effect achieved by adopting this technical solution is: this solution further improves the test management efficiency of the test management platform.

[0017] In one example of the present application, a preliminary test strategy is processed based on historical test case data of a test case system to generate a target test case, including: inputting the preliminary test strategy into a test case generation model trained based on the historical test case data, and outputting the target test case.

[0018] Compared with the existing technology, the technical effect achieved by adopting this technical solution is as follows: This solution enables the test management platform to automatically generate target test cases by inputting the preliminary test strategy into the test case generation model trained based on historical test case data, thereby improving the intelligence and automation level of the test management platform, and thus improving the efficiency of target test case writing.

[0019] In one example of the present application, a preliminary test strategy is input into a test case generation model trained based on historical test case data, and before the target test case is output, the test management method also includes: obtaining historical test case data of the test case system; using natural language processing technology and large language models to perform model training based on historical test case data to obtain a test case generation model; and integrating the test case generation model into the test management platform.

[0020] Compared with the existing technology, the technical effect achieved by adopting this technical solution is that the automatic generation and maintenance of the test case generation model reduces the long-term labor cost and maintenance work. Specifically, the test management platform automatically generates target test cases from the preliminary test strategy based on the historical test case data of the test case system, which improves the intelligence and automation level of the test management platform.

[0021] In one example of the present application, a preliminary test strategy is processed based on historical test case data of a test case system to generate a target test case, and also includes: a test management platform obtains the distribution of test case data, and calculates the coverage of the test case data based on the distribution; the test management platform obtains the pass status of the test case, and calculates the pass rate of the test case; wherein the coverage rate and pass rate are displayed through statistical views and / or statistical charts.

[0022] Compared with the existing technology, the technical effect achieved by adopting this technical solution is as follows: This solution obtains the distribution and pass status of test case data through the test management platform, and calculates the coverage of test case data and the pass rate of test cases, thereby providing data support and decision-making basis for testers, making it easier for testers to quickly understand and grasp the test progress and quality of test cases.

[0023] In a second aspect, the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, a test management method as in any of the above technical solutions is implemented.

[0024] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: Since a computer device in this technical solution includes a test management method of a test management platform as described in any of the above technical solutions, this technical solution includes the beneficial effects of any of the above technical solutions, which will not be repeated here.

[0025] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the test management method in any of the above technical solutions is implemented.

[0026] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: Since a computer-readable storage medium in this technical solution includes a test management method as in any of the above-mentioned technical solutions, this technical solution includes the beneficial effects in any of the above-mentioned technical solutions, which will not be repeated here.

[0027] In a fourth aspect, the present application provides a test management device for implementing a test management method as in any of the above technical solutions, the test management device comprising: an authentication module, a data acquisition module, a data analysis module, and a data processing module. Among them, the authentication module is used to obtain test user information, and send the test user information to a user authentication login system so as to authenticate the test user information through the user authentication login system, the data acquisition module is used to obtain the test data corresponding to the test user information after the test user information completes the identity authentication, the data acquisition and analysis module is used to analyze and process the test data to obtain a preliminary test strategy, and the data processing module is used to process the preliminary test strategy according to the historical test case data of the test case system to generate a target test case.

[0028] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: Since a test management device in this technical solution is used to implement a test management method as in any of the above-mentioned technical solutions, this technical solution includes the beneficial effects of any of the above-mentioned technical solutions, which will not be repeated here.

[0029] After adopting the technical solution of this application, the following technical effects can be achieved: The present application provides a test management method, device and storage medium, which improve the intelligence and automation level of the test management platform, thereby improving the test management efficiency and quality of the test management platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings to be used in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. Figure 1 One of the flow charts of a test management method provided in an embodiment of the present application; Figure 2 A second flowchart of a test management method provided in an embodiment of the present application; Figure 3 One of the module schematic diagrams of a test management device provided in an embodiment of the present application; Figure 4This is a second module diagram of a test management device provided in an embodiment of the present application.

[0031] Description of reference numerals: 100. Authentication module; 200. Data acquisition module; 300. Data analysis module; 400. Data processing module; 500. Use case output module. DETAILED DESCRIPTION

[0032] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0033] First, as Figure 1 As shown, the present application provides a test management method, which is applied to a test management platform. The test management method includes: S100, obtaining test case system user information, and sending the test user information to the user authentication login system, so as to authenticate the test user information through the user authentication login system; S200, after the test user information completes identity authentication, obtain the test data test case system test case system corresponding to the test user information; S300, analyzing and processing the test data to obtain a preliminary test strategy test case system; S400 , processing the preliminary test strategy according to the historical test case data of the test case system to generate a target test case system.

[0034] In a specific embodiment, the user authentication login system can be a user authentication login system based on the Lightweight Directory Access Protocol (LDAP) (hereinafter referred to as the LDAP system). The test management platform and the test case system automatically communicate and connect through the LDAP system to achieve the interconnection and unified management of the company's employee accounts, ensuring the security and convenience of the system. Specifically, the test management platform and the test case system use the LDAP protocol and the Django authentication framework to achieve communication with the company's LDAP server and user authentication.

[0035] Further, such as Figure 2 As shown, based on the previous embodiment, a test management method provided by an embodiment of the present application further includes: S500, performing test case management on the target test case, and automatically outputting the target test case report according to the test case management result; Among them, test case management for target test cases includes testing the target test cases. If no loopholes are found, the test passes, the target test case report is automatically output, and the newly generated target test cases are included in the historical test data of the test case system. If loopholes are found in the test, the test fails, and the case test data continues to be analyzed and processed, and the preliminary test strategy is automatically obtained based on the results of the analysis and processing.

[0036] Specifically, by obtaining the user information of the test case system, the real-time and accuracy of the user information is ensured; the communication connection with the test case system is established based on the user information, and the identity of the test case system is authenticated, thereby ensuring the legitimacy and security of the user's access rights; the preliminary test strategy is processed according to the historical test case data of the test case system, and finally the target test case is automatically generated. Since the workload of developers for generating and maintaining target test cases is reduced, the enterprise can save human resource costs, and at the same time, the generation of target test cases is made more intelligent, thereby improving the automation level of the test management platform. In addition, after the program version is changed, the test management platform can quickly generate new target test cases, timely reflect the impact of the change, speed up the cycle of software testing and release, and improve the intelligence and automation level of the test management platform, thereby improving the test management efficiency and quality of the test management platform.

[0037] Furthermore, the test data is analyzed and processed to obtain a preliminary test strategy, including: obtaining a test category of the test case system from the test case system based on the test data, the test category including one or more of test vulnerability data, test project progress, and test requirement information; performing statistical analysis on the test data to obtain analysis results, and generating an analysis report based on the analysis results; and determining a processing strategy for the test category based on the analysis report to obtain a preliminary test strategy.

[0038] In a specific embodiment, the test management platform obtains the use case test data on Jira, and obtains the test category of the test case system from the test management platform based on the use case test data, performs statistical analysis on the test category of the test case system, and provides an optimization strategy for the test category to help test managers formulate accurate preliminary test strategies; wherein the test category includes test vulnerability data, test project progress, and test requirement information.

[0039] It should be noted that in the embodiments provided in the present application, the test category may also include resource allocation status, so that the test manager can optimize the project management strategy based on the test data stored in the database of the test management platform through intelligent analysis algorithms to allocate resources and arrange test work more scientifically and reasonably.

[0040] Furthermore, the test category is test vulnerability data, and statistical analysis is performed on the test data to obtain analysis results, and an analysis report is generated based on the analysis results, including: analyzing the test vulnerability data to obtain vulnerability analysis results, the vulnerability analysis results include the number of vulnerabilities and vulnerability types of the test vulnerability data; according to the vulnerability analysis results, obtaining the vulnerability causes of the test vulnerabilities corresponding to various vulnerability types, and establishing a vulnerability distribution tree; obtaining the processing status of the test vulnerabilities, and performing vulnerability rating on the test vulnerabilities; statistically displaying the results of the number of vulnerabilities, vulnerability distribution tree and vulnerability rating through statistical views and / or statistical charts to generate analysis results.

[0041] In a specific embodiment, the test management platform uses Jira's REST API to obtain test vulnerability data, uses the Django framework and Pandas data processing library to analyze and summarize, and displays charts through Django templates and Chart.js front-end technology.

[0042] Furthermore, the test category is the progress of the test project, and statistical analysis is performed on the test data to obtain analysis results, and an analysis report is generated based on the analysis results, including: obtaining test information of the test project from the test case system; displaying the test information through statistical views and / or statistical charts to generate an analysis report, wherein the test information includes one or more of the test progress of the test project, the milestone completion progress of the test project, and the number of legacy tests of the test project.

[0043] Furthermore, the test category is test requirement information, and statistical analysis is performed on the test data to obtain analysis results, and an analysis report is generated based on the analysis results, including: obtaining use case information of the test requirement information from the test case system; obtaining the execution status of the test requirement information based on the use case information; and displaying the use case information and execution status through statistical views and / or statistical charts to generate an analysis report.

[0044] Furthermore, the preliminary test strategy is processed according to the historical test case data of the test case system to generate the target test case, including: inputting the preliminary test strategy into a test case generation model trained based on the historical test case data, and outputting the target test case.

[0045] Furthermore, before the preliminary test strategy is input into a test case generation model trained based on historical test case data and the target test case is output, the test management method also includes: obtaining historical test case data of the test case system; using natural language processing technology and large language models to perform model training based on historical test case data to obtain a test case generation model; and integrating the test case generation model into the test management platform.

[0046] In a specific embodiment, the test management platform collects and organizes historical test case data, uses computer language processing technology, GPT-2 model and LLaMa3 model for model training to obtain a test case generation model, and integrates it into the test management platform, providing the test management platform with the function of automatically generating target test cases, realizing the automatic generation requirements of target test cases. When in use, the tester only needs to enter a reasonable description of the test requirement information, and the test management platform can generate target test cases that meet the scenario requirements and standard format, significantly improving the automation level of the test management platform.

[0047] Furthermore, the preliminary test strategy is processed according to the historical test case data of the test case system to generate the target test case, which also includes: the test management platform obtains the distribution of the test case data, and calculates the coverage of the test case data based on the distribution; the test management platform obtains the pass status of the test case, and calculates the pass rate of the test case; wherein the coverage rate and pass rate are displayed through statistical views and / or statistical charts.

[0048] In a second aspect, the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, a test management method as in any of the above technical solutions is implemented.

[0049] In a third aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the test management method in any of the above technical solutions is implemented.

[0050] Fourthly, Figure 3 As shown, the present application provides a test management device, which is used to implement the test management method in any of the above technical solutions, and the test management device includes: an authentication module 100, a data acquisition module 200, a data analysis module 300, and a data processing module 400. Among them, the authentication module 100 is used to obtain test user information, and send the test user information to the user authentication login system to authenticate the test user information through the user authentication login system, the data acquisition module 200 is used to obtain the test data corresponding to the test user information after the test user information completes the identity authentication, the data acquisition and analysis module 300 is used to analyze and process the test data to obtain a preliminary test strategy, and the data processing module 400 is used to process the preliminary test strategy according to the historical test case data of the test case system to generate a target test case.

[0051] like Figure 4As shown, based on the above embodiments, a test management device provided by an embodiment of the present application also includes a use case output module 500, which is used to manage test cases and automatically output target test case reports based on the results of the test case management.

[0052] In a specific embodiment, the test management device may be a test management platform, for example, a test management platform that complies with relevant specifications of the Test Center of Excellence (TCoE).

[0053] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.

Claims

1. A test management method, characterized in that: Applied to a test management platform, the test management method includes: Acquire test user information, and send the test user information to a user authentication login system, so as to authenticate the test user information through the user authentication login system; After the test user information completes the identity authentication, obtaining the test data corresponding to the test user information; Analyzing and processing the test data to obtain a preliminary test strategy; The preliminary test strategy is processed according to historical test case data of the test case system to generate target test cases.

2. The test management method according to claim 1, characterized in that: The analyzing and processing the test data to obtain a preliminary test strategy includes: According to the test data, a test category of the test case system is obtained from the test case system, wherein the test category includes one or more of test vulnerability data, test project progress, and test requirement information; Performing statistical analysis on the test data to obtain analysis results, and generating an analysis report based on the analysis results; According to the analysis report, a processing strategy for the test category is determined to obtain the preliminary test strategy.

3. The test management method according to claim 2, characterized in that: The test category is the test vulnerability data, the statistical analysis of the test data to obtain analysis results, and the generation of an analysis report based on the analysis results include: Analyze the test vulnerability data to obtain a vulnerability analysis result, wherein the vulnerability analysis result includes the number and type of vulnerabilities in the test vulnerability data; According to the vulnerability analysis results, the vulnerability causes of the test vulnerabilities corresponding to the various vulnerability types are obtained, and a vulnerability distribution tree is established; Obtaining a processing status of the test vulnerability and performing a vulnerability rating on the test vulnerability; The analysis result is generated by statistically displaying the results of the vulnerability quantity, the vulnerability distribution tree and the vulnerability rating through a statistical view and / or a statistical chart.

4. The test management method according to claim 2, characterized in that: The test category is the test project progress, the statistical analysis of the test data to obtain analysis results, and the generation of an analysis report based on the analysis results include: Acquire test information of the test item from the test case system; The test information is presented through statistical views and / or statistical charts to generate the analysis report, wherein the test information includes one or more of the test progress of the test project, the milestone completion progress of the test project, and the number of legacy tests of the test project.

5. The test management method according to claim 2, characterized in that: The test category is the test requirement information, the statistical analysis of the test data to obtain analysis results, and the generation of an analysis report based on the analysis results include: Acquire the use case information of the test requirement information from the test case system; Acquire the execution status of the test requirement information according to the use case information; The use case information and the execution status are presented through statistical views and / or statistical charts to generate the analysis report.

6. The test management method according to claim 1, characterized in that: The processing of the preliminary test strategy according to the historical test case data of the test case system to generate a target test case includes: The preliminary test strategy is input into a test case generation model trained based on the historical test case data, and the target test case is obtained as an output.

7. The test management method according to claim 6, characterized in that: Before inputting the preliminary test strategy into the test case generation model trained based on the historical test case data to output the target test case, the test management method further includes: Acquire the historical test case data of the test case system; Using natural language processing technology and a large language model, model training is performed based on the historical test case data to obtain the test case generation model; Integrate the test case generation model into the test management platform.

8. The test management method according to claim 6, characterized in that: The processing of the preliminary test strategy according to the historical test case data of the test case system to generate a target test case also includes: The test management platform obtains the distribution of the test case data, and calculates the coverage of the test case data according to the distribution; The test management platform obtains the passing status of the test cases and calculates the passing rate of the test cases; The coverage rate and the pass rate are displayed through statistical views and / or statistical charts.

9. A computer device, characterized in that: The computer device includes 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 test management method according to any one of claims 1 to 8 is implemented.

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 test management method according to any one of claims 1 to 8 is implemented.