CN110413528B - Intelligent configuration method and system for test environment - Google Patents

Intelligent configuration method and system for test environment Download PDF

Info

Publication number
CN110413528B
CN110413528B CN201910699721.9A CN201910699721A CN110413528B CN 110413528 B CN110413528 B CN 110413528B CN 201910699721 A CN201910699721 A CN 201910699721A CN 110413528 B CN110413528 B CN 110413528B
Authority
CN
China
Prior art keywords
environment
test environment
target test
configuration
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910699721.9A
Other languages
Chinese (zh)
Other versions
CN110413528A (en
Inventor
罗秉安
贺克军
丘士丹
张晓娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910699721.9A priority Critical patent/CN110413528B/en
Publication of CN110413528A publication Critical patent/CN110413528A/en
Application granted granted Critical
Publication of CN110413528B publication Critical patent/CN110413528B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a test environment intelligent configuration method and a test environment intelligent configuration system, wherein the method comprises the following steps: receiving a target test environment newly-added instruction containing each configuration item corresponding to the target test environment; selecting one of a plurality of preset environment areas as a target environment area corresponding to a target test environment by using an application area identification element, determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider; and automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment. The method and the device can automatically perform optimal configuration selection on the configuration items of the test environment, automatically realize configuration modification, service control and environment verification, effectively improve the configuration efficiency of the test environment, and effectively improve the configuration accuracy and reliability of the test environment.

Description

Intelligent configuration method and system for test environment
Technical Field
The application relates to the technical field of data processing, in particular to an intelligent configuration method and system for a test environment.
Background
With the vigorous development of software development, in the testing process of a large-scale service system at present, multiple sets of testing environments exist commonly, such as a set of self-testing environment for the development of the current version, a set of functional testing environment for the current version and a set of testing environment for the production patch of the previous version. In the whole set of environment, all environment information needs to be configured, for example, the service A needs to access the service B, and information such as an IP port where the service B is located needs to be explicitly configured in a configuration item corresponding to the service A. But at present:
when a set of test environment is newly built, all configuration items of all application environments need to be reconfigured. Assuming that the development test of the next version is started, a brand new set of test environments corresponding to the version needs to be built, and at the moment, all servers where the services are located may be brand new, so all configuration items need to be reconfigured; in the version test process, a newly added configuration item of an application needs to be newly configured. If a new function is added, access to an existing or newly added service is required, and a new configuration item is required, and the new configuration item is required.
At present, all items to be configured are manually configured one by one, and when configuration information is 32429 and complex, omission or inaccuracy often occurs, so that environments are not feasible or deviation exists, and therefore the problems of inaccurate test results and difficult analysis of test problems occur.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides the intelligent configuration method and the intelligent configuration system for the test environment, which can automatically perform optimal configuration selection on configuration items of the test environment, automatically realize configuration modification, service control and environment verification, effectively improve the configuration efficiency of the test environment, and effectively improve the configuration accuracy and reliability of the test environment.
In order to solve the technical problems, the application provides the following technical scheme:
in a first aspect, the present application provides a method for intelligently configuring a test environment, including:
receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment;
selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by using a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider;
and automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment.
Further, the tile identification element includes: at least one of a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule.
Further, if the patch identification element includes a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of the new instruction of the target test environment and a preset transaction smoking test rule;
the selecting, by the application of the preset tile identifier, one of a plurality of preset environment tiles as the target environment tile corresponding to the target test environment includes:
and judging whether the target test environment is in a use state, if so, determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying service provider identifiers corresponding to all configuration items of the target test environment.
Further, the method further comprises the following steps:
if the target test environment is not in the use state, the receiving time of the new instruction of the target test environment is used for judging whether the target test environment belongs to the newly added environment area within a preset period, and if so, the newly added environment area is determined to be the environment area matched with the target test environment.
Further, the method further comprises the following steps:
if the target test environment is judged to be not in the newly added environment area within the preset period, determining at least one environment area matched with the target test environment in a plurality of preset environment areas by applying the version number uniquely corresponding to the target test environment.
Further, the method further comprises the following steps:
and carrying out transaction fit test on the environment patch matched with the target test environment by applying the transaction smoking test rule, and confirming the environment patch passing the test as the target environment patch.
Further, each environment area is stored to a preset environment configuration center;
correspondingly, before the application preset region identification element selects one of a plurality of preset environment regions as the target environment region corresponding to the target test environment, the method further comprises:
and when or after receiving the new instruction of the target test environment, adding an environment patch in the environment configuration center.
Further, the service information includes: service ID, IP where the service resides, port and access path.
Further, after the automatic modification of each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment, the method further includes:
And performing corresponding preset automatic service control on the target test environment.
Further, after the corresponding preset automatic service control is performed on the target test environment, the method further includes:
and carrying out integrity verification on the target test environment.
Further, after the integrity verification of the target test environment, the method further comprises:
and storing the service information of the service provider corresponding to the target test environment into the corresponding target environment patch.
In a second aspect, the present application provides a test environment intelligent configuration system, including:
the automatic configuration starting device is used for receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment;
the environment analysis device is used for selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by applying a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider;
And the environment configuration device is used for automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment.
Further, the tile identification element includes: at least one of a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule.
Further, if the patch identification element includes a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of the new instruction of the target test environment and a preset transaction smoking test rule;
the environment analysis device includes:
and the configured item identification module is used for judging whether the target test environment is in a use state, if so, determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying service provider identifications corresponding to the configuration items of the target test environment.
Further, the configured item identification module is further configured to determine, when it is determined that the target test environment is not in the use state, whether the target test environment belongs to the environment patch newly added in a preset period by applying a receiving time of a new instruction of the target test environment, and if yes, determine the newly added environment patch as an environment patch matched with the target test environment.
Further, the method further comprises the following steps:
and the version number identification module is used for determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying the version number uniquely corresponding to the target test environment if the target test environment is judged to not belong to the newly added environment patch within the preset time period.
Further, the method further comprises the following steps: the transaction fit identification module is used for applying the transaction smoking test rule to conduct transaction fit test on the environment area matched with the target test environment, and confirming the environment area passing the test as the target environment area.
Further, each environment area is stored to a preset environment configuration center;
Correspondingly, the intelligent configuration system of the test environment further comprises:
and the environment patch newly-adding module is used for adding a newly-added environment patch in the environment configuration center when or after receiving the new instruction of the target test environment.
Further, the service information includes: service ID, IP where the service resides, port and access path.
Further, the environment configuration apparatus further includes:
and the service control module is used for carrying out corresponding preset automatic service control on the target test environment.
Further, the environment configuration apparatus further includes:
and the environment verification module is used for carrying out environment fit verification on the target test environment.
Further, the environment configuration apparatus further includes:
and the environment recording module is used for storing the service information of the service provider corresponding to the target test environment into the corresponding target environment patch.
In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the test environment intelligent configuration method when the program is executed.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the test environment intelligent configuration method.
According to the technical scheme, the intelligent configuration method and the intelligent configuration system for the test environment provided by the application comprise the following steps: receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment; selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by using a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider; according to the service information corresponding to the target test environment, each configuration item corresponding to the target test environment is automatically modified to complete configuration of the target test environment, optimal configuration selection can be automatically performed on the configuration items of the test environment, information is not required to be acquired one by one, configuration modification, service control and environment verification are automatically completed, manual information modification is not required, configuration efficiency of the test environment can be effectively improved, configuration accuracy and reliability of the test environment are effectively improved, further specific configuration information is not required to be paid attention to in version content by developers, coding realization and environment configuration are unbinding, and overall research and development efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic architecture diagram of a test environment intelligent configuration system of the present application.
Fig. 2 is a flow chart of a test environment intelligent configuration method in an embodiment of the application.
Fig. 3 is a flow chart of a test environment intelligent configuration method including step 101 in an embodiment of the present application.
Fig. 4 is a flow chart of a test environment intelligent configuration method including step 400 in an embodiment of the present application.
Fig. 5 is a flow chart of a test environment intelligent configuration method including step 500 in an embodiment of the present application.
Fig. 6 is a flow chart of a test environment intelligent configuration method including step 600 in an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a test environment intelligent configuration system in an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a test environment intelligent configuration system in a specific application example of the present application.
Fig. 9 is a schematic structural diagram of an environment configuration center device in a specific application example of the present application.
Fig. 10 is a schematic structural diagram of an environment tile information storage module in a specific application example of the present application.
Fig. 11 is a flow chart of an optimal configuration information analysis method of intelligent configuration of a test environment in a specific application example of the present application.
Fig. 12 is a flowchart of a method for comprehensively determining optimal configuration information in a specific application example of the present application.
Fig. 13 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Considering that when a new set of test environments is created, all configuration items of all application environments need to be reconfigured. Assuming that the development test of the next version is started, a brand new set of test environments corresponding to the version needs to be built, and at the moment, all servers where the services are located may be brand new, so all configuration items need to be reconfigured; in the version test process, a newly added configuration item of an application needs to be newly configured. If a new function is added, access to an existing or newly added service is required, and a new configuration item is required, and the new configuration item is required. At present, all items to be configured are manually configured one by one, and when configuration information is 32429 and complex, omission or inaccuracy often occurs, so that environments are not feasible or deviation exists, and therefore the problems of inaccurate test results and difficult analysis of test problems occur. The application provides a test environment intelligent configuration method, a test environment intelligent configuration system, electronic equipment and a computer readable storage medium, wherein a target test environment new instruction is received, and the target test environment new instruction comprises a target test environment and configuration items corresponding to the target test environment; selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by using a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider; according to the service information corresponding to the target test environment, each configuration item corresponding to the target test environment is automatically modified to complete configuration of the target test environment, optimal configuration selection can be automatically performed on the configuration items of the test environment, information is not required to be acquired one by one, configuration modification, service control and environment verification are automatically completed, manual information modification is not required, configuration efficiency of the test environment can be effectively improved, configuration accuracy and reliability of the test environment are effectively improved, further specific configuration information is not required to be paid attention to in version content by developers, coding realization and environment configuration are unbinding, and overall research and development efficiency is improved.
In view of the foregoing, the embodiments of the present application provide a test environment intelligent configuration system for implementing a test environment intelligent configuration method, where the test environment intelligent configuration system may be a server 01, and referring to fig. 1, the server 01 may be communicatively connected to at least one related database 02, and may also be communicatively connected to at least one client device 03.
Based on the above, the server 01 may receive a target test environment new instruction from the client device 03 online, where the target test environment new instruction includes a target test environment and each configuration item corresponding to the target test environment, and the server 01 uses a preset tile identification element to select one of a plurality of preset environment tiles as a target environment tile corresponding to the target test environment, and determines service information corresponding to the target test environment in the target environment tile, where the environment tile is used to store service information provided by at least one service provider; and automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment.
It is understood that the client device may specifically include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, an intelligent wearable device, and the like. Wherein, intelligent wearing equipment can specifically include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, the intelligent configuration part of the test environment may be executed on the server side as described above, or all operations may be completed in the client device. Specifically, the selection may be made according to the processing capability of the client device, and restrictions of the use scenario of the user. The present application is not limited in this regard. If all operations are performed in the client device, the client device may further include a processor.
The client device may have a communication module (i.e. a communication unit) and may be connected to a remote server in a communication manner, so as to implement data transmission with the server. The server may specifically include a server on one side of the task scheduling center, and in other implementation scenarios, a server of an intermediate platform may also be specifically included, for example, a server of a third party server platform having a communication link with the task scheduling center server. The server may specifically include a single computer device, or may specifically include a server cluster formed by a plurality of servers, or a server structure of a distributed device.
Any suitable network protocol may be used for communication between the server and the client device, including in particular network protocols not yet developed at the filing date of this application. The network protocol may specifically include, for example, TCP/IP protocol, UDP/IP protocol, HTTP protocol, HTTPs protocol, and the like. Of course, the network protocol may specifically include, for example, RPC protocol (Remote Procedure Call Protocol ), REST protocol (Representational State Transfer, representational state transfer protocol) and the like, which are used above the above-mentioned protocols.
In order to automatically perform optimal configuration selection on configuration items of a test environment, automatically implement configuration modification, service control and environment verification, effectively improve configuration efficiency of the test environment, and effectively improve configuration accuracy and reliability of the test environment, the application provides an embodiment of an intelligent configuration method of the test environment, and referring to fig. 2, the intelligent configuration method of the test environment specifically includes the following contents:
step 100: and receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment.
Step 200: selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by using a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider.
Step 300: and automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment.
It can be understood that the tile identification element specifically includes: at least one of a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule.
If the patch identification element comprises a version number uniquely corresponding to the target test environment, service provider identifications corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule; the step 200 specifically includes the following:
Firstly, judging whether the target test environment is in a use state, if so, determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying service provider identifiers corresponding to all configuration items of the target test environment.
And secondly, if the target test environment is not in the use state, judging whether the target test environment belongs to the environment patch newly added in a preset period by using the receiving time of the new instruction of the target test environment, and if so, determining the newly added environment patch as an environment patch matched with the target test environment.
Thirdly, if the target test environment is judged to be not in the environment area newly added in the preset period, determining at least one environment area matched with the target test environment in a plurality of preset environment areas by applying the version number uniquely corresponding to the target test environment.
In addition, in order to further improve the configuration accuracy and reliability of the test environment, in an embodiment of the test environment intelligent configuration method of the present application, the method further specifically includes:
And carrying out transaction fit test on the environment patch matched with the target test environment by applying the transaction smoking test rule, and confirming the environment patch passing the test as the target environment patch.
In order to further improve the applicability and reliability of the configuration of the test environment, it can be understood that each environment patch is stored in a preset environment configuration center; correspondingly, in an embodiment of the test environment intelligent configuration method of the present application, referring to fig. 3, before the step 200, the following is further specifically included:
step 101: and when or after receiving the new instruction of the target test environment, adding an environment patch in the environment configuration center.
It may be appreciated that the service information specifically includes: service ID, IP where the service resides, port and access path.
In order to further improve the configuration efficiency and the intelligent degree of the test environment, in one embodiment of the test environment intelligent configuration method of the present application, referring to fig. 4, the step 300 further specifically includes:
step 400: and performing corresponding preset automatic service control on the target test environment.
In order to further improve the configuration accuracy and reliability of the test environment, in one embodiment of the test environment intelligent configuration method of the present application, referring to fig. 5, the step 400 further specifically includes:
step 500: and carrying out integrity verification on the target test environment.
In order to further improve the application reliability of the configuration process of the test environment, in one embodiment of the test environment intelligent configuration method of the present application, referring to fig. 6, the following step 500 further specifically includes:
step 600: and storing the service information of the service provider corresponding to the target test environment into the corresponding target environment patch.
In order to automatically perform optimal configuration selection on configuration items of a test environment and automatically realize configuration modification, service control and environment verification, the configuration efficiency of the test environment can be effectively improved, and the configuration accuracy and reliability of the test environment can be effectively improved, and the application also provides a test environment intelligent configuration system for realizing all or part of contents in the test environment intelligent configuration method, referring to fig. 7, the test environment intelligent configuration system specifically comprises the following contents:
The automatic configuration starting device 3 is used for receiving a new instruction of the target test environment, wherein the new instruction of the target test environment comprises the target test environment and each configuration item corresponding to the target test environment;
the environment analysis device 4 is configured to apply a preset tile identification element to select one of a plurality of preset environment tiles as a target environment tile corresponding to the target test environment, and determine service information corresponding to the target test environment in the target environment tile, where the environment tile is used to store service information provided by at least one service provider;
and the environment configuration device 5 is used for automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment.
The embodiment of the test environment intelligent configuration system provided in the embodiment of the present application may be specifically used to execute the process flow of the embodiment of the test environment intelligent configuration method in the above embodiment, and the functions thereof are not described herein again, and may refer to the detailed description of the embodiment of the test environment intelligent configuration method.
As can be seen from the above description, the intelligent configuration system for testing environment provided by the embodiment of the application can automatically perform optimal configuration selection on configuration items of the testing environment, does not need to acquire information one by one, automatically completes configuration modification, service control and environment verification, does not need to manually modify information, can effectively improve the configuration efficiency of the testing environment, effectively improves the configuration accuracy and reliability of the testing environment, and further can realize that developers do not need to pay attention to specific configuration information in version content, unbind coding realization and environment configuration, and improves the overall research and development efficiency.
It can be understood that the tile identification element specifically includes: at least one of a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule.
If the patch identification element comprises a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule;
the environment analysis device 4 specifically includes:
and the configured item identification module is used for judging whether the target test environment is in a use state, if so, determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying service provider identifications corresponding to the configuration items of the target test environment.
And the configured item identification module is further configured to determine, when the configured item identification module determines that the target test environment is not in the use state, whether the target test environment belongs to the environment patch newly added in a preset period by applying a receiving time of a new instruction of the target test environment, and if yes, determine the newly added environment patch as an environment patch matched with the target test environment.
The intelligent configuration system of the test environment further specifically comprises the following contents:
and the version number identification module is used for determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying the version number uniquely corresponding to the target test environment if the target test environment is judged to not belong to the newly added environment patch within the preset time period.
The transaction fit identification module is used for applying the transaction smoking test rule to conduct transaction fit test on the environment area matched with the target test environment, and confirming the environment area passing the test as the target environment area.
Each environment area is stored in a preset environment configuration center; correspondingly, the intelligent configuration system of the test environment further specifically comprises: and the environment patch newly-adding module is used for adding a newly-added environment patch in the environment configuration center when or after receiving the new instruction of the target test environment.
It may be appreciated that the service information specifically includes: service ID, IP where the service resides, port and access path.
The environment configuration device further specifically comprises:
And the service control module is used for carrying out corresponding preset automatic service control on the target test environment.
And the environment verification module is used for carrying out environment fit verification on the target test environment.
And the environment recording module is used for storing the service information of the service provider corresponding to the target test environment into the corresponding target environment patch.
Based on the above, the application provides an intelligent configuration system for a test environment, which specifically comprises a user interaction device, an environment configuration center, an automatic configuration starting device, an environment analysis device and an environment configuration device, records and manages all services and configuration information, establishes a technical analysis model and a method according to information such as version numbers, configured items, time windows, transaction agreements, specific matters and the like, automatically determines optimal configuration selection of all configuration items, realizes automatic configuration and automatic verification of the configuration items of an application environment, and achieves the purpose of quick and accurate automatic configuration of the configuration items of the test environment.
As shown in fig. 8, the test environment intelligent configuration system specifically includes five devices:
user interaction device 1: the user performs initial setting of the environmental information, such as creating an environmental area, and performs an initialization action through the user interaction device.
The environment configuration center device 2: recording and managing all services and configuration information, recording information provided by a called party (service provider) according to an environment zone, and specifically comprising: service ID, IP where the service resides, port and access path, etc. The environment configuration center 2 specifically includes: an environment master control module 21, and one or more environment patch information storage modules 22.
Automatic configuration starting device 3: for each newly added application environment to be configured, the module starts to start the technical analysis method of the application, and automatically configures the configuration items of the application environment.
Environment analysis device 4: according to the technical analysis model, the configuration items needing to be newly added are intelligently analyzed and judged to be optimal configuration choices according to information such as version numbers, configured items, time windows, transaction agreements, specific matters and the like. The environment analysis device 4 specifically includes: a version number identification module 41, a configured item identification module 42; a time window identification module 43, a transaction fit identification module 44.
Environment configuration means 5: automatic modification, service control and automatic verification of configuration items are completed. The environment configuration apparatus 5 specifically includes: a configuration modification module 51, a service control module 52, an environment verification module 53, an environment recording module 54.
The five devices have an interaction relationship, specifically: the user interaction device 1 is responsible for maintaining and initializing the main body information of the environment configuration center device 2; an automatic configuration starting device 3 for providing the newly added application environment to be configured to the environment analysis device 4 and the environment configuration device 5; the environment analysis device 4 and the environment configuration device 5 each acquire environment specific information from the environment configuration center device 2; the environment configuration means 5 additionally takes care of recording all service provider information into the environment configuration central means 2.
In general, configuration items of an application environment are mostly dependent on manual modification. The system organically integrates the environment configuration center device, the environment analysis device and the environment configuration device, in the environment configuration center device, the environment area and all the information of the service provider and the like are subjected to formatted management, the environment analysis device preferably judges the optimal selection of the environment area to which the configuration item of the newly added application environment belongs, the information of the IP port and the like of the service provider which is actually supposed to be configured is obtained, and the configuration and verification are automatically completed through the environment configuration center, so that the purpose of rapid and accurate automatic configuration of the application environment is realized by seamless combination of the environment configuration center device, the environment analysis device and the environment configuration item.
As shown in fig. 9, the environment configuration center device 2 is configured as described above.
The environment master control module 21 is an entry for user interaction on the one hand and generally maintains all environment partition information on the other hand.
The environment region information storage module 22 records all information of the current region environment. For example, the current version of the functional test environment can be used as a separate area; the production patch test environment of the previous version can also be a separate patch. The context information for each tile is complete and independent.
As shown in fig. 10, the structure of the environment tile information storage module 22 is schematically shown. Each environment tile has a unique ID and is configured with its corresponding application version number, such as 2020.01 for environment tile 1, 2020.04 for environment tile 2, etc. While each tile records information provided by all called parties (service providers) within the tile environment, including: service ID, IP where the service resides, port, access path, etc.
The version number identification module 41 generally establishes a version according to a baseline for each currently integrated function program, and has a unique version number, and assuming that the current software development is basically integrated with a large version every month, the version number rule can be established as shown in the following table 1:
TABLE 1
Number segment Application identification Year attribute Month attribute Patch number Small patch number
Description of the invention Unique identifier 0000-9999 01-12 A-Z 001-999
Example F-ABCD 2020 04 A 001
Then, for the example above, this application identified as F-ABCD has a full version number of: F-ABCD 2020.4.A.001.
Assuming that the test environment area of each month is independent, we do not need to pay special attention to the "patch number" and the "small patch number", but mainly look at the two numbers of the "year attribute" and the "month attribute", that is, if the version number of the application to be installed and configured currently is F-ABCD 2020.4.A.001, it can be judged that the application environment should belong to the environment area of 2020.04, so all configuration items should take the information of the corresponding called party (service provider) from the environment area of 2020.04.
The configured item identification module 42 checks all the configuration items in the current application environment to obtain the environment area to which the called party (service provider) associated with each configuration item belongs, analyzes which environment area has the largest occupation ratio, and further determines which environment area the current module set should belong to. The functional module is particularly suitable for the situation that newly added configuration items need to be configured in the version test process.
The time window recognition module 43 performs configuration and start-up service for the application environment which is suddenly and densely increased in a short period of time, and determines whether the current time is within the period of time of the newly increased environment, i.e. determines whether the environment configuration center has the newly increased environment in the last days. For example, the next version is 2020.5, i.e. the version of month 5 in 2020, then at the end of 4 months and last week, an environment area with ID 2020.5 is newly added in the environment configuration center, and at the same time, a new and increased amount of application environments are concentrated. Then the application environment in this time period is preferentially judged to belong to this newly added environment patch, so the configuration items all fetch the information of the corresponding called party (service provider) from the environment patch of 2020.05.
The transaction fit identification module 44, each function module, needs to provide a transaction smoking test function, and in the configuration stage, uses the transaction smoking test message to perform environment confirmation on the called party (service provider), and preferably selects to return the environment information with normal service results.
The configuration modification module 51 automatically modifies the configuration type according to the optimal configuration selection provided by the environmental analysis device 4.
The service control module 52 automatically completes automatic service control such as batch restarting of the service as required after the configuration modification is completed.
The environment verification module 53 performs complete automatic verification on the configured environment by using the transaction smoking test message, if a problem is found, the environment verification module feeds back to the environment analysis device 4, and the environment analysis device 4 sets the current optimal configuration information selection state of the application environment as suspicious.
The environment recording module 54 includes all service provider information including: the service ID, the IP where the service is located, the port, the access path, and the like are registered in the information record of the corresponding environment patch in the environment configuration center device 2.
Fig. 11 is a schematic diagram of an optimal configuration information analysis method for intelligent configuration of a test environment, and the method specifically includes the steps of:
(1) According to the requirement of a calling party (service consumer), possible environment film information recorded by the configuration center is automatically acquired.
(2) According to the version number isolation method, the corresponding environment film information is obtained preferentially according to the version number of the current function.
(3) And analyzing the configuration items of which the rest of the application where the configuration items are located are configured and the configuration items passing verification, and automatically matching the corresponding environment zone information.
Especially, when the current version is in the testing process and a newly added configuration item needs to be configured, the method is particularly suitable for the configured item identification method.
(4) For the densely added configuration, if the current time window is in a batch newly-built complete test environment, the current configuration item is preferentially selected as the newly-built environment film zone.
Especially in the use of new test environments copied from old test environments, the version number is still used old and is therefore particularly suitable for the time window identification method.
(5) And using the transaction smoking test message to confirm the environment of the called party (service provider), and preferentially selecting the environment information with normal service.
(6) And comprehensively determining the optimal environment zone information, judging to obtain the ID of the affiliated environment zone, acquiring the environment zone information, and further acquiring corresponding service specific information comprising IP, ports, access paths and the like in the environment zone information storage device according to the service ID.
(7) Automatic modification, service control and automatic verification of configuration items are completed.
As shown in fig. 12, a flowchart of a method for comprehensively determining optimal configuration information is shown, and the specific steps of the method flow are as follows:
Step S301: and starting an automatic configuration device to acquire the application environment information to be configured newly.
Step S302: whether the application environment is in normal use is judged, if so, the step S303 is continued, otherwise, the step S304 is skipped.
Step S303: and carrying out the identification analysis of the configured items. And checking all configuration items of the current application environment to obtain environment areas of the called party (service provider) connected with each configuration item, analyzing which environment area has the largest occupation ratio, and further judging which environment area the current module set should belong to.
Step S304: judging whether the environment is in the time window of the newly built environment film, namely judging whether the environment configuration center has newly built environment film in the last days, and configuring and starting service in the current and suddenly more dense newly built application environment. If yes, step S305 is continued, otherwise step S306 is skipped.
Step S305: and carrying out time window identification analysis, and preferentially judging the current application environment as belonging to the newly added environment zone.
Step S306: and carrying out version number identification analysis, checking the corresponding relation of the version numbers in the environment film region information storage module according to the version number of the current application environment, and obtaining the environment film region corresponding to the version number.
Step S307: and carrying out transaction fit identification analysis, carrying out environment confirmation on a called party (service provider) by using a transaction smoking test message, and basically confirming an environment zone with optimal configuration if the service is normal, otherwise, setting the state as doubtful, and carrying out subsequent re-verification or re-analysis selection of the optimal configuration information.
Through the method flow, the problem that a developer needs to pay attention to each specific configuration information in the submitted version content can be solved well, particularly, for an application environment in a testing process, even if a newly added configuration item exists, the method flow can preferentially use the identification analysis of the configured item, and find that the application environment currently under test actually belongs to a certain set of existing testing environment (assumed to be an environment patch A), then for the newly added unconfigured item, the situation that the application environment belongs to the environment patch B should be judged preferably, and the developer does not need to explain in the version content, so that the method can automatically complete configuration.
By the method flow, the possible problems of simply using the version number to do environment identification can be avoided, for example, when a whole set of testing environment (assumed to be the environment patch B) is newly built, a common method is to copy the whole set of testing environment (assumed to be the environment patch A) from the existing set of testing environment, and at the moment, a new version is not installed in the newly built application environment, namely, the version number is still old, and if only version number identification analysis is used, the newly built application environment is judged to belong to the existing environment A, but actually belongs to the new environment B. By utilizing the method, the time window identification analysis is preferentially used, the latest newly added environment area B of the environment configuration center can be accurately judged, and more dense newly added application environments are required to be configured and started up, so that the application environments preferably belong to the environment area B, and the occurrence of wrong judgment of the environments can be avoided.
By the method, the transaction fit identification analysis is fully utilized, the optimized configuration judged according to the previous steps is verified from the transaction message layer, the result is returned from the transaction, and whether the requester and the server fit or not is judged, so that whether the optimized environment area and the information are accurate or not is further improved.
Through the integration of the flow of the method, the method for identifying and analyzing the configured items can solve the problem that most of the application environments in the normal testing process are newly added with the configured items; then using time window recognition analysis to solve the problem of centralized configuration of a newly built whole set of environment areas, and then using standard version number recognition analysis to solve the problem under normal conditions; and then combining transaction fit recognition analysis to further improve the accuracy of the configuration information.
In summary, through the method flow, on one hand, the automatic selection of configuration is further improved, and the working efficiency of configuration is improved; on the other hand, the optimal scheme for configuration selection is further optimized, errors and omission of manual configuration are avoided, and the accuracy of configuration of a test environment can be effectively improved; in addition, the method also realizes that a developer does not need to pay attention to specific configuration information in version content, unbinds coding realization and environment configuration, and improves the overall research and development efficiency.
The application provides a system and a method for intelligently configuring a test environment, which adopt a technical analysis model and a method to determine optimal configuration selection of all configuration items, and realize automatic configuration and automatic verification of the configuration items. Compared with the old test environment configuration method, the method has the following advantages:
1. the optimal configuration selection of the configuration items is automatically determined, information is not required to be acquired one by one, configuration modification, service control and environment verification are automatically completed, information is not required to be manually modified, configuration efficiency can be greatly improved, and configuration accuracy is improved.
2. The realization that a developer does not need to pay attention to specific configuration information in version content, the realization of coding and environment configuration are unbinding, and the overall research and development efficiency is improved.
By adopting the technical analysis model and the method to determine the optimal configuration selection of all the configuration items, the automatic configuration and the automatic verification of the configuration items are realized, and the configuration items of the test environment can be quickly and automatically configured, so that the software test efficiency is greatly improved, and the software quality is improved.
In order to automatically perform optimal configuration selection on configuration items of a test environment and automatically realize configuration modification, service control and environment verification, so that configuration efficiency of the test environment can be effectively improved, and configuration accuracy and reliability of the test environment can be effectively improved, the application provides an embodiment of an electronic device for realizing all or part of contents in an intelligent configuration method of the test environment, wherein the electronic device specifically comprises the following contents:
A processor (processor), a memory (memory), a communication interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete communication with each other through the bus; the communication interface is used for realizing information transmission among the intelligent configuration system of the test environment, various databases, user terminals and other related devices; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, etc., and the embodiment is not limited thereto. In this embodiment, the electronic device may refer to an embodiment of the test environment intelligent configuration method in the embodiment, and an embodiment of the test environment intelligent configuration system is implemented, and the contents thereof are incorporated herein, and are not repeated here.
Fig. 13 is a schematic block diagram of a system configuration of an electronic device 9600 of an embodiment of the present application. As shown in fig. 13, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 13 is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications functions or other functions.
In one embodiment, the test environment intelligent configuration functions may be integrated into the central processor 9100. The central processor 9100 may be configured to perform the following control:
Step 100: and receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment.
Step 200: selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by using a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider.
Step 300: and automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment.
As can be seen from the above description, the electronic device provided by the embodiment of the present application may automatically perform optimal configuration selection on the configuration items of the test environment, without obtaining information one by one, and automatically complete configuration modification, service control and environment verification, without manually modifying information, so that the configuration efficiency of the test environment may be effectively improved, the configuration accuracy and reliability of the test environment may be effectively improved, further, a developer may not need to pay attention to specific configuration information in version content, unbind coding implementation and environment configuration, and improve overall research and development efficiency.
In another embodiment, the test environment intelligent configuration system may be configured separately from the central processor 9100, for example, the test environment intelligent configuration system may be configured as a chip connected to the central processor 9100, and the test environment intelligent configuration function is implemented by control of the central processor.
As shown in fig. 13, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 need not include all of the components shown in fig. 13; in addition, the electronic device 9600 may further include components not shown in fig. 13, and reference may be made to the related art.
As shown in fig. 13, the central processor 9100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 9100 receives inputs and controls the operation of the various components of the electronic device 9600.
The memory 9140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 9100 can execute the program stored in the memory 9140 to realize information storage or processing, and the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 9140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, etc. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 storing application programs and function programs or a flow for executing operations of the electronic device 9600 by the central processor 9100.
The memory 9140 may also include a data store 9143, the data store 9143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. A communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of conventional mobile communication terminals.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and to receive audio input from the microphone 9132 to implement usual telecommunications functions. The audio processor 9130 can include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100 so that sound can be recorded locally through the microphone 9132 and sound stored locally can be played through the speaker 9131.
The embodiments of the present application further provide a computer readable storage medium capable of implementing all the steps in the test environment intelligent configuration method in which the execution subject in the above embodiments is a server or a client, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the test environment intelligent configuration method in which the execution subject in the above embodiments is a server or a client, for example, the processor implements the following steps when executing the computer program:
Step 100: and receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment.
Step 200: selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by using a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider.
Step 300: and automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment.
As can be seen from the above description, the computer readable storage medium provided in the embodiments of the present application can automatically perform optimal configuration selection on configuration items of a test environment, without obtaining information one by one, and simultaneously automatically complete configuration modification, service control and environment verification, without manually modifying information, so that configuration efficiency of the test environment can be effectively improved, configuration accuracy and reliability of the test environment can be effectively improved, further, a developer can realize that specific configuration information does not need to be paid attention to in version content, code implementation and environment configuration are unbinding, and overall research and development efficiency is improved.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (20)

1. The intelligent configuration method for the test environment is characterized by comprising the following steps of:
receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment;
selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by using a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider;
according to the service information corresponding to the target test environment, each configuration item corresponding to the target test environment is automatically modified to complete the configuration of the target test environment;
if the patch identification element comprises a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule;
the selecting, by the application of the preset tile identifier, one of a plurality of preset environment tiles as the target environment tile corresponding to the target test environment includes:
And judging whether the target test environment is in a use state, if so, determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying service provider identifiers corresponding to all configuration items of the target test environment.
2. The intelligent configuration method of a test environment according to claim 1, further comprising:
if the target test environment is not in the use state, the receiving time of the new instruction of the target test environment is used for judging whether the target test environment belongs to the newly added environment area within a preset period, and if so, the newly added environment area is determined to be the environment area matched with the target test environment.
3. The test environment intelligent configuration method of claim 2, further comprising:
if the target test environment is judged to be not in the newly added environment area within the preset period, determining at least one environment area matched with the target test environment in a plurality of preset environment areas by applying the version number uniquely corresponding to the target test environment.
4. A test environment intelligent configuration method according to any one of claims 1 to 3, further comprising:
and carrying out transaction fit test on the environment patch matched with the target test environment by applying the transaction smoking test rule, and confirming the environment patch passing the test as the target environment patch.
5. The intelligent configuration method of test environment according to claim 1, wherein each environment patch is stored in a preset environment configuration center;
correspondingly, before the application preset region identification element selects one of a plurality of preset environment regions as the target environment region corresponding to the target test environment, the method further comprises:
and when or after receiving the new instruction of the target test environment, adding an environment patch in the environment configuration center.
6. The test environment intelligent configuration method according to claim 1, wherein the service information includes: service ID, IP where the service resides, port and access path.
7. The intelligent configuration method of a test environment according to claim 1, further comprising, after the automatically modifying each configuration item corresponding to the target test environment according to service information corresponding to the target test environment:
And performing corresponding preset automatic service control on the target test environment.
8. The intelligent configuration method of a test environment according to claim 7, further comprising, after the corresponding preset automatic service control is performed on the target test environment:
and carrying out integrity verification on the target test environment.
9. The intelligent configuration method of a test environment according to claim 8, further comprising, after said verifying the integrity of the target test environment:
and storing the service information of the service provider corresponding to the target test environment into the corresponding target environment patch.
10. A test environment intelligent configuration system, comprising:
the automatic configuration starting device is used for receiving a target test environment new instruction, wherein the target test environment new instruction comprises a target test environment and each configuration item corresponding to the target test environment;
the environment analysis device is used for selecting one of a plurality of preset environment areas as a target environment area corresponding to the target test environment by applying a preset area identification element, and determining service information corresponding to the target test environment in the target environment area, wherein the environment area is used for storing the service information provided by at least one service provider;
The environment configuration device is used for automatically modifying each configuration item corresponding to the target test environment according to the service information corresponding to the target test environment so as to complete the configuration of the target test environment;
if the patch identification element comprises a version number uniquely corresponding to the target test environment, service provider identifiers corresponding to each configuration item of the target test environment, receiving time of a new instruction of the target test environment and a preset transaction smoking test rule;
the environment analysis device includes:
and the configured item identification module is used for judging whether the target test environment is in a use state, if so, determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying service provider identifications corresponding to the configuration items of the target test environment.
11. The intelligent configuration system of test environment according to claim 10, wherein the configured item identification module is further configured to determine, when it is determined that the target test environment is not in the use state, whether the target test environment belongs to the environment patch newly added in a preset period by applying a receiving time of the new instruction of the target test environment, and if yes, determine the newly added environment patch as an environment patch matching the target test environment.
12. The test environment intelligent configuration system of claim 11, further comprising:
and the version number identification module is used for determining at least one environment patch matched with the target test environment in a plurality of preset environment patches by applying the version number uniquely corresponding to the target test environment if the target test environment is judged to not belong to the newly added environment patch within the preset time period.
13. The test environment intelligent configuration system of any of claims 10 to 12, further comprising: the transaction fit identification module is used for applying the transaction smoking test rule to conduct transaction fit test on the environment area matched with the target test environment, and confirming the environment area passing the test as the target environment area.
14. The intelligent configuration system of test environment according to claim 10, wherein each of the environment tiles is stored to a preset environment configuration center;
correspondingly, the intelligent configuration system of the test environment further comprises:
and the environment patch newly-adding module is used for adding a newly-added environment patch in the environment configuration center when or after receiving the new instruction of the target test environment.
15. The test environment intelligent configuration system of claim 10, wherein the service information comprises: service ID, IP where the service resides, port and access path.
16. The test environment intelligent configuration system of claim 10, wherein the environment configuration means further comprises:
and the service control module is used for carrying out corresponding preset automatic service control on the target test environment.
17. The test environment intelligent configuration system of claim 16, wherein the environment configuration means further comprises:
and the environment verification module is used for carrying out environment fit verification on the target test environment.
18. The test environment intelligent configuration system of claim 17, wherein the environment configuration means further comprises:
and the environment recording module is used for storing the service information of the service provider corresponding to the target test environment into the corresponding target environment patch.
19. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the test environment intelligent configuration method of any one of claims 1 to 9 when the program is executed by the processor.
20. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the test environment intelligent configuration method of any of claims 1 to 9.
CN201910699721.9A 2019-07-31 2019-07-31 Intelligent configuration method and system for test environment Active CN110413528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910699721.9A CN110413528B (en) 2019-07-31 2019-07-31 Intelligent configuration method and system for test environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910699721.9A CN110413528B (en) 2019-07-31 2019-07-31 Intelligent configuration method and system for test environment

Publications (2)

Publication Number Publication Date
CN110413528A CN110413528A (en) 2019-11-05
CN110413528B true CN110413528B (en) 2023-12-22

Family

ID=68364523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910699721.9A Active CN110413528B (en) 2019-07-31 2019-07-31 Intelligent configuration method and system for test environment

Country Status (1)

Country Link
CN (1) CN110413528B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831567B (en) * 2020-07-17 2023-08-22 中国工商银行股份有限公司 Application test environment configuration method, device, system and medium
CN112035365B (en) * 2020-09-01 2023-08-18 中国银行股份有限公司 Version deployment method and device supporting multiple test environments
CN112134764B (en) * 2020-09-27 2022-08-09 中国银行股份有限公司 Method and device for determining connectivity of test environment
CN112131126B (en) * 2020-09-28 2023-10-27 中国银行股份有限公司 Switching method and device of test environment
CN113505179A (en) * 2021-07-27 2021-10-15 中国工商银行股份有限公司 Access path synchronization method and device
CN115460077B (en) * 2022-09-01 2024-06-18 杭州华橙软件技术有限公司 Configuration information updating method and device, storage medium and electronic device
CN116700785A (en) * 2023-08-07 2023-09-05 深圳市智慧城市科技发展集团有限公司 Application environment switching method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8560991B1 (en) * 2010-10-05 2013-10-15 Cadence Design Systems, Inc. Automatic debugging using automatic input data mutation
WO2018066040A1 (en) * 2016-10-03 2018-04-12 株式会社日立製作所 Management computer and test environment determination method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10595204B2 (en) * 2017-08-03 2020-03-17 Salesforce.Com, Inc. Flexible remote server validation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8560991B1 (en) * 2010-10-05 2013-10-15 Cadence Design Systems, Inc. Automatic debugging using automatic input data mutation
WO2018066040A1 (en) * 2016-10-03 2018-04-12 株式会社日立製作所 Management computer and test environment determination method

Also Published As

Publication number Publication date
CN110413528A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110413528B (en) Intelligent configuration method and system for test environment
CN112163946A (en) Accounting processing method and device based on distributed transaction system
CN105493446A (en) Communication with on-calls and machines using multiple modalities through single historical tracking
WO2020248375A1 (en) Method and system for synchronizing data between databases, computer device and storage medium
CN111897738B (en) Automatic testing method and device based on atomic service
CN110543428B (en) Application system testing method and device
CN111158987B (en) Health check method and device for micro-service architecture
CN113609423B (en) Task configuration method and device, storage medium and computer equipment
CN113742212A (en) New and old system migration test method and device
CN113485952A (en) Data batch transmission method and device
CN103237050A (en) Method and system for intelligent voice interaction
CN113127370A (en) Report system smoking test method, RPA robot and system
CN111930625A (en) Log obtaining method, device and system based on cloud service platform
CN114285657B (en) Firewall security policy change verification method and device
CN113515447B (en) Automatic testing method and device for system
CN113791984A (en) Automatic interface testing method and device
CN115495519A (en) Report data processing method and device
CN114374614A (en) Network topology configuration method and device
CN111652580B (en) Method and device for processing data of nodes
CN113190338A (en) Method, device and system for processing service data
CN111859041A (en) Data transmission method and device
CN112085456A (en) Purchasing order processing method and device
CN111563183A (en) Automatic generation method and device of visit record, computing equipment and storage medium
CN113129134B (en) Credit product data processing method and device
US20240152504A1 (en) Data interaction method, apparatus, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant