CN111694750A - Method and device for constructing software testing environment - Google Patents

Method and device for constructing software testing environment Download PDF

Info

Publication number
CN111694750A
CN111694750A CN202010605866.0A CN202010605866A CN111694750A CN 111694750 A CN111694750 A CN 111694750A CN 202010605866 A CN202010605866 A CN 202010605866A CN 111694750 A CN111694750 A CN 111694750A
Authority
CN
China
Prior art keywords
environment
database
information
deployed
subsystem
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.)
Pending
Application number
CN202010605866.0A
Other languages
Chinese (zh)
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.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202010605866.0A priority Critical patent/CN111694750A/en
Publication of CN111694750A publication Critical patent/CN111694750A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The embodiment of the invention provides a method and a device for constructing a software test environment, wherein the method comprises the steps of reading resource configuration information of an environment to be deployed from a configuration management database, synchronizing table structure differences in database information when the table structure of the database in a template environment is determined to be different from the table structure of the database in the database information, synchronizing tables in the database information, determining the database of the environment to be deployed, replacing differential variables in the environment to be deployed by using a differential variable replacement rule when determining that an application program package in subsystem information in the template environment is inconsistent with an application program package in subsystem information in the environment to be deployed, determining a subsystem of the environment to be deployed, and solving the problem that data cannot be simply exported from a production environment for test environment initialization in the prior art, leading to problems with large initialization effort for databases and subsystems and discrepancies in results and production environment.

Description

