Test environment construction method, system and device, storage medium and program product

By generating resource request templates during software testing, the problem of inconsistency between the testing environment and the actual environment was solved, improving testing accuracy and reducing operational difficulty.

CN121365010APending Publication Date: 2026-01-20CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511502749.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-21
Publication Date
2026-01-20

AI Technical Summary

Technical Problem

Existing software testing methods cannot guarantee the consistency between the testing environment and the actual use environment, resulting in inaccurate test results, and the resource application process has a high barrier to entry.

Method used

By traversing the configuration information of the software under test, a list of resource types is obtained, and a resource request template is generated using the resource request model to build a matching software testing environment.

Benefits of technology

It achieves consistency between the testing environment and the actual use environment, improves the accuracy of test results, lowers the threshold for resource application, and simplifies the operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121365010A_ABST
    Figure CN121365010A_ABST
Patent Text Reader

Abstract

The invention relates to the field of software testing, and provides a test environment construction method, system and device, a storage medium and a program product.The test environment construction method comprises the steps that configuration item information in to-be-tested software is traversed to obtain a corresponding resource type list; inputting the resource type list into a pre-acquired resource application model to generate a resource application list of a corresponding type; traversing the resource type list to obtain a standard application parameter corresponding to each resource type; inputting non-standard parameters and standard application parameters in the configuration item information into a resource application model, and generating a resource application template based on the resource application list; and constructing a corresponding software test environment based on the resource application template. According to the test environment construction method provided by the embodiment of the invention, the test environment can be consistent with the actual use environment, the accuracy of the test result is ensured, meanwhile, the use threshold is reduced, and the efficiency of constructing the test environment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of software testing, and particularly relates to a test environment construction method, system, device, storage medium and program product. BACKGROUND

[0002] The existing software testing method is to regenerate the same resource based on the existing resource, and then generate a test environment. This testing method does not consider the difference between the test environment and the actual use environment, cannot guarantee the consistency of the test environment and the actual use environment, and is prone to inaccurate test results.

[0003] In addition, when the testing resource is applied for, the resource application personnel needs to fill in the resource application form according to each test task. When the resource application personnel is the tester, the resource application personnel needs to understand the infrastructure of the called testing resource, so as to fill in the appropriate resource application information, and the use threshold is high. SUMMARY

[0004] The embodiment of the present application aims to provide a test environment construction method, system, device, storage medium and program product to solve the above problems.

[0005] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a test environment construction method, comprising: traversing the configuration item information in the software to be tested to obtain a corresponding resource type list; inputting the resource type list into a pre-acquired resource application model to generate a resource application list of corresponding types; traversing the resource type list to obtain standard application parameters corresponding to each resource type; inputting non-standard parameters in the configuration item information and the standard application parameters into the resource application model to generate a resource application template based on the resource application list; and constructing a corresponding software test environment based on the resource application template.

[0006] In the embodiment of the present application, the step of traversing the configuration item information in the software to be tested to obtain a corresponding resource type list comprises: traversing the configuration item in the software to be tested to obtain a configuration item list of the software to be tested; and converting the configuration item list into a resource type list based on a predefined conversion rule.

[0007] In the embodiment of the present application, the step of inputting the resource type list into the pre-acquired resource application model to generate a resource application list of corresponding types comprises: inputting the resource type list into the pre-acquired resource application model, so that the resource application model matches the resource parameters of the corresponding resource type based on the resource type list; and generating a resource application list of each resource type based on the resource parameters corresponding to all the matched resources.

[0008] In the embodiment of the present application, the step of traversing the resource type list and obtaining the standard application parameter corresponding to each resource type comprises: traversing the resource type list, matching the fixed standard value and the environmental standard value of the corresponding resource type in the pre-obtained standard parameter list; and generating the standard application parameter corresponding to each resource type based on the fixed standard value and the environmental standard value.

