Business environment comparison method and device, computer equipment and storage medium

By obtaining and comparing the production environment and testing environmental resource information of the target business environment, the problem of difficult data inconsistency in traditional technologies is solved, and the efficiency of optimization and adjustment of business environment is improved.

CN119473921APending Publication Date: 2025-02-18BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411506702.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In traditional technology, it is difficult for testers to find inconsistencies between production environment data and test environment data, resulting in inefficient optimization and adjustment of software business environment.

Method used

By obtaining the business environment node information of the target business environment, including production environment resource information and test environment resource information, grouping and comparing, the business environment information comparison results are obtained for optimization and adjustment.

Benefits of technology

It realizes timely discovers inconsistencies between production environment data and test environment data, and improves the optimization and adjustment efficiency of the software business environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473921A_ABST
    Figure CN119473921A_ABST
Patent Text Reader

Abstract

The invention relates to a business environment comparison method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring service environment node information corresponding to a target service environment; the service environment node information comprises production environment resource information and test environment resource information; grouping the production environment resource information and the test environment resource information by taking the service environment node information as a constraint condition to obtain production environment grouping information and test environment grouping information; comparing the production environment grouping information with the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used for optimizing and adjusting the target business environment. By adopting the method, the inconsistency of the production environment data and the test environment data can be found in time, and the optimization and adjustment efficiency of the business environment of the software 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 big data technology, and in particular to a business environment comparison method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of big data technology, a large amount of test data is generated in the software testing environment for any software, such as functional test data and performance test data. When the software is officially used, actual operations are performed among different personnel, which also generates a large amount of production environment data.

[0003] For testers, ensuring the consistency of test environment data and production environment data is a prerequisite for testing. In traditional technologies, testers can only compare the running results of the software test environment data and the running results of the production environment data in the same data container through a result-oriented comparison method. However, during the comparison process, since the production environment data is invisible to testers, it is difficult to find the inconsistency between the production environment data and the test environment data, resulting in inefficient optimization and adjustment of the software's business environment. Summary of the invention

[0004] Based on this, it is necessary to provide a business environment comparison method, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of optimizing and adjusting the business environment of software in response to the above technical problems.

[0005] In the first aspect, the present application provides a business environment comparison method. The method includes: obtaining business environment node information corresponding to a target business environment; the business environment node information includes production environment resource information and test environment resource information; using the business environment node information as a constraint condition, grouping the production environment resource information and the test environment resource information to obtain production environment grouping information and test environment grouping information; comparing the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

[0006] In the second aspect, the present application also provides a business environment comparison device. The device includes: an environment information acquisition module, which is used to obtain business environment node information corresponding to the target business environment; the business environment node information includes production environment resource information and test environment resource information; a grouping information determination module, which is used to group the production environment resource information and the test environment resource information with the business environment node information as a constraint condition to obtain production environment grouping information and test environment grouping information; a grouping information comparison module, which is used to compare the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

[0007] In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: obtaining business environment node information corresponding to the target business environment; the business environment node information includes production environment resource information and test environment resource information; using the business environment node information as a constraint condition, grouping the production environment resource information and the test environment resource information to obtain production environment grouping information and test environment grouping information; comparing the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

[0008] In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: obtaining business environment node information corresponding to the target business environment; the business environment node information includes production environment resource information and test environment resource information; using the business environment node information as a constraint condition, grouping the production environment resource information and the test environment resource information to obtain production environment grouping information and test environment grouping information; comparing the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

[0009] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, which implements the following steps when executed by a processor: obtaining business environment node information corresponding to a target business environment; the business environment node information includes production environment resource information and test environment resource information; using the business environment node information as a constraint condition, grouping the production environment resource information and the test environment resource information to obtain production environment grouping information and test environment grouping information; comparing the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

[0010] The above-mentioned business environment comparison method, device, computer equipment, storage medium and computer program product obtain business environment node information corresponding to the target business environment; the business environment node information includes production environment resource information and test environment resource information; using the business environment node information as a constraint condition, the production environment resource information and the test environment resource information are grouped to obtain production environment grouping information and test environment grouping information; the production environment grouping information and the test environment grouping information are compared to obtain business environment information comparison results; the business environment information comparison results are used to optimize and adjust the target business environment.