Method and device for constructing software testing environment
Technical Field
The embodiment of the invention relates to the field of financial technology (Fintech), in particular to a method and a device for constructing a software testing environment.
Background
With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually changing to financial technology, but due to the requirements of the financial industry on safety and real-time performance, higher requirements are also put forward on the technologies. In the financial field, in order to ensure that application software (transaction, payment, etc.) can operate normally and efficiently, a software testing environment is usually constructed to test the application software.
At present, the bank software testing environment construction generally comprises two aspects of a database and a business subsystem. Each time a new environment is deployed, the following steps are required: (1) combing information of a subsystem to be deployed and a database; (2) applying for resources of an application server and a database server; (3) registering configuration information of the new environment; (4) preparing data initialization DDL (structure) and DML (configuration) scripts and initializing a database; (5) and releasing the subsystem of the corresponding version through the releasing platform. However, since the bank production environment information has very high sensitivity and is not allowed to be derived from the production environment, data cannot be derived from the production environment simply for test environment initialization, thereby causing large initialization workload of the database and the subsystem and differences between the result and the production environment, and affecting the accuracy of the test.
In summary, there is a need for a method for constructing a software testing environment, so as to solve the problems in the prior art that data cannot be derived from a production environment simply for initializing the testing environment, which results in large initialization workload of a database and a subsystem, and a difference between a result and the production environment.
Disclosure of Invention
The embodiment of the invention provides a method and a device for constructing a software testing environment, which are used for solving the problems that the initialization workload of a database and a subsystem is large and the result is different from the production environment because data cannot be simply exported from the production environment for initializing the testing environment in the prior art.
In a first aspect, an embodiment of the present invention provides a method for constructing a software testing environment, including:
reading resource configuration information of an environment to be deployed from a configuration management database, wherein the resource configuration information comprises database information and subsystem information;
when the table structure of the database in the template environment is determined to be different from the table structure of the database in the database information, synchronizing the table structure difference of the database in the database information according to a first preset rule, synchronizing the tables of the database in the database information, and determining the database of the environment to be deployed;
when the situation that the application program package in the subsystem information in the template environment is inconsistent with the application program package in the subsystem information in the environment to be deployed is determined, replacing differential variables of the application program package in the subsystem information in the environment to be deployed by using a differential variable replacement rule, and determining a subsystem of the environment to be deployed;
and deploying the database and the subsystem of the environment to be deployed to determine the software testing environment.
In the technical scheme, because of the sensitivity of the data of the production environment of the bank, the test environment can not be built directly by using the data of the production environment, and the situation inconsistent with the production can also exist by using the data building of the existing test environment, so that the initialization workload of the database and the subsystem is very large, and the result is different from the production environment, therefore, the template environment consistent with the information of the production environment is built and maintained, and the method is used for building the test environment, and can be helpful for getting through the barrier between the test environment and the production environment. Based on the template environment, when the table structure of the database in the template environment is determined to be different from the table structure of the database in the database information, the difference of the table structure of the database in the database information is synchronized according to a first preset rule, and the tables of the database in the database information are synchronized, so that the database of the environment to be deployed can be quickly constructed, the consistency of the database in the environment to be deployed and the database in the template environment is ensured, and the requirement of full deployment of the database when the environment to be deployed is constructed can be avoided. In addition, when the application program package in the subsystem information in the template environment is determined to be inconsistent with the application program package in the subsystem information in the environment to be deployed, replacing the differential variables of the application packages in the subsystem information in the environment to be deployed by using a differential variable replacement rule, the subsystem of the environment to be deployed can be quickly constructed, the consistency of the subsystem in the environment to be deployed and the subsystem in the template environment can be ensured, the requirement of deploying the subsystems in full quantity when the environment to be deployed is constructed can be avoided, thereby ensuring the consistency of the constructed testing environment and the production environment, improving the testing accuracy, and then can solve the problem that the data can not be derived from the production environment simply for test environment initialization in the prior art, which causes large initialization workload of the database and the subsystem and difference between the result and the production environment.
Optionally, the synchronizing the tables of the database in the database information includes:
and synchronizing the parameters of the parameter table according to a second preset rule and the type of the parameter table when the table of the database in the database information is determined to be the parameter table.
In the technical scheme, when the table of the database in the database information is determined to be the parameter table, the parameters of the parameter table are synchronized according to the type of the parameter table through the second preset rule, so that the consistency of the database in the environment to be deployed and the database in the template environment can be ensured, and the requirement of full deployment of the database when the environment to be deployed is constructed can be avoided.
Optionally, the method further comprises:
if the table structure of the database in the template environment is not different from the table structure of the database in the database information, synchronizing the parameters of the parameter table according to the second preset rule and the type of the parameter table when determining that the table of the database in the database information is the parameter table, and determining the database of the environment to be deployed.
In the above technical solution, if there is no difference between the table structure of the database in the template environment and the table structure of the database in the database information, when it is determined that the table of the database in the database information is the parameter table, the parameters of the parameter table may be synchronized according to the second preset rule and the type of the parameter table, so that the database of the environment to be deployed may be constructed, the need to deploy the database in full when constructing the environment to be deployed may be avoided, and it is helpful to ensure the consistency between the database of the environment to be deployed and the database of the template environment, and the low accuracy of the test due to the inconsistency between the environment to be deployed and the production environment may be avoided.
Optionally, the synchronizing the parameters of the parameter table according to the second preset rule and the type of the parameter table includes:
if the type of the parameter table is irrelevant to the environment, synchronizing the parameters of the parameter table of the template environment into a database of the environment to be deployed;
and if the type of the parameter table is environment-related, synchronizing the parameters of the environment-related fields of the parameter table of the template environment to the database of the environment to be deployed by using the second preset rule.
In the technical scheme, because the configuration information required by the environment to be deployed is various, some environments are irrelevant, some environments are relevant, meanwhile, the content quantity of partial parameters is huge, the unified processing is difficult, and the initialization of the configuration parameters is difficult, parameters of the parameter table are synchronized by adopting different processing modes for different types of the parameter table, namely, if the type of the parameter table is irrelevant to the environment, the parameters of the parameter table of the template environment are synchronized to the database of the environment to be deployed, if the type of the parameter table is relevant to the environment, the parameters of the environment-relevant fields of the parameter table of the template environment are synchronized to the database of the environment to be deployed by using a second preset rule, and the problems that in the prior art, the content quantity of partial parameters is huge, the unified processing is difficult, and the initialization of the configuration parameters is difficult can be solved.
Optionally, the determining that the table of the database in the database information is a parameter table includes:
inputting relevant data of a database in the database information into the preset classification model for identification to obtain a prediction probability, and if the prediction probability is greater than a first threshold value, determining a table of the database in the database information as a parameter table; the preset classification model is obtained by training and learning historical data of a database of a plurality of sets of test environments.
In the technical scheme, the table with the prediction probability larger than the first threshold value in the database can be automatically identified as the parameter table by inputting the relevant data of the database in the database information into the preset classification model, and support is provided for determining the database of the environment to be deployed according to the second preset rule and the type synchronization parameter table of the parameter table.
Optionally, after the determining that the table of the database in the database information is the parameter table, the method further includes:
and classifying the parameter table according to the difference content and the difference type of the plurality of sets of test environments to obtain the type of the parameter table.
In the technical scheme, the parameter tables can be automatically classified according to the difference content and the difference type of a plurality of sets of test environments, so that different types of parameter tables can be obtained.
Optionally, the replacing, by using a differential variable replacement rule, a differential variable of an application package in the subsystem information in the environment to be deployed includes:
and acquiring an application program package corresponding to the current release version number from a subsystem information version library according to the current release version number in the subsystem information in the template environment, and replacing the differential variables of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package corresponding to the current release version number.
In the above technical solution, by obtaining the application package corresponding to the currently issued version number from the subsystem information version library and replacing the differential variable of the application package in the subsystem information in the environment to be deployed by using the differential variable replacement rule, the consistency of the subsystem in the environment to be deployed and the subsystem in the template environment can be ensured, and the requirement of deploying the subsystems in a full amount when the environment to be deployed is constructed can be avoided.
Optionally, the method further comprises:
if the application program package corresponding to the current release version number is not acquired, acquiring the application program package in the subsystem information in the template environment again, and replacing the differential variable of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package in the subsystem information in the template environment to determine the subsystem of the environment to be deployed; the differential variable replacement rule is obtained by training and learning differential variable values of the subsystem information of a plurality of sets of test environments.
In the above technical solution, if the application package corresponding to the currently issued version number is not obtained, the application package in the subsystem information in the template environment is obtained again, and the differentiated variables of the application package in the subsystem information in the environment to be deployed are replaced by using the differentiated variable replacement rule according to the application package in the subsystem information in the template environment, so that the subsystem of the environment to be deployed can be constructed, the requirement of deploying the subsystems in a full amount when the environment to be deployed is constructed can be avoided, the consistency of the subsystems in the environment to be deployed and the subsystems in the template environment can be further ensured, and the low accuracy of the test caused by the inconsistency between the environment to be deployed and the production environment can be avoided.
Optionally, before the reading the resource configuration information of the environment to be deployed from the configuration management database, the method further includes:
monitoring whether the production environment has a version release plan or not;
if so, executing the version release plan in the template environment, and comparing the executed data of the template environment with the data of the production environment;
and if the executed data of the template environment is inconsistent with the data of the production environment, generating a difference synchronous script, and executing the difference synchronous script in the template environment until the data of the template environment is the same as the data of the production environment.
In the technical scheme, the version release plan of the production environment is monitored, the version release plan is executed in the template environment, the difference synchronization script is generated when the production environment is determined to be inconsistent with the template environment, and then the difference synchronization script is executed in the template environment until the data of the template environment is the same as the data of the production environment, so that the consistency of the information of the template environment and the production environment can be ensured, the construction of the test environment is facilitated, and the barrier between the test environment and the production environment is opened.
In a second aspect, an embodiment of the present invention further provides a device for constructing a software testing environment, including:
the system comprises an acquisition unit, a configuration management database and a deployment management unit, wherein the acquisition unit is used for reading resource configuration information of an environment to be deployed from the configuration management database, and the resource configuration information comprises database information and subsystem information;
the processing unit is used for synchronizing the table structure difference of the database in the database information according to a first preset rule and synchronizing the table of the database in the database information when the difference between the table structure of the database in the template environment and the table structure of the database in the database information is determined, so as to determine the database of the environment to be deployed; when the situation that the application program package in the subsystem information in the template environment is inconsistent with the application program package in the subsystem information in the environment to be deployed is determined, replacing differential variables of the application program package in the subsystem information in the environment to be deployed by using a differential variable replacement rule, and determining a subsystem of the environment to be deployed; and deploying the database and the subsystem of the environment to be deployed to determine the software testing environment.
Optionally, the processing unit is specifically configured to:
and synchronizing the parameters of the parameter table according to a second preset rule and the type of the parameter table when the table of the database in the database information is determined to be the parameter table.
Optionally, the processing unit is further configured to:
if the table structure of the database in the template environment is not different from the table structure of the database in the database information, synchronizing the parameters of the parameter table according to the second preset rule and the type of the parameter table when determining that the table of the database in the database information is the parameter table, and determining the database of the environment to be deployed.
Optionally, the processing unit is specifically configured to:
if the type of the parameter table is irrelevant to the environment, synchronizing the parameters of the parameter table of the template environment into a database of the environment to be deployed;
and if the type of the parameter table is environment-related, synchronizing the parameters of the environment-related fields of the parameter table of the template environment to the database of the environment to be deployed by using the second preset rule.
Optionally, the processing unit is specifically configured to:
inputting relevant data of a database in the database information into the preset classification model for identification to obtain a prediction probability, and if the prediction probability is greater than a first threshold value, determining a table of the database in the database information as a parameter table; the preset classification model is obtained by training and learning historical data of a database of a plurality of sets of test environments.
Optionally, the processing unit is further configured to:
and after determining that the table of the database in the database information is a parameter table, classifying the parameter table according to the difference content and the difference type of the plurality of sets of test environments to obtain the type of the parameter table.
Optionally, the processing unit is specifically configured to:
and acquiring an application program package corresponding to the current release version number from a subsystem information version library according to the current release version number in the subsystem information in the template environment, and replacing the differential variables of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package corresponding to the current release version number.
Optionally, the processing unit is further configured to:
if the application program package corresponding to the current release version number is not acquired, acquiring the application program package in the subsystem information in the template environment again, and replacing the differential variable of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package in the subsystem information in the template environment to determine the subsystem of the environment to be deployed; the differential variable replacement rule is obtained by training and learning differential variable values of the subsystem information of a plurality of sets of test environments.
Optionally, the processing unit is further configured to:
before the resource configuration information of the environment to be deployed is read from the configuration management database, monitoring whether a production environment has a version release plan or not;
if so, executing the version release plan in the template environment, and comparing the executed data of the template environment with the data of the production environment;
and if the executed data of the template environment is inconsistent with the data of the production environment, generating a difference synchronous script, and executing the difference synchronous script in the template environment until the data of the template environment is the same as the data of the production environment.
In a third aspect, an embodiment of the present invention provides a computing device, including:
a memory for storing a computer program;
and the processor is used for calling the computer program stored in the memory and executing the construction method of the software test environment according to the obtained program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer-executable program for causing a computer to execute a method for constructing a software test environment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for constructing a software testing environment according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of building and maintaining a reference environment according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a database for building an environment to be deployed according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a subsystem for building an environment to be deployed according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a device for constructing a software testing environment according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a system architecture provided in an embodiment of the present invention. As shown in fig. 1, the system architecture may be a server 100 including a processor 110, a communication interface 120, and a memory 130.
The communication interface 120 is used for communicating with a terminal device, and transceiving information transmitted by the terminal device to implement communication.
The processor 110 is a control center of the server 100, connects various parts of the entire server 100 using various interfaces and lines, performs various functions of the server 100 and processes data by running or executing software programs and/or modules stored in the memory 130 and calling data stored in the memory 130. Alternatively, processor 110 may include one or more processing units.
The memory 130 may be used to store software programs and modules, and the processor 110 executes various functional applications and data processing by operating the software programs and modules stored in the memory 130. The memory 130 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to a business process, and the like. Further, the memory 130 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 exemplarily shows a flow of a method for constructing a software testing environment according to an embodiment of the present invention, where the flow may be executed by a device for constructing a software testing environment, and the system may be located in the server 100 shown in fig. 1, or may be the server 100.
As shown in fig. 2, the process specifically includes:
step 201, reading resource configuration information of the environment to be deployed from the configuration management database.
In the embodiment of the present invention, the resource configuration information may include database information and subsystem information. The database information may include a table of the database, a structure of the table of the database, a historical release record of the database, and the like; the subsystem information may include server resources corresponding to the subsystem, an application package of the subsystem, and the like; the application package may include applications, configuration files, business rule files, and the like. In addition, the configuration management database also stores user information, database environment information and the like, and is used for subsystem configuration and environment parameter replacement of the database parameter table.
In addition, before reading the resource configuration information of the environment to be deployed from the configuration management database, monitoring whether the production environment has a version release plan, if so, executing the version release plan in the template environment, comparing the executed data of the template environment with the data of the production environment, if the executed data of the template environment is inconsistent with the data of the production environment, generating a difference synchronization script, and executing the difference synchronization script in the template environment until the data of the template environment is the same as the data of the production environment. Specifically, due to the sensitivity of data of a bank production environment, the construction of a test environment cannot be directly carried out by using production data, and the construction by using the existing test environment data can also have the condition inconsistent with the production, so that a set of reference environment (template environment) is constructed and maintained, and the synchronization of the reference environment and the production environment is achieved by intelligently tracking the release plan (such as the online requirements of database information change, business subsystem information change and the like) and the release time of each version of the production environment, pulling corresponding release materials, analyzing the material information of a subsystem and executing database DDL and DML scripts. In order to prevent the difference caused by the inconsistency of the reference environment release method, the release sequence and the production environment release method and release sequence, the information of the reference environment is pushed to the production environment for execution so as to compare the information of the reference environment with the information of the production environment, if the difference exists, a difference synchronous script is generated, and the difference synchronous script is pushed back to the reference environment for execution so as to ensure the complete consistency of the reference environment and the production environment.
It should be noted that, due to the sensitivity of the data of the bank production environment, the data used in building the test environment is screened, that is, sensitive information, such as customer information, account information, etc., is shielded or removed.
Step 202, when it is determined that the table structure of the database in the template environment is different from the table structure of the database in the database information, synchronizing the table structure difference of the database in the database information according to a first preset rule, synchronizing the tables of the database in the database information, and determining the database of the environment to be deployed.
In the embodiment of the invention, when the table structure of the database in the template environment is determined to be different from the table structure of the database in the database information, the difference of the table structure of the database in the database information is synchronized according to a first preset rule, and when the table of the database in the database information is determined to be a parameter table, if the type of the parameter table is environment-irrelevant, the parameters of the parameter table of the template environment are synchronized to the database of the environment to be deployed, and if the type of the parameter table is environment-relevant, the parameters of the environment-relevant fields of the parameter table of the template environment are synchronized to the database of the environment to be deployed by using a second preset rule, so that the database of the environment to be deployed is determined. If the table structure of the database in the template environment is not different from the table structure of the database in the database information, synchronizing the parameters of the parameter table of the template environment into the database of the environment to be deployed when the table of the database in the database information is determined to be the parameter table if the type of the parameter table is environment-independent, and synchronizing the parameters of the environment-dependent fields of the parameter table of the template environment into the database of the environment to be deployed by using a second preset rule if the type of the parameter table is environment-dependent to determine the database of the environment to be deployed. When determining whether a table of a database in database information is a parameter table, inputting relevant data of the database in the database information into a preset classification model for identification to obtain a prediction probability, if the prediction probability is greater than a first threshold value, determining the table of the database in the database information to be the parameter table, and after determining the table of the database in the database information to be the parameter table, classifying the parameter table according to difference contents and difference types of a plurality of sets of test environments to obtain the type of the parameter table; the preset classification model is obtained by training and learning historical data of a database of a plurality of sets of test environments.
Specifically, a database construction module of the test environment deploys a database instance required by banking operation, and the database instance comprises creation of a database table and initialization of content of a parameter table.
The database construction of the test environment is to copy by taking a template environment as a source environment, the Internet generally adopts a production environment as the template environment, and a bank selects an intelligently maintained reference environment as the template environment due to the sensitivity of data of the production environment. Meanwhile, in order to utilize the historical deployment information of the environment to be deployed, the method is not constructed in a full-scale initialization mode, the difference between the template environment and the environment to be deployed is compared, the creation of the database in the environment to be deployed is realized by synchronizing the difference, the utilization of the old environment can be realized, and the deployment efficiency of the test environment is improved. If the environment to be deployed is empty, namely equivalent to the deployment of the new environment, and if the environment to be deployed is not empty, the historical version of the environment to be deployed can be effectively utilized, which is beneficial to saving the time required by the deployment of the new environment. The main steps of constructing a database in an environment to be deployed include:
(1) and (3) generating configuration information: applying for new environment TDSQL (Database service for deploying bank software system) server resources, automatically registering environment information, Database information, user information and the like to a CMDB (Configuration Management Database) for subsystem Configuration and Database parameter table environment parameter replacement.
(2) And (3) synchronizing the table structure: reading resource configuration information of the environment to be deployed from the configuration management database, judging whether the environment to be deployed has a database to be deployed, and if not, establishing a new database; if the database to be deployed exists, judging whether the database has all tables of the template environment, if not, establishing the database newly, if so, comparing the table structure of the template environment with the table structure of the environment to be deployed, and synchronizing the difference of the table structure of the environment to be deployed according to a first preset rule. Wherein, the first preset rule is as follows:
a. and comparing whether the fields in the table of the template environment are consistent with the fields in the table of the environment to be deployed, wherein the fields comprise types, default values, primary keys, self-increment and the like. And if the fields are inconsistent, deleting redundant fields in the table, and adding the fields which are lacked in the table and the fields with inconsistent alignment types for the table of the database in the environment to be deployed.
b. And comparing whether the index in the table of the template environment is consistent with the index in the table of the environment to be deployed. If not, the processing method is the same as the processing method in the above-mentioned a.
c. And comparing whether the foreign key in the table of the template environment is consistent with the foreign key in the table of the environment to be deployed. If not, the processing method is the same as the processing method in the above-mentioned a.
d. And comparing whether the field sequence in the table of the template environment is consistent with the field sequence in the table of the environment to be deployed. If not, the processing method is the same as the processing method in the above-mentioned a.
(3) Parameter table DML (Data management Language) synchronization: judging whether the table of the database in the environment to be deployed is a parameter table, if so, judging whether the parameter table is environment-related, if not, directly generating a DML script by using the content of the template environment, if so, replacing environment-related information in the table of the database in the environment to be deployed according to a second preset rule according to the category of environment-related fields of the parameter table, and realizing the synchronization of the DML content of the parameter table. Wherein, the second preset rule is:
a. and (3) replacing environmental parameters: if the parameter table has an environment information field, copying the content of the parameter table of the template environment to the environment to be deployed, and replacing the environment information in the parameter table of the database in the environment to be deployed through the environment parameter field in the environment information registered on the CMDB according to the environment information type, such as a deployment area, an IP (Internet Protocol), a port, and the like.
b. Self-increment parameter synchronization: if the parameter table has self-increment parameter fields such as card number distribution and batch processing SEQ, the configuration in the template environment is ignored, and the self-increment parameters in the parameter table of the database in the environment to be deployed are directly initialized.
c. Incremental synchronization: and for system information, batch information and the like, adding parameter contents of the template environment but the environment to be deployed is absent into a corresponding parameter table of a database in the environment to be deployed according to the identification of the primary key.
d. Non-null replacement: if the number of the parameter table contents of the template environment is the same as that of the parameter table contents of the environment to be deployed, but the values of partial fields are different, and aiming at the condition that the values of partial fields of two parameter tables are different, if the parameter table of the database in the environment to be deployed is not empty, the parameter table of the database in the environment to be deployed is reserved; and if the parameter table of the database in the environment to be deployed is empty, synchronizing the full content of the parameter table of the template environment into the parameter table of the database in the environment to be deployed.
In addition, most of the bank IT systems are driven by parameters, and a parameter table is required to be initialized in an initialization environment, however, the bank IT parameter tables are various, system parameters, service parameters and the like are related to one another in some environments and unrelated to one another in some environments, card numbers are added by self, and the bank IT parameter tables cannot be copied directly from a reference environment in a unified mode, and the parameter types and the initialization method thereof need to be automatically identified.
The DML initialization method for automatically identifying the parameter types and the parameter table comprises the following specific steps:
a. the method comprises the steps of training and learning historical data of a database of a plurality of sets of test environments to obtain a preset classification model, and judging whether a table of the database in an environment to be deployed is a parameter table or not by using the preset classification model, wherein training characteristic data are historical release records of the database and DML of the plurality of sets of test environments. Specifically, a Bayesian classifier is obtained through training by taking the table name, the table DML and the release history as characteristic factors, and the Bayesian classifier is used for automatically identifying which tables are parameter tables and which tables are service tables.
b. For the parameter table identified in the step a, the parameter table is divided into two types by comparing the difference content and the difference type of different test environments: context dependent and context independent.
c. For the contents of the environment-independent parameter table, the initialization of the contents of the environment-independent parameter table is generated directly by reference environment replication.
d. And c, summarizing the environment-related fields of the environment-related table into six types of environment information, self-increment ID, system information, batch information, account information, date and the like, respectively customizing a rule mode of DML initialization, automatically classifying the parameter table through difference data and difference types among different test environments in the step b, and generating an initialization DML script based on the reference environment and the initialization rule.
By accurately classifying the tables of the database, the service table only needs to initialize the DDL (Data definitional language), and after the DDL is initialized by the parameter table, the initialized DML script is automatically generated according to the respective categories of the tables of the database.
Step 203, when it is determined that the application package in the subsystem information in the template environment is inconsistent with the application package in the subsystem information in the environment to be deployed, replacing the differential variable of the application package in the subsystem information in the environment to be deployed by using a differential variable replacement rule, and determining the subsystem of the environment to be deployed.
In the embodiment of the invention, when the application program package in the subsystem information in the template environment is determined to be inconsistent with the application program package in the subsystem information in the environment to be deployed, the application program package corresponding to the current release version number is obtained from the subsystem information version library according to the current release version number in the subsystem information in the template environment, and the differential variable of the application program package in the subsystem information in the environment to be deployed is replaced by using the differential variable replacement rule according to the application program package corresponding to the current release version number, so that the subsystem of the environment to be deployed is determined. And if the application program package corresponding to the currently issued version number is not acquired, re-acquiring the application program package in the subsystem information in the template environment, and replacing the differential variable of the application program package in the subsystem information in the environment to be deployed by using a differential variable replacement rule according to the application program package in the subsystem information in the template environment to determine the subsystem of the environment to be deployed. The differential variable replacement rule is obtained by training and learning differential variable values of the subsystem information of the multiple sets of test environments.
Specifically, the bank software subsystem comprises an installation package, a configuration file and a rule package of the subsystem. The general subsystem construction is to re-create a subsystem packaging task on the CI platform according to the subsystem version (production environment or previous version test environment) of the template environment, and release the subsystem packaging task to the environment to be deployed.
For the bank IT, the rule packet is iterated continuously along with the version, and the rule packet used by the reconstructed subsystem system is possibly inconsistent with the rule packet when the version of the template environment is released; updating the version of the third-party dependency library of the subsystem, and causing the newly deployed business system dependency library to be inconsistent with the business system dependency library operated in the template environment; and the full repackaging of the subsystems is very time consuming. Therefore, a historical release version material warehouse is automatically constructed by intelligently tracking version change release records, and when a new environment is built, historical building results in the historical release version material warehouse are directly taken to be deployed according to the version number of the template environment, so that the completely consistent business system materials of the newly built environment and the template environment are ensured.
In addition, the configuration files have partial configuration related to the environment, and the current deployment mode needs to register the used differentiated variables on the CMDB once before the new environment is deployed every time.
The construction of the subsystem of the new environment mainly comprises the following steps:
a. and (3) generating configuration information: and applying for resources and automatically registering the resources to the CMDB, such as server resources corresponding to the subsystems, differentiation variables and the like.
b. Material extraction: comparing the template environment with an MD5(Message-Digest Algorithm 5, information-Digest Algorithm 5) of subsystem materials of the to-be-deployed/synchronous environment, skipping deployment if the template environment is the same, and extracting a subsystem material package, a configuration file and a rule file with corresponding version numbers from a historical release version material warehouse through the version numbers of the template environment if the template environment is different; and if the extraction fails, repackaging and constructing through the CI platform to carry out bottom packing.
c. Learning of differential variable replacement rules: according to the differential variable values among a plurality of sets of test environments, a new environment variable replacement rule is automatically generated:
(1) if the plurality of environment values are the same, the same value is replaced.
(2) If the plurality of environment values are different, the data source is traced according to the value and the environment variable list, and a replacement rule is generated.
d. Subsystem deployment: and acquiring a host list to be deployed by the subsystem according to the information of the subsystem deployment area and the application server. And d, replacing the differential variables according to the differential variable replacement rule of the step c, and then deploying the differential variables to the corresponding server.
And 204, deploying the database and the subsystem of the environment to be deployed to determine the software testing environment.
In the embodiment of the invention, after the database and the subsystem of the environment to be deployed are constructed, the database and the subsystem of the environment to be deployed are deployed to determine the software testing environment for testing the software.
In order to better explain the embodiment of building and maintaining the reference environment according to the present invention, a flow for building and maintaining the reference environment according to the embodiment of the present invention is described below through a specific implementation scenario.
As shown in fig. 3, the process includes the following steps:
step 301, whether the production environment has a version release plan or not is judged, if yes, step 302 is executed, and if not, the process is restarted.
And monitoring whether the production environment has a version release plan or not when the reference environment is built and maintained.
Step 302, the version release plan is executed in the benchmark environment.
Step 303, push data of the reference environment into the production environment.
Step 304, comparing the data of the reference environment with the data of the production environment.
In step 305, whether the reference environment and the production environment are different is determined, if yes, step 306 is executed, and if not, the process is restarted.
Step 306, generating a differentiated synchronization script.
Step 307, a differentiated synchronization script is executed in the reference environment.
The embodiment shows that by monitoring the version release plan of the production environment, executing the version release plan in the reference environment, generating the difference synchronization script when the production environment is determined to be inconsistent with the reference environment, and then executing the difference synchronization script in the reference environment until the data of the reference environment is the same as the data of the production environment, the consistency of the information of the reference environment and the production environment can be ensured so as to be used for constructing the test environment, thereby being beneficial to getting through the barrier between the test environment and the production environment.
In order to better explain the embodiment of building the database of the environment to be deployed, a description is given below of a flow for building the database of the environment to be deployed according to a specific implementation scenario.
As shown in fig. 4, the process includes the following steps:
step 401, reading resource configuration information from a configuration management database.
And reading resource configuration information of the environment to be deployed from the configuration management database, wherein the resource configuration information can comprise environment information, database information and the like.
Step 402, determining whether the environment to be deployed has a database to be deployed, if yes, executing step 403, and if not, executing step 404.
And determining whether the to-be-deployed environment has a database to be deployed according to the resource configuration information.
Step 403, determine whether there is a table of the database in the template environment in the database, if yes, execute step 405, and if no, execute step 406.
When determining that the environment to be deployed has a database which needs to be deployed, determining whether the database has a table of the database in the template environment.
Step 404, create a database.
And when determining that the environment to be deployed does not have a database which needs to be deployed, creating a new database.
Step 405, determining whether the table structure of the database in the template environment is different from the table structure of the database in the environment to be deployed, if so, executing step 407, otherwise, executing step 408.
When determining that the database has the table of the database in the template environment, determining whether the table structure of the database in the template environment is different from the table structure of the database in the environment to be deployed.
At step 406, a table of the database is created.
Upon determining that there are no tables in the database in the template environment, a new table is created.
Step 407, synchronizing the difference of the table structures of the databases in the environment to be deployed according to the first preset rule.
Step 408, determine whether the table of the database is a parameter table, if yes, execute step 409, if no, the process ends.
After determining that the table structure of the database in the template environment is not different from the table structure of the database in the environment to be deployed or the table structure of the database in the environment to be deployed is synchronized according to a first preset rule, determining whether the table of the database is a parameter table.
Step 409, determine whether the parameter table is environment-dependent, if yes, go to step 410, otherwise, end the process.
Upon determining that a table of the database is a parameter table, determining whether the parameter table is environmentally relevant.
Step 410, synchronizing parameters of the parameter table in the environment to be deployed according to a second preset rule.
And when the parameter table environment is determined to be relevant, synchronizing the parameters of the parameter table in the environment to be deployed according to a second preset rule.
The above-described embodiment shows that, based on the template environment, when it is determined that there is a difference between the table structure of the database in the template environment and the table structure of the database in the database information, synchronizing differences of table structures of the databases in the database information according to a first preset rule, and when determining that the tables of the databases in the database information are parameter tables, synchronizing the parameters of the parameter table according to the second preset rule and the type of the parameter table, quickly constructing a database of the environment to be deployed, and ensures the consistency of the database in the environment to be deployed and the database in the template environment, and can also avoid the need of deploying the database in full when constructing the environment to be deployed, the consistency of the database in the environment to be deployed and the database in the template environment is ensured, and the low testing accuracy caused by the inconsistency between the environment to be deployed and the production environment is avoided.
In order to better explain the embodiment of building the subsystem of the environment to be deployed, a description is given below of a flow of building the subsystem of the environment to be deployed according to a specific implementation scenario.
As shown in fig. 5, the process includes the following steps:
step 501, determining whether the subsystem materials of the template environment and the environment to be deployed are consistent, if so, ending the process, and if not, executing step 502.
Step 502, determining whether the historical material warehouse has corresponding materials, if yes, executing step 503, and if not, executing step 504.
And when the subsystem materials of the template environment and the environment to be deployed are determined to be inconsistent, determining whether the historical material warehouse has the subsystem materials with the corresponding version numbers according to the version numbers of the template environment.
Step 503, extracting historical materials.
And when the subsystem materials with the corresponding version numbers in the historical material warehouse are determined according to the version numbers of the template environment, extracting the subsystem materials with the corresponding version numbers from the historical material warehouse.
At step 504, the CI platform repackages the subsystems.
And when it is determined that the historical material warehouse does not have subsystem materials with corresponding version numbers according to the version numbers of the template environments, repacking and constructing through a CI platform to carry out bottom packing.
And 505, replacing the differential variables of the subsystem materials in the environment to be deployed by using a differential variable replacement rule.
Step 506, subsystem deployment.
The above embodiment shows that, when it is determined that the application package in the subsystem information in the template environment is inconsistent with the application package in the subsystem information in the environment to be deployed, the application package corresponding to the currently published version number is obtained from the subsystem information version library according to the currently published version number in the subsystem information in the template environment, and the differentiated variable of the application package in the subsystem information in the environment to be deployed is replaced by using the differentiated variable replacement rule according to the application package corresponding to the currently published version number, so that the subsystem of the environment to be deployed can be quickly constructed, the consistency of the subsystem in the environment to be deployed and the subsystem in the template environment can be ensured, the requirement for deploying the subsystems in full amount when the environment to be deployed is constructed can be avoided, and the consistency of the subsystem in the environment to be deployed and the subsystem in the template environment can be further ensured, the method avoids the low accuracy of the test caused by the inconsistency between the environment to be deployed and the production environment.
Based on the same technical concept, fig. 6 exemplarily shows a software test environment construction apparatus provided by an embodiment of the present invention, and the apparatus can execute a flow of a software test environment construction method.
As shown in fig. 6, the apparatus includes:
an obtaining unit 601, configured to read resource configuration information of an environment to be deployed from a configuration management database, where the resource configuration information includes database information and subsystem information;
a processing unit 602, configured to, when it is determined that a table structure of a database in a template environment differs from a table structure of a database in the database information, synchronize table structure differences of the database in the database information according to a first preset rule, synchronize tables of the database in the database information, and determine the database of the environment to be deployed; when the situation that the application program package in the subsystem information in the template environment is inconsistent with the application program package in the subsystem information in the environment to be deployed is determined, replacing differential variables of the application program package in the subsystem information in the environment to be deployed by using a differential variable replacement rule, and determining a subsystem of the environment to be deployed; and deploying the database and the subsystem of the environment to be deployed to determine the software testing environment.
Optionally, the processing unit 602 is specifically configured to:
and synchronizing the parameters of the parameter table according to a second preset rule and the type of the parameter table when the table of the database in the database information is determined to be the parameter table.
Optionally, the processing unit 602 is further configured to:
if the table structure of the database in the template environment is not different from the table structure of the database in the database information, synchronizing the parameters of the parameter table according to the second preset rule and the type of the parameter table when determining that the table of the database in the database information is the parameter table, and determining the database of the environment to be deployed.
Optionally, the processing unit 602 is specifically configured to:
if the type of the parameter table is irrelevant to the environment, synchronizing the parameters of the parameter table of the template environment into a database of the environment to be deployed;
and if the type of the parameter table is environment-related, synchronizing the parameters of the environment-related fields of the parameter table of the template environment to the database of the environment to be deployed by using the second preset rule.
Optionally, the processing unit 602 is specifically configured to:
inputting relevant data of a database in the database information into the preset classification model for identification to obtain a prediction probability, and if the prediction probability is greater than a first threshold value, determining a table of the database in the database information as a parameter table; the preset classification model is obtained by training and learning historical data of a database of a plurality of sets of test environments.
Optionally, the processing unit 602 is further configured to:
and after determining that the table of the database in the database information is a parameter table, classifying the parameter table according to the difference content and the difference type of the plurality of sets of test environments to obtain the type of the parameter table.
Optionally, the processing unit 602 is specifically configured to:
and acquiring an application program package corresponding to the current release version number from a subsystem information version library according to the current release version number in the subsystem information in the template environment, and replacing the differential variables of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package corresponding to the current release version number.
Optionally, the processing unit 602 is further configured to:
if the application program package corresponding to the current release version number is not acquired, acquiring the application program package in the subsystem information in the template environment again, and replacing the differential variable of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package in the subsystem information in the template environment to determine the subsystem of the environment to be deployed; the differential variable replacement rule is obtained by training and learning differential variable values of the subsystem information of a plurality of sets of test environments.
Optionally, the processing unit 602 is further configured to:
before the resource configuration information of the environment to be deployed is read from the configuration management database, monitoring whether a production environment has a version release plan or not;
if so, executing the version release plan in the template environment, and comparing the executed data of the template environment with the data of the production environment;
and if the executed data of the template environment is inconsistent with the data of the production environment, generating a difference synchronous script, and executing the difference synchronous script in the template environment until the data of the template environment is the same as the data of the production environment.
Based on the same technical concept, an embodiment of the present invention provides a computing device, including:
a memory for storing a computer program;
and the processor is used for calling the computer program stored in the memory and executing the construction method of the software test environment according to the obtained program.
Based on the same technical concept, embodiments of the present invention provide a computer-readable storage medium storing a computer-executable program for causing a computer to execute a method of constructing a software test environment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, 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 (systems) and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present application and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A method for constructing a software test environment is characterized by comprising the following steps:
reading resource configuration information of an environment to be deployed from a configuration management database, wherein the resource configuration information comprises database information and subsystem information;
when the table structure of the database in the template environment is determined to be different from the table structure of the database in the database information, synchronizing the table structure difference of the database in the database information according to a first preset rule, synchronizing the tables of the database in the database information, and determining the database of the environment to be deployed;
when the situation that the application program package in the subsystem information in the template environment is inconsistent with the application program package in the subsystem information in the environment to be deployed is determined, replacing differential variables of the application program package in the subsystem information in the environment to be deployed by using a differential variable replacement rule, and determining a subsystem of the environment to be deployed;
and deploying the database and the subsystem of the environment to be deployed to determine the software testing environment.
2. The method of claim 1, wherein the synchronizing tables of the database in the database information comprises:
and synchronizing the parameters of the parameter table according to a second preset rule and the type of the parameter table when the table of the database in the database information is determined to be the parameter table.
3. The method of claim 2, wherein the method further comprises:
if the table structure of the database in the template environment is not different from the table structure of the database in the database information, synchronizing the parameters of the parameter table according to the second preset rule and the type of the parameter table when determining that the table of the database in the database information is the parameter table, and determining the database of the environment to be deployed.
4. The method of claim 3, wherein the synchronizing the parameters of the parameter table according to the second predetermined rule and the type of the parameter table comprises:
if the type of the parameter table is irrelevant to the environment, synchronizing the parameters of the parameter table of the template environment into a database of the environment to be deployed;
and if the type of the parameter table is environment-related, synchronizing the parameters of the environment-related fields of the parameter table of the template environment to the database of the environment to be deployed by using the second preset rule.
5. The method of claim 3, wherein the determining tables of the database in the database information are parameter tables, comprising:
inputting relevant data of a database in the database information into the preset classification model for identification to obtain a prediction probability, and if the prediction probability is greater than a first threshold value, determining a table of the database in the database information as a parameter table; the preset classification model is obtained by training and learning historical data of a database of a plurality of sets of test environments.
6. The method of claim 5, wherein after said determining that the tables of the database in the database information are parameter tables, further comprising:
and classifying the parameter table according to the difference content and the difference type of the plurality of sets of test environments to obtain the type of the parameter table.
7. The method of claim 1, wherein the replacing differentiated variables of the application package in the subsystem information in the environment to be deployed using a differentiated variable replacement rule comprises:
and acquiring an application program package corresponding to the current release version number from a subsystem information version library according to the current release version number in the subsystem information in the template environment, and replacing the differential variables of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package corresponding to the current release version number.
8. The method of claim 1, wherein the method further comprises:
if the application program package corresponding to the current release version number is not acquired, acquiring the application program package in the subsystem information in the template environment again, and replacing the differential variable of the application program package in the subsystem information in the environment to be deployed by using the differential variable replacement rule according to the application program package in the subsystem information in the template environment to determine the subsystem of the environment to be deployed; the differential variable replacement rule is obtained by training and learning differential variable values of the subsystem information of a plurality of sets of test environments.
9. The method according to any one of claims 1 to 8, further comprising, before the reading resource configuration information of the environment to be deployed from the configuration management database:
monitoring whether the production environment has a version release plan or not;
if so, executing the version release plan in the template environment, and comparing the executed data of the template environment with the data of the production environment;
and if the executed data of the template environment is inconsistent with the data of the production environment, generating a difference synchronous script, and executing the difference synchronous script in the template environment until the data of the template environment is the same as the data of the production environment.
10. An apparatus for constructing a software test environment, comprising:
the system comprises an acquisition unit, a configuration management database and a deployment management unit, wherein the acquisition unit is used for reading resource configuration information of an environment to be deployed from the configuration management database, and the resource configuration information comprises database information and subsystem information;
the processing unit is used for synchronizing the table structure difference of the database in the database information according to a first preset rule and synchronizing the table of the database in the database information when the difference between the table structure of the database in the template environment and the table structure of the database in the database information is determined, so as to determine the database of the environment to be deployed; when the situation that the application program package in the subsystem information in the template environment is inconsistent with the application program package in the subsystem information in the environment to be deployed is determined, replacing differential variables of the application program package in the subsystem information in the environment to be deployed by using a differential variable replacement rule, and determining a subsystem of the environment to be deployed; and deploying the database and the subsystem of the environment to be deployed to determine the software testing environment.
11. A computing device, comprising:
a memory for storing a computer program;
a processor for calling a computer program stored in said memory and executing the method of any one of claims 1 to 9 in accordance with the obtained program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer-executable program for causing a computer to execute the method of any one of claims 1 to 9.
CN202010605866.0A 2020-06-29 2020-06-29 Method and device for constructing software testing environment Pending CN111694750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010605866.0A CN111694750A (en) 2020-06-29 2020-06-29 Method and device for constructing software testing environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010605866.0A CN111694750A (en) 2020-06-29 2020-06-29 Method and device for constructing software testing environment

