Automatic software testing platform and method

Through the upload, configuration and analysis module of the automated software test platform, the problems of low development efficiency and poor quality in software project research and development are solved, and the rapid delivery and quality improvement of software projects are achieved, and continuous integration, deployment and testing are completed through automation.

CN119292913APending Publication Date: 2025-01-10BEIJING ZHIDA SAIDU TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411252840.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In the process of software project research and development, the development efficiency and poor quality are low, and the delivery guarantee problem of software projects cannot be systematically solved, especially in the integration of multiple sub-projects and continuous integration and continuous deployment.

Method used

Provides an automated software testing platform, including upload modules, configuration modules and analytical testing modules, which can automatically perform continuous integration, continuous deployment and continuous testing, and generate test reports, support code repositories such as git/svn, based on code data and test items and test parameters, select test nodes according to pipeline mode, and automatically complete dynamic compilation, dynamic deployment and testing.

Benefits of technology

Through the automated test platform, the quality and development efficiency of software projects are improved, the integration and deployment of software projects are simplified, and the rapid delivery of software projects is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292913A_ABST
    Figure CN119292913A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of software testing, and discloses an automatic software testing platform and method. The platform comprises an uploading module used for uploading code data of software to be tested; the configuration module is used for configuring test items and test parameters; and the analysis test module is used for automatically executing continuous integration, continuous deployment and continuous test of the to-be-tested software according to the code data, the test items and the test parameters and generating a test report. Therefore, the docking difficulty of the software project can be guaranteed, integration, deployment and testing can be automatically completed, and the quality and development efficiency of the software project can be quickly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software testing, and in particular to an automated software testing platform and method. Background Art

[0002] Currently, most of the tools on the market are based on continuous integration and continuous delivery. Most of the software needs to rely on public clouds and cloud servers, which has a threshold for the use of many platforms on the market. The problem is single and cannot systematically solve the software development efficiency of engineers, the quality of software projects, and the delivery guarantee of software projects.

[0003] In the process of software project development, software projects are generally integrated with multiple sub-projects. In the process of software project docking and development, the development efficiency is low, the software project quality is poor, and there are many problems, which hinder the rapid delivery of the project. Summary of the invention

[0004] The present invention provides an automated software testing platform and method, which can solve the problems in the prior art.

[0005] The present invention provides an automated software testing platform, wherein the platform comprises:

[0006] Upload module, used to upload code data of the software to be tested;

[0007] Configuration module, used to configure test items and test parameters;

[0008] The analysis and testing module is used to automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate test reports based on code data, test items and test parameters.

[0009] Preferably, the platform also includes a code repository, which is a git / svn code repository.

[0010] Preferably, automatically executing continuous integration, continuous deployment and continuous testing of the software to be tested and generating a test report based on the code data, test items and test parameters includes:

[0011] According to the code data, test items and test parameters, the test nodes are selected according to the pipeline mode, and the continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and a test report is generated.

[0012] Preferably, the test items include at least one of unit testing, integration testing, performance testing, security testing, annotation rate checking, static analysis, interface testing and UI testing.

[0013] Preferably, the analysis and testing module includes an analysis unit and a testing unit, wherein the analysis unit is used to analyze the code data, and the testing unit is used to automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate a test report based on the analysis results, test items and test parameters.

[0014] The present invention also provides an automated software testing method, wherein the method comprises:

[0015] Upload the code data of the software to be tested;

[0016] Configure test items and test parameters;

[0017] Based on code data, test items and test parameters, continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and test reports are generated.

[0018] Preferably, automatically executing continuous integration, continuous deployment and continuous testing of the software to be tested and generating a test report based on the code data, test items and test parameters includes:

[0019] According to the code data, test items and test parameters, the test nodes are selected according to the pipeline mode, and the continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and a test report is generated.

[0020] Preferably, the test items include at least one of unit testing, integration testing, performance testing, security testing, annotation rate checking, static analysis, interface testing and UI testing.

[0021] Through the above technical solution, the software to be tested can be tested and deployed with node configuration. When the software code data is detected to be uploaded, dynamic compilation, dynamic deployment, and automatic testing can be automatically completed. In this way, the difficulty of software project docking can be guaranteed, and integration, deployment, and testing can be automatically completed, which can quickly improve the quality and development efficiency of software projects. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, are used to illustrate the embodiments of the present invention, and together with the text description, explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 A block diagram of an automated software testing system according to an embodiment of the present invention is shown;

[0024] Figure 2A flow chart of an automated software testing method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0025] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0027] Unless otherwise specifically stated, the relative arrangement of the parts and steps described in these embodiments, numerical expressions and numerical values ​​do not limit the scope of the present invention. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be regarded as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0028] Figure 1 A block diagram of an automated software testing system according to an embodiment of the present invention is shown.

[0029] like Figure 1 As shown, an embodiment of the present invention provides an automated software testing platform, wherein the platform includes:

[0030] The upload module is used to upload the code data of the software to be tested (software project);

[0031] Configuration module, used to configure test items and test parameters;

[0032] The analysis and testing module is used to automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate test reports based on code data, test items and test parameters.

[0033] Through the above technical solution, the software to be tested can be tested and deployed with node configuration. When the software code data is detected to be uploaded, dynamic compilation, dynamic deployment, and automatic testing can be automatically completed. In this way, the difficulty of software project docking can be guaranteed, and integration, deployment, and testing can be automatically completed, which can quickly improve the quality and development efficiency of software projects.

[0034] According to an embodiment of the present invention, the platform also includes a code repository, which is a git / svn code repository.