[0011] By adjusting the resource information of each production environment and each test environment under the target business environment to the same management environment, comparing the resource information, network topology and specific configuration of each production environment and each test environment, and adjusting the target business environment where the software is located based on the comparison results, it is possible to promptly discover inconsistencies between the production environment data and the test environment data, thereby improving the efficiency of optimizing and adjusting the software's business environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG1 is an application environment diagram of a business environment comparison method in one embodiment;

[0013] FIG2 is a schematic diagram of a flow chart of a service environment comparison method in an embodiment;

[0014] FIG3 is a schematic diagram of a flow chart of a method for obtaining environmental grouping information in one embodiment;

[0015] FIG4 is a schematic diagram of a flow chart of a method for obtaining an environment grouping list in one embodiment;

[0016] FIG5 is a schematic flow chart of a method for obtaining environmental grouping information in another embodiment;

[0017] FIG6 is a flow chart of a method for obtaining a comparison result of business environment information in one embodiment;

[0018] FIG7 is a schematic diagram of a process for obtaining a target service node topology map in one embodiment;

[0019] FIG8 is a schematic diagram of a method for presenting an environment grouping information list in one embodiment;

[0020] FIG9 is a schematic diagram of a business environment comparison list in one embodiment;

[0021] FIG10 is a schematic diagram of a target service node topology diagram in one embodiment;

[0022] FIG11 is a structural block diagram of a service environment comparison device in one embodiment;

[0023] FIG. 12 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] A business environment comparison method provided in an embodiment of the present application can be applied in an application environment as shown in FIG. 1. Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 obtains the business environment node information corresponding to the target business environment from the terminal 102; the business environment node information includes production environment resource information and test environment resource information; the business environment node information is used as a constraint condition to group the production environment resource information and the test environment resource information to obtain the production environment grouping information and the test environment grouping information; the production environment grouping information and the test environment grouping information are compared to obtain the business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0026] In one embodiment, as shown in FIG. 2 , a service environment comparison method is provided, and the method is applied to the server in FIG. 1 as an example for description, including the following steps:

[0027] Step 202: Acquire business environment node information corresponding to the target business environment.

[0028] The target business environment may be an execution environment of application software for a specific business.

[0029] The business environment node information may be information about each environment execution node of the application software in the execution environment of a specific business. The business environment node information includes production environment resource information and test environment resource information. The production environment resource information may be information about each production environment node in the execution environment of a specific business, and the test environment resource information may be information about each test environment node in the execution environment of a specific business.

[0030] Specifically, the server 104 responds to the instruction of the terminal 102 and obtains the business environment node information corresponding to the target business environment from the terminal, wherein the business environment node information includes production environment resource information and test environment resource information. Further, the obtained production environment resource information and test environment resource information are stored in a storage unit. When the server 104 needs any data information in the production environment resource information and the test environment resource information for processing, it is retrieved from the storage unit to the volatile storage resource for the central processor to calculate. Among them, the data information of the production environment resource information and the test environment resource information can be a single data input to the central processor, or multiple data can be simultaneously input to the central processor.

[0031] For example, the server 104 responds to the instructions of the terminal 102, obtains the production environment resource information and the test environment resource information corresponding to the target business environment from the terminal 102, and stores them in the storage unit in the server 104, wherein the server 104 obtains 10 pieces of data information of the production environment resource information and the test environment resource information, and multiple pieces of data information can be input into the central processing unit at the same time.

[0032] Step 204 , using the business environment node information as a constraint condition, grouping the production environment resource information and the test environment resource information to obtain production environment grouping information and test environment grouping information.

[0033] The production environment grouping information may be information obtained after the production environment resource information is grouped and configured.

[0034] The test environment grouping information may be information obtained after the test environment resource information is grouped and configured.