[0009] In the embodiment of the present application, the fixed standard value is an initial standard value of the corresponding resource type, and the environmental standard value is a preset standard value of the corresponding resource type in a preset running environment.

[0010] In the embodiment of the present application, the step of inputting the non-standard parameter and the standard application parameter in the configuration item information into the resource application model and generating the resource application template based on the resource application list comprises: obtaining the non-standard parameter in the configuration item information based on the fixed standard value and the environmental standard value corresponding to the standard application parameter; and inputting the standard application parameter and the non-standard parameter into the resource application model and generating the resource application template based on the resource application list.

[0011] In the embodiment of the present application, the step of inputting the standard application parameter and the non-standard parameter into the resource application model and generating the resource application template based on the resource application list comprises: obtaining the generation rule of the corresponding resource application model based on the resource application list; inputting the standard application parameter and the non-standard parameter into the resource application model and generating the resource application template in the corresponding environment based on the generation rule; wherein the generation rule is used to convert the non-standard parameter into a test environment parameter in the corresponding environment.

[0012] In the embodiment of the present application, the non-standard parameter comprises a configuration item instance list and a configuration item instance attribute value two-dimensional table in the configuration item information.

[0013] The second aspect of the present application provides a test environment construction system, comprising: a first traversal module configured to traverse configuration item information in a software to be tested to obtain a corresponding resource type list; a model list module configured to input the resource type list into a pre-obtained resource application model to generate a resource application list of the corresponding type; a second traversal module configured to traverse the resource type list to obtain a standard application parameter corresponding to each resource type; a template generation module configured to input a non-standard parameter and the standard application parameter in the configuration item information into the resource application model to generate a resource application template based on the resource application list; and a construction module configured to construct a software test environment corresponding to the resource application template.

[0014] The third aspect of the present application provides a test environment construction device, comprising: a processor and a memory, wherein the memory stores instructions; and the processor invokes the instructions in the memory to enable the test environment construction device to perform the test environment construction method of any of the embodiments of the first aspect.

[0015] The fourth aspect of the present application provides a machine readable storage medium, which stores instructions configured to cause a processor to perform the test environment construction method of any of the embodiments of the first aspect when the instructions are executed by the processor.

[0016] The fifth aspect of the present application provides a computer program product, which comprises a computer program configured to implement the test environment construction method of any of the embodiments of the first aspect when the computer program is executed by a processor.

[0017] Through the above technical solution, the required resource type can be determined according to the configuration item of the software to be tested, and the corresponding resource application template is generated through the resource application model, so that the matched software test environment is constructed, the consistency of the test environment and the actual use environment is realized, the accuracy of the test result is ensured, the use threshold is reduced, the operation difficulty is simplified, and the efficiency of constructing the test environment is improved.

[0018] Other features and advantages of the embodiments of the present application will be described in detail in the following specific implementation part. BRIEF DESCRIPTION OF DRAWINGS

[0019] The accompanying drawings are included to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, and are used together with the following specific implementation to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the drawings: Figure 1 The application environment schematic diagram of the test environment construction method of the embodiments of the present application is schematically shown; Figure 2 The flowchart of the test environment construction method of the embodiments of the present application is schematically shown; Figure 3 The flowchart of step S110 in the test environment construction method of the embodiments of the present application is schematically shown; Figure 4 The flowchart of step S120 in the test environment construction method of the embodiments of the present application is schematically shown; Figure 5 The flowchart of step S130 in the test environment construction method of the embodiments of the present application is schematically shown; Figure 6 The flowchart of step S140 in the test environment construction method of the embodiments of the present application is schematically shown; Figure 7 The flowchart of step S142 in the test environment construction method of the embodiments of the present application is schematically shown; Figure 8A flow chart of a test environment construction method of an embodiment of the present application is shown schematically. Figure 9 A structural block diagram of a test environment construction system of an embodiment of the present application is shown schematically. Figure 10 An internal structure diagram of a computer device of an embodiment of the present application is shown schematically. DETAILED DESCRIPTION

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be understood that the specific implementation manners described herein are merely used to explain and illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort fall within the scope of protection of the present application.

