A configuration management method for automated testing process and readable storage medium
The configuration management method is used to automatically run and verify the CFD software calculation example test process, which solves the problems of diverse calculation example steps and complex processes in cloud testing, realizes fully automatic testing of CFD software on the cloud platform, and improves testing efficiency.
Patent Information
- Application Number
- CN202410889546.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-07-04
AI Technical Summary
During the cloud testing process, the steps of CFD software calculation examples are diverse and the process is complex, causing individual testing of each calculation case to occupy a large amount of human resources and becoming a key factor hindering the efficiency of cloud platform testing.
Through the configuration management method, configuration files are obtained and parsed to form a pairing of the calculation example test process and test configuration parameters, build an identification information queue, automate the operation and verification test process, and realize fully automatic testing of CFD software on the cloud platform.
It realizes the unified distribution of calculation example cloud test steps, meets function and performance verification, significantly reduces human resource occupation, and improves test efficiency.
Smart Images

Figure CN118427109B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing, and in particular to a configuration management method for an automated testing process. Background Art
[0002] Computational Fluid Dynamics (CFD) is an interdisciplinary subject that uses computers and numerical algorithms to perform numerical simulation analysis on fluid mechanics problems. Its main research purpose is to solve aerodynamic problems in the development of aerospace vehicles.
[0003] In the process of CFD software testing, examples are needed to verify functions and performance. The operation process of the example changes based on the changes in functions, which requires a lot of computing resources. The use of cloud testing technology can greatly improve the testing efficiency by calling cluster computing power and computing resources. However, the examples in the cloud testing process have problems such as diverse steps and complex processes. Testing each example separately will take up a lot of human resources, which has become a key factor hindering CFD software testing on the cloud platform. Summary of the invention
[0004] The present invention provides a configuration management method and a readable storage medium for an automated testing process. Through configuration management, the cloud testing steps of a calculation example are uniformly distributed. On the premise of satisfying the function and performance verification of each calculation example, the fully automatic testing of the CFD software on the cloud platform is realized.
[0005] Specifically, the present invention provides a configuration management method for an automated test process, comprising:
[0006] Step S11, obtaining a configuration file, wherein the configuration file includes a calculation example test process and a test configuration parameter, and the test configuration parameter also includes identification information, and the identification information is used to form a pairing between each calculation example test process and the corresponding test configuration parameter;
[0007] Step S12, parsing the configuration file to obtain all example test processes and all test configuration parameters;
[0008] Step S13, importing all the example test processes and all the test configuration parameters into the configuration management center;
[0009] Step S14, constructing a calculation example test process pool consisting of all the calculation example test processes, and constructing an identification information queue based on preset rules;
[0010] Step S15, reading identification information from the identification information queue based on a first preset reading order, and taking out a calculation example test process from a calculation example test process pool according to the read identification information;
[0011] Step S16, running the example test process based on the test configuration parameters matching the identification information;
[0012] Step S17, after the example test process is completed, pairing the test result with the identification information;
[0013] Step S18, determining whether the identification information queue has been read completely, if not, returning to step S15, if yes, obtaining all test results;
[0014] Step S19, reading identification information from the information queue based on a second preset reading order, and obtaining a test result matching the identification information according to the read identification information;
[0015] Step S20, performing a verification operation on the test result;
[0016] Step S21, determining whether the identification information queue has been read completely, if not, returning to step S19, if yes, obtaining all verification results.
[0017] Preferably, the identification information includes an ID of a calculation example test process.
[0018] Preferably, the test configuration parameters include the number of processes and the type of task.
[0019] Preferably, the constructing of the identification information queue based on a preset rule specifically includes constructing the identification information queue in sequence based on the numerical size of the ID.
[0020] Preferably, said constructing the identification information queue based on preset rules specifically includes, when constructing the identification information queue, selecting an ID corresponding to a test configuration parameter of a process quantity or task type that meets preset conditions.
[0021] Preferably, the first preset reading order specifically includes reading the elements in the identification information queue in sequence.
[0022] Preferably, the first preset reading order is the same as the second preset reading order.
[0023] Preferably, the performing of the verification operation on the test result specifically includes generating a verification file based on the test result, and comparing the verification file with a standard file.
[0024] Preferably, after the comparison operation is completed, it is also included to determine whether the comparison difference is less than a preset value. If the comparison difference is less than the preset value, the example test is passed.
[0025] The present invention also provides a readable storage medium, which includes a computer program. When the computer program is run on a computer, the computer executes the above method.
[0026] By adopting the configuration management method of the automated testing process provided by the present invention, the cloud testing steps of the example can be uniformly distributed through configuration management, and the fully automatic testing of the CFD software on the cloud platform is realized while satisfying the function and performance verification of each example. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other embodiments can be obtained based on these drawings without paying any creative labor.
[0028] Figure 1 The main operating steps of the configuration management method for the automated test process provided by the present invention. DETAILED DESCRIPTION
[0029] The present application may describe one or more different disclosures. In addition, for one or more of the present application, it should be understood that these are presented for illustrative purposes only and do not limit the disclosures contained in the present application or the claims presented in any way, and it should be understood that other embodiments may be utilized without departing from the specific disclosure scope, and structural, logical, software, electrical and other changes may be made.
[0030] The description of the embodiment with several parts combined with each other does not imply that all these parts are needed, on the contrary, various optional parts can be described, thereby showing various possible embodiments of one or more in the present application. Similarly, although process steps, method steps and algorithms, etc. can be described in order, such processes, methods and algorithms, etc. can usually be set to other alternative sequential operations. In other words, any order or order of the steps that may be described in the present application itself does not indicate that the steps must be performed by the order. In addition, although described or implied as non-simultaneous occurrence (for example, a step is described after another step), some steps can be performed simultaneously. In addition, some steps shown in the method can be omitted. The process depicted with reference to the accompanying drawings does not imply that the process shown does not include other variations and modifications. Although each embodiment generally describes a step once, this does not mean that they must occur once, and some steps can be omitted in some embodiments, or some steps can be performed multiple times.
[0031] For the sake of clarity, the techniques and mechanisms described or referenced in this application will sometimes be described in singular form. However, it should be understood that, unless otherwise stated, a specific embodiment may include multiple iterations of the technology or multiple instantiations of the mechanism. The description of the process or the frame shown in the accompanying drawings should be understood to represent a module, segment or partial code of a code including one or more executable instructions for implementing a specific logical function or step in the process. Alternative implementations will be included within the scope of the embodiments of the present application, for example, the functions can be performed from the order shown, also including substantially simultaneous or opposite order, depending on the functions involved, as understood by those skilled in the art.
[0032] Here, exemplary embodiments will be described in detail, and exemplary embodiments are in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. They are only examples of methods consistent with some aspects of the present application detailed in the claims.
[0033] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this application refers to any possible combination containing one or more listed items.
[0034] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.
[0035] Figure 1 The main operating steps of the configuration management method for the automated test process provided by the present invention.
[0036] The automated testing platform obtains the configuration file and stores it in the example folder, which also includes other document structures such as parameter folders and grid folders. The configuration file includes the example test process and test configuration parameters. The test configuration parameters also include identification information such as the ID of the example test process, as well as other information such as the number of processes running the example test process and the task type of the example test process. The ID is used to form a pairing between each example test process and the corresponding test configuration parameters.
[0037] Parse the configuration file to obtain the entire case test process and all test configuration parameters.
[0038] Import all case test processes and all test configuration parameters into the configuration management center.
[0039] Construct a case test process pool consisting of all case test processes, and construct an identification information queue based on preset rules, wherein the identification information queue can be constructed in sequence based on the numerical size of the ID. For example, when constructing the identification information queue, the corresponding IDs are sorted from small to large. In addition, when constructing the identification information queue, the IDs corresponding to the test configuration parameters of the number of processes or task types that meet the preset conditions can also be selected. For example, in certain resource-scarce situations, the IDs corresponding to the test configuration parameters with a number of processes less than 20 can be selected to be included in the identification information queue to avoid running the corresponding case test process, or the task type of this batch of case test processes can be selected according to actual needs, and the IDs corresponding to the test configuration parameters that meet the set conditions can be included in the identification information queue. The above method of constructing the identification information queue in sequence according to the numerical size of the ID can be set in combination with the screening of the number of processes or the task type.
[0040] The IDs in the identification information queue are read in sequence, and the example test process is taken out from the example test process pool according to the read IDs.
[0041] Run the test case based on the test configuration parameters that match the ID.
[0042] After the case test process is completed, the test results are matched with the ID.
[0043] Determine whether the identification information queue has been read. If not, return to continue to execute the operation of reading the ID in the identification information queue. If yes, obtain all test results.
[0044] The IDs in the identification information queue are read in sequence, and based on the read IDs, a test result matching the IDs is obtained.
[0045] A verification file is generated based on the test results, and the verification file is compared with the standard file to determine whether the comparison difference is less than a preset value. If the comparison difference is less than or equal to the preset value, the case test passes. For example, when the comparison difference is less than 10%, the case test is determined to pass.
[0046] It should be pointed out that for those skilled in the art, the technical features in the above embodiments can be freely combined, and the formed technical solutions also belong to the embodiments disclosed in this application.
[0047] Furthermore, without departing from the principles of the present application, several improvements and modifications may be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A configuration management method for an automated testing process, characterized in that: include: Step S11, obtaining a configuration file, wherein the configuration file includes a calculation example test process and a test configuration parameter, and the test configuration parameter also includes identification information, and the identification information is used to form a pairing between each calculation example test process and the corresponding test configuration parameter; Step S12, parsing the configuration file to obtain all example test processes and all test configuration parameters; Step S13, importing all the example test processes and all the test configuration parameters into the configuration management center; Step S14, constructing a calculation example test process pool consisting of all the calculation example test processes, and constructing an identification information queue based on preset rules; Step S15, reading identification information from the identification information queue based on a first preset reading order, and taking out a calculation example test process from a calculation example test process pool according to the read identification information; Step S16, running the example test process based on the test configuration parameters matching the identification information; Step S17, after the example test process is completed, pairing the test result with the identification information; Step S18, determining whether the identification information queue has been read completely, if not, returning to step S15, if yes, obtaining all test results; Step S19, reading identification information from the information queue based on a second preset reading order, and obtaining a test result matching the identification information according to the read identification information; Step S20, performing a verification operation on the test result; Step S21, determining whether the identification information queue has been read completely, if not, returning to step S19, if yes, obtaining all verification results.
2. The configuration management method for the automated testing process according to claim 1, characterized in that: The identification information includes the ID of the example test process.
3. The configuration management method of the automated test process according to claim 2, characterized in that: The test configuration parameters include the number of processes and the task type.
4. The configuration management method of the automated test process according to claim 2, characterized in that: The constructing of the identification information queue based on the preset rule specifically includes constructing the identification information queue in sequence based on the numerical size of the ID.
5. The configuration management method of the automated test process according to claim 3, characterized in that: The constructing of the identification information queue based on the preset rules specifically includes, when constructing the identification information queue, selecting an ID corresponding to a test configuration parameter of a process quantity or task type that meets a preset condition.
6. The configuration management method of the automated testing process according to claim 1, characterized in that: The first preset reading order specifically includes reading the elements in the identification information queue in sequence.
7. The configuration management method of the automated test process according to claim 6, characterized in that: The first preset reading order is the same as the second preset reading order.
8. The configuration management method of the automated testing process according to claim 1, characterized in that: The performing of the verification operation on the test result specifically includes generating a verification file based on the test result, and comparing the verification file with a standard file.
9. The configuration management method of the automated test process according to claim 8, characterized in that: After the comparison operation is completed, it also includes judging whether the comparison difference is less than a preset value. If the comparison difference is less than the preset value, the calculation example test is passed.
10. A readable storage medium, characterized in that: The readable storage medium comprises a computer program, and when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Test method and test system of operator library and storage medium
CN113918472A
Distributed parallel test method and device for CFD software, equipment and medium
CN115794659A