[0035] Specifically, since the target business environment for the software has multiple nodes, and each node has corresponding business environment node information, that is to say, each node at least includes business environment node information including production environment resource information and test environment resource information. For any node in the target business environment of the software, a variety of business processing functions are provided. First: Node entry function, for resources that have been applied for or deployed, corresponding entries can be made according to the inherent information of the node. Including entering the IP address and basic information (operating system version) of the node; indicating the role of the resource in the service, such as as an application node or an SSL accelerator node, and providing Excel for batch entry. Second: Node list display function, which can display all nodes with service functions of a product group. Third: Node list export function, which can export all service function nodes of a product group in Excel.

[0036] When the business environment node information is used as a constraint condition, that is, for any business environment node information as an operation object, the production environment resource information and the test environment resource information are grouped according to the function of the node, and an initial production environment grouping list corresponding to the production environment resource information and an initial test environment grouping list corresponding to the test environment resource information are obtained; however, for the initial production environment grouping list and the initial test environment grouping list, each other is used for information matching or information exchange, and the results of the information matching or information exchange are the production environment grouping list corresponding to the production environment resource information and the test environment grouping list corresponding to the production environment resource information.

[0037] Further, the production environment grouping list and the test environment grouping list are configured, and the specific execution process is similar to the grouping. The details are as follows: when the business environment node information is used as a constraint condition, that is, for any business environment node information as an operation object, the production environment grouping list and the test environment grouping list are configured or entered according to the function of the node, and the initial production environment grouping information corresponding to the production environment grouping list is obtained, and the initial test environment grouping information corresponding to the test environment grouping list is obtained; however, for the initial production environment grouping information and the initial test environment grouping information, each other is used for information matching or information exchange, and the result of the information matching or information exchange is the production environment grouping information corresponding to the production environment grouping list, and the test environment grouping information corresponding to the production environment grouping list.

[0038] Step 206, compare the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result.

[0039] The business environment information comparison result may be reference data information for optimizing and adjusting the target business environment.

[0040] Specifically, based on the data in the production environment grouping information and the data in the test environment grouping information, determine the business environment comparison project information for the target business environment; with the business environment comparison project information as a constraint condition, build a business environment comparison list based on the data in the production environment grouping information and the data in the test environment grouping information; compare the production environment comparison information and the test environment comparison information through each business environment comparison project information in the business environment comparison list to obtain the business environment information comparison result; finally, generate a business environment information comparison report based on the business environment information comparison result, wherein the business environment information comparison report can be displayed in the form of a data table or in a visual chart.

[0041] In the above-mentioned business environment comparison method, the business environment node information corresponding to the target business environment is obtained; the business environment node information includes production environment resource information and test environment resource information; the business environment node information is used as a constraint condition to group the production environment resource information and the test environment resource information to obtain production environment grouping information and test environment grouping information; the production environment grouping information and the test environment grouping information are compared to obtain the business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

[0042] By adjusting the resource information of each production environment and each test environment under the target business environment to the same management environment, comparing the resource information, network topology and specific configuration of each production environment and each test environment, and adjusting the target business environment where the software is located based on the comparison results, it is possible to promptly discover inconsistencies between the production environment data and the test environment data, thereby improving the efficiency of optimizing and adjusting the software's business environment.

[0043] In one embodiment, as shown in FIG3 , the production environment resource information and the test environment resource information are grouped with the business environment node information as a constraint condition to obtain the production environment grouping information and the test environment grouping information, including:

[0044] Step 302 : Using the business environment node information as a constraint condition, and according to the production environment resource information and the test environment resource information, generate a production environment group list and a test environment group list.

[0045] The production environment grouping list may be a list generated by grouping production environment resource information according to node functions.

[0046] The test environment grouping list may be a list generated by grouping the test environment resource information according to node functions.

[0047] Specifically, when the business environment node information is used as a constraint condition, that is, for any business environment node information as the operation object, the grouping type of the production environment resource information and the test environment resource information is determined according to the node grouping function, and then the production environment resource information and the test environment resource information are grouped according to the grouping type to obtain the initial production environment grouping results and the initial test environment grouping results, and the initial production environment grouping results and the initial test environment grouping results are adjusted in the form of a list to obtain the initial production environment grouping list and the initial test environment grouping list.