[0021] It should be noted that the acquisition, transmission, storage, use, processing, and the like of data in the technical solutions of the present application comply with relevant provisions of laws and regulations. In the embodiments of the present application, some industry existing solutions, components, models, and the like may be mentioned, which should be considered as exemplary, and the purpose is merely to illustrate the feasibility in the implementation of the technical solutions of the present application, but does not mean that the applicant has or will necessarily use the solutions.

[0022] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, and the like), the directional indications are merely used to explain the relative positional relationship, movement condition, and the like between components in a certain specific posture (as shown in the drawings), and if the specific posture changes, the directional indications also change accordingly.

[0023] In addition, if the embodiments of the present application involve descriptions of “first”, “second”, and the like, the descriptions of “first”, “second”, and the like are merely for description purposes, and should not be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features limited by “first”, “second” can explicitly or implicitly include at least one of the features. In addition, the technical solutions of the various embodiments can be combined with each other, but must be based on the fact that a person of ordinary skill in the art can implement it, and when the combination of technical solutions appears to be contradictory or unimplementable, it should be considered that the combination of technical solutions does not exist, and is also not within the scope of protection claimed by the present application.

[0024] The test environment construction method provided by the present application can be applied to, for example, Figure 1The application environment is shown. Among them, the terminal 110 communicates with the server 120 through the network to realize the test environment construction method provided by the application. Among them, the terminal 110 can be but not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 120 can be realized by an independent server or a server cluster composed of multiple servers.

[0025] Figure 2 The flowchart of the test environment construction method of the embodiment of the application is schematically shown. As Figure 2 The embodiment of the application provides a test environment construction method, and the embodiment mainly takes the terminal 110 (or the server 120) in the above Figure 1 The test environment construction method of the embodiment of the application includes steps S110 to S150.

[0026] In step S110, the configuration item information in the software to be tested is traversed to obtain the corresponding resource type list.

[0027] As Figure 3 In some optional embodiments, step S110 includes steps S111 to S112.

[0028] In step S111, the configuration items in the software to be tested are traversed to obtain the configuration item list of the software to be tested.

[0029] In step S112, the configuration item list is converted into a resource type list based on a predefined conversion rule.

[0030] In the embodiment, as Figure 8 The production configuration management system is used to traverse each configuration item information in the software to be tested to query the configuration item list modelList, the configuration item instance list prdInstList, and the configuration item instance attribute value two-dimensional table prdParam[a`,b`] containing the current application system and the deployment unit. Then, the configuration item list modelList is converted into a resource type list resTypeList according to the predefined conversion rule.

[0031] Among them, the conversion rule is the mapping rule of the configuration item of the software to be tested and the resource type. For example, when the configuration item is the server hardware parameter and the storage capacity, it is mapped to the resource type such as the database server and the storage device. When the configuration item is the network communication, it is mapped to the network device resource type.

[0032] In step S120, the resource type list is input into the pre-acquired resource application model to generate a resource application list of the corresponding type.

[0033] As Figure 4 shown, in some optional embodiments, step S120 includes steps S121-S122.

[0034] In step S121, the resource type list is input into the pre-obtained resource application model, so that the resource application model matches the resource parameters of the corresponding resource type based on the resource type list.

[0035] In step S122, based on the resource parameters corresponding to all the matched resources, a resource application list of each resource type is generated.

[0036] In this embodiment, according to the obtained resource type list resTypeList, the resource application list reqModelList of the resource application model of the resource type list resTypeList is obtained in the resource application model. The resource application list reqModelList is a collection of a plurality of corresponding resource application models.

[0037] One resource application model in the embodiment of the present application corresponds to only one type of resource, indicating the parameters required when applying for the type of infrastructure resource. Therefore, by the resource type list and the resource application model, the required resource type and the corresponding resource parameters are determined, and then the required resource type and the corresponding resource application model are determined, and the plurality of required resource application models form a resource application list, which is used for subsequent generation of a resource application template.

[0038] In step S130, the resource type list is traversed to obtain the standard application parameters corresponding to each resource type.

[0039] As Figure 5 shown, in some optional embodiments, step S130 includes steps S131-S132.

[0040] In step S131, the resource type list is traversed, and the fixed standard value and the environmental standard value of the corresponding resource type are matched in the pre-obtained standard parameter list.

[0041] In step S132, based on the fixed standard value and the environmental standard value, the standard application parameters corresponding to each resource type are generated.

[0042] In this embodiment, by traversing the obtained resource type list resTypeList, the standard application parameter two-dimensional table stdParam[a,b] corresponding to each resource type is obtained in the standard parameter list, and the fixed standard value and the environmental standard value of the resource type are determined.

[0043] Specifically, the fixed standard value is the initial standard value for the corresponding resource type, and the environmental standard value is the preset standard value for the corresponding resource type under the preset operating environment.

[0044] This application embodiment defines a standard configuration for the test environment, which can define configuration parameters for different test environments according to the differences in test environments and the changes in test requirements. This enables personalized customization of a software application in different usage environments, as well as standardized configuration management of multiple software applications in the same usage environment.

[0045] In step S140, the non-standard parameters and standard application parameters in the configuration item information are input into the resource application model, and a resource application template is generated based on the resource application list.

[0046] like Figure 6 As shown, in some optional embodiments, step S140 includes steps S141 to S142.

[0047] In step S141, non-standard parameters in the configuration item information are obtained based on the fixed standard values ​​and environmental standard values ​​corresponding to the standard application parameters.

[0048] In step S142, standard application parameters and non-standard parameters are input into the resource application model, and a resource application template is generated based on the resource application list.

[0049] like Figure 7 As shown, step S142 further includes steps S1421 to S1422.

[0050] In step S1421, the generation rules for the corresponding resource application model are obtained based on the resource application list.

[0051] In step S1422, standard application parameters and non-standard parameters are input into the resource application model, and a resource application template for the corresponding environment is generated based on the generation rules.

[0052] Among them, the generation rules are used to convert non-standard parameters into test environment parameters in the corresponding environment.

[0053] Specifically, non-standard parameters include the configuration item attribute value prdParam[a`,b`], which is a list of configuration item instances and a two-dimensional table of configuration item instance attribute values. The standard environment value is the environment label env of the test environment of the software under test.

[0054] like Figure 8As shown, in this embodiment, the non-standard parameters of the production configuration management system, namely the configuration item attribute value prdParam[a`,b`], and the standard application parameters are used as input to form the resource application template parameter reqParam[env,a,b], that is, the resource application template parameter reqParam[env,a,b]=f(prdParam[a`,b`],stdParam[a,b]).

[0055] Then, based on the environmental standard value env, a resource request template parameter table reqParam[env,a,b] is generated one by one. Finally, the resource request templates of the software to be tested in the test environment represented by the current application system v are generated.

[0056] In step S150, a corresponding software testing environment is constructed based on the resource application template.

[0057] In this embodiment, the environment standard value env, resource type a, application parameter b under a resource type, configuration item a`, configuration item attribute b`, configuration item instance attribute value prdParam[a`,b`], and standard application parameter stdParam[a,b] are given. Then the resource application template parameter reqParam[env,a,b]=f(prdParam[a`,b`],stdParam[a,b]).

[0058] like Figure 8 As shown, after obtaining the resource type associated with the software to be tested through the production configuration management system, the corresponding resource application model is obtained, and the corresponding standard parameters are obtained. Then, the resource application template is automatically generated through the resource application template generation engine. Finally, the generated resource application template is uploaded as the initial value of the resource to be applied for, thereby obtaining the initial parameters for building the test environment to test the software.