[0035] Among them, the code data of the software to be tested can be submitted to the code repository.

[0036] According to an embodiment of the present invention, automatically performing continuous integration, continuous deployment and continuous testing of software to be tested and generating a test report based on code data, test items and test parameters includes:

[0037] According to the code data, test items and test parameters, the test nodes are selected according to the pipeline mode, and the continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and a test report is generated.

[0038] Thereby, the quality of the software to be tested can be improved.

[0039] For example, after uploading the code data of the software to be tested, the platform (analysis and testing module) can be automatically triggered, and then the platform pulls the code from the code repository according to the name of the software to be tested, and then calls the configured test items and test parameters to complete the comprehensive test of the software to be tested, selects the test nodes according to the pipeline mode, and automatically completes the continuous testing.

[0040] During the integration of multiple software projects, the platform can perform automated deployment and dynamic integration, improving the efficiency of system changes, submissions, deployment updates to the production environment.

[0041] According to one embodiment of the present invention, the test items include at least one of unit testing, integration testing, performance testing, security testing, annotation rate checking, static analysis, interface testing, and UI testing.

[0042] For example, Figure 2As shown, a user can create an automated testing software project, upload the software project source code, set the required test items (for example, unit testing, performance testing, security testing, annotation rate checking, etc.), set the test pass rate ratio, execute the project detection test, and generate a test report file after the detection is completed. The user can modify the detected software project and test it again according to the instructions in the test report file.

[0043] The following table shows Figure 2 The business in is described.

[0044] Table 2 Business Description

[0045]

[0046]

[0047] According to one embodiment of the present invention, the analysis and testing module includes an analysis unit and a testing unit, wherein the analysis unit is used to analyze code data, and the testing unit is used to automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate a test report based on the analysis results, test items and test parameters.

[0048] For example, the analysis unit can use CodeC to automatically complete code analysis and analyze information such as annotation rate, code size, function size, rule violations, etc. The analysis result data can be pushed to ZenTao. The user identity information logged in to the analysis unit corresponds to the user identity information of the automated software testing platform. The test unit can use Visual Unit to automatically complete C / C++ language unit testing, analyze coverage information, and push it to ZenTao. The user identity information logged in to the test unit corresponds to the user identity information of the automated software testing platform.

[0049] In addition, the automated testing platform can also integrate the manual review tool Gerrit to support relevant personnel in manual code review and review each submission before the code is stored.

[0050] The embodiment of the present invention also provides an automated software testing method, wherein the method comprises:

[0051] Upload the code data of the software to be tested;

[0052] Configure test items and test parameters;

[0053] Based on code data, test items and test parameters, continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and test reports are generated.

[0054] Through the above technical solution, the software to be tested can be tested and deployed with node configuration. When the software code data is detected to be uploaded, dynamic compilation, dynamic deployment, and automatic testing can be automatically completed. In this way, the difficulty of software project docking can be guaranteed, and integration, deployment, and testing can be automatically completed, which can quickly improve the quality and development efficiency of software projects.

[0055] According to an embodiment of the present invention, automatically performing continuous integration, continuous deployment and continuous testing of software to be tested and generating a test report based on code data, test items and test parameters includes:

[0056] According to the code data, test items and test parameters, the test nodes are selected according to the pipeline mode, and the continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and a test report is generated.

[0057] According to one embodiment of the present invention, the test items include at least one of unit testing, integration testing, performance testing, security testing, annotation rate checking, static analysis, interface testing, and UI testing.

[0058] The above method and Figure 1 The system described above corresponds to the system described above. For specific examples, please refer to the above Figure 1 The description of the system will not be repeated here.

[0059] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the devices or elements referred to must have a specific direction or be constructed and operated in a specific direction. Therefore, they cannot be understood as limiting the scope of protection of the present invention. The directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.

[0060] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.

[0061] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of the present invention.

[0062] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An automated software testing platform, characterized in that: The platform includes: Upload module, used to upload code data of the software to be tested; Configuration module, used to configure test items and test parameters; The analysis and testing module is used to automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate test reports based on code data, test items and test parameters.

2. The system according to claim 1, characterized in that The platform also includes a code repository, which is a git / svn code repository.

3. The system according to claim 2, characterized in that Automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate test reports based on code data, test items and test parameters, including: According to the code data, test items and test parameters, the test nodes are selected according to the pipeline mode, and the continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and a test report is generated.

4. The system according to claim 3, characterized in that The test items include at least one of unit testing, integration testing, performance testing, security testing, annotation rate checking, static analysis, interface testing, and UI testing.

5. The system according to any one of claims 1 to 4, characterized in that: The analysis and testing module includes an analysis unit and a test unit. The analysis unit is used to analyze code data, and the test unit is used to automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate a test report based on the analysis results, test items and test parameters.

6. An automated software testing method, characterized in that: The method includes: Upload the code data of the software to be tested; Configure test items and test parameters; Based on code data, test items and test parameters, continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and test reports are generated.

7. The method according to claim 6, characterized in that Automatically perform continuous integration, continuous deployment and continuous testing of the software to be tested and generate test reports based on code data, test items and test parameters, including: According to the code data, test items and test parameters, the test nodes are selected according to the pipeline mode, and the continuous integration, continuous deployment and continuous testing of the software to be tested are automatically performed and a test report is generated.

8. The method according to claim 7, characterized in that The test items include at least one of unit testing, integration testing, performance testing, security testing, annotation rate checking, static analysis, interface testing, and UI testing.