[0048] Step 304: Enter the business environment configuration item information into the production environment group list and the test environment group list to obtain production environment group information and test environment group information.

[0049] The business environment configuration item information may be configuration information entered into the production environment group list and the test environment group list, and is used to change configuration parameters of the business environment.

[0050] Specifically, when the business environment node information is used as a constraint condition, that is, for any business environment node information as an operation object, the business environment configuration items of the production environment grouping list and the test environment grouping list are determined according to the business environment configuration item information, and then according to the business environment configuration items, each business environment configuration item information is entered into the production environment grouping list and the test environment grouping list to obtain the initial production environment grouping information and the initial test environment grouping information, and the business environment configuration items of the initial production environment grouping information and the initial test environment grouping information are adjusted until the production environment grouping information and the test environment grouping information are obtained.

[0051] In this embodiment, by entering the business environment configuration item information into the production environment grouping list and the test environment grouping list to obtain corresponding production environment grouping information and test environment grouping information, the entered information can be changed according to changes in the business environment configuration item information, so that users can flexibly configure comparison items.

[0052] In one embodiment, as shown in FIG. 4 , the business environment node information is used as a constraint condition, and a production environment group list and a test environment group list are generated according to the production environment resource information and the test environment resource information, including:

[0053] Step 402: Group the production environment resource information according to the production environment tag information to obtain an initial production environment grouping list.

[0054] The production environment tag information may include an IP address and description information related to the production environment.

[0055] The initial production environment grouping list may be a production environment grouping list that has not been optimized.

[0056] Specifically, when the business environment node information is used as a constraint condition, that is, for any business environment node information as an operation object, the name of the input group is determined according to the production environment resource information, and the IP address, description information, etc. in the production environment resource information are extracted. These IP addresses can be grouped together, and the existing IP addresses are searched in a drop-down box manner. After selection, the configuration and other description information corresponding to these IP addresses are entered. If multiple IP addresses are selected, it means that the configuration and other description information of these IP addresses are the same. The initial production environment group list is obtained by grouping the IP addresses and the corresponding configuration and other description information.

[0057] Step 404: group the test environment resource information according to the test environment tag information to obtain an initial test environment grouping list.

[0058] The test environment label information may include an IP address and description information related to the test environment.

[0059] The initial test environment grouping list may be a test environment grouping list that has not been optimized.

[0060] Specifically, in the same way, when the business environment node information is used as a constraint condition, that is, for any business environment node information as an operation object, the name of the input group is determined according to the test environment resource information, and the IP address, description information, etc. in the test environment resource information are extracted. These IP addresses can be grouped together, and the existing IP addresses are searched in a drop-down box manner. After selection, the configuration and other description information corresponding to these IP addresses are entered. If multiple IP addresses are selected, it means that the configuration and other description information of these IP addresses are the same. The initial test environment group list is obtained by grouping the IP addresses and the corresponding configuration and other description information.

[0061] Step 406: Match the initial production environment grouping list with the initial test environment grouping list to obtain environment grouping list matching information.

[0062] The environment grouping list matching information may be information having the same nature in the initial production environment grouping list and the initial test environment grouping list.

[0063] Specifically, since the test module only has a grouping function for nodes related to the test environment, and the production module has a grouping function for nodes related to the production environment, but the test module and the production module can see each other's grouping list in a read-only manner, the initial production environment grouping list and the initial test environment grouping list are matched to obtain the environment grouping list matching information, and the corresponding list is generated according to the environment grouping list matching information.

[0064] Step 408: According to the environment grouping list matching information, the initial production environment grouping list and the initial test environment grouping list are adjusted respectively to obtain a production environment grouping list and a test environment grouping list.

[0065] Specifically, since different target business environments have different requirements on group lists, the list information related to the environment group list matching information in the initial production environment group list is adjusted according to the environment group list matching information, and the list information related to the environment group list matching information in the initial test environment group list is adjusted, wherein the adjustment operation may be deletion, copying, reordering, etc. The initial production environment group list and the initial test environment group list adjusted according to the environment group list matching information are respectively used as the production environment group list and the test environment group list.