[0059] The test environment construction method of the above embodiments of this application includes: traversing the configuration item information in the software to be tested to obtain the corresponding resource type list; inputting the resource type list into a pre-acquired resource application model to generate a resource application list of the corresponding type; traversing the resource type list to obtain the standard application parameters corresponding to each resource type; inputting the non-standard parameters and standard application parameters in the configuration item information into the resource application model, and generating a resource application template based on the resource application list; and constructing the corresponding software test environment based on the resource application template.

[0060] The test environment construction method of the above embodiments of the present application can determine the required resource type according to the configuration item of the software to be tested, and generate a corresponding resource application template through a resource application model, so as to construct a matched software test environment, realize the configuration of the application system of the software in the test environment consistent with the actual use environment, improve the accuracy and reliability of the test results, and at the same time, reduce the use threshold and simplify the operation difficulty, thereby improving the efficiency of constructing the test environment.

[0061] Figure 2 The flowchart of the test environment construction method of the embodiments of the present application is schematically shown. It should be understood that, although Figure 2 the steps in the flowchart are displayed in sequence according to the arrows, these steps are not necessarily executed in sequence according to the arrows. Unless otherwise specified herein, the execution of these steps has no strict sequence limitation, and these steps can be executed in other sequences. Moreover, Figure 2 at least part of the steps in the flowchart can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these sub-steps or stages is not necessarily sequential, but can be executed in rotation or alternation with other steps or sub-steps or stages of other steps.

[0062] As shown in Figure 9 , the present application also provides a test environment construction system 300, which comprises a first traversal module 301, a model list module 302, a second traversal module 303, a template generation module 304 and a construction module 305, wherein: The first traversal module 301 is configured to traverse the configuration item information in the software to be tested to obtain a corresponding resource type list.

[0063] The model list module 302 is configured to input the resource type list into a pre-obtained resource application model to generate a resource application list of the corresponding type.

[0064] The second traversal module 303 is configured to traverse the resource type list to obtain the standard application parameters corresponding to each resource type.

[0065] The template generation module 304 is configured to input the non-standard parameters and the standard application parameters in the configuration item information into the resource application model, and generate a resource application template based on the resource application list.

[0066] The construction module 305 is configured to construct a corresponding software test environment based on the resource application template.

[0067] The test environment construction system 300 provided by the embodiments of the present application can determine the required resource type according to the configuration item of the software to be tested, and generate a corresponding resource application template through a resource application model, so that a matched software test environment is constructed, consistency between the test environment and the actual use environment is achieved, the accuracy of the test result is ensured, the use threshold is reduced, the operation difficulty is simplified, and thus the efficiency of constructing the test environment is improved.

[0068] The embodiments of the present application also provide a test environment construction device, which comprises a processor, a memory, and program instructions stored in the memory and executable on the processor. The processor can call the instructions in the memory, so that the test environment construction device executes the test environment construction method of the above embodiments, and implements the following steps: Step S110: configuration item information in the software to be tested is traversed to obtain a corresponding resource type list.

[0069] Step S120: the resource type list is input into the pre-obtained resource application model to generate a resource application list of the corresponding type.

[0070] Step S130: the resource type list is traversed to obtain standard application parameters corresponding to each resource type.

[0071] Step S140: non-standard parameters in the configuration item information and the standard application parameters are input into the resource application model, and a resource application template is generated based on the resource application list.

[0072] Step S150: a corresponding software test environment is constructed based on the resource application template.

[0073] The test environment construction device provided by the embodiments of the present application can determine the required resource type according to the configuration item of the software to be tested, and generate a corresponding resource application template through a resource application model, so that a matched software test environment is constructed, consistency between the test environment and the actual use environment is achieved, the accuracy of the test result is ensured, the use threshold is reduced, the operation difficulty is simplified, and thus the efficiency of constructing the test environment is improved.

[0074] The processor of the test environment construction device of the embodiments of the present application comprises a core, and the core calls corresponding program units from the memory. The core can be one or more, and the test environment construction method is implemented by adjusting the core parameters.

[0075] The memory can include a non-permanent memory in a computer readable medium, a random access memory (RAM), and / or a non-volatile memory such as a read-only memory (ROM) or a flash memory (flash RAM), and the memory comprises at least one memory chip.

[0076] In the embodiment, the test environment construction device can be a computer device, for example, the computer device can be a terminal, and an internal structure diagram of the terminal can be as shown in FIG. a. Figure 10 The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. The processor A01 of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for running the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is configured to communicate with external terminals through network connection. The computer program is executed by the processor A01 to implement the test environment construction method described above. The display screen A04 of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device A05 of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.

[0077] Those skilled in the art can understand that Figure 10 the structure shown in FIG. a is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0078] The test environment construction system 300 provided by the above-mentioned embodiments of the present application can be implemented in the form of a computer program, which can run on a computer device as shown in FIG. b. The memory of the computer device can store various program modules constituting the test environment construction system 300, such as the first traversal module 301, the model list module 302, the second traversal module 303, the template generation module 304 and the construction module 305 shown in FIG. n. Figure 10 The computer device can execute the steps S110 by the first traversal module 301, the step S120 by the model list module 302, the step S130 by the second traversal module 303, the step S140 by the template generation module 304 and the step S150 by the construction module 305 in the test environment construction system 300 as shown in FIG. c. Figure 10 Figure 9 The computer program constituted by various program modules causes the processor to execute the steps in the test environment construction method of each embodiment of the present application described in the specification.

[0079] The computer program constituted by various program modules causes the processor to execute the steps in the test environment construction method of each embodiment of the present application described in the specification.​

[0080] The embodiment of the present application further provides a machine readable storage medium, which stores a program, and the program is executed by a processor to implement the test environment construction method.

[0081] The program in the machine readable storage medium provided by the embodiment of the present application is executed by a processor to implement the test environment construction method, the required resource type can be determined according to the configuration item of the software to be tested, and the corresponding resource application template is generated through the resource application model, so that the matched software test environment is constructed, the consistency of the test environment and the actual use environment is realized, the accuracy of the test result is ensured, the use threshold is reduced, the operation difficulty is simplified, and the efficiency of constructing the test environment is improved.

[0082] The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program that initializes the following method steps: Step S110: traversing the configuration item information in the software to be tested to obtain a corresponding resource type list.

[0083] Step S120: inputting the resource type list into the pre-acquired resource application model to generate a resource application list of the corresponding type.

[0084] Step S130: traversing the resource type list to obtain standard application parameters corresponding to each resource type.

[0085] Step S140: inputting the non-standard parameters in the configuration item information and the standard application parameters into the resource application model to generate a resource application template based on the resource application list.

[0086] Step S150: constructing a corresponding software test environment based on the resource application template.

[0087] The computer program product provided by the embodiment of the present application implements the test environment construction method, the required resource type can be determined according to the configuration item of the software to be tested, and the corresponding resource application template is generated through the resource application model, so that the matched software test environment is constructed, the consistency of the test environment and the actual use environment is realized, the accuracy of the test result is ensured, the use threshold is reduced, the operation difficulty is simplified, and the efficiency of constructing the test environment is improved.

[0088] Those skilled in the art will appreciate that embodiments of the application can be readily used as software, hardware, or a combination of software and hardware. In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0089] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.

[0090] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.

[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more functions specified in the flowchart block or blocks. Figure 1 means for functionally implementing the one or more functions specified in the flowchart block or blocks.

[0092] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0093] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) about which the processor can execute instructions. The memory can also include non-volatile memory, such as read only memory (ROM) or flash RAM, about which permanent data can be stored, such as instructions for the processor. The memory is an example of computer readable media.