Publications (1)

Publication Number Publication Date
CN111694750A true CN111694750A (en) 2020-09-22

Family

ID=72484371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010605866.0A Pending CN111694750A (en) 2020-06-29 2020-06-29 Method and device for constructing software testing environment

Country Status (1)

Country Link
CN (1) CN111694750A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860540A (en) * 2021-01-14 2021-05-28 中国农业银行股份有限公司 Software version upgrade test management and control system and method
CN113535225A (en) * 2021-07-26 2021-10-22 上海浦东发展银行股份有限公司 Environment configuration file processing method, device, equipment and medium of application software
CN114138285A (en) * 2022-01-24 2022-03-04 统信软件技术有限公司 Application deployment method, computing device and readable storage medium
CN115460077A (en) * 2022-09-01 2022-12-09 杭州华橙软件技术有限公司 Configuration information updating method and device, storage medium and electronic device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860540A (en) * 2021-01-14 2021-05-28 中国农业银行股份有限公司 Software version upgrade test management and control system and method
CN113535225A (en) * 2021-07-26 2021-10-22 上海浦东发展银行股份有限公司 Environment configuration file processing method, device, equipment and medium of application software
CN113535225B (en) * 2021-07-26 2022-08-05 上海浦东发展银行股份有限公司 Environment configuration file processing method, device, equipment and medium of application software
CN114138285A (en) * 2022-01-24 2022-03-04 统信软件技术有限公司 Application deployment method, computing device and readable storage medium
CN115460077A (en) * 2022-09-01 2022-12-09 杭州华橙软件技术有限公司 Configuration information updating method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US10515002B2 (en) Utilizing artificial intelligence to test cloud applications
CN111694750A (en) Method and device for constructing software testing environment
US20200174774A1 (en) Utilizing a machine learning model to predict metrics for an application development process
US20190310872A1 (en) Virtual machine to container conversion and optimization
US11327744B2 (en) Equivalency of revisions on modern version control systems
WO2019029160A1 (en) Application construction method and system, computer device, and storage medium
US10922213B2 (en) Embedded quality indication data for version control systems
US20190205479A1 (en) Graph modeling of applications for detection of duplicate modules
CN111309734B (en) Method and system for automatically generating table data
US20210241273A1 (en) Smart contract platform
CN115129736A (en) Rule engine-based rule event dynamic loading and updating method and related equipment
US9256509B1 (en) Computing environment analyzer
CN104461693A (en) Virtual machine updating method and virtual machine updating system under desktop cloud computing environment
US9342784B1 (en) Rule based module for analyzing computing environments
CN111694612A (en) Configuration checking method, device, computer system and storage medium
CN112099880B (en) Method and system for reducing application program driven by scene
US20210224245A1 (en) Data configuration, management, and testing
Deshai et al. Processing real world datasets using big data hadoop tools
CN114661423A (en) Cluster configuration detection method and device, computer equipment and storage medium
US20180137036A1 (en) Determining potential test actions
CN116483605A (en) Data processing method, device, system, storage medium and electronic equipment
CN111352631A (en) Interface compatibility detection method and device
US20230169168A1 (en) Detect anomalous container deployment at a container orchestration service
US11720348B2 (en) Computing node allocation based on build process specifications in continuous integration environments
CN112115118B (en) Database pressure measurement optimization method and device, storage medium and electronic equipment

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