[0066] In this embodiment, by grouping the production environment label information and the test environment label information respectively to generate a production environment group list and a test environment group list, it is possible to optimize the information comparison environment while involving multiple server nodes and improve the operating efficiency of the server nodes.

[0067] In one embodiment, as shown in FIG. 5 , the business environment configuration item information is entered into the production environment group list and the test environment group list to obtain the production environment group information and the test environment group information, including:

[0068] Step 502: Use the production environment configuration item information to configure the production environment group list to obtain initial production environment group information.

[0069] The production environment configuration item information may include key information, key values, production instructions, and production labels related to the production environment.

[0070] The initial production environment grouping information may be unoptimized production environment grouping information.

[0071] Specifically, when the business environment node information is used as a constraint condition, that is, for any business environment node information as an operation object, the production environment configuration item information that needs to be configured is determined according to the production environment group list, wherein the production environment configuration item information includes but is not limited to key information, key values, production instructions and production labels related to the production environment. For example: the key information is " / etc / vsftpd / vsftpd.conf", the key value is "this file or TEXT text", the production instruction is "the configuration file of the vsftpd middleware", and the production label is "middleware"; another example: the key information is "ftp-version", the key value is "2.1.2", the production instruction is "the version number of the ftp middleware", and the production label is "middleware". Use each production environment configuration item information to change the configuration of the production environment group list to obtain the initial production environment group information.

[0072] Step 504: Use the test environment configuration item information to configure the test environment group list to obtain initial test environment group information.

[0073] The test environment configuration item information may include key information, key values, test instructions, and test tags related to the test environment.

[0074] The initial test environment grouping information may be unoptimized test environment grouping information.

[0075] Specifically, in the same way, when the business environment node information is used as a constraint condition, that is, for any business environment node information as an operation object, the test environment configuration item information that needs to be configured is determined according to the test environment grouping list, wherein the test environment configuration item information includes but is not limited to key information (key), key value (value), test description and test label related to the test environment. For example: the key information is " / etc / vsftpd / vsftpd.conf", the key value is "this file or TEXT text", the test description is "the configuration file of the vsftpd middleware", and the test label is "middleware"; another example: the key information is "ftp-version", the key value is "2.1.2", the test description is "the version number of the ftp middleware", and the test label is "middleware". Use each test environment configuration item information to change the configuration of the test environment grouping list to obtain the initial test environment grouping information. As shown in the upper part of Figure 8, it is a two-dimensional table with a test label of "middleware", and as shown in the lower part of Figure 8, it is a two-dimensional table with a test label of "system configuration".

[0076] When determining the configuration item information, you can select or customize the comparison method of the configuration item information. For example, if the key value corresponding to the version of a middleware in the configuration item information is a string, you can set the comparison method of the configuration item information to file comparison, and you can recommend a comparison method based on the key value of the configuration item information. After entering the value, it is the recommended comparison method. Among them, the comparison method can provide selection and combination, such as: folder comparison, sorting, file comparison, string comparison, and you can also choose a lower-level comparison method such as MD5 or SAH256.

[0077] Step 506: Match the initial production environment grouping information with the initial test environment grouping information to obtain environment grouping information matching data.

[0078] The environment grouping information matching data may be information having the same nature in the initial production environment grouping information and the initial test environment grouping information.

[0079] Specifically, since the test node group can be configured according to the configuration items of the test node group in the test module, the production node group can be configured according to the configuration items of the production node group in the production module. However, the test module and the production module can see each other's configuration items in a read-only manner. The test module has the function of reminding the production module to add a certain configuration item of a certain group of hosts, where the content of the reminder is the "production host list", the key information, key values, test instructions and test labels of the configuration items. Therefore, the initial production environment grouping information is matched with the initial test environment grouping information to obtain the environment grouping information matching data, and the corresponding configuration items are generated according to the environment grouping information matching data.

[0080] Step 508: According to the environment grouping information matching data, the initial production environment grouping information and the initial test environment grouping information are adjusted respectively to obtain the production environment grouping information and the test environment grouping information.