[0094] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology for information storage. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0095] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusions, so that a process, method, article or apparatus that includes a list of elements does not only include those elements, but also includes other elements not explicitly listed, or further includes elements inherent in such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0096] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A test environment construction method characterized by comprising: The method comprises: traversing the configuration item information in the software to be tested to obtain a corresponding resource type list; inputting the resource type list into a pre-obtained resource application model to generate a resource application list of a corresponding type; traversing the resource type list to obtain a standard application parameter corresponding to each resource type; inputting a non-standard parameter in the configuration item information and the standard application parameter into the resource application model to generate a resource application template based on the resource application list; based on the resource application template, a corresponding software test environment is constructed.

2. The test environment construction method according to claim 1, wherein, The step of traversing the configuration item information in the software to be tested to obtain a corresponding resource type list comprises: traversing the configuration item in the software to be tested to obtain a configuration item list of the software to be tested; based on a predefined conversion rule, the configuration item list is converted into the resource type list.

3. The test environment construction method according to claim 1, wherein, The step of inputting the resource type list into a pre-obtained resource application model to generate a resource application list of a corresponding type comprises: inputting the resource type list into a pre-obtained resource application model, so that the resource application model matches resource parameters of a corresponding resource type based on the resource type list; based on the resource parameters corresponding to all matched resources, the resource application list of each resource type is generated.

4. The test environment construction method of claim 1, wherein, The step of traversing the resource type list to obtain a standard application parameter corresponding to each resource type comprises: traversing the resource type list to match a fixed standard value and an environmental standard value of a corresponding resource type in a pre-obtained standard parameter list; based on the fixed standard value and the environmental standard value, the standard application parameter corresponding to each resource type is generated.

5. The test environment construction method according to claim 4, wherein, The fixed standard value is an initial standard value of the corresponding resource type, and the environmental standard value is a preset standard value of the corresponding resource type under a preset running environment.

6. The test environment construction method according to claim 4, wherein, The step of inputting a non-standard parameter in the configuration item information and the standard application parameter into the resource application model to generate a resource application template based on the resource application list comprises: based on the fixed standard value and the environmental standard value corresponding to the standard application parameter, the non-standard parameter in the configuration item information is obtained; inputting the standard application parameter and the non-standard parameter into the resource application model to generate the resource application template based on the resource application list.

7. The test environment construction method according to claim 6, wherein, The step of inputting the standard application parameter and the non-standard parameter into the resource application model to generate the resource application template based on the resource application list comprises: based on the resource application list, a generation rule of the corresponding resource application model is obtained; inputting the standard application parameter and the non-standard parameter into the resource application model to generate the resource application template under a corresponding environment based on the generation rule; wherein the generation rule is used to convert the non-standard parameter into a test environment parameter under a corresponding environment.

8. The test environment construction method of claim 1, wherein, The non-standard parameter comprises a configuration item instance list and a configuration item instance attribute value two-dimensional table in the configuration item information.

9. A test environment construction system characterized by comprising: The system comprises: The first traversal module is configured to traverse configuration item information in the software to be tested to obtain a corresponding resource type list; The model list module is configured to input the resource type list into a pre-obtained resource application model to generate a resource application list of a corresponding type; The second traversal module is configured to traverse the resource type list to obtain standard application parameters corresponding to each resource type; The template generation module is configured to input non-standard parameters in the configuration item information and the standard application parameters into the resource application model to generate a resource application template based on the resource application list; The construction module is configured to construct a corresponding software test environment based on the resource application template.

10. A test environment construction device, characterized by, The test environment construction device includes a processor and a memory, and the memory stores instructions. The processor invokes the instructions in the memory to enable the test environment construction device to implement the test environment construction method in any one of claims 1 to 8.

11. A machine-readable storage medium having instructions stored thereon, the instructions comprising: The instructions, when executed by the processor, cause the processor to be configured to implement the test environment construction method in any one of claims 1 to 8.

12. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the test environment construction method in any one of claims 1 to 8.