Test environment monitoring method and device, electronic device, and storage medium
By acquiring historical environment baseline data and reading change information at the system and application layers, target environment configuration information is generated and its consistency is verified, thus solving the problem of difficult test environment monitoring and improving the quality and efficiency of test software.
Patent Information
- Application Number
- CN202210736113.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2042-06-27
AI Technical Summary
In existing technologies, manual monitoring of changes in the test environment cannot promptly correct these changes, leading to difficulties in monitoring the test environment and affecting the quality and efficiency of the test software.
By acquiring historical environment baseline data, reading change information at the system and application layers, generating target environment configuration information, and verifying its consistency with pre-configured environment configuration information, the verification results are fed back to ensure the consistency of the test environment.
It enables automated monitoring of changes in the testing environment, improves the quality and efficiency of testing software, and reduces the difficulty of manual intervention.
Smart Images

Figure CN115098374B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data monitoring, and particularly relates to a test environment monitoring method and device, electronic equipment and a storage medium. BACKGROUND
[0002] In the process of software development, the development process is mainly divided into two stages, one is the development stage, that is, the requirement capture and requirement analysis of software, and the other is the test stage, that is, the use of software needs to be tested in a test environment first, and whether the test environment is suitable or not will directly affect the subsequent test results, so it is necessary to monitor whether the test environment changes in real time.
[0003] In the existing manner, when the software is tested in the test environment, the change of the test environment needs to be monitored in real time by manual operation, and once the test environment changes, the test environment needs to be corrected in time.
[0004] However, since the test environment includes basic server equipment, middleware and the like, especially when a certain software has multiple test environments and needs to be processed together with the test task, it will cause difficulty in manually monitoring the test environment, so as to fail to guarantee the quality and efficiency of the test software. SUMMARY
[0005] Based on the deficiencies of the prior art, the present application provides a test environment monitoring method and device, electronic equipment and a storage medium to solve the problem of difficulty in manually monitoring the test environment.
[0006] In order to achieve the above purpose, the present application provides the following technical solutions:
[0007] The first aspect of the present application provides a test environment monitoring method, comprising:
[0008] When a to-be-verified task of a current test environment is received, historical environment baseline data is acquired; wherein the historical environment baseline data refers to the data of the test environment of the last to-be-verified task;
[0009] System layer change information and application layer change information are read from the current test environment;
[0010] Target environment configuration information is generated based on the historical environment baseline data, the system layer change information and the application layer change information;
[0011] It is verified whether the target environment configuration information is consistent with the environment configuration information of the to-be-verified task pre-configured;
[0012] If the target environment configuration information is inconsistent with the pre-configured environment configuration information of the task to be checked, a check result is fed back.
[0013] Optionally, in the test environment monitoring method, the reading of the change information of the system layer and the change information of the application layer from the current test environment comprises:
[0014] According to a preset rule, the change information of the middleware is read from the system layer in the current test environment;
[0015] According to natural language processing, the change information of the installation manual and the change information of the program content are read from the application layer in the current test environment.
[0016] Optionally, in the test environment monitoring method, the generation of the target environment configuration information based on the historical environment baseline data, the change information of the system layer and the change information of the application layer comprises:
[0017] According to dimensions, the historical environment baseline data, the change information of the middleware, the change information of the installation manual and the change information of the program content are merged to obtain the target environment configuration information.
[0018] Optionally, in the test environment monitoring method, after the checking of whether the target environment configuration information is consistent with the pre-configured environment configuration information of the task to be checked, the method further comprises:
[0019] If the target environment configuration information is consistent with the pre-configured environment configuration information of the task to be checked, prompt information indicating that the checking is consistent is fed back.
[0020] The second aspect of the present application provides a test environment monitoring device, comprising:
[0021] An acquisition unit is configured to acquire historical environment baseline data when a task to be checked of a current test environment is received, wherein the historical environment baseline data refers to data of a test environment of a last task to be checked.
[0022] A first reading unit is configured to read change information of a system layer and change information of an application layer from the current test environment.
[0023] A generation unit is configured to generate target environment configuration information based on the historical environment baseline data, the change information of the system layer and the change information of the application layer.
[0024] A checking unit is configured to check whether the target environment configuration information is consistent with pre-configured environment configuration information of the task to be checked.
[0025] The first feedback unit is configured to feed back the checking result if it is checked that the target environment configuration information is inconsistent with the environment configuration information of the to-be-checked task pre-configured.
[0026] Optionally, in the test environment monitoring device, the first reading unit comprises:
[0027] The second reading unit is configured to read the change information of the middleware from the system layer in the current test environment according to a preset rule.
[0028] The third reading unit is configured to read the change information of the installation manual and the change information of the program content from the application layer in the current test environment according to natural language processing.
[0029] Optionally, in the test environment monitoring device, the generating unit comprises:
[0030] The merging unit is configured to merge the historical environment baseline data, the change information of the middleware, the change information of the installation manual and the change information of the program content according to dimensions to obtain target environment configuration information.
[0031] Optionally, in the test environment monitoring device, the test environment monitoring device further comprises:
[0032] The second feedback unit is configured to feed back prompt information indicating that the checking is consistent if it is checked that the target environment configuration information is consistent with the environment configuration information of the to-be-checked task pre-configured.
[0033] The third aspect of the present application provides an electronic device, comprising:
[0034] a memory and a processor;
[0035] The memory is configured to store a program.
[0036] The processor is configured to execute the program, and the program is executed to implement the test environment monitoring method according to any one of the preceding aspects.
[0037] The fourth aspect of the present application provides a computer storage medium for storing a computer program, and the computer program is executed to implement the test environment monitoring method according to any one of the preceding aspects.
[0038] The application provides a test environment monitoring method. When a current test environment to be checked is received, historical environment baseline data is acquired, wherein the historical environment baseline data refers to data of the test environment of the last time to be checked; system layer change information and application layer change information are read from the current test environment; target environment configuration information is generated based on the historical environment baseline data, the system layer change information and the application layer change information; and whether the target environment configuration information is consistent with environment configuration information of the to-be-checked task is checked. If the target environment configuration information is inconsistent with the environment configuration information of the to-be-checked task, a feedback result is fed back. Thus, the problem that it is difficult to monitor the test environment by using manual monitoring is solved, and the problem that the quality and efficiency of the test software cannot be guaranteed is solved. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of the provided drawings.
[0040] Figure 1 A flowchart of a test environment monitoring method provided by an embodiment of the present application;
[0041] Figure 2 A flowchart of a change information reading method provided by an embodiment of the present application;
[0042] Figure 3 A flowchart of another test environment monitoring method provided by an embodiment of the present application;
[0043] Figure 4 A structural diagram of a test environment monitoring device provided by another embodiment of the present application;
[0044] Figure 5 A structural diagram of a first reading unit provided by another embodiment of the present application;
[0045] Figure 6 A structural diagram of an electronic device provided by another embodiment of the present application. DETAILED DESCRIPTION
[0046] With reference to the drawings and the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0047] In the present application, the relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover the non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the statement "including a" does not exclude the presence of additional identical elements in the process, method, article or equipment including the element.
[0048] The embodiments of the present application provide a monitoring method of a test environment, as shown in the method, the method specifically comprises the following steps: Figure 1 The method specifically comprises the following steps:
[0049] S101, when receiving a to-be-verified task of a current test environment, acquiring historical environment baseline data.
[0050] The historical environment baseline data refers to the data of the test environment of the last to-be-verified task. It should be noted that a set of test environment may have multiple batches of to-be-verified tasks, and each to-be-verified task of the test environment is associated with the last to-be-verified task of the test environment. Therefore, when receiving the to-be-verified task of the current test environment, the data of the test environment of the last to-be-verified task is acquired, so as to effectively ensure the accuracy of the to-be-verified task.
[0051] S102, reading change information of a system layer and change information of an application layer from the current test environment.
[0052] It should be noted that the test environment includes the basic server device, the application layer and the system layer and the like related configuration baseline, and the change of the test environment is mainly caused by the change of the system layer and the change of the application layer, so in the embodiment of the application, when the current test environment receives the to-be-verified task, it indicates that the current test environment has changed, which may affect the work progress of the current test environment, therefore, the change information of the system layer and the change information of the application layer are acquired from the current test environment, so as to subsequently timely correct the test environment.
[0053] Optionally, in another embodiment of the application, a specific implementation of step S102 comprises the following steps as shown in the figure. Figure 2
[0054] S201, reading the change information of the middleware from the system layer in the current test environment according to a preset rule.
[0055] Optionally, the preset rule can be that the information changed in the middleware is manually marked in advance, and when the system receives the instruction of the to-be-verified task, the change information of the middleware can be directly identified from the system layer in the current test environment based on the marked information.
[0056] The change information of the middleware can include the change of the baseline version number, the change of the number of middleware, whether the middleware is upgraded or replaced, and the like.
[0057] S202, reading the change information of the installation manual and the change information of the program content from the application layer in the current test environment according to natural language processing.
[0058] Specifically, all the text information in the installation manual and the program content can be identified through natural language processing technology, and then compared with the text information of the historical installation manual and the text information of the historical program content, and then based on the comparison result, the inconsistent text information can be extracted, so that the change information of the installation manual and the change information of the program content of the application layer in the current test environment can be obtained.
[0059] The change information of the installation manual can include the change of part of the configuration information in the middleware (such as modification of the port number of the middleware), modification of the application configuration file, and addition of the content in a certain directory in the installation manual, and the like. The change information of the program content can include modification of the table data in the database, and the like.
[0060] S103, generating target environment configuration information based on the historical environment baseline data, the change information of the system layer and the change information of the application layer.
[0061] The target environment configuration information is mainly used for subsequent verification with the pre-configured to-be-verified task, so that the current test environment can be corrected based on the verification result, and thus the test work can be ensured to be normally carried out.
[0062] Optionally, in another embodiment of the present application, a specific implementation of step S103 includes the following steps:
[0063] The historical environment baseline data, the middleware change information, the installation manual change information, and the program content change information are combined according to the dimensions to obtain the target environment configuration information.
[0064] Specifically, the historical environment baseline data includes historical middleware change information, historical installation manual change information, and historical program content change information. The historical middleware change information refers to information about changes in the middleware in the test environment of the last to-be-verified task. The historical installation manual change information refers to information about changes in the installation manual in the test environment of the last to-be-verified task. The historical program content change information refers to information about changes in the program content in the test environment of the last to-be-verified task.
[0065] It should be noted that the historical middleware change information, the historical installation manual change information, and the historical program content change information are combined with the middleware change information, the installation manual change information, and the program content change information, respectively, according to the dimensions of the historical middleware, the historical installation manual, and the historical program content, so that the target environment configuration information can be obtained.
[0066] S104, verifying whether the target environment configuration information is consistent with the environment configuration information of the pre-configured to-be-verified task.
[0067] It should be noted that in the present application, the environment configuration information of the to-be-verified task is pre-configured. However, the pre-configured environment configuration information may not be accurate enough, which may affect the correctness of the subsequent correction of the current test environment. Therefore, the pre-configured environment configuration information of the to-be-verified task needs to be further verified based on the target environment configuration information. Therefore, if it is verified that the target environment configuration information is inconsistent with the pre-configured environment configuration information of the to-be-verified task, step S105 is performed.
[0068] S105, feeding back the verification result.
[0069] Specifically, when the target environment configuration information is inconsistent with the pre-configured environment configuration information of the to-be-verified task, the verification result needs to be fed back to the staff in a timely manner, which can effectively avoid subsequent correction of the current test environment by using the pre-configured environment configuration information of the to-be-verified task. The verification result is used to prompt the staff that the pre-configured environment configuration information of the to-be-verified task is incorrect and needs to be modified correctly before being used for the correction of the current test environment.
[0070] The test environment monitoring method provided in the present application comprises the following steps: when a to-be-verified task of a current test environment is received, historical environment baseline data is acquired, wherein the historical environment baseline data refers to data of a test environment of a last to-be-verified task; system layer change information and application layer change information are read from the current test environment; target environment configuration information is generated based on the historical environment baseline data, the system layer change information and the application layer change information; and whether the target environment configuration information is consistent with pre-configured environment configuration information of the to-be-verified task is verified. If the target environment configuration information is inconsistent with the pre-configured environment configuration information of the to-be-verified task, a verification result is fed back. Thus, the problem that it is difficult to monitor the test environment by using manual monitoring is solved, and the problem that the quality and efficiency of the test software cannot be guaranteed is also solved.
[0071] Another embodiment of the present application provides another test environment monitoring method, as shown in Figure 3 The test environment monitoring method comprises the following steps:
[0072] S301, when a to-be-verified task of a current test environment is received, historical environment baseline data is acquired.
[0073] The historical environment baseline data refers to data of a test environment of a last to-be-verified task.
[0074] It should be noted that the specific implementation of step S301 can be correspondingly referred to step S101 in the above method embodiment, which will not be described here again.
[0075] S302, system layer change information and application layer change information are read from the current test environment.
[0076] It should be noted that the specific implementation of step S302 can be correspondingly referred to step S102 in the above method embodiment, which will not be described here again.
[0077] S303, target environment configuration information is generated based on the historical environment baseline data, the system layer change information and the application layer change information.
[0078] It should be noted that the specific implementation of step S303 can be correspondingly referred to step S103 in the above method embodiment, and details are not described herein again.
[0079] S304, checking whether the target environment configuration information is consistent with the pre-configured environment configuration information of the task to be checked.
[0080] It should be noted that the specific implementation of step S304 can be correspondingly referred to step S104 in the above method embodiment, and details are not described herein again.
[0081] It should be further noted that if it is checked that the target environment configuration information is consistent with the pre-configured environment configuration information of the task to be checked, step S305 is performed. If it is checked that the target environment configuration information is inconsistent with the pre-configured environment configuration information of the task to be checked, step S306 is performed.
[0082] S305, feeding back prompt information of consistent checking.
[0083] Specifically, when the target environment configuration information is consistent with the pre-configured environment configuration information of the task to be checked, prompt information of consistent checking can be fed back to the staff, where the prompt information is used to prompt the staff that the pre-configured environment configuration information of the task to be checked can be used to carry out correction work on the current test environment.
[0084] S306, feeding back a checking result.
[0085] It should be noted that the specific implementation of step S306 can be correspondingly referred to step S105 in the above method embodiment, and details are not described herein again.
[0086] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code containing one or more executable instructions for implementing a specified logic function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different order than that noted in the accompanying drawings. For example, two blocks represented in succession can actually be executed in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0087] Although the operations are depicted in a particular order, this should not be understood as requiring the operations to be performed in the particular order shown or in sequential order, as some steps can be performed in parallel or in different orders than other steps.
[0088] Another embodiment of the present application provides a monitoring device of a test environment, as shown in the figure, comprising the following units: Figure 4
[0089] The acquisition unit 401 is configured to acquire historical environment baseline data when a to-be-verified task of a current test environment is received.
[0090] The historical environment baseline data refers to data of a test environment of a last to-be-verified task.
[0091] The first reading unit 402 is configured to read change information of a system layer and change information of an application layer from the current test environment.
[0092] The generation unit 403 is configured to generate target environment configuration information based on the historical environment baseline data, the change information of the system layer, and the change information of the application layer.
[0093] The verification unit 404 is configured to verify whether the target environment configuration information is consistent with environment configuration information of the to-be-verified task pre-configured.
[0094] The first feedback unit 405 is configured to feed back a verification result if it is verified that the target environment configuration information is not consistent with the environment configuration information of the to-be-verified task pre-configured.
[0095] It should be noted that the specific working processes of the above units in the embodiments of the present application can be correspondingly referred to steps S101-S105 in the above method embodiments, which will not be described here.
[0096] Optionally, another embodiment of the present application provides a monitoring device of a test environment, as shown in the figure, wherein the first reading unit 402 comprises: Figure 5
[0097] The second reading unit 501 is configured to read change information of middleware from the system layer in the current test environment according to a preset rule.
[0098] The third reading unit 502 is configured to read change information of an installation manual and change information of program content from the application layer in the current test environment according to natural language processing.
[0099] It should be noted that the specific working processes of the units provided in the above embodiments of the present application can be correspondingly referred to the corresponding steps in the above method embodiments, which will not be described here.
[0100] Optionally, another embodiment of the present application provides a monitoring device for testing environment, wherein the generating unit 403 comprises:
[0101] The merging unit is configured to merge the historical environment baseline data, the middleware change information, the installation manual change information and the program content change information according to the dimensions to obtain the target environment configuration information.
[0102] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can correspondingly refer to the corresponding steps in the above method embodiments, which will not be repeated here.
[0103] Optionally, another embodiment of the present application provides a monitoring device for testing environment, further comprising the following units:
[0104] The second feedback unit is configured to feed back prompt information of the verification consistency if it is verified that the target environment configuration information is consistent with the environment configuration information of the to-be-verified task pre-configured.
[0105] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can correspondingly refer to the corresponding steps in the above method embodiments, which will not be repeated here.
[0106] Another embodiment of the present application provides an electronic device, as shown in the figure, comprising: Figure 6 as shown in the figure, comprising:
[0107] The memory 601 and the processor 602.
[0108] The memory 601 is configured to store a program.
[0109] The processor 602 is configured to execute the program, and when the program is executed, it is specifically configured to implement the monitoring method for testing environment provided in any one of the above embodiments.
[0110] Another embodiment of the present application provides a computer storage medium for storing a computer program, and when the computer program is executed, it is used to implement the monitoring method for testing environment provided in any one of the above embodiments.
[0111] Computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as 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 technology, compact disc read-only memory (CD-ROM), digital versatile disks (DVDs) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information for access by a computing device. According to the definitions provided herein, computer readable media does not include transitory computer readable medium, such as a modulated data signal and a carrier wave.
[0112] It should be noted that the test environment monitoring method and device, the electronic device, and the storage medium provided by the present application can be used in the financial field or other fields. The above are only examples and do not limit the application field of the test environment monitoring method and device, the electronic device, and the storage medium provided by the present application.
[0113] Those skilled in the art will further appreciate that the individual steps of the example methods and algorithms described in connection with the embodiments disclosed herein can be embodied in electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various examples disclosed herein have been described generally in terms of their functionality, without reference to the corresponding structure. Those having ordinary skill in the art will appreciate that various examples can be implemented in a corresponding structure as will occur to those of ordinary skill in the art. The described functionality can be implemented in varying ways by various sizes and shapes of hardware and software configured to perform the described functionality. Any such software can be supplied to a computer, such as a general purpose computer, or other electronic device, or downloaded into a computer, so as to program the computer to implement the functionality described.
[0114] The above description of disclosed embodiments provides enabling disclosure sufficient for others to practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and generic principles defined herein can be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method of monitoring a test environment, characterized by, The method comprises the following steps: When a task to be checked in a current test environment is received, historical environment baseline data is acquired, wherein the historical environment baseline data refers to data of a test environment of a last task to be checked; System layer change information and application layer change information are read from the current test environment; Target environment configuration information is generated based on the historical environment baseline data, the system layer change information and the application layer change information; It is checked whether the target environment configuration information is consistent with environment configuration information of the task to be checked configured in advance; If it is checked that the target environment configuration information is inconsistent with the environment configuration information of the task to be checked configured in advance, a check result is fed back; The target environment configuration information is generated based on the historical environment baseline data, the system layer change information and the application layer change information, and comprises the following steps: The historical environment baseline data, middleware change information, installation manual change information and program content change information are merged according to dimensions to obtain the target environment configuration information.
2. The method of claim 1, wherein, The system layer change information and the application layer change information are read from the current test environment, and comprise the following steps: The middleware change information is read from the system layer in the current test environment according to a preset rule; The installation manual change information and the program content change information are read from the application layer in the current test environment according to natural language processing.
3. The method of claim 1, wherein, After it is checked whether the target environment configuration information is consistent with the environment configuration information of the task to be checked configured in advance, the following step is further included: If it is checked that the target environment configuration information is consistent with the environment configuration information of the task to be checked configured in advance, prompt information of consistent check is fed back.
4. A monitoring device for a test environment, characterized in that The method comprises the following steps: An acquisition unit is configured to acquire historical environment baseline data when a task to be checked in a current test environment is received, wherein the historical environment baseline data refers to data of a test environment of a last task to be checked; A first reading unit is configured to read system layer change information and application layer change information from the current test environment; A generation unit is configured to generate target environment configuration information based on the historical environment baseline data, the system layer change information and the application layer change information; A checking unit is configured to check whether the target environment configuration information is consistent with environment configuration information of the task to be checked configured in advance; A first feedback unit is configured to feed back a check result if it is checked that the target environment configuration information is inconsistent with the environment configuration information of the task to be checked configured in advance; The generation unit comprises the following steps: A merging unit is configured to merge the historical environment baseline data, middleware change information, installation manual change information and program content change information according to dimensions to obtain the target environment configuration information.
5. The apparatus of claim 4, wherein, The first reading unit comprises the following steps: A second reading unit is configured to read middleware change information from the system layer in the current test environment according to a preset rule; A third reading unit is configured to read the change information of the installation manual and the change information of the program content from an application layer in the current test environment according to natural language processing.
6. The apparatus of claim 4, wherein, Further comprising: A second feedback unit is configured to feed back prompt information of consistent checking if the target environment configuration information is consistent with the pre-configured environment configuration information of the task to be checked.
7. An electronic device, comprising: Including: A memory and a processor; The memory is configured to store a program; The processor is configured to execute the program, and the program is executed to specifically implement the test environment monitoring method in any one of claims 1 to 3.
8. A computer storage medium, characterized in that, A computer program is stored, and the computer program is executed to implement the test environment monitoring method in any one of claims 1 to 3.
Citation Information
Patent Citations
Configuration information comparison method and device, computer equipment and storage medium
CN111782528A
System configuration item management method and device, electronic equipment and storage medium
CN112486589A