[0081] Specifically, since different target business environments have different configuration information requirements on group information, the group information related to the environment group information matching data in the initial production environment group information is adjusted according to the environment group information matching data, and the group information related to the environment group information matching data in the initial test environment group information is adjusted, wherein the adjustment operation may be deletion, copying, reordering, etc. The initial production environment group information and the initial test environment group information adjusted by the environment group information matching data are used as the production environment group information and the test environment group information, respectively.

[0082] In this embodiment, by configuring the production environment configuration item information and the test environment configuration item information respectively, the production environment grouping information and the test environment grouping information are obtained, which can maintain the target business environment while keeping the production environment and the test environment isolated, thereby improving the maintenance efficiency of the target business environment.

[0083] In one embodiment, as shown in FIG6 , the production environment grouping information and the test environment grouping information are compared to obtain a business environment information comparison result, including:

[0084] Step 602: Establish an environment grouping information comparison task according to the production environment grouping information and the test environment grouping information.

[0085] The environment grouping information comparison task may be a task of finding out whether there is consistency between the production environment grouping information and the test environment grouping information.

[0086] Specifically, an environment grouping information comparison task is established based on the production environment grouping information and the test environment grouping information. The environment grouping information comparison task can include information on one or more or all configuration items under the node group, or can select all configuration information under a label. For example, the input for building an environment grouping information comparison task is: "host group for development environment", "host group for test environment", and a list of key information of configuration items. The key information can be selected from the key information of all configuration items under the selected "host group for development environment" and "host group for test environment". You can also set the trigger rules for the template, for example: reminding for manual comparison, or setting cron expressions for timed comparison.

[0087] Step 604: construct a business environment comparison list corresponding to the production environment grouping information and the test environment grouping information according to the business environment comparison project information.

[0088] The business environment comparison item information may be information about configuration items that need to be compared.

[0089] The business environment comparison list may be a table for listing production environment comparison information and test environment comparison information.

[0090] Specifically, the content related to each business environment comparison item information is selected from the production environment grouping information as the production environment comparison information; similarly, the content related to each business environment comparison item information is selected from the test environment grouping information as the test environment comparison information. Based on each production environment comparison information and each test environment comparison information, under the guidance of each business environment comparison item information, a business environment comparison list is generated. FIG9 is a schematic diagram of a business environment comparison list.

[0091] Step 606, compare the production environment comparison information and the test environment comparison information to obtain a business environment information comparison result.

[0092] The production environment comparison information may be production environment grouping information used for comparison.

[0093] The test environment comparison information may be test environment grouping information used for comparison.

[0094] Specifically, the production environment comparison information and the test environment comparison information are compared to obtain a business environment information comparison result, wherein the business environment information comparison result includes a comparison result of configuration item information. A business environment information comparison report is generated according to the business environment information comparison result, and the business environment information comparison report is visualized and exported in hypertext markup language.

[0095] In this embodiment, by comparing the production environment comparison information and the test environment comparison information under the constraints of the environment grouping information comparison task, the business environment information comparison result is obtained, which can ensure the consistency of the test environment and the production environment and improve the maintenance directionality of the target business environment.

[0096] In one embodiment, as shown in FIG7 , the method further includes:

[0097] Step 702, traverse the production environment resource information and the test environment resource information to determine the initial service node topology map corresponding to the target service environment.

[0098] The initial service node topology diagram may be an unadjusted geometric figure showing service nodes or a structure whose properties remain unchanged after continuous shape changes. It only considers the relative position of service nodes without considering their shapes and sizes.

[0099] Specifically, the traversal direction of the topology map is determined according to the production environment resource information and the test environment resource information, and the traversal direction of the topology map is further used as the growth direction, and the initial business node topology map corresponding to the target business environment is obtained by searching the production environment resource information and the test environment resource information. Among them, the initial business node topology map provides the functions of creating, modifying, and deleting the content of the topology map, and the role and IP address of a node are displayed on the initial business node topology map.

[0100] Step 704: insert a service information adjustment interface into the initial service node topology map to obtain a service node topology map to be adjusted.

[0101] The service information adjustment interface may be an interface for adding information to the network initial service node topology diagram.

[0102] The service node topology to be adjusted may be an unoptimized geometric figure showing service nodes or a structure whose properties remain unchanged after continuous shape changes. It only considers the relative position of service nodes without considering their shapes and sizes.

[0103] Specifically, according to the attributes and parameters of each node in the initial service node topology map, a service information adjustment interface corresponding to the attributes, parameters, etc. is added to the initial service node topology map, and the service node topology map to be adjusted is obtained.

[0104] Step 706: According to the production environment resource information and the test environment resource information, label information is input into the service information adjustment interface to obtain a target service node topology map.

[0105] The target business node topology diagram may be a geometric figure that displays business nodes to meet business requirements or a structure that can maintain certain properties of the space after continuous shape changes. It only considers the relative position relationship of the business nodes without considering their shape and size.

[0106] Specifically, according to the production environment resource information and the test environment resource information, the adjustment information corresponding to each business information adjustment interface is determined, such as: service version number, region, last modification time, etc., to obtain the target business node topology map. Among them, (4) the target business node topology map has two topology layers of the production environment and the test environment, which are displayed with slightly offset colors; and click "All Nodes" in the lower right corner of a target business node topology map to see the corresponding node list in the target business node topology map. Figure 10 is a schematic diagram of the target business node topology map.

[0107] In this embodiment, by using a service node topology diagram to display production environment resource information and test environment resource information, human-computer interaction efficiency can be improved.

[0108] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0109] Based on the same inventive concept, the embodiment of the present application also provides a business environment comparison device for implementing the business environment comparison method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more business environment comparison device embodiments provided below can refer to the limitations of a business environment comparison method above, and will not be repeated here.

[0110] In one embodiment, as shown in FIG. 11 , a service environment comparison device is provided, including: an environment information acquisition module 1102, a group information determination module 1104 and a group information comparison module 1106, wherein:

[0111] The environment information acquisition module 1102 is used to acquire the business environment node information corresponding to the target business environment; the business environment node information includes production environment resource information and test environment resource information;

[0112] The grouping information determination module 1104 is used to group the production environment resource information and the test environment resource information using the business environment node information as a constraint condition to obtain the production environment grouping information and the test environment grouping information;

[0113] The grouping information comparison module 1106 is used to compare the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

[0114] In one embodiment, the grouping information determination module 1104 is also used to generate a production environment grouping list and a test environment grouping list based on the production environment resource information and the test environment resource information, using the business environment node information as a constraint condition; and enter the business environment configuration item information into the production environment grouping list and the test environment grouping list to obtain the production environment grouping information and the test environment grouping information.

[0115] In one embodiment, the grouping information determination module 1104 is also used to group the production environment resource information according to the production environment tag information to obtain an initial production environment grouping list; group the test environment resource information according to the test environment tag information to obtain an initial test environment grouping list; match the initial production environment grouping list and the initial test environment grouping list to obtain environment grouping list matching information; and adjust the initial production environment grouping list and the initial test environment grouping list according to the environment grouping list matching information, respectively, to obtain a production environment grouping list and a test environment grouping list.

[0116] In one embodiment, the grouping information determination module 1104 is also used to use the production environment configuration item information to configure the production environment grouping list to obtain initial production environment grouping information; use the test environment configuration item information to configure the test environment grouping list to obtain initial test environment grouping information; match the initial production environment grouping information with the initial test environment grouping information to obtain environment grouping information matching data; and adjust the initial production environment grouping information and the initial test environment grouping information according to the environment grouping information matching data, respectively, to obtain production environment grouping information and test environment grouping information.

[0117] In one embodiment, the grouping information comparison module 1106 is also used to establish an environment grouping information comparison task based on the production environment grouping information and the test environment grouping information; the environment grouping information comparison task includes at least one business environment comparison project information; according to each business environment comparison project information, a business environment comparison list corresponding to the production environment grouping information and the test environment grouping information is constructed; the business environment comparison list includes the production environment comparison information and the test environment comparison information; the production environment comparison information and the test environment comparison information are compared to obtain a business environment information comparison result.

[0118] In one embodiment, the grouping information comparison module 1106 is also used to traverse the production environment resource information and the test environment resource information to determine the initial business node topology map corresponding to the target business environment; insert the business information adjustment interface into the initial business node topology map to obtain the business node topology map to be adjusted; input label information in the business information adjustment interface according to the production environment resource information and the test environment resource information to obtain the target business node topology map.

[0119] Each module in the above-mentioned business environment comparison device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0120] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG12. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store server data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a business environment comparison method is implemented.

[0121] Those skilled in the art will understand that the structure shown in FIG. 12 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0122] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0123] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0124] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0125] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0126] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0127] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0128] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A business environment comparison method, characterized in that: The method comprises: Obtaining business environment node information corresponding to the target business environment; the business environment node information includes production environment resource information and test environment resource information; Taking the business environment node information as a constraint condition, grouping the production environment resource information and the test environment resource information to obtain production environment grouping information and test environment grouping information; The production environment grouping information and the test environment grouping information are compared to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

2. The method according to claim 1, characterized in that The step of grouping the production environment resource information and the test environment resource information using the business environment node information as a constraint condition to obtain production environment grouping information and test environment grouping information includes: Using the business environment node information as a constraint condition, generating a production environment grouping list and a test environment grouping list according to the production environment resource information and the test environment resource information; The business environment configuration item information is entered into the production environment grouping list and the test environment grouping list to obtain the production environment grouping information and the test environment grouping information.

3. The method according to claim 2, characterized in that The generating of a production environment group list and a test environment group list based on the production environment resource information and the test environment resource information using the business environment node information as a constraint condition includes: Grouping the production environment resource information according to the production environment tag information to obtain an initial production environment grouping list; Grouping the test environment resource information according to the test environment tag information to obtain an initial test environment grouping list; Matching the initial production environment grouping list with the initial test environment grouping list to obtain environment grouping list matching information; According to the environment grouping list matching information, the initial production environment grouping list and the initial test environment grouping list are adjusted respectively to obtain the production environment grouping list and the test environment grouping list.

4. The method according to claim 2, characterized in that: The business environment configuration item information includes production environment configuration item information and test environment configuration item information; the step of entering the business environment configuration item information into the production environment grouping list and the test environment grouping list to obtain the production environment grouping information and the test environment grouping information includes: Using the production environment configuration item information, configure the production environment group list to obtain initial production environment group information; Using the test environment configuration item information, configure the test environment group list to obtain initial test environment group information; Matching the initial production environment grouping information with the initial test environment grouping information to obtain environment grouping information matching data; According to the environment grouping information matching data, the initial production environment grouping information and the initial test environment grouping information are adjusted respectively to obtain the production environment grouping information and the test environment grouping information.

5. The method according to claim 1, characterized in that The comparing the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result includes: Establishing an environment grouping information comparison task according to the production environment grouping information and the test environment grouping information; the environment grouping information comparison task includes at least one business environment comparison item information; According to each of the business environment comparison item information, construct a business environment comparison list corresponding to the production environment grouping information and the test environment grouping information; the business environment comparison list includes the production environment comparison information and the test environment comparison information; The production environment comparison information and the test environment comparison information are compared to obtain the business environment information comparison result.

6. The method according to claim 1, characterized in that The method further comprises: Traversing the production environment resource information and the test environment resource information to determine an initial service node topology map corresponding to the target service environment; Inserting a service information adjustment interface into the initial service node topology map to obtain a service node topology map to be adjusted; According to the production environment resource information and the test environment resource information, label information is input into the service information adjustment interface to obtain a target service node topology map.

7. A business environment comparison device, characterized in that: The device comprises: An environment information acquisition module is used to acquire business environment node information corresponding to a target business environment; the business environment node information includes production environment resource information and test environment resource information; A grouping information determination module, used to group the production environment resource information and the test environment resource information using the business environment node information as a constraint condition to obtain production environment grouping information and test environment grouping information; The grouping information comparison module is used to compare the production environment grouping information and the test environment grouping information to obtain a business environment information comparison result; the business environment information comparison result is used to optimize and adjust the target business environment